diff --git a/.vscode/cspell.json b/.vscode/cspell.json index 3b44fde1ba2d..1dbdb8a171a0 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -196,7 +196,7 @@ "livekvtestcertrec", "livekvtestgetcertperfcert", "livekvtestgetsecretperfsecret", - "livekvtestlistperfsecret", + "livekvtestlistperfsecret", "livekvtestdecryptperfkey", "livekvtestgetkeyperfkey", "livekvtestsignperfkey", @@ -242,6 +242,7 @@ "PSECRET", "pygobject", "parameterizing", + "pytyped", "pytz", "pywin", "pyversion", diff --git a/doc/dev/mgmt/tests.md b/doc/dev/mgmt/tests.md index bc4f88a05799..dddb71f66fb0 100644 --- a/doc/dev/mgmt/tests.md +++ b/doc/dev/mgmt/tests.md @@ -14,7 +14,7 @@ IMPORTANT NOTE: All the commands in this page assumes you have loaded the [dev_s # Overview -This page is to help you write tests for Azure Python SDK when these tests require Azure HTTP requests. The Azure SDK test framework uses the [`azure-devtools`][azure_devtools] package, which in turn rests upon on a HTTP recording system ([vcrpy][vcrpy]) that enables tests dependent on network interaction to be run offline. +This page is to help you write tests for Azure Python SDK when these tests require Azure HTTP requests. The Azure SDK test framework uses the [`azure-devtools`][azure_devtools] package, which in turn rests upon on a HTTP recording system ([testproxy][testproxy]) that enables tests dependent on network interaction to be run offline. In this document, we will describe: - [How to run the tests online (by authenticating with Azure to record new HTTP interactions)](#running-tests-in-live-mode) @@ -52,14 +52,14 @@ There are several ways to authenticate to Azure, but to be able to record test H ### Get a token with Active Directory application and service principal Follow this detailed tutorial to set up an Active Directory application and service principal: -https://azure.microsoft.com/documentation/articles/resource-group-create-service-principal-portal/ +https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal To use the credentials from Python, you need: * Application ID (a.k.a. client ID) * Authentication key (a.k.a. client secret) * Tenant ID * Subscription ID from the Azure portal -[This section of the above tutorial](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-create-service-principal-portal#get-application-id-and-authentication-key) describes where to find them (besides the subscription ID, which is in the "Overview" section of the "Subscriptions" blade.) +[This section of the above tutorial](https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal#get-tenant-and-app-id-values-for-signing-in) describes where to find them (besides the subscription ID, which is in the "Overview" section of the "Subscriptions" blade.) The recommended practice is to store these three values in environment variables called `AZURE_TENANT_ID`, `AZURE_CLIENT_ID`, and `AZURE_CLIENT_SECRET`. To set an environment variable use the following commands: ```Shell @@ -69,18 +69,26 @@ export AZURE_TENANT_ID= # Linux shell only ``` *** Note: when setting these variables, do not wrap the value in quotation marks *** -You are now able to log in from Python using OAuth. +You are now able to log in from Python using OAuth. Before use, you need to run the `pip install azure-identity` command to install it. You can test with this code: ```python import os -from azure.common.credentials import ServicePrincipalCredentials +from azure.identity import ClientSecretCredential -credentials = ServicePrincipalCredentials( +credentials = ClientSecretCredential( client_id = os.environ['AZURE_CLIENT_ID'], secret = os.environ['AZURE_CLIENT_SECRET'], tenant = os.environ['AZURE_TENANT_ID'] ) ``` +Or you can use `DefaultAzureCredential`, which we prefer. +You can test with this code: +```python +import os +from azure.identity import DefaultAzureCredential + +credentials = DefaultAzureCredential() +``` ## Providing credentials to the tests @@ -90,21 +98,9 @@ In live mode, you need to use real credentials like those you obtained in the pr Then make the following changes: * Change the value of the `SUBSCRIPTION_ID` constant to your subscription ID. (If you don't have it, you can find it in the "Overview" section of the "Subscriptions" blade in the [Azure portal][azure_portal].) -* Change the `get_credentials()` function to construct and return a `UserPassCredentials` (Don't forget to make sure the necessary imports are present as well!). +* Change the `get_azure_core_credential()` function to construct and return a `ClientSecretCredential`: ```python -def get_credentials(**kwargs): - import os - from azure.common.credentials import ServicePrincipalCredentials - - return ServicePrincipalCredentials( - client_id = os.environ['AZURE_CLIENT_ID'], - secret = os.environ['AZURE_CLIENT_SECRET'], - tenant = os.environ['AZURE_TENANT_ID'] - ) -``` -* Change the `get_azure_core_credentials()` function to construct and return a `ClientSecretCredential`: -```python -def get_azure_core_credentials(**kwargs): +def get_azure_core_credential(**kwargs): from azure.identity import ClientSecretCredential import os return ClientSecretCredential( @@ -113,6 +109,12 @@ def get_azure_core_credentials(**kwargs): tenant_id = os.environ['AZURE_TENANT_ID'] ) ``` +* Or you could use the `get_credential()` function to construct and return a `DefaultAzureCredential`: +``` +def get_credential(**kwargs): + from azure.identity import DefaultAzureCredential + return DefaultAzureCredential() +``` These two methods are used by the authentication methods within `AzureTestCase` to provide the correct credential for your client class, you do not need to call these methods directly. Authenticating clients will be discussed further in the [examples](#writing-management-plane-test) section. **Important: `mgmt_settings_real.py` should not be committed since it contains your actual credentials! To prevent this, it is included in `.gitignore`.** @@ -156,65 +158,87 @@ For more information about legacy tests, see [Legacy tests](https://github.com/A Management plane SDKs are those that are formatted `azure-mgmt-xxxx`, otherwise the SDK is data plane. Management plane SDKs work against the [Azure Resource Manager APIs][arm_apis], while the data plane SDKs will work against service APIs. This section will demonstrate writing tests using `devtools_testutils` with a few increasingly sophisticated examples to show how to use some of the features of the underlying test frameworks. +### Tips: +After the migration of the test proxy, `conftests.py` needs to be configured under the tests folder.
+* For a sample about `conftest.py`, see [conftest.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/advisor/azure-mgmt-advisor/tests/conftest.py).
+* For more information about test proxy, see [TestProxy][testproxy]. + ### Example 1: Basic Azure service interaction and recording ```python from azure.mgmt.resource import ResourceManagementClient -from devtools_testutils import AzureMgmtTestCase +from devtools_testutils import AzureMgmtRecordedTestCase, recorded_by_proxy -class ExampleResourceGroupTestCase(AzureMgmtTestCase): - def setUp(self): - super(ExampleResourceGroupTestCase, self).setUp() - self.client = self.create_mgmt_client(ResourceManagementClient) +AZURE_LOCATION = 'eastus' +class TestExampleResourceGroup(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(ResourceManagementClient) + + @recorded_by_proxy def test_create_resource_group(self): test_group_name = self.get_resource_name('testgroup') group = self.client.resource_groups.create_or_update( test_group_name, {'location': 'westus'} ) - self.assertEqual(group.name, test_group_name) - self.client.resource_groups.delete(group.name).wait() + assert group.name == test_group_name + self.client.resource_groups.begin_delete(group.name) ``` This simple test creates a resource group and checks that its name is assigned correctly. Notes: -1. This test inherits all necessary behavior for HTTP recording and playback described previously in this document from its `AzureMgmtTestCase` superclass. You don't need to do anything special to implement it. -2. The `get_resource_name()` helper method of `AzureMgmtTestCase` creates a pseudorandom name based on the parameter and the names of the test file and method. This ensures that the name generated is the same for each run of the same test, ensuring reproducability and preventing name collisions if the tests are run live and the same parameter is used from several different tests. -3. The `create_mgmt_client()` helper method of `AzureMgmtTestCase` creates a client object using the credentials from `mgmt_settings_fake.py` or `mgmt_settings_real.py` as appropriate, with some checks to make sure it's created successfully and cause the unit test to fail if not. You should use it for any clients you create. +1. This test inherits all necessary behavior for HTTP recording and playback described previously in this document from its `AzureMgmtRecordedTestCase` superclass. You don't need to do anything special to implement it. +2. The `get_resource_name()` helper method of `AzureMgmtRecordedTestCase` creates a pseudorandom name based on the parameter and the names of the test file and method. This ensures that the name generated is the same for each run of the same test, ensuring reproducability and preventing name collisions if the tests are run live and the same parameter is used from several different tests. +3. The `create_mgmt_client()` helper method of `AzureMgmtRecordedTestCase` creates a client object using the credentials from `mgmt_settings_fake.py` or `mgmt_settings_real.py` as appropriate, with some checks to make sure it's created successfully and cause the unit test to fail if not. You should use it for any clients you create. 4. While the test cleans up the resource group it creates, you will need to manually delete any resources you've created independent of the test framework. But if you need something like a resource group as a prerequisite for what you're actually trying to test, you should use a "preparer" as demonstrated in the following two examples. Preparers will create and clean up helper resources for you. ### Example 2: Basic preparer usage ```python -from azure.mgmt.sql import SqlManagementClient -from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer +import azure.mgmt.search +from devtools_testutils import AzureMgmtRecordedTestCase, ResourceGroupPreparer, recorded_by_proxy + +class TestMgmtSearch(AzureMgmtRecordedTestCase): -class ExampleSqlServerTestCase(AzureMgmtTestCase): - def setUp(self): - super(ExampleSqlServerTestCase, self).setUp() - self.client = self.create_mgmt_client(SqlManagementClient) + def setup_method(self, method): + self.client = self.create_mgmt_client( + azure.mgmt.search.SearchManagementClient + ) @ResourceGroupPreparer() - def test_create_sql_server(self, resource_group, location): - test_server_name = self.get_resource_name('testsqlserver') - server_creation = self.client.servers.create_or_update( + @recorded_by_proxy + def test_search_services(self, resource_group, location): + account_name = self.get_resource_name(''ptvstestsearch') + + service = self.client.services.begin_create_or_update( resource_group.name, - test_server_name, + account_name, { 'location': location, - 'version': '12.0', - 'administrator_login': 'mysecretname', - 'administrator_login_password': 'HusH_Sec4et' + 'replica_count': 1, + 'partition_count': 1, + 'hosting_mode': 'Default', + 'sku': { + 'name': 'standard' + } } + ).result() + + availability = self.client.services.check_name_availability(account_name) + assert not availability.is_name_available + assert availability.reason == "AlreadyExists" + + service = self.client.services.get( + resource_group.name, + service.name ) - server = server_creation.result() - self.assertEqual(server.name, test_server_name) + assert service.name == account_name ``` -This test creates a SQL server and confirms that its name is set correctly. Because a SQL server must be created in a resource group, the test uses a `ResourceGroupPreparer` to create a group for use in the test. +This test creates a Search server and confirms that its name is set correctly. Because a Search server must be created in a resource group, the test uses a `ResourceGroupPreparer` to create a group for use in the test. Preparers are [decorators][decorators] that "wrap" a test method, transparently replacing it with another function that has some additional functionality before and after it's run. For example, the `@ResourceGroupPreparer` decorator adds the following to the wrapped method: * creates a resource group @@ -227,51 +251,61 @@ Notes: 3. Why not use a preparer in Example 1, above? Preparers are only for *auxiliary* resources that aren't part of the main focus of the test. In example 1, we want to test the actual creation and naming of the resource group, so those operations are part of the test. - By contrast, in example 2, the subject of the test is the SQL server management operations; the resource group is just a prerequisite for those operations. We only want this test to fail if something is wrong with the SQL server creation. + By contrast, in example 2, the subject of the test is the Search management operations; the resource group is just a prerequisite for those operations. We only want this test to fail if something is wrong with the Search server creation. If there's something wrong with the resource group creation, there should be a dedicated test for that. ### Example 3: More complicated preparer usage ```python -from azure.mgmt.media import MediaServicesManagementClient +import azure.mgmt.batch +from azure.mgmt.batch import models + +from azure_devtools.scenario_tests.recording_processors import GeneralNameReplacer from devtools_testutils import ( - AzureMgmtTestCase, ResourceGroupPreparer, StorageAccountPreparer, FakeResource + AzureMgmtRecordedTestCase, recorded_by_proxy, + ResourceGroupPreparer, + StorageAccountPreparer ) -FAKE_STORAGE_ID = 'STORAGE-FAKE-ID' -FAKE_STORAGE = FakeResource(name='teststorage', id=FAKE_STORAGE_ID) - -class ExampleMediaServiceTestCase(AzureMgmtTestCase): - def setUp(self): - super(ExampleMediaServiceTestCase, self).setUp() - self.client = self.create_mgmt_client(MediaServicesManagementClient) - - @ResourceGroupPreparer(parameter_name='group') - @StorageAccountPreparer(playback_fake_resource=FAKE_STORAGE, - name_prefix='testmedia', - resource_group_parameter_name='group') - def test_create_media_service(self, group, location, storage_account): - test_media_name = self.get_resource_name('pymediatest') - media_obj = self.client.media_service.create( - group.name, - test_media_name, - { - 'location': location, - 'storage_accounts': [{ - 'id': storage_account.id, - 'is_primary': True, - }] - } +AZURE_ARM_ENDPOINT = "https://centraluseuap.management.azure.com" +AZURE_LOCATION = 'eastus' + +class TestMgmtBatch(AzureMgmtRecordedTestCase): + scrubber = GeneralNameReplacer() + + def setup_method(self, method): + self.mgmt_batch_client = self.create_mgmt_client( + azure.mgmt.batch.BatchManagementClient, + base_url=AZURE_ARM_ENDPOINT) + + @ResourceGroupPreparer(location=AZURE_LOCATION) + @StorageAccountPreparer(name_prefix='batch', location=AZURE_LOCATION) + @recorded_by_proxy + def test_mgmt_batch_applications(self, resource_group, location, storage_account, storage_account_key): + # Test Create Account with Auto-Storage + storage_resource = '/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}'.format( + self.get_settings_value("SUBSCRIPTION_ID"), + resource_group.name, + storage_account.name ) + batch_account = models.BatchAccountCreateParameters( + location=location, + auto_storage=models.AutoStorageBaseProperties(storage_account_id=storage_resource) + ) + account_name = "testbatch" + account_setup = self.mgmt_batch_client.batch_account.begin_create( + resource_group.name, + account_name, + batch_account).result() + assert account_setup.name == account_name - self.assertEqual(media_obj.name, test_media_name) ``` -This test creates a media service and confirms that its name is set correctly. +This test creates a batch account and confirms that its name is set correctly. Notes: -1. Here, we want to test creation of a media service, which requires a storage account. We want to use a preparer for this, but creation of a storage account itself needs a resource group. So we need both a `ResourceGroupPreparer` and a `StorageAccountPreparer`, in that order. +1. Here, we want to test creation of a batch account, which requires a storage account. We want to use a preparer for this, but creation of a storage account itself needs a resource group. So we need both a `ResourceGroupPreparer` and a `StorageAccountPreparer`, in that order. 2. Both preparers are customized. We pass a `parameter_name` keyword argument of `group` to `ResourceGroupPreparer`, and as a result the resource group is passed into the test method through the `group` parameter (rather than the default `resource_group`). Then, because `StorageAccountPreparer` needs a resource group, we need to let it know about the modified parameter name. We do so with the `resource_group_parameter_name` argument. Finally, we pass a `name_prefix` to `StorageAccountPreparer`. The names it generates by default include the fully qualified test name, and so tend to be longer than is allowed for storage accounts. You'll probably always need to use `name_prefix` with `StorageAccountPreparer`. 3. We want to ensure that the group retrieved by `get_properties` has a `kind` of `BlobStorage`. We create a `FakeStorageAccount` object with that attribute and pass it to `StorageAccountPreparer`, and also pass the `kind` keyword argument to `StorageAccountPreparer` so that it will be passed through when a storage account is prepared for real. 4. Similarly to how a resource group parameter is added by `ResourceGroupPreparer`, `StorageAccountPreparer` passes the model object for the created storage account as the `storage_account` parameter, and that parameter's name can be customized. `StorageAccountPreparer` also creates an account access key and passes it into the test method through a parameter whose name is formed by appending `_key` to the name of the parameter for the account itself. @@ -279,34 +313,42 @@ Notes: ### Example 4: Different endpoint than public Azure (China, Dogfood, etc.) ```python -from azure.mgmt.sql import SqlManagementClient -from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer +import azure.mgmt.search +from devtools_testutils import AzureMgmtRecordedTestCase, ResourceGroupPreparer, recorded_by_proxy _CUSTOM_ENDPOINT = "https://api-dogfood.resources.windows-int.net/" -class ExampleSqlServerTestCase(AzureMgmtTestCase): - def setUp(self): - super(ExampleSqlServerTestCase, self).setUp() +class TestMgmtSearch(AzureMgmtRecordedTestCase): + + def setup_method(self, method): self.client = self.create_mgmt_client( - SqlManagementClient, + azure.mgmt.search.SearchManagementClient, base_url=_CUSTOM_ENDPOINT ) @ResourceGroupPreparer(client_kwargs={'base_url':_CUSTOM_ENDPOINT}) - def test_create_sql_server(self, resource_group, location): - test_server_name = self.get_resource_name('testsqlserver') - server_creation = self.client.servers.create_or_update( + @recorded_by_proxy + def test_search_services(self, resource_group, location): + account_name = self.get_resource_name(''ptvstestsearch') + + service = self.client.services.begin_create_or_update( resource_group.name, - test_server_name, + account_name, { 'location': location, - 'version': '12.0', - 'administrator_login': 'mysecretname', - 'administrator_login_password': 'HusH_Sec4et' + 'replica_count': 1, + 'partition_count': 1, + 'hosting_mode': 'Default', + 'sku': { + 'name': 'standard' + } } - ) - server = server_creation.result() - self.assertEqual(server.name, test_server_name) + ).result() + + availability = self.client.services.check_name_availability(account_name) + assert not availability.is_name_available + assert availability.reason == "AlreadyExists" + assert service.name == account_name ``` @@ -317,5 +359,5 @@ class ExampleSqlServerTestCase(AzureMgmtTestCase): [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 +[testproxy]: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/test_proxy_migration_guide.md [pytest]: https://docs.pytest.org/en/latest/ -[vcrpy]: https://pypi.python.org/pypi/vcrpy \ No newline at end of file diff --git a/scripts/check_change_log/README.md b/scripts/check_change_log/README.md new file mode 100644 index 000000000000..9d881dd44050 --- /dev/null +++ b/scripts/check_change_log/README.md @@ -0,0 +1,25 @@ +# Overview +This script will generate change_log by comparing latest two versions of mgmt package on pypi. It can help us quickly verify whether the changes to the `change_log` tool are correct + + + +# preprequisites +- [Python 3.6](https://www.python.org/downloads/windows/) or later is required +- [docker desktop](https://www.docker.com/get-started/) + +# How to use this script +1.Use gitbash to create a new branch to work in. + +2.Please make sure your docker is running on your computer. + +3.Open your powershell and step in path where the script is in + +4.Install the dependency +```bash +pip install -r requirements.txt +``` + +5.Run command in your powershell: +``` +python main.py +``` diff --git a/scripts/check_change_log/main.py b/scripts/check_change_log/main.py new file mode 100644 index 000000000000..5e9c3e471f44 --- /dev/null +++ b/scripts/check_change_log/main.py @@ -0,0 +1,121 @@ +# coding=utf-8 +import glob +import os +import subprocess as sp +import time +from pypi_tools.pypi import PyPIClient +from pathlib import Path + +error_packages_info = {} + + +def find_report_name(result): + signal_api_pattern = 'written to' + multi_api_pattern = 'merged_report' + for line in result: + idx = line.find(signal_api_pattern) + idx1 = line.find(multi_api_pattern) + if idx > 0 and idx1 > 0: + return "_/" + line[idx + len(signal_api_pattern):].replace(" ", "") + + for line in result: + idx = line.find(signal_api_pattern) + if idx > 0: + return "_/" + line[idx + len(signal_api_pattern):].replace(" ", "") + + return '' + + +def create_folder(name): + if not os.path.exists(name): + os.mkdir(name) + + +def write_txt(folder, text_name, content, older_version, last_version): + file_path = str(Path(f"{folder}/{text_name}_{older_version}_{last_version}.txt")) + with open(file=file_path, mode="w", encoding="utf-8") as file: + file.write(content) + print(f"{text_name} has been created successfully") + + +def create_code_report(cmd, service_name): + process = sp.Popen( + cmd, + stderr=sp.STDOUT, + stdout=sp.PIPE, + universal_newlines=True, + cwd=None, + shell=False, + env=None, + encoding="utf-8", + ) + output_buffer = [line.rstrip() for line in process.stdout] + process.wait() + if process.returncode: + error_packages_info[service_name] = '\n'.join(output_buffer[-min(len(output_buffer), 10):]) + raise Exception(f'fail to create code report of {service_name}') + return output_buffer + + +if __name__ == '__main__': + # get sdk path + env = Path.cwd() + docker_path = env.parent.parent + docker_cmd = 'docker exec -it Change_log /bin/bash -c' + + # create docker env in sdk path + sp.call(fr"docker create -it --rm -h Change_log --name Change_log -v {docker_path}:/_ l601306339/autorest") + sp.call("docker start Change_log") + + # install azure tools + sp.call(f'{docker_cmd} "python _/scripts/dev_setup.py -p azure-core" ') + + # get all azure-mgmt-package paths + in_files = glob.glob(str(Path(f'{docker_path}/sdk/*/azure-mgmt-*'))) + for i in in_files: + path = Path(i) + service_name = path.parts[-1] + + # get package version in pypi + client = PyPIClient() + versions = [str(v) for v in client.get_ordered_versions(service_name)] + if len(versions) >= 2: + older_version = versions[-2] + last_version = versions[-1] + + # generate code_report + cmd_last_version = fr'{docker_cmd} "cd _/ && python -m packaging_tools.code_report {service_name} --version={last_version}"' + cmd_older_version = fr'{docker_cmd} "cd _/ && python -m packaging_tools.code_report {service_name} --version={older_version}"' + try: + last_code_report_info = create_code_report(cmd_last_version, service_name) + older_code_report_info = create_code_report(cmd_older_version, service_name) + + # get code_report path + route_last_version = find_report_name(last_code_report_info) + route_older_version = find_report_name(older_code_report_info) + + # use change_log on these two code_reports + result = sp.check_output( + f'{docker_cmd} "python -m packaging_tools.change_log {route_older_version} {route_last_version}"', + shell=True, universal_newlines=True) + except sp.CalledProcessError as e: + print(f'error happened for {service_name} during changelog generation') + error_packages_info[service_name] = str(e) + except Exception as e: + print(f'error happened for {service_name} during code report generation: {e}') + else: + output_message = result.split("\n") + result_text = "\n".join(output_message[1:]) + + # write a txt to save change_log + change_log_folder_path = str(env / "Change_Log") + create_folder(change_log_folder_path) + write_txt(change_log_folder_path, service_name, result_text, older_version, last_version) + + if error_packages_info: + for k, v in error_packages_info.items(): + print(f'== {k} encountered an error, info: {v}') + + # exit and stop docker + sp.call(f'{docker_cmd} "exit"') + sp.call(f'docker stop Change_log') diff --git a/scripts/check_change_log/requirements.txt b/scripts/check_change_log/requirements.txt new file mode 100644 index 000000000000..445f5268670e --- /dev/null +++ b/scripts/check_change_log/requirements.txt @@ -0,0 +1 @@ +-e ../../tools/azure-sdk-tools \ No newline at end of file diff --git a/sdk/agrifood/azure-mgmt-agrifood/_meta.json b/sdk/agrifood/azure-mgmt-agrifood/_meta.json index b3f2f06ce9d7..d29dfe0819a4 100644 --- a/sdk/agrifood/azure-mgmt-agrifood/_meta.json +++ b/sdk/agrifood/azure-mgmt-agrifood/_meta.json @@ -1,11 +1,11 @@ { - "autorest": "3.4.2", + "autorest": "3.7.2", "use": [ - "@autorest/python@5.8.0", - "@autorest/modelerfour@4.19.2" + "@autorest/python@5.13.0", + "@autorest/modelerfour@4.19.3" ], - "commit": "5ee4aa771330a0120416c066386e6d86693978b4", + "commit": "f699f9210bfb53e5841bd45c5637a122a17ad32b", "repository_url": "https://github.com/Azure/azure-rest-api-specs", - "autorest_command": "autorest specification/agfood/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/agfood/resource-manager/readme.md" + "autorest_command": "autorest agrifood/resource-manager/readme.md --multiapi --python --python-sdks-folder=/sdk-repo/sdk --python3-only --use=@autorest/python@5.13.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2", + "readme": "agrifood/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/__init__.py b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/__init__.py index 4fcfb2a1473a..dc261435b5ee 100644 --- a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/__init__.py +++ b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/__init__.py @@ -12,8 +12,7 @@ __version__ = VERSION __all__ = ['AzureAgriFoodRPService'] -try: - from ._patch import patch_sdk # type: ignore - patch_sdk() -except ImportError: - pass +# `._patch.py` is used for handwritten extensions to the generated code +# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md +from ._patch import patch_sdk +patch_sdk() diff --git a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/_azure_agri_food_rp_service.py b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/_azure_agri_food_rp_service.py index 169943642901..517c10fcaf35 100644 --- a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/_azure_agri_food_rp_service.py +++ b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/_azure_agri_food_rp_service.py @@ -6,28 +6,23 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import TYPE_CHECKING +from copy import deepcopy +from typing import Any, 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 azure.core.rest import HttpRequest, HttpResponse +from azure.mgmt.core import ARMPipelineClient -from ._configuration import AzureAgriFoodRPServiceConfiguration -from .operations import ExtensionsOperations -from .operations import FarmBeatsExtensionsOperations -from .operations import FarmBeatsModelsOperations -from .operations import LocationsOperations -from .operations import Operations from . import models +from ._configuration import AzureAgriFoodRPServiceConfiguration +from .operations import ExtensionsOperations, FarmBeatsExtensionsOperations, FarmBeatsModelsOperations, LocationsOperations, Operations +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials import TokenCredential -class AzureAgriFoodRPService(object): +class AzureAgriFoodRPService: """APIs documentation for Azure AgriFood Resource Provider Service. :ivar extensions: ExtensionsOperations operations @@ -44,55 +39,59 @@ class AzureAgriFoodRPService(object): :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 + :param base_url: Service URL. Default value is "https://management.azure.com". + :type base_url: str + :keyword api_version: Api Version. Default value is "2020-05-12-preview". Note that overriding + this default value may result in unsupported behavior. + :paramtype api_version: str """ 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 = AzureAgriFoodRPServiceConfiguration(credential, subscription_id, **kwargs) + credential: "TokenCredential", + subscription_id: str, + base_url: str = "https://management.azure.com", + **kwargs: Any + ) -> None: + self._config = AzureAgriFoodRPServiceConfiguration(credential=credential, subscription_id=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._serialize.client_side_validation = False + self.extensions = ExtensionsOperations(self._client, self._config, self._serialize, self._deserialize) + self.farm_beats_extensions = FarmBeatsExtensionsOperations(self._client, self._config, self._serialize, self._deserialize) + self.farm_beats_models = FarmBeatsModelsOperations(self._client, self._config, self._serialize, self._deserialize) + self.locations = LocationsOperations(self._client, self._config, self._serialize, self._deserialize) + self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) + - self.extensions = ExtensionsOperations( - self._client, self._config, self._serialize, self._deserialize) - self.farm_beats_extensions = FarmBeatsExtensionsOperations( - self._client, self._config, self._serialize, self._deserialize) - self.farm_beats_models = FarmBeatsModelsOperations( - self._client, self._config, self._serialize, self._deserialize) - self.locations = LocationsOperations( - 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 + def _send_request( + self, + request: HttpRequest, + **kwargs: 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. + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest("GET", "https://www.example.org/") + + >>> 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.pipeline.transport.HttpResponse + :rtype: ~azure.core.rest.HttpResponse """ - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - } - 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 + + request_copy = deepcopy(request) + request_copy.url = self._client.format_url(request_copy.url) + return self._client.send_request(request_copy, **kwargs) def close(self): # type: () -> None diff --git a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/_configuration.py b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/_configuration.py index ed8612f63772..b4de908bf53c 100644 --- a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/_configuration.py +++ b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/_configuration.py @@ -6,22 +6,20 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import TYPE_CHECKING +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 azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, 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 AzureAgriFoodRPServiceConfiguration(Configuration): +class AzureAgriFoodRPServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AzureAgriFoodRPService. Note that all parameters used to create this instance are saved as instance @@ -31,24 +29,28 @@ class AzureAgriFoodRPServiceConfiguration(Configuration): :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The ID of the target subscription. :type subscription_id: str + :keyword api_version: Api Version. Default value is "2020-05-12-preview". Note that overriding + this default value may result in unsupported behavior. + :paramtype api_version: str """ def __init__( self, - credential, # type: "TokenCredential" - subscription_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> None + credential: "TokenCredential", + subscription_id: str, + **kwargs: Any + ) -> None: + super(AzureAgriFoodRPServiceConfiguration, self).__init__(**kwargs) + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + 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(AzureAgriFoodRPServiceConfiguration, self).__init__(**kwargs) self.credential = credential self.subscription_id = subscription_id - self.api_version = "2020-05-12-preview" + self.api_version = api_version self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-agrifood/{}'.format(VERSION)) self._configure(**kwargs) @@ -68,4 +70,4 @@ def _configure( 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) + self.authentication_policy = ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/_metadata.json b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/_metadata.json index cd0d729c4e21..945e196250dd 100644 --- a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/_metadata.json +++ b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/_metadata.json @@ -5,13 +5,13 @@ "name": "AzureAgriFoodRPService", "filename": "_azure_agri_food_rp_service", "description": "APIs documentation for Azure AgriFood Resource Provider Service.", - "base_url": "\u0027https://management.azure.com\u0027", - "custom_base_url": null, + "host_value": "\"https://management.azure.com\"", + "parameterized_host_template": 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\": [\"AzureAgriFoodRPServiceConfiguration\"]}}, \"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\": [\"AzureAgriFoodRPServiceConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AzureAgriFoodRPServiceConfiguration\"]}, \"thirdparty\": {\"msrest\": [\"Deserializer\", \"Serializer\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"], \"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AzureAgriFoodRPServiceConfiguration\"]}, \"thirdparty\": {\"msrest\": [\"Deserializer\", \"Serializer\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" }, "global_parameters": { "sync": { @@ -54,7 +54,7 @@ "required": false }, "base_url": { - "signature": "base_url=None, # type: Optional[str]", + "signature": "base_url=\"https://management.azure.com\", # type: str", "description": "Service URL", "docstring_type": "str", "required": false @@ -74,7 +74,7 @@ "required": false }, "base_url": { - "signature": "base_url: Optional[str] = None,", + "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", "required": false @@ -91,11 +91,10 @@ "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\"]}}}" + "credential_call_sync": "ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)", + "credential_call_async": "AsyncARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)", + "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMChallengeAuthenticationPolicy\", \"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\", \"AsyncARMChallengeAuthenticationPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}" }, "operation_groups": { "extensions": "ExtensionsOperations", diff --git a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/_patch.py b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/_patch.py new file mode 100644 index 000000000000..74e48ecd07cf --- /dev/null +++ b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/_patch.py @@ -0,0 +1,31 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# +# 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. +# +# -------------------------------------------------------------------------- + +# This file is used for handwritten extensions to the generated code. Example: +# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md +def patch_sdk(): + pass \ No newline at end of file diff --git a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/_vendor.py b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/_vendor.py new file mode 100644 index 000000000000..138f663c53a4 --- /dev/null +++ b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/_vendor.py @@ -0,0 +1,27 @@ +# -------------------------------------------------------------------------- +# 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.pipeline.transport import HttpRequest + +def _convert_request(request, files=None): + data = request.content if not files else None + request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) + if files: + request.set_formdata_body(files) + return request + +def _format_url_section(template, **kwargs): + components = template.split("/") + while components: + try: + return template.format(**kwargs) + except KeyError as key: + formatted_components = template.split("/") + components = [ + c for c in formatted_components if "{}".format(key.args[0]) not in c + ] + template = "/".join(components) diff --git a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/__init__.py b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/__init__.py index c487b62feac1..be2624219d74 100644 --- a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/__init__.py +++ b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/__init__.py @@ -8,3 +8,8 @@ from ._azure_agri_food_rp_service import AzureAgriFoodRPService __all__ = ['AzureAgriFoodRPService'] + +# `._patch.py` is used for handwritten extensions to the generated code +# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md +from ._patch import patch_sdk +patch_sdk() diff --git a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/_azure_agri_food_rp_service.py b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/_azure_agri_food_rp_service.py index 70ef0291a186..f9dfe5d87d11 100644 --- a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/_azure_agri_food_rp_service.py +++ b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/_azure_agri_food_rp_service.py @@ -6,32 +6,30 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Any, Optional, TYPE_CHECKING +from copy import deepcopy +from typing import Any, Awaitable, 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 azure.core.rest import AsyncHttpResponse, HttpRequest +from azure.mgmt.core import AsyncARMPipelineClient -from ._configuration import AzureAgriFoodRPServiceConfiguration -from .operations import ExtensionsOperations -from .operations import FarmBeatsExtensionsOperations -from .operations import FarmBeatsModelsOperations -from .operations import LocationsOperations -from .operations import Operations from .. import models +from ._configuration import AzureAgriFoodRPServiceConfiguration +from .operations import ExtensionsOperations, FarmBeatsExtensionsOperations, FarmBeatsModelsOperations, LocationsOperations, Operations +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials_async import AsyncTokenCredential -class AzureAgriFoodRPService(object): +class AzureAgriFoodRPService: """APIs documentation for Azure AgriFood Resource Provider Service. :ivar extensions: ExtensionsOperations operations :vartype extensions: azure.mgmt.agrifood.aio.operations.ExtensionsOperations :ivar farm_beats_extensions: FarmBeatsExtensionsOperations operations - :vartype farm_beats_extensions: azure.mgmt.agrifood.aio.operations.FarmBeatsExtensionsOperations + :vartype farm_beats_extensions: + azure.mgmt.agrifood.aio.operations.FarmBeatsExtensionsOperations :ivar farm_beats_models: FarmBeatsModelsOperations operations :vartype farm_beats_models: azure.mgmt.agrifood.aio.operations.FarmBeatsModelsOperations :ivar locations: LocationsOperations operations @@ -42,53 +40,59 @@ class AzureAgriFoodRPService(object): :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 + :param base_url: Service URL. Default value is "https://management.azure.com". + :type base_url: str + :keyword api_version: Api Version. Default value is "2020-05-12-preview". Note that overriding + this default value may result in unsupported behavior. + :paramtype api_version: str """ def __init__( self, credential: "AsyncTokenCredential", subscription_id: str, - base_url: Optional[str] = None, + base_url: str = "https://management.azure.com", **kwargs: Any ) -> None: - if not base_url: - base_url = 'https://management.azure.com' - self._config = AzureAgriFoodRPServiceConfiguration(credential, subscription_id, **kwargs) + self._config = AzureAgriFoodRPServiceConfiguration(credential=credential, subscription_id=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._serialize.client_side_validation = False + self.extensions = ExtensionsOperations(self._client, self._config, self._serialize, self._deserialize) + self.farm_beats_extensions = FarmBeatsExtensionsOperations(self._client, self._config, self._serialize, self._deserialize) + self.farm_beats_models = FarmBeatsModelsOperations(self._client, self._config, self._serialize, self._deserialize) + self.locations = LocationsOperations(self._client, self._config, self._serialize, self._deserialize) + self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) - self.extensions = ExtensionsOperations( - self._client, self._config, self._serialize, self._deserialize) - self.farm_beats_extensions = FarmBeatsExtensionsOperations( - self._client, self._config, self._serialize, self._deserialize) - self.farm_beats_models = FarmBeatsModelsOperations( - self._client, self._config, self._serialize, self._deserialize) - self.locations = LocationsOperations( - 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: + + def _send_request( + self, + request: HttpRequest, + **kwargs: Any + ) -> Awaitable[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. + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest("GET", "https://www.example.org/") + + >>> 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.pipeline.transport.AsyncHttpResponse + :rtype: ~azure.core.rest.AsyncHttpResponse """ - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - } - 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 + + 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() diff --git a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/_configuration.py b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/_configuration.py index a6d4c3c11f1a..c78d976c6853 100644 --- a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/_configuration.py +++ b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/_configuration.py @@ -10,7 +10,7 @@ from azure.core.configuration import Configuration from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy from .._version import VERSION @@ -19,7 +19,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class AzureAgriFoodRPServiceConfiguration(Configuration): +class AzureAgriFoodRPServiceConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AzureAgriFoodRPService. Note that all parameters used to create this instance are saved as instance @@ -29,6 +29,9 @@ class AzureAgriFoodRPServiceConfiguration(Configuration): :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The ID of the target subscription. :type subscription_id: str + :keyword api_version: Api Version. Default value is "2020-05-12-preview". Note that overriding + this default value may result in unsupported behavior. + :paramtype api_version: str """ def __init__( @@ -37,15 +40,17 @@ def __init__( subscription_id: str, **kwargs: Any ) -> None: + super(AzureAgriFoodRPServiceConfiguration, self).__init__(**kwargs) + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + 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(AzureAgriFoodRPServiceConfiguration, self).__init__(**kwargs) self.credential = credential self.subscription_id = subscription_id - self.api_version = "2020-05-12-preview" + self.api_version = api_version self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-agrifood/{}'.format(VERSION)) self._configure(**kwargs) @@ -64,4 +69,4 @@ def _configure( 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) + self.authentication_policy = AsyncARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/_patch.py b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/_patch.py new file mode 100644 index 000000000000..74e48ecd07cf --- /dev/null +++ b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/_patch.py @@ -0,0 +1,31 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# +# 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. +# +# -------------------------------------------------------------------------- + +# This file is used for handwritten extensions to the generated code. Example: +# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md +def patch_sdk(): + pass \ No newline at end of file diff --git a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/operations/_extensions_operations.py b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/operations/_extensions_operations.py index c0a08187a777..fea09eee10b8 100644 --- a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/operations/_extensions_operations.py +++ b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/operations/_extensions_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,17 +6,20 @@ # 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, List, Optional, TypeVar -import warnings +from typing import Any, AsyncIterable, Callable, Dict, List, Optional, TypeVar 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.pipeline.transport import AsyncHttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace +from azure.core.tracing.decorator_async import distributed_trace_async from azure.mgmt.core.exceptions import ARMErrorFormat from ... import models as _models - +from ..._vendor import _convert_request +from ...operations._extensions_operations import build_create_request, build_delete_request, build_get_request, build_list_by_farm_beats_request, build_update_request T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -41,6 +45,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._deserialize = deserializer self._config = config + @distributed_trace_async async def create( self, extension_id: str, @@ -66,34 +71,31 @@ async def create( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-preview" - accept = "application/json" - - # Construct URL - url = self.create.metadata['url'] # type: ignore - path_format_arguments = { - 'extensionId': self._serialize.url("extension_id", extension_id, 'str'), - 'farmBeatsResourceName': self._serialize.url("farm_beats_resource_name", farm_beats_resource_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - '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) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = build_create_request( + extension_id=extension_id, + farm_beats_resource_name=farm_beats_resource_name, + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + template_url=self.create.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) - request = self._client.put(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('Extension', pipeline_response) @@ -102,8 +104,11 @@ async def create( return cls(pipeline_response, deserialized, {}) return deserialized - create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions/{extensionId}'} # type: ignore + create.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions/{extensionId}"} # type: ignore + + + @distributed_trace_async async def get( self, extension_id: str, @@ -129,34 +134,31 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-preview" - accept = "application/json" - - # Construct URL - url = self.get.metadata['url'] # type: ignore - path_format_arguments = { - 'extensionId': self._serialize.url("extension_id", extension_id, 'str'), - 'farmBeatsResourceName': self._serialize.url("farm_beats_resource_name", farm_beats_resource_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - '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) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = build_get_request( + extension_id=extension_id, + farm_beats_resource_name=farm_beats_resource_name, + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + template_url=self.get.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('Extension', pipeline_response) @@ -165,8 +167,11 @@ async def get( return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions/{extensionId}'} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions/{extensionId}"} # type: ignore + + + @distributed_trace_async async def update( self, extension_id: str, @@ -192,34 +197,31 @@ async def update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-preview" - accept = "application/json" - - # Construct URL - url = self.update.metadata['url'] # type: ignore - path_format_arguments = { - 'extensionId': self._serialize.url("extension_id", extension_id, 'str'), - 'farmBeatsResourceName': self._serialize.url("farm_beats_resource_name", farm_beats_resource_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - '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) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = build_update_request( + extension_id=extension_id, + farm_beats_resource_name=farm_beats_resource_name, + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + template_url=self.update.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) - request = self._client.patch(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('Extension', pipeline_response) @@ -228,9 +230,12 @@ async def update( return cls(pipeline_response, deserialized, {}) return deserialized - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions/{extensionId}'} # type: ignore - async def delete( + update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions/{extensionId}"} # type: ignore + + + @distributed_trace_async + async def delete( # pylint: disable=inconsistent-return-statements self, extension_id: str, farm_beats_resource_name: str, @@ -255,41 +260,40 @@ async def delete( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-preview" - accept = "application/json" - - # Construct URL - url = self.delete.metadata['url'] # type: ignore - path_format_arguments = { - 'extensionId': self._serialize.url("extension_id", extension_id, 'str'), - 'farmBeatsResourceName': self._serialize.url("farm_beats_resource_name", farm_beats_resource_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - '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) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = build_delete_request( + extension_id=extension_id, + farm_beats_resource_name=farm_beats_resource_name, + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + template_url=self.delete.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions/{extensionId}'} # type: ignore + delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions/{extensionId}"} # type: ignore + + @distributed_trace def list_by_farm_beats( self, resource_group_name: str, @@ -306,63 +310,66 @@ def list_by_farm_beats( :type resource_group_name: str :param farm_beats_resource_name: FarmBeats resource name. :type farm_beats_resource_name: str - :param extension_ids: Installed extension ids. + :param extension_ids: Installed extension ids. Default value is None. :type extension_ids: list[str] - :param extension_categories: Installed extension categories. + :param extension_categories: Installed extension categories. Default value is None. :type extension_categories: list[str] :param max_page_size: Maximum number of items needed (inclusive). - Minimum = 10, Maximum = 1000, Default value = 50. + Minimum = 10, Maximum = 1000, Default value = 50. Default value is 50. :type max_page_size: int - :param skip_token: Skip token for getting next set of results. + :param skip_token: Skip token for getting next set of results. Default value is None. :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 ExtensionListResponse or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.agrifood.models.ExtensionListResponse] + :return: An iterator like instance of either ExtensionListResponse or the result of + cls(response) + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.agrifood.models.ExtensionListResponse] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.ExtensionListResponse"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-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_farm_beats.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\._\(\)]+$'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'farmBeatsResourceName': self._serialize.url("farm_beats_resource_name", farm_beats_resource_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 extension_ids is not None: - query_parameters['extensionIds'] = [self._serialize.query("extension_ids", q, 'str') if q is not None else '' for q in extension_ids] - if extension_categories is not None: - query_parameters['extensionCategories'] = [self._serialize.query("extension_categories", q, 'str') if q is not None else '' for q in extension_categories] - if max_page_size is not None: - query_parameters['$maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int', maximum=1000, minimum=10) - 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) + + request = build_list_by_farm_beats_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + farm_beats_resource_name=farm_beats_resource_name, + api_version=api_version, + extension_ids=extension_ids, + extension_categories=extension_categories, + max_page_size=max_page_size, + skip_token=skip_token, + template_url=self.list_by_farm_beats.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) + + request = build_list_by_farm_beats_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + farm_beats_resource_name=farm_beats_resource_name, + api_version=api_version, + extension_ids=extension_ids, + extension_categories=extension_categories, + max_page_size=max_page_size, + skip_token=skip_token, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" return request async def extract_data(pipeline_response): - deserialized = self._deserialize('ExtensionListResponse', pipeline_response) + deserialized = self._deserialize("ExtensionListResponse", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -371,17 +378,22 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response + return AsyncItemPaged( get_next, extract_data ) - list_by_farm_beats.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions'} # type: ignore + list_by_farm_beats.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions"} # type: ignore diff --git a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/operations/_farm_beats_extensions_operations.py b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/operations/_farm_beats_extensions_operations.py index 3eac9ce7992b..c5c4b41fc6ef 100644 --- a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/operations/_farm_beats_extensions_operations.py +++ b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/operations/_farm_beats_extensions_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,17 +6,20 @@ # 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, List, Optional, TypeVar -import warnings +from typing import Any, AsyncIterable, Callable, Dict, List, Optional, TypeVar 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.pipeline.transport import AsyncHttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace +from azure.core.tracing.decorator_async import distributed_trace_async from azure.mgmt.core.exceptions import ARMErrorFormat from ... import models as _models - +from ..._vendor import _convert_request +from ...operations._farm_beats_extensions_operations import build_get_request, build_list_request T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -41,6 +45,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._deserialize = deserializer self._config = config + @distributed_trace def list( self, farm_beats_extension_ids: Optional[List[str]] = None, @@ -52,61 +57,64 @@ def list( ) -> AsyncIterable["_models.FarmBeatsExtensionListResponse"]: """Get list of farmBeats extension. - :param farm_beats_extension_ids: FarmBeatsExtension ids. + :param farm_beats_extension_ids: FarmBeatsExtension ids. Default value is None. :type farm_beats_extension_ids: list[str] - :param farm_beats_extension_names: FarmBeats extension names. + :param farm_beats_extension_names: FarmBeats extension names. Default value is None. :type farm_beats_extension_names: list[str] - :param extension_categories: Extension categories. + :param extension_categories: Extension categories. Default value is None. :type extension_categories: list[str] - :param publisher_ids: Publisher ids. + :param publisher_ids: Publisher ids. Default value is None. :type publisher_ids: list[str] :param max_page_size: Maximum number of items needed (inclusive). - Minimum = 10, Maximum = 1000, Default value = 50. + Minimum = 10, Maximum = 1000, Default value = 50. Default value is 50. :type max_page_size: int :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either FarmBeatsExtensionListResponse or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.agrifood.models.FarmBeatsExtensionListResponse] + :return: An iterator like instance of either FarmBeatsExtensionListResponse or the result of + cls(response) + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.agrifood.models.FarmBeatsExtensionListResponse] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.FarmBeatsExtensionListResponse"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-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.metadata['url'] # type: ignore - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if farm_beats_extension_ids is not None: - query_parameters['farmBeatsExtensionIds'] = [self._serialize.query("farm_beats_extension_ids", q, 'str') if q is not None else '' for q in farm_beats_extension_ids] - if farm_beats_extension_names is not None: - query_parameters['farmBeatsExtensionNames'] = [self._serialize.query("farm_beats_extension_names", q, 'str') if q is not None else '' for q in farm_beats_extension_names] - if extension_categories is not None: - query_parameters['extensionCategories'] = [self._serialize.query("extension_categories", q, 'str') if q is not None else '' for q in extension_categories] - if publisher_ids is not None: - query_parameters['publisherIds'] = [self._serialize.query("publisher_ids", q, 'str') if q is not None else '' for q in publisher_ids] - if max_page_size is not None: - query_parameters['$maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int', maximum=1000, minimum=10) - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) + + request = build_list_request( + api_version=api_version, + farm_beats_extension_ids=farm_beats_extension_ids, + farm_beats_extension_names=farm_beats_extension_names, + extension_categories=extension_categories, + publisher_ids=publisher_ids, + max_page_size=max_page_size, + template_url=self.list.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) + + request = build_list_request( + api_version=api_version, + farm_beats_extension_ids=farm_beats_extension_ids, + farm_beats_extension_names=farm_beats_extension_names, + extension_categories=extension_categories, + publisher_ids=publisher_ids, + max_page_size=max_page_size, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" return request async def extract_data(pipeline_response): - deserialized = self._deserialize('FarmBeatsExtensionListResponse', pipeline_response) + deserialized = self._deserialize("FarmBeatsExtensionListResponse", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -115,21 +123,27 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response + return AsyncItemPaged( get_next, extract_data ) - list.metadata = {'url': '/providers/Microsoft.AgFoodPlatform/farmBeatsExtensionDefinitions'} # type: ignore + list.metadata = {'url': "/providers/Microsoft.AgFoodPlatform/farmBeatsExtensionDefinitions"} # type: ignore + @distributed_trace_async async def get( self, farm_beats_extension_id: str, @@ -149,31 +163,28 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-preview" - accept = "application/json" - # Construct URL - url = self.get.metadata['url'] # type: ignore - path_format_arguments = { - 'farmBeatsExtensionId': self._serialize.url("farm_beats_extension_id", farm_beats_extension_id, 'str', pattern=r'^[A-za-z]{3,50}[.][A-za-z]{3,100}$'), - } - 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') + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = build_get_request( + farm_beats_extension_id=farm_beats_extension_id, + api_version=api_version, + template_url=self.get.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('FarmBeatsExtension', pipeline_response) @@ -182,4 +193,6 @@ async def get( return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/providers/Microsoft.AgFoodPlatform/farmBeatsExtensionDefinitions/{farmBeatsExtensionId}'} # type: ignore + + get.metadata = {'url': "/providers/Microsoft.AgFoodPlatform/farmBeatsExtensionDefinitions/{farmBeatsExtensionId}"} # type: ignore + diff --git a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/operations/_farm_beats_models_operations.py b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/operations/_farm_beats_models_operations.py index 9130a4e1c96a..8b7355a0ac21 100644 --- a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/operations/_farm_beats_models_operations.py +++ b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/operations/_farm_beats_models_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,17 +6,20 @@ # 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 typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar 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.pipeline.transport import AsyncHttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace +from azure.core.tracing.decorator_async import distributed_trace_async from azure.mgmt.core.exceptions import ARMErrorFormat from ... import models as _models - +from ..._vendor import _convert_request +from ...operations._farm_beats_models_operations import build_create_or_update_request, build_delete_request, build_get_request, build_list_by_resource_group_request, build_list_by_subscription_request, build_update_request T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -41,6 +45,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._deserialize = deserializer self._config = config + @distributed_trace_async async def get( self, resource_group_name: str, @@ -63,33 +68,30 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-preview" - accept = "application/json" - - # Construct URL - url = self.get.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\._\(\)]+$'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'farmBeatsResourceName': self._serialize.url("farm_beats_resource_name", farm_beats_resource_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') + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = build_get_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + farm_beats_resource_name=farm_beats_resource_name, + api_version=api_version, + template_url=self.get.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('FarmBeats', pipeline_response) @@ -98,8 +100,11 @@ async def get( return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}'} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}"} # type: ignore + + + @distributed_trace_async async def create_or_update( self, farm_beats_resource_name: str, @@ -125,38 +130,34 @@ async def create_or_update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-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 = { - 'farmBeatsResourceName': self._serialize.url("farm_beats_resource_name", farm_beats_resource_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - '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) - - # 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(body, 'FarmBeats') - 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) + + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + + _json = self._serialize.body(body, 'FarmBeats') + + request = build_create_or_update_request( + farm_beats_resource_name=farm_beats_resource_name, + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + json=_json, + template_url=self.create_or_update.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -169,8 +170,11 @@ async def create_or_update( return cls(pipeline_response, deserialized, {}) return deserialized - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}'} # type: ignore + create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}"} # type: ignore + + + @distributed_trace_async async def update( self, farm_beats_resource_name: str, @@ -196,38 +200,34 @@ async def update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-preview" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.update.metadata['url'] # type: ignore - path_format_arguments = { - 'farmBeatsResourceName': self._serialize.url("farm_beats_resource_name", farm_beats_resource_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - '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) - - # 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(body, 'FarmBeatsUpdateRequestModel') - 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) + + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + + _json = self._serialize.body(body, 'FarmBeatsUpdateRequestModel') + + request = build_update_request( + farm_beats_resource_name=farm_beats_resource_name, + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + json=_json, + template_url=self.update.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('FarmBeats', pipeline_response) @@ -236,9 +236,12 @@ async def update( return cls(pipeline_response, deserialized, {}) return deserialized - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}'} # type: ignore - async def delete( + update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}"} # type: ignore + + + @distributed_trace_async + async def delete( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, farm_beats_resource_name: str, @@ -260,40 +263,39 @@ async def delete( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-preview" - accept = "application/json" - - # Construct URL - url = self.delete.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\._\(\)]+$'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'farmBeatsResourceName': self._serialize.url("farm_beats_resource_name", farm_beats_resource_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') + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = build_delete_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + farm_beats_resource_name=farm_beats_resource_name, + api_version=api_version, + template_url=self.delete.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}'} # type: ignore + delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}"} # type: ignore + + @distributed_trace def list_by_subscription( self, max_page_size: Optional[int] = 50, @@ -303,52 +305,53 @@ def list_by_subscription( """Lists the FarmBeats instances for a subscription. :param max_page_size: Maximum number of items needed (inclusive). - Minimum = 10, Maximum = 1000, Default value = 50. + Minimum = 10, Maximum = 1000, Default value = 50. Default value is 50. :type max_page_size: int - :param skip_token: Skip token for getting next set of results. + :param skip_token: Skip token for getting next set of results. Default value is None. :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 FarmBeatsListResponse or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.agrifood.models.FarmBeatsListResponse] + :return: An iterator like instance of either FarmBeatsListResponse or the result of + cls(response) + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.agrifood.models.FarmBeatsListResponse] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.FarmBeatsListResponse"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-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_subscription.metadata['url'] # type: ignore - path_format_arguments = { - '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) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if max_page_size is not None: - query_parameters['$maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int', maximum=1000, minimum=10) - if skip_token is not None: - query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) + + request = build_list_by_subscription_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + max_page_size=max_page_size, + skip_token=skip_token, + template_url=self.list_by_subscription.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) + + request = build_list_by_subscription_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + max_page_size=max_page_size, + skip_token=skip_token, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" return request async def extract_data(pipeline_response): - deserialized = self._deserialize('FarmBeatsListResponse', pipeline_response) + deserialized = self._deserialize("FarmBeatsListResponse", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -357,21 +360,27 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response + return AsyncItemPaged( get_next, extract_data ) - list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/farmBeats'} # type: ignore + list_by_subscription.metadata = {'url': "/subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/farmBeats"} # type: ignore + @distributed_trace def list_by_resource_group( self, resource_group_name: str, @@ -384,53 +393,55 @@ def list_by_resource_group( :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param max_page_size: Maximum number of items needed (inclusive). - Minimum = 10, Maximum = 1000, Default value = 50. + Minimum = 10, Maximum = 1000, Default value = 50. Default value is 50. :type max_page_size: int - :param skip_token: Continuation token for getting next set of results. + :param skip_token: Continuation token for getting next set of results. Default value is None. :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 FarmBeatsListResponse or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.agrifood.models.FarmBeatsListResponse] + :return: An iterator like instance of either FarmBeatsListResponse or the result of + cls(response) + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.agrifood.models.FarmBeatsListResponse] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.FarmBeatsListResponse"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-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_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\._\(\)]+$'), - '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) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if max_page_size is not None: - query_parameters['$maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int', maximum=1000, minimum=10) - if skip_token is not None: - query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) + + request = build_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + max_page_size=max_page_size, + skip_token=skip_token, + template_url=self.list_by_resource_group.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) + + request = build_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + max_page_size=max_page_size, + skip_token=skip_token, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" return request async def extract_data(pipeline_response): - deserialized = self._deserialize('FarmBeatsListResponse', pipeline_response) + deserialized = self._deserialize("FarmBeatsListResponse", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -439,17 +450,22 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) 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.AgFoodPlatform/farmBeats'} # type: ignore + list_by_resource_group.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats"} # type: ignore diff --git a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/operations/_locations_operations.py b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/operations/_locations_operations.py index 8945fd477bef..65191ff9b871 100644 --- a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/operations/_locations_operations.py +++ b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/operations/_locations_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,16 +6,18 @@ # 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 typing import Any, Callable, Dict, Optional, TypeVar 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.pipeline.transport import AsyncHttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator_async import distributed_trace_async from azure.mgmt.core.exceptions import ARMErrorFormat from ... import models as _models - +from ..._vendor import _convert_request +from ...operations._locations_operations import build_check_name_availability_request T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -40,6 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._deserialize = deserializer self._config = config + @distributed_trace_async async def check_name_availability( self, body: "_models.CheckNameAvailabilityRequest", @@ -59,36 +63,32 @@ async def check_name_availability( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-preview" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.check_name_availability.metadata['url'] # type: ignore - path_format_arguments = { - '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) - - # 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(body, 'CheckNameAvailabilityRequest') - 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) + + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + + _json = self._serialize.body(body, 'CheckNameAvailabilityRequest') + + request = build_check_name_availability_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + json=_json, + template_url=self.check_name_availability.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('CheckNameAvailabilityResponse', pipeline_response) @@ -97,4 +97,6 @@ async def check_name_availability( return cls(pipeline_response, deserialized, {}) return deserialized - check_name_availability.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/checkNameAvailability'} # type: ignore + + check_name_availability.metadata = {'url': "/subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/checkNameAvailability"} # type: ignore + diff --git a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/operations/_operations.py b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/operations/_operations.py index b06846411fb4..05580fa30a03 100644 --- a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/operations/_operations.py +++ b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/aio/operations/_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,17 +6,19 @@ # 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 typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar 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.pipeline.transport import AsyncHttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace from azure.mgmt.core.exceptions import ARMErrorFormat from ... import models as _models - +from ..._vendor import _convert_request +from ...operations._operations import build_list_request T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -41,6 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._deserialize = deserializer self._config = config + @distributed_trace def list( self, **kwargs: Any @@ -49,38 +53,40 @@ def list( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either OperationListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.agrifood.models.OperationListResult] + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.agrifood.models.OperationListResult] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + 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-05-12-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.metadata['url'] # type: ignore - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = build_list_request( + api_version=api_version, + template_url=self.list.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) - 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) + + request = build_list_request( + api_version=api_version, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" return request async def extract_data(pipeline_response): - deserialized = self._deserialize('OperationListResult', pipeline_response) + deserialized = self._deserialize("OperationListResult", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -89,17 +95,22 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response + return AsyncItemPaged( get_next, extract_data ) - list.metadata = {'url': '/providers/Microsoft.AgFoodPlatform/operations'} # type: ignore + list.metadata = {'url': "/providers/Microsoft.AgFoodPlatform/operations"} # type: ignore diff --git a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/models/__init__.py b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/models/__init__.py index 1fd95721b298..8cfc9611daf7 100644 --- a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/models/__init__.py +++ b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/models/__init__.py @@ -6,50 +6,28 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -try: - from ._models_py3 import CheckNameAvailabilityRequest - from ._models_py3 import CheckNameAvailabilityResponse - from ._models_py3 import DetailedInformation - from ._models_py3 import ErrorAdditionalInfo - from ._models_py3 import ErrorDetail - from ._models_py3 import ErrorResponse - from ._models_py3 import Extension - from ._models_py3 import ExtensionListResponse - from ._models_py3 import FarmBeats - from ._models_py3 import FarmBeatsExtension - from ._models_py3 import FarmBeatsExtensionListResponse - from ._models_py3 import FarmBeatsListResponse - from ._models_py3 import FarmBeatsUpdateRequestModel - from ._models_py3 import Operation - from ._models_py3 import OperationDisplay - from ._models_py3 import OperationListResult - from ._models_py3 import ProxyResource - from ._models_py3 import Resource - from ._models_py3 import SystemData - from ._models_py3 import TrackedResource - from ._models_py3 import UnitSystemsInfo -except (SyntaxError, ImportError): - from ._models import CheckNameAvailabilityRequest # type: ignore - from ._models import CheckNameAvailabilityResponse # type: ignore - from ._models import DetailedInformation # type: ignore - from ._models import ErrorAdditionalInfo # type: ignore - from ._models import ErrorDetail # type: ignore - from ._models import ErrorResponse # type: ignore - from ._models import Extension # type: ignore - from ._models import ExtensionListResponse # type: ignore - from ._models import FarmBeats # type: ignore - from ._models import FarmBeatsExtension # type: ignore - from ._models import FarmBeatsExtensionListResponse # type: ignore - from ._models import FarmBeatsListResponse # type: ignore - from ._models import FarmBeatsUpdateRequestModel # type: ignore - from ._models import Operation # type: ignore - from ._models import OperationDisplay # type: ignore - from ._models import OperationListResult # type: ignore - from ._models import ProxyResource # type: ignore - from ._models import Resource # type: ignore - from ._models import SystemData # type: ignore - from ._models import TrackedResource # type: ignore - from ._models import UnitSystemsInfo # type: ignore +from ._models_py3 import CheckNameAvailabilityRequest +from ._models_py3 import CheckNameAvailabilityResponse +from ._models_py3 import DetailedInformation +from ._models_py3 import ErrorAdditionalInfo +from ._models_py3 import ErrorDetail +from ._models_py3 import ErrorResponse +from ._models_py3 import Extension +from ._models_py3 import ExtensionListResponse +from ._models_py3 import FarmBeats +from ._models_py3 import FarmBeatsExtension +from ._models_py3 import FarmBeatsExtensionListResponse +from ._models_py3 import FarmBeatsListResponse +from ._models_py3 import FarmBeatsUpdateRequestModel +from ._models_py3 import Operation +from ._models_py3 import OperationDisplay +from ._models_py3 import OperationListResult +from ._models_py3 import ProxyResource +from ._models_py3 import Resource +from ._models_py3 import SystemData +from ._models_py3 import TrackedResource +from ._models_py3 import UnitSystemsInfo + from ._azure_agri_food_rp_service_enums import ( ActionType, diff --git a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/models/_azure_agri_food_rp_service_enums.py b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/models/_azure_agri_food_rp_service_enums.py index ab2c44fae3be..f642a0470d6d 100644 --- a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/models/_azure_agri_food_rp_service_enums.py +++ b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/models/_azure_agri_food_rp_service_enums.py @@ -6,40 +6,25 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from enum import Enum, EnumMeta +from enum import Enum from six import with_metaclass +from azure.core import CaseInsensitiveEnumMeta -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 ActionType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +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 CheckNameAvailabilityReason(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class CheckNameAvailabilityReason(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """The reason why the given name is not available. """ INVALID = "Invalid" ALREADY_EXISTS = "AlreadyExists" -class CreatedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class CreatedByType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """The type of identity that created the resource. """ @@ -48,7 +33,7 @@ class CreatedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): MANAGED_IDENTITY = "ManagedIdentity" KEY = "Key" -class Origin(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +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" """ @@ -57,7 +42,7 @@ class Origin(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): SYSTEM = "system" USER_SYSTEM = "user,system" -class ProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class ProvisioningState(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """FarmBeats instance provisioning state. """ diff --git a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/models/_models.py b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/models/_models.py deleted file mode 100644 index 0cbcff067e3e..000000000000 --- a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/models/_models.py +++ /dev/null @@ -1,830 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from azure.core.exceptions import HttpResponseError -import msrest.serialization - - -class CheckNameAvailabilityRequest(msrest.serialization.Model): - """The check availability request body. - - :param name: The name of the resource for which availability needs to be checked. - :type name: str - :param type: The resource type. - :type type: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(CheckNameAvailabilityRequest, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.type = kwargs.get('type', None) - - -class CheckNameAvailabilityResponse(msrest.serialization.Model): - """The check availability result. - - :param name_available: Indicates if the resource name is available. - :type name_available: bool - :param reason: The reason why the given name is not available. Possible values include: - "Invalid", "AlreadyExists". - :type reason: str or ~azure.mgmt.agrifood.models.CheckNameAvailabilityReason - :param message: Detailed reason why the given name is available. - :type message: str - """ - - _attribute_map = { - 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, - 'reason': {'key': 'reason', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(CheckNameAvailabilityResponse, self).__init__(**kwargs) - self.name_available = kwargs.get('name_available', None) - self.reason = kwargs.get('reason', None) - self.message = kwargs.get('message', None) - - -class DetailedInformation(msrest.serialization.Model): - """Model to capture detailed information for farmBeatsExtensions. - - :param api_name: ApiName available for the farmBeatsExtension. - :type api_name: str - :param custom_parameters: List of customParameters. - :type custom_parameters: list[str] - :param platform_parameters: List of platformParameters. - :type platform_parameters: list[str] - :param units_supported: Unit systems info for the data provider. - :type units_supported: ~azure.mgmt.agrifood.models.UnitSystemsInfo - :param api_input_parameters: List of apiInputParameters. - :type api_input_parameters: list[str] - """ - - _attribute_map = { - 'api_name': {'key': 'apiName', 'type': 'str'}, - 'custom_parameters': {'key': 'customParameters', 'type': '[str]'}, - 'platform_parameters': {'key': 'platformParameters', 'type': '[str]'}, - 'units_supported': {'key': 'unitsSupported', 'type': 'UnitSystemsInfo'}, - 'api_input_parameters': {'key': 'apiInputParameters', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(DetailedInformation, self).__init__(**kwargs) - self.api_name = kwargs.get('api_name', None) - self.custom_parameters = kwargs.get('custom_parameters', None) - self.platform_parameters = kwargs.get('platform_parameters', None) - self.units_supported = kwargs.get('units_supported', None) - self.api_input_parameters = kwargs.get('api_input_parameters', None) - - -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'}, - } - - def __init__( - self, - **kwargs - ): - super(ErrorAdditionalInfo, self).__init__(**kwargs) - self.type = None - self.info = None - - -class ErrorDetail(msrest.serialization.Model): - """The error detail. - - 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 target: The error target. - :vartype target: str - :ivar details: The error details. - :vartype details: list[~azure.mgmt.agrifood.models.ErrorDetail] - :ivar additional_info: The error additional info. - :vartype additional_info: list[~azure.mgmt.agrifood.models.ErrorAdditionalInfo] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - 'details': {'readonly': True}, - 'additional_info': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ErrorDetail]'}, - 'additional_info': {'key': 'additionalInfo', 'type': '[ErrorAdditionalInfo]'}, - } - - def __init__( - self, - **kwargs - ): - super(ErrorDetail, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - self.details = None - self.additional_info = None - - -class ErrorResponse(msrest.serialization.Model): - """Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). - - :param error: The error object. - :type error: ~azure.mgmt.agrifood.models.ErrorDetail - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ErrorDetail'}, - } - - def __init__( - self, - **kwargs - ): - super(ErrorResponse, self).__init__(**kwargs) - self.error = kwargs.get('error', None) - - -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 = { - '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 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. - - :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(ProxyResource, self).__init__(**kwargs) - - -class Extension(ProxyResource): - """Extension resource. - - 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 system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.agrifood.models.SystemData - :ivar e_tag: The ETag value to implement optimistic concurrency. - :vartype e_tag: str - :ivar extension_id: Extension Id. - :vartype extension_id: str - :ivar extension_category: Extension category. e.g. weather/sensor/satellite. - :vartype extension_category: str - :ivar installed_extension_version: Installed extension version. - :vartype installed_extension_version: str - :ivar extension_auth_link: Extension auth link. - :vartype extension_auth_link: str - :ivar extension_api_docs_link: Extension api docs link. - :vartype extension_api_docs_link: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'system_data': {'readonly': True}, - 'e_tag': {'readonly': True}, - 'extension_id': {'readonly': True, 'pattern': r'^[A-za-z]{3,50}[.][A-za-z]{3,100}$'}, - 'extension_category': {'readonly': True}, - 'installed_extension_version': {'readonly': True, 'pattern': r'^([1-9]|10).\d$'}, - 'extension_auth_link': {'readonly': True}, - 'extension_api_docs_link': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'system_data': {'key': 'systemData', 'type': 'SystemData'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'extension_id': {'key': 'properties.extensionId', 'type': 'str'}, - 'extension_category': {'key': 'properties.extensionCategory', 'type': 'str'}, - 'installed_extension_version': {'key': 'properties.installedExtensionVersion', 'type': 'str'}, - 'extension_auth_link': {'key': 'properties.extensionAuthLink', 'type': 'str'}, - 'extension_api_docs_link': {'key': 'properties.extensionApiDocsLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(Extension, self).__init__(**kwargs) - self.system_data = None - self.e_tag = None - self.extension_id = None - self.extension_category = None - self.installed_extension_version = None - self.extension_auth_link = None - self.extension_api_docs_link = None - - -class ExtensionListResponse(msrest.serialization.Model): - """Paged response contains list of requested objects and a URL link to get the next set of results. - - Variables are only populated by the server, and will be ignored when sending a request. - - :param value: List of requested objects. - :type value: list[~azure.mgmt.agrifood.models.Extension] - :ivar next_link: Continuation link (absolute URI) to the next page of results in the list. - :vartype next_link: str - """ - - _validation = { - 'next_link': {'readonly': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[Extension]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ExtensionListResponse, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.next_link = 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: 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 - :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 = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(TrackedResource, self).__init__(**kwargs) - self.tags = kwargs.get('tags', None) - self.location = kwargs['location'] - - -class FarmBeats(TrackedResource): - """FarmBeats ARM Resource. - - 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: 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 - :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 - :ivar system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.agrifood.models.SystemData - :ivar instance_uri: Uri of the FarmBeats instance. - :vartype instance_uri: str - :ivar provisioning_state: FarmBeats instance provisioning state. Possible values include: - "Succeeded", "Failed". - :vartype provisioning_state: str or ~azure.mgmt.agrifood.models.ProvisioningState - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'system_data': {'readonly': True}, - 'instance_uri': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'system_data': {'key': 'systemData', 'type': 'SystemData'}, - 'instance_uri': {'key': 'properties.instanceUri', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(FarmBeats, self).__init__(**kwargs) - self.system_data = None - self.instance_uri = None - self.provisioning_state = None - - -class FarmBeatsExtension(ProxyResource): - """FarmBeats extension resource. - - 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 system_data: Metadata pertaining to creation and last modification of the resource. - :vartype system_data: ~azure.mgmt.agrifood.models.SystemData - :ivar target_resource_type: Target ResourceType of the farmBeatsExtension. - :vartype target_resource_type: str - :ivar farm_beats_extension_id: FarmBeatsExtension ID. - :vartype farm_beats_extension_id: str - :ivar farm_beats_extension_name: FarmBeatsExtension name. - :vartype farm_beats_extension_name: str - :ivar farm_beats_extension_version: FarmBeatsExtension version. - :vartype farm_beats_extension_version: str - :ivar publisher_id: Publisher ID. - :vartype publisher_id: str - :ivar description: Textual description. - :vartype description: str - :ivar extension_category: Category of the extension. e.g. weather/sensor/satellite. - :vartype extension_category: str - :ivar extension_auth_link: FarmBeatsExtension auth link. - :vartype extension_auth_link: str - :ivar extension_api_docs_link: FarmBeatsExtension api docs link. - :vartype extension_api_docs_link: str - :ivar detailed_information: Detailed information which shows summary of requested data. - Used in descriptive get extension metadata call. - Information for weather category per api included are apisSupported, - customParameters, PlatformParameters and Units supported. - :vartype detailed_information: list[~azure.mgmt.agrifood.models.DetailedInformation] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'system_data': {'readonly': True}, - 'target_resource_type': {'readonly': True}, - 'farm_beats_extension_id': {'readonly': True, 'max_length': 100, 'min_length': 2, 'pattern': r'^[A-za-z]{3,50}[.][A-za-z]{3,100}$'}, - 'farm_beats_extension_name': {'readonly': True, 'max_length': 100, 'min_length': 2}, - 'farm_beats_extension_version': {'readonly': True, 'max_length': 100, 'min_length': 2, 'pattern': r'^([1-9]|10).\d$'}, - 'publisher_id': {'readonly': True, 'max_length': 100, 'min_length': 2}, - 'description': {'readonly': True, 'max_length': 500, 'min_length': 2}, - 'extension_category': {'readonly': True, 'max_length': 100, 'min_length': 2}, - 'extension_auth_link': {'readonly': True}, - 'extension_api_docs_link': {'readonly': True}, - 'detailed_information': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'system_data': {'key': 'systemData', 'type': 'SystemData'}, - 'target_resource_type': {'key': 'properties.targetResourceType', 'type': 'str'}, - 'farm_beats_extension_id': {'key': 'properties.farmBeatsExtensionId', 'type': 'str'}, - 'farm_beats_extension_name': {'key': 'properties.farmBeatsExtensionName', 'type': 'str'}, - 'farm_beats_extension_version': {'key': 'properties.farmBeatsExtensionVersion', 'type': 'str'}, - 'publisher_id': {'key': 'properties.publisherId', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'extension_category': {'key': 'properties.extensionCategory', 'type': 'str'}, - 'extension_auth_link': {'key': 'properties.extensionAuthLink', 'type': 'str'}, - 'extension_api_docs_link': {'key': 'properties.extensionApiDocsLink', 'type': 'str'}, - 'detailed_information': {'key': 'properties.detailedInformation', 'type': '[DetailedInformation]'}, - } - - def __init__( - self, - **kwargs - ): - super(FarmBeatsExtension, self).__init__(**kwargs) - self.system_data = None - self.target_resource_type = None - self.farm_beats_extension_id = None - self.farm_beats_extension_name = None - self.farm_beats_extension_version = None - self.publisher_id = None - self.description = None - self.extension_category = None - self.extension_auth_link = None - self.extension_api_docs_link = None - self.detailed_information = None - - -class FarmBeatsExtensionListResponse(msrest.serialization.Model): - """Paged response contains list of requested objects and a URL link to get the next set of results. - - Variables are only populated by the server, and will be ignored when sending a request. - - :param value: List of requested objects. - :type value: list[~azure.mgmt.agrifood.models.FarmBeatsExtension] - :ivar next_link: Continuation link (absolute URI) to the next page of results in the list. - :vartype next_link: str - """ - - _validation = { - 'next_link': {'readonly': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[FarmBeatsExtension]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(FarmBeatsExtensionListResponse, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.next_link = None - - -class FarmBeatsListResponse(msrest.serialization.Model): - """Paged response contains list of requested objects and a URL link to get the next set of results. - - Variables are only populated by the server, and will be ignored when sending a request. - - :param value: List of requested objects. - :type value: list[~azure.mgmt.agrifood.models.FarmBeats] - :ivar next_link: Continuation link (absolute URI) to the next page of results in the list. - :vartype next_link: str - """ - - _validation = { - 'next_link': {'readonly': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[FarmBeats]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(FarmBeatsListResponse, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.next_link = None - - -class FarmBeatsUpdateRequestModel(msrest.serialization.Model): - """FarmBeats update request. - - :param location: Geo-location where the resource lives. - :type location: str - :param tags: A set of tags. Resource tags. - :type tags: dict[str, str] - """ - - _attribute_map = { - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__( - self, - **kwargs - ): - super(FarmBeatsUpdateRequestModel, self).__init__(**kwargs) - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', 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.mgmt.agrifood.models.OperationDisplay - :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.mgmt.agrifood.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.mgmt.agrifood.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'}, - 'action_type': {'key': 'actionType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(Operation, self).__init__(**kwargs) - self.name = None - self.is_data_action = None - self.display = kwargs.get('display', None) - self.origin = None - self.action_type = None - - -class OperationDisplay(msrest.serialization.Model): - """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'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(OperationDisplay, self).__init__(**kwargs) - 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.mgmt.agrifood.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 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.agrifood.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.agrifood.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 UnitSystemsInfo(msrest.serialization.Model): - """Unit systems info for the data provider. - - All required parameters must be populated in order to send to Azure. - - :param key: Required. UnitSystem key sent as part of ProviderInput. - :type key: str - :param values: Required. List of unit systems supported by this data provider. - :type values: list[str] - """ - - _validation = { - 'key': {'required': True, 'max_length': 100, 'min_length': 2}, - 'values': {'required': True}, - } - - _attribute_map = { - 'key': {'key': 'key', 'type': 'str'}, - 'values': {'key': 'values', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(UnitSystemsInfo, self).__init__(**kwargs) - self.key = kwargs['key'] - self.values = kwargs['values'] diff --git a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/models/_models_py3.py b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/models/_models_py3.py index 1caf4a77a5cf..c51e359d8fa6 100644 --- a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/models/_models_py3.py +++ b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/models/_models_py3.py @@ -18,10 +18,10 @@ class CheckNameAvailabilityRequest(msrest.serialization.Model): """The check availability request body. - :param name: The name of the resource for which availability needs to be checked. - :type name: str - :param type: The resource type. - :type type: str + :ivar name: The name of the resource for which availability needs to be checked. + :vartype name: str + :ivar type: The resource type. + :vartype type: str """ _attribute_map = { @@ -36,6 +36,12 @@ def __init__( type: Optional[str] = None, **kwargs ): + """ + :keyword name: The name of the resource for which availability needs to be checked. + :paramtype name: str + :keyword type: The resource type. + :paramtype type: str + """ super(CheckNameAvailabilityRequest, self).__init__(**kwargs) self.name = name self.type = type @@ -44,13 +50,13 @@ def __init__( class CheckNameAvailabilityResponse(msrest.serialization.Model): """The check availability result. - :param name_available: Indicates if the resource name is available. - :type name_available: bool - :param reason: The reason why the given name is not available. Possible values include: + :ivar name_available: Indicates if the resource name is available. + :vartype name_available: bool + :ivar reason: The reason why the given name is not available. Possible values include: "Invalid", "AlreadyExists". - :type reason: str or ~azure.mgmt.agrifood.models.CheckNameAvailabilityReason - :param message: Detailed reason why the given name is available. - :type message: str + :vartype reason: str or ~azure.mgmt.agrifood.models.CheckNameAvailabilityReason + :ivar message: Detailed reason why the given name is available. + :vartype message: str """ _attribute_map = { @@ -67,6 +73,15 @@ def __init__( message: Optional[str] = None, **kwargs ): + """ + :keyword name_available: Indicates if the resource name is available. + :paramtype name_available: bool + :keyword reason: The reason why the given name is not available. Possible values include: + "Invalid", "AlreadyExists". + :paramtype reason: str or ~azure.mgmt.agrifood.models.CheckNameAvailabilityReason + :keyword message: Detailed reason why the given name is available. + :paramtype message: str + """ super(CheckNameAvailabilityResponse, self).__init__(**kwargs) self.name_available = name_available self.reason = reason @@ -76,16 +91,16 @@ def __init__( class DetailedInformation(msrest.serialization.Model): """Model to capture detailed information for farmBeatsExtensions. - :param api_name: ApiName available for the farmBeatsExtension. - :type api_name: str - :param custom_parameters: List of customParameters. - :type custom_parameters: list[str] - :param platform_parameters: List of platformParameters. - :type platform_parameters: list[str] - :param units_supported: Unit systems info for the data provider. - :type units_supported: ~azure.mgmt.agrifood.models.UnitSystemsInfo - :param api_input_parameters: List of apiInputParameters. - :type api_input_parameters: list[str] + :ivar api_name: ApiName available for the farmBeatsExtension. + :vartype api_name: str + :ivar custom_parameters: List of customParameters. + :vartype custom_parameters: list[str] + :ivar platform_parameters: List of platformParameters. + :vartype platform_parameters: list[str] + :ivar units_supported: Unit systems info for the data provider. + :vartype units_supported: ~azure.mgmt.agrifood.models.UnitSystemsInfo + :ivar api_input_parameters: List of apiInputParameters. + :vartype api_input_parameters: list[str] """ _attribute_map = { @@ -106,6 +121,18 @@ def __init__( api_input_parameters: Optional[List[str]] = None, **kwargs ): + """ + :keyword api_name: ApiName available for the farmBeatsExtension. + :paramtype api_name: str + :keyword custom_parameters: List of customParameters. + :paramtype custom_parameters: list[str] + :keyword platform_parameters: List of platformParameters. + :paramtype platform_parameters: list[str] + :keyword units_supported: Unit systems info for the data provider. + :paramtype units_supported: ~azure.mgmt.agrifood.models.UnitSystemsInfo + :keyword api_input_parameters: List of apiInputParameters. + :paramtype api_input_parameters: list[str] + """ super(DetailedInformation, self).__init__(**kwargs) self.api_name = api_name self.custom_parameters = custom_parameters @@ -139,6 +166,8 @@ def __init__( self, **kwargs ): + """ + """ super(ErrorAdditionalInfo, self).__init__(**kwargs) self.type = None self.info = None @@ -181,6 +210,8 @@ def __init__( self, **kwargs ): + """ + """ super(ErrorDetail, self).__init__(**kwargs) self.code = None self.message = None @@ -192,8 +223,8 @@ def __init__( class ErrorResponse(msrest.serialization.Model): """Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). - :param error: The error object. - :type error: ~azure.mgmt.agrifood.models.ErrorDetail + :ivar error: The error object. + :vartype error: ~azure.mgmt.agrifood.models.ErrorDetail """ _attribute_map = { @@ -206,6 +237,10 @@ def __init__( error: Optional["ErrorDetail"] = None, **kwargs ): + """ + :keyword error: The error object. + :paramtype error: ~azure.mgmt.agrifood.models.ErrorDetail + """ super(ErrorResponse, self).__init__(**kwargs) self.error = error @@ -241,6 +276,8 @@ def __init__( self, **kwargs ): + """ + """ super(Resource, self).__init__(**kwargs) self.id = None self.name = None @@ -278,6 +315,8 @@ def __init__( self, **kwargs ): + """ + """ super(ProxyResource, self).__init__(**kwargs) @@ -316,7 +355,7 @@ class Extension(ProxyResource): 'type': {'readonly': True}, 'system_data': {'readonly': True}, 'e_tag': {'readonly': True}, - 'extension_id': {'readonly': True, 'pattern': r'^[A-za-z]{3,50}[.][A-za-z]{3,100}$'}, + 'extension_id': {'readonly': True, 'pattern': r'^[a-zA-Z]{3,50}[.][a-zA-Z]{3,100}$'}, 'extension_category': {'readonly': True}, 'installed_extension_version': {'readonly': True, 'pattern': r'^([1-9]|10).\d$'}, 'extension_auth_link': {'readonly': True}, @@ -340,6 +379,8 @@ def __init__( self, **kwargs ): + """ + """ super(Extension, self).__init__(**kwargs) self.system_data = None self.e_tag = None @@ -355,8 +396,8 @@ class ExtensionListResponse(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. - :param value: List of requested objects. - :type value: list[~azure.mgmt.agrifood.models.Extension] + :ivar value: List of requested objects. + :vartype value: list[~azure.mgmt.agrifood.models.Extension] :ivar next_link: Continuation link (absolute URI) to the next page of results in the list. :vartype next_link: str """ @@ -376,6 +417,10 @@ def __init__( value: Optional[List["Extension"]] = None, **kwargs ): + """ + :keyword value: List of requested objects. + :paramtype value: list[~azure.mgmt.agrifood.models.Extension] + """ super(ExtensionListResponse, self).__init__(**kwargs) self.value = value self.next_link = None @@ -396,10 +441,10 @@ class TrackedResource(Resource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :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 + :ivar tags: A set of tags. Resource tags. + :vartype tags: dict[str, str] + :ivar location: Required. The geo-location where the resource lives. + :vartype location: str """ _validation = { @@ -424,6 +469,12 @@ def __init__( tags: Optional[Dict[str, str]] = None, **kwargs ): + """ + :keyword tags: A set of tags. Resource tags. + :paramtype tags: dict[str, str] + :keyword location: Required. The geo-location where the resource lives. + :paramtype location: str + """ super(TrackedResource, self).__init__(**kwargs) self.tags = tags self.location = location @@ -444,10 +495,10 @@ class FarmBeats(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :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 + :ivar tags: A set of tags. Resource tags. + :vartype tags: dict[str, str] + :ivar location: Required. The geo-location where the resource lives. + :vartype location: str :ivar system_data: Metadata pertaining to creation and last modification of the resource. :vartype system_data: ~azure.mgmt.agrifood.models.SystemData :ivar instance_uri: Uri of the FarmBeats instance. @@ -485,6 +536,12 @@ def __init__( tags: Optional[Dict[str, str]] = None, **kwargs ): + """ + :keyword tags: A set of tags. Resource tags. + :paramtype tags: dict[str, str] + :keyword location: Required. The geo-location where the resource lives. + :paramtype location: str + """ super(FarmBeats, self).__init__(tags=tags, location=location, **kwargs) self.system_data = None self.instance_uri = None @@ -537,7 +594,7 @@ class FarmBeatsExtension(ProxyResource): 'type': {'readonly': True}, 'system_data': {'readonly': True}, 'target_resource_type': {'readonly': True}, - 'farm_beats_extension_id': {'readonly': True, 'max_length': 100, 'min_length': 2, 'pattern': r'^[A-za-z]{3,50}[.][A-za-z]{3,100}$'}, + 'farm_beats_extension_id': {'readonly': True, 'max_length': 100, 'min_length': 2, 'pattern': r'^[a-zA-Z]{3,50}[.][a-zA-Z]{3,100}$'}, 'farm_beats_extension_name': {'readonly': True, 'max_length': 100, 'min_length': 2}, 'farm_beats_extension_version': {'readonly': True, 'max_length': 100, 'min_length': 2, 'pattern': r'^([1-9]|10).\d$'}, 'publisher_id': {'readonly': True, 'max_length': 100, 'min_length': 2}, @@ -569,6 +626,8 @@ def __init__( self, **kwargs ): + """ + """ super(FarmBeatsExtension, self).__init__(**kwargs) self.system_data = None self.target_resource_type = None @@ -588,8 +647,8 @@ class FarmBeatsExtensionListResponse(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. - :param value: List of requested objects. - :type value: list[~azure.mgmt.agrifood.models.FarmBeatsExtension] + :ivar value: List of requested objects. + :vartype value: list[~azure.mgmt.agrifood.models.FarmBeatsExtension] :ivar next_link: Continuation link (absolute URI) to the next page of results in the list. :vartype next_link: str """ @@ -609,6 +668,10 @@ def __init__( value: Optional[List["FarmBeatsExtension"]] = None, **kwargs ): + """ + :keyword value: List of requested objects. + :paramtype value: list[~azure.mgmt.agrifood.models.FarmBeatsExtension] + """ super(FarmBeatsExtensionListResponse, self).__init__(**kwargs) self.value = value self.next_link = None @@ -619,8 +682,8 @@ class FarmBeatsListResponse(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. - :param value: List of requested objects. - :type value: list[~azure.mgmt.agrifood.models.FarmBeats] + :ivar value: List of requested objects. + :vartype value: list[~azure.mgmt.agrifood.models.FarmBeats] :ivar next_link: Continuation link (absolute URI) to the next page of results in the list. :vartype next_link: str """ @@ -640,6 +703,10 @@ def __init__( value: Optional[List["FarmBeats"]] = None, **kwargs ): + """ + :keyword value: List of requested objects. + :paramtype value: list[~azure.mgmt.agrifood.models.FarmBeats] + """ super(FarmBeatsListResponse, self).__init__(**kwargs) self.value = value self.next_link = None @@ -648,10 +715,10 @@ def __init__( class FarmBeatsUpdateRequestModel(msrest.serialization.Model): """FarmBeats update request. - :param location: Geo-location where the resource lives. - :type location: str - :param tags: A set of tags. Resource tags. - :type tags: dict[str, str] + :ivar location: Geo-location where the resource lives. + :vartype location: str + :ivar tags: A set of tags. Resource tags. + :vartype tags: dict[str, str] """ _attribute_map = { @@ -666,6 +733,12 @@ def __init__( tags: Optional[Dict[str, str]] = None, **kwargs ): + """ + :keyword location: Geo-location where the resource lives. + :paramtype location: str + :keyword tags: A set of tags. Resource tags. + :paramtype tags: dict[str, str] + """ super(FarmBeatsUpdateRequestModel, self).__init__(**kwargs) self.location = location self.tags = tags @@ -682,8 +755,8 @@ class Operation(msrest.serialization.Model): :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.mgmt.agrifood.models.OperationDisplay + :ivar display: Localized display information for this particular operation. + :vartype display: ~azure.mgmt.agrifood.models.OperationDisplay :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". @@ -714,6 +787,10 @@ def __init__( display: Optional["OperationDisplay"] = None, **kwargs ): + """ + :keyword display: Localized display information for this particular operation. + :paramtype display: ~azure.mgmt.agrifood.models.OperationDisplay + """ super(Operation, self).__init__(**kwargs) self.name = None self.is_data_action = None @@ -759,6 +836,8 @@ def __init__( self, **kwargs ): + """ + """ super(OperationDisplay, self).__init__(**kwargs) self.provider = None self.resource = None @@ -791,6 +870,8 @@ def __init__( self, **kwargs ): + """ + """ super(OperationListResult, self).__init__(**kwargs) self.value = None self.next_link = None @@ -799,20 +880,20 @@ def __init__( 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.agrifood.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 + :ivar created_by: The identity that created the resource. + :vartype created_by: str + :ivar created_by_type: The type of identity that created the resource. Possible values include: + "User", "Application", "ManagedIdentity", "Key". + :vartype created_by_type: str or ~azure.mgmt.agrifood.models.CreatedByType + :ivar created_at: The timestamp of resource creation (UTC). + :vartype created_at: ~datetime.datetime + :ivar last_modified_by: The identity that last modified the resource. + :vartype last_modified_by: str + :ivar 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.agrifood.models.CreatedByType - :param last_modified_at: The timestamp of resource last modification (UTC). - :type last_modified_at: ~datetime.datetime + :vartype last_modified_by_type: str or ~azure.mgmt.agrifood.models.CreatedByType + :ivar last_modified_at: The timestamp of resource last modification (UTC). + :vartype last_modified_at: ~datetime.datetime """ _attribute_map = { @@ -835,6 +916,22 @@ def __init__( last_modified_at: Optional[datetime.datetime] = None, **kwargs ): + """ + :keyword created_by: The identity that created the resource. + :paramtype created_by: str + :keyword created_by_type: The type of identity that created the resource. Possible values + include: "User", "Application", "ManagedIdentity", "Key". + :paramtype created_by_type: str or ~azure.mgmt.agrifood.models.CreatedByType + :keyword created_at: The timestamp of resource creation (UTC). + :paramtype created_at: ~datetime.datetime + :keyword last_modified_by: The identity that last modified the resource. + :paramtype last_modified_by: str + :keyword last_modified_by_type: The type of identity that last modified the resource. Possible + values include: "User", "Application", "ManagedIdentity", "Key". + :paramtype last_modified_by_type: str or ~azure.mgmt.agrifood.models.CreatedByType + :keyword last_modified_at: The timestamp of resource last modification (UTC). + :paramtype last_modified_at: ~datetime.datetime + """ super(SystemData, self).__init__(**kwargs) self.created_by = created_by self.created_by_type = created_by_type @@ -849,10 +946,10 @@ class UnitSystemsInfo(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param key: Required. UnitSystem key sent as part of ProviderInput. - :type key: str - :param values: Required. List of unit systems supported by this data provider. - :type values: list[str] + :ivar key: Required. UnitSystem key sent as part of ProviderInput. + :vartype key: str + :ivar values: Required. List of unit systems supported by this data provider. + :vartype values: list[str] """ _validation = { @@ -872,6 +969,12 @@ def __init__( values: List[str], **kwargs ): + """ + :keyword key: Required. UnitSystem key sent as part of ProviderInput. + :paramtype key: str + :keyword values: Required. List of unit systems supported by this data provider. + :paramtype values: list[str] + """ super(UnitSystemsInfo, self).__init__(**kwargs) self.key = key self.values = values diff --git a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/operations/_extensions_operations.py b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/operations/_extensions_operations.py index 74ee8b5017fa..6222bd70c1f0 100644 --- a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/operations/_extensions_operations.py +++ b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/operations/_extensions_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,23 +6,225 @@ # 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 typing import Any, Callable, Dict, Iterable, List, Optional, TypeVar + +from msrest import Serializer 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.pipeline.transport import HttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace 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, List, Optional, TypeVar - - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +from .._vendor import _convert_request, _format_url_section +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +_SERIALIZER = Serializer() +_SERIALIZER.client_side_validation = False + +def build_create_request( + extension_id: str, + farm_beats_resource_name: str, + resource_group_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions/{extensionId}") # pylint: disable=line-too-long + path_format_arguments = { + "extensionId": _SERIALIZER.url("extension_id", extension_id, 'str'), + "farmBeatsResourceName": _SERIALIZER.url("farm_beats_resource_name", farm_beats_resource_name, 'str'), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="PUT", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + + +def build_get_request( + extension_id: str, + farm_beats_resource_name: str, + resource_group_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions/{extensionId}") # pylint: disable=line-too-long + path_format_arguments = { + "extensionId": _SERIALIZER.url("extension_id", extension_id, 'str'), + "farmBeatsResourceName": _SERIALIZER.url("farm_beats_resource_name", farm_beats_resource_name, 'str'), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + + +def build_update_request( + extension_id: str, + farm_beats_resource_name: str, + resource_group_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions/{extensionId}") # pylint: disable=line-too-long + path_format_arguments = { + "extensionId": _SERIALIZER.url("extension_id", extension_id, 'str'), + "farmBeatsResourceName": _SERIALIZER.url("farm_beats_resource_name", farm_beats_resource_name, 'str'), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="PATCH", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + + +def build_delete_request( + extension_id: str, + farm_beats_resource_name: str, + resource_group_name: str, + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions/{extensionId}") # pylint: disable=line-too-long + path_format_arguments = { + "extensionId": _SERIALIZER.url("extension_id", extension_id, 'str'), + "farmBeatsResourceName": _SERIALIZER.url("farm_beats_resource_name", farm_beats_resource_name, 'str'), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="DELETE", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + + +def build_list_by_farm_beats_request( + resource_group_name: str, + subscription_id: str, + farm_beats_resource_name: str, + *, + extension_ids: Optional[List[str]] = None, + extension_categories: Optional[List[str]] = None, + max_page_size: Optional[int] = 50, + skip_token: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions") # pylint: disable=line-too-long + path_format_arguments = { + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "farmBeatsResourceName": _SERIALIZER.url("farm_beats_resource_name", farm_beats_resource_name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + if extension_ids is not None: + _query_parameters['extensionIds'] = [_SERIALIZER.query("extension_ids", q, 'str') if q is not None else '' for q in extension_ids] + if extension_categories is not None: + _query_parameters['extensionCategories'] = [_SERIALIZER.query("extension_categories", q, 'str') if q is not None else '' for q in extension_categories] + if max_page_size is not None: + _query_parameters['$maxPageSize'] = _SERIALIZER.query("max_page_size", max_page_size, 'int', maximum=1000, minimum=10) + if skip_token is not None: + _query_parameters['$skipToken'] = _SERIALIZER.query("skip_token", skip_token, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) class ExtensionsOperations(object): """ExtensionsOperations operations. @@ -45,14 +248,14 @@ def __init__(self, client, config, serializer, deserializer): self._deserialize = deserializer self._config = config + @distributed_trace def create( self, - extension_id, # type: str - farm_beats_resource_name, # type: str - resource_group_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.Extension" + extension_id: str, + farm_beats_resource_name: str, + resource_group_name: str, + **kwargs: Any + ) -> "_models.Extension": """Install extension. :param extension_id: Id of extension resource. @@ -71,34 +274,31 @@ def create( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-preview" - accept = "application/json" - - # Construct URL - url = self.create.metadata['url'] # type: ignore - path_format_arguments = { - 'extensionId': self._serialize.url("extension_id", extension_id, 'str'), - 'farmBeatsResourceName': self._serialize.url("farm_beats_resource_name", farm_beats_resource_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - '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) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = build_create_request( + extension_id=extension_id, + farm_beats_resource_name=farm_beats_resource_name, + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + template_url=self.create.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) - request = self._client.put(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('Extension', pipeline_response) @@ -107,16 +307,18 @@ def create( return cls(pipeline_response, deserialized, {}) return deserialized - create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions/{extensionId}'} # type: ignore + create.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions/{extensionId}"} # type: ignore + + + @distributed_trace def get( self, - extension_id, # type: str - farm_beats_resource_name, # type: str - resource_group_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.Extension" + extension_id: str, + farm_beats_resource_name: str, + resource_group_name: str, + **kwargs: Any + ) -> "_models.Extension": """Get installed extension details by extension id. :param extension_id: Id of extension resource. @@ -135,34 +337,31 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-preview" - accept = "application/json" - - # Construct URL - url = self.get.metadata['url'] # type: ignore - path_format_arguments = { - 'extensionId': self._serialize.url("extension_id", extension_id, 'str'), - 'farmBeatsResourceName': self._serialize.url("farm_beats_resource_name", farm_beats_resource_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - '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) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = build_get_request( + extension_id=extension_id, + farm_beats_resource_name=farm_beats_resource_name, + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + template_url=self.get.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('Extension', pipeline_response) @@ -171,16 +370,18 @@ def get( return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions/{extensionId}'} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions/{extensionId}"} # type: ignore + + + @distributed_trace def update( self, - extension_id, # type: str - farm_beats_resource_name, # type: str - resource_group_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.Extension" + extension_id: str, + farm_beats_resource_name: str, + resource_group_name: str, + **kwargs: Any + ) -> "_models.Extension": """Upgrade to latest extension. :param extension_id: Id of extension resource. @@ -199,34 +400,31 @@ def update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-preview" - accept = "application/json" - - # Construct URL - url = self.update.metadata['url'] # type: ignore - path_format_arguments = { - 'extensionId': self._serialize.url("extension_id", extension_id, 'str'), - 'farmBeatsResourceName': self._serialize.url("farm_beats_resource_name", farm_beats_resource_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - '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) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = build_update_request( + extension_id=extension_id, + farm_beats_resource_name=farm_beats_resource_name, + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + template_url=self.update.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) - request = self._client.patch(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('Extension', pipeline_response) @@ -235,16 +433,18 @@ def update( return cls(pipeline_response, deserialized, {}) return deserialized - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions/{extensionId}'} # type: ignore - def delete( + update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions/{extensionId}"} # type: ignore + + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements self, - extension_id, # type: str - farm_beats_resource_name, # type: str - resource_group_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> None + extension_id: str, + farm_beats_resource_name: str, + resource_group_name: str, + **kwargs: Any + ) -> None: """Uninstall extension. :param extension_id: Id of extension resource. @@ -263,115 +463,115 @@ def delete( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-preview" - accept = "application/json" - - # Construct URL - url = self.delete.metadata['url'] # type: ignore - path_format_arguments = { - 'extensionId': self._serialize.url("extension_id", extension_id, 'str'), - 'farmBeatsResourceName': self._serialize.url("farm_beats_resource_name", farm_beats_resource_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - '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) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = build_delete_request( + extension_id=extension_id, + farm_beats_resource_name=farm_beats_resource_name, + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + template_url=self.delete.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions/{extensionId}'} # type: ignore + delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions/{extensionId}"} # type: ignore + + @distributed_trace def list_by_farm_beats( self, - resource_group_name, # type: str - farm_beats_resource_name, # type: str - extension_ids=None, # type: Optional[List[str]] - extension_categories=None, # type: Optional[List[str]] - max_page_size=50, # type: Optional[int] - skip_token=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.ExtensionListResponse"] + resource_group_name: str, + farm_beats_resource_name: str, + extension_ids: Optional[List[str]] = None, + extension_categories: Optional[List[str]] = None, + max_page_size: Optional[int] = 50, + skip_token: Optional[str] = None, + **kwargs: Any + ) -> Iterable["_models.ExtensionListResponse"]: """Get installed extensions details. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param farm_beats_resource_name: FarmBeats resource name. :type farm_beats_resource_name: str - :param extension_ids: Installed extension ids. + :param extension_ids: Installed extension ids. Default value is None. :type extension_ids: list[str] - :param extension_categories: Installed extension categories. + :param extension_categories: Installed extension categories. Default value is None. :type extension_categories: list[str] :param max_page_size: Maximum number of items needed (inclusive). - Minimum = 10, Maximum = 1000, Default value = 50. + Minimum = 10, Maximum = 1000, Default value = 50. Default value is 50. :type max_page_size: int - :param skip_token: Skip token for getting next set of results. + :param skip_token: Skip token for getting next set of results. Default value is None. :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 ExtensionListResponse or the result of cls(response) + :return: An iterator like instance of either ExtensionListResponse or the result of + cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.agrifood.models.ExtensionListResponse] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.ExtensionListResponse"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-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_farm_beats.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\._\(\)]+$'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'farmBeatsResourceName': self._serialize.url("farm_beats_resource_name", farm_beats_resource_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 extension_ids is not None: - query_parameters['extensionIds'] = [self._serialize.query("extension_ids", q, 'str') if q is not None else '' for q in extension_ids] - if extension_categories is not None: - query_parameters['extensionCategories'] = [self._serialize.query("extension_categories", q, 'str') if q is not None else '' for q in extension_categories] - if max_page_size is not None: - query_parameters['$maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int', maximum=1000, minimum=10) - 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) + + request = build_list_by_farm_beats_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + farm_beats_resource_name=farm_beats_resource_name, + api_version=api_version, + extension_ids=extension_ids, + extension_categories=extension_categories, + max_page_size=max_page_size, + skip_token=skip_token, + template_url=self.list_by_farm_beats.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) + + request = build_list_by_farm_beats_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + farm_beats_resource_name=farm_beats_resource_name, + api_version=api_version, + extension_ids=extension_ids, + extension_categories=extension_categories, + max_page_size=max_page_size, + skip_token=skip_token, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" return request def extract_data(pipeline_response): - deserialized = self._deserialize('ExtensionListResponse', pipeline_response) + deserialized = self._deserialize("ExtensionListResponse", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -380,17 +580,22 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response + return ItemPaged( get_next, extract_data ) - list_by_farm_beats.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions'} # type: ignore + list_by_farm_beats.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions"} # type: ignore diff --git a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/operations/_farm_beats_extensions_operations.py b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/operations/_farm_beats_extensions_operations.py index d101e1342bd7..afe51213327e 100644 --- a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/operations/_farm_beats_extensions_operations.py +++ b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/operations/_farm_beats_extensions_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,23 +6,98 @@ # 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 typing import Any, Callable, Dict, Iterable, List, Optional, TypeVar + +from msrest import Serializer 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.pipeline.transport import HttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace from azure.mgmt.core.exceptions import ARMErrorFormat from .. import models as _models +from .._vendor import _convert_request, _format_url_section +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +_SERIALIZER = Serializer() +_SERIALIZER.client_side_validation = False + +def build_list_request( + *, + farm_beats_extension_ids: Optional[List[str]] = None, + farm_beats_extension_names: Optional[List[str]] = None, + extension_categories: Optional[List[str]] = None, + publisher_ids: Optional[List[str]] = None, + max_page_size: Optional[int] = 50, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/providers/Microsoft.AgFoodPlatform/farmBeatsExtensionDefinitions") + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if farm_beats_extension_ids is not None: + _query_parameters['farmBeatsExtensionIds'] = [_SERIALIZER.query("farm_beats_extension_ids", q, 'str') if q is not None else '' for q in farm_beats_extension_ids] + if farm_beats_extension_names is not None: + _query_parameters['farmBeatsExtensionNames'] = [_SERIALIZER.query("farm_beats_extension_names", q, 'str') if q is not None else '' for q in farm_beats_extension_names] + if extension_categories is not None: + _query_parameters['extensionCategories'] = [_SERIALIZER.query("extension_categories", q, 'str') if q is not None else '' for q in extension_categories] + if publisher_ids is not None: + _query_parameters['publisherIds'] = [_SERIALIZER.query("publisher_ids", q, 'str') if q is not None else '' for q in publisher_ids] + if max_page_size is not None: + _query_parameters['$maxPageSize'] = _SERIALIZER.query("max_page_size", max_page_size, 'int', maximum=1000, minimum=10) + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + + +def build_get_request( + farm_beats_extension_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/providers/Microsoft.AgFoodPlatform/farmBeatsExtensionDefinitions/{farmBeatsExtensionId}") # pylint: disable=line-too-long + path_format_arguments = { + "farmBeatsExtensionId": _SERIALIZER.url("farm_beats_extension_id", farm_beats_extension_id, 'str', pattern=r'^[a-zA-Z]{3,50}[.][a-zA-Z]{3,100}$'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, List, Optional, TypeVar + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + return HttpRequest( + method="GET", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) class FarmBeatsExtensionsOperations(object): """FarmBeatsExtensionsOperations operations. @@ -45,73 +121,76 @@ def __init__(self, client, config, serializer, deserializer): self._deserialize = deserializer self._config = config + @distributed_trace def list( self, - farm_beats_extension_ids=None, # type: Optional[List[str]] - farm_beats_extension_names=None, # type: Optional[List[str]] - extension_categories=None, # type: Optional[List[str]] - publisher_ids=None, # type: Optional[List[str]] - max_page_size=50, # type: Optional[int] - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.FarmBeatsExtensionListResponse"] + farm_beats_extension_ids: Optional[List[str]] = None, + farm_beats_extension_names: Optional[List[str]] = None, + extension_categories: Optional[List[str]] = None, + publisher_ids: Optional[List[str]] = None, + max_page_size: Optional[int] = 50, + **kwargs: Any + ) -> Iterable["_models.FarmBeatsExtensionListResponse"]: """Get list of farmBeats extension. - :param farm_beats_extension_ids: FarmBeatsExtension ids. + :param farm_beats_extension_ids: FarmBeatsExtension ids. Default value is None. :type farm_beats_extension_ids: list[str] - :param farm_beats_extension_names: FarmBeats extension names. + :param farm_beats_extension_names: FarmBeats extension names. Default value is None. :type farm_beats_extension_names: list[str] - :param extension_categories: Extension categories. + :param extension_categories: Extension categories. Default value is None. :type extension_categories: list[str] - :param publisher_ids: Publisher ids. + :param publisher_ids: Publisher ids. Default value is None. :type publisher_ids: list[str] :param max_page_size: Maximum number of items needed (inclusive). - Minimum = 10, Maximum = 1000, Default value = 50. + Minimum = 10, Maximum = 1000, Default value = 50. Default value is 50. :type max_page_size: int :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either FarmBeatsExtensionListResponse or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.agrifood.models.FarmBeatsExtensionListResponse] + :return: An iterator like instance of either FarmBeatsExtensionListResponse or the result of + cls(response) + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.agrifood.models.FarmBeatsExtensionListResponse] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.FarmBeatsExtensionListResponse"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-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.metadata['url'] # type: ignore - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if farm_beats_extension_ids is not None: - query_parameters['farmBeatsExtensionIds'] = [self._serialize.query("farm_beats_extension_ids", q, 'str') if q is not None else '' for q in farm_beats_extension_ids] - if farm_beats_extension_names is not None: - query_parameters['farmBeatsExtensionNames'] = [self._serialize.query("farm_beats_extension_names", q, 'str') if q is not None else '' for q in farm_beats_extension_names] - if extension_categories is not None: - query_parameters['extensionCategories'] = [self._serialize.query("extension_categories", q, 'str') if q is not None else '' for q in extension_categories] - if publisher_ids is not None: - query_parameters['publisherIds'] = [self._serialize.query("publisher_ids", q, 'str') if q is not None else '' for q in publisher_ids] - if max_page_size is not None: - query_parameters['$maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int', maximum=1000, minimum=10) - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) + + request = build_list_request( + api_version=api_version, + farm_beats_extension_ids=farm_beats_extension_ids, + farm_beats_extension_names=farm_beats_extension_names, + extension_categories=extension_categories, + publisher_ids=publisher_ids, + max_page_size=max_page_size, + template_url=self.list.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) + + request = build_list_request( + api_version=api_version, + farm_beats_extension_ids=farm_beats_extension_ids, + farm_beats_extension_names=farm_beats_extension_names, + extension_categories=extension_categories, + publisher_ids=publisher_ids, + max_page_size=max_page_size, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" return request def extract_data(pipeline_response): - deserialized = self._deserialize('FarmBeatsExtensionListResponse', pipeline_response) + deserialized = self._deserialize("FarmBeatsExtensionListResponse", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -120,27 +199,32 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response + return ItemPaged( get_next, extract_data ) - list.metadata = {'url': '/providers/Microsoft.AgFoodPlatform/farmBeatsExtensionDefinitions'} # type: ignore + list.metadata = {'url': "/providers/Microsoft.AgFoodPlatform/farmBeatsExtensionDefinitions"} # type: ignore + @distributed_trace def get( self, - farm_beats_extension_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.FarmBeatsExtension" + farm_beats_extension_id: str, + **kwargs: Any + ) -> "_models.FarmBeatsExtension": """Get farmBeats extension. :param farm_beats_extension_id: farmBeatsExtensionId to be queried. @@ -155,31 +239,28 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-preview" - accept = "application/json" - # Construct URL - url = self.get.metadata['url'] # type: ignore - path_format_arguments = { - 'farmBeatsExtensionId': self._serialize.url("farm_beats_extension_id", farm_beats_extension_id, 'str', pattern=r'^[A-za-z]{3,50}[.][A-za-z]{3,100}$'), - } - url = self._client.format_url(url, **path_format_arguments) + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str - # 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 = build_get_request( + farm_beats_extension_id=farm_beats_extension_id, + api_version=api_version, + template_url=self.get.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('FarmBeatsExtension', pipeline_response) @@ -188,4 +269,6 @@ def get( return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/providers/Microsoft.AgFoodPlatform/farmBeatsExtensionDefinitions/{farmBeatsExtensionId}'} # type: ignore + + get.metadata = {'url': "/providers/Microsoft.AgFoodPlatform/farmBeatsExtensionDefinitions/{farmBeatsExtensionId}"} # type: ignore + diff --git a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/operations/_farm_beats_models_operations.py b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/operations/_farm_beats_models_operations.py index e58a1a2cfc2b..a1772f1be2f1 100644 --- a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/operations/_farm_beats_models_operations.py +++ b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/operations/_farm_beats_models_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,23 +6,265 @@ # 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 typing import Any, Callable, Dict, Iterable, Optional, TypeVar + +from msrest import Serializer 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.pipeline.transport import HttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace 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, Union - - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] +from .._vendor import _convert_request, _format_url_section +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +_SERIALIZER = Serializer() +_SERIALIZER.client_side_validation = False + +def build_get_request( + resource_group_name: str, + subscription_id: str, + farm_beats_resource_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}") # pylint: disable=line-too-long + path_format_arguments = { + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "farmBeatsResourceName": _SERIALIZER.url("farm_beats_resource_name", farm_beats_resource_name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + + +def build_create_or_update_request( + farm_beats_resource_name: str, + resource_group_name: str, + subscription_id: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + content_type = kwargs.pop('content_type', None) # type: Optional[str] + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}") # pylint: disable=line-too-long + path_format_arguments = { + "farmBeatsResourceName": _SERIALIZER.url("farm_beats_resource_name", farm_beats_resource_name, 'str'), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="PUT", + url=_url, + params=_query_parameters, + headers=_header_parameters, + json=json, + content=content, + **kwargs + ) + + +def build_update_request( + farm_beats_resource_name: str, + resource_group_name: str, + subscription_id: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + content_type = kwargs.pop('content_type', None) # type: Optional[str] + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}") # pylint: disable=line-too-long + path_format_arguments = { + "farmBeatsResourceName": _SERIALIZER.url("farm_beats_resource_name", farm_beats_resource_name, 'str'), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="PATCH", + url=_url, + params=_query_parameters, + headers=_header_parameters, + json=json, + content=content, + **kwargs + ) + + +def build_delete_request( + resource_group_name: str, + subscription_id: str, + farm_beats_resource_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}") # pylint: disable=line-too-long + path_format_arguments = { + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "farmBeatsResourceName": _SERIALIZER.url("farm_beats_resource_name", farm_beats_resource_name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="DELETE", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + + +def build_list_by_subscription_request( + subscription_id: str, + *, + max_page_size: Optional[int] = 50, + skip_token: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/farmBeats") + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if max_page_size is not None: + _query_parameters['$maxPageSize'] = _SERIALIZER.query("max_page_size", max_page_size, 'int', maximum=1000, minimum=10) + if skip_token is not None: + _query_parameters['$skipToken'] = _SERIALIZER.query("skip_token", skip_token, 'str') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + + +def build_list_by_resource_group_request( + resource_group_name: str, + subscription_id: str, + *, + max_page_size: Optional[int] = 50, + skip_token: Optional[str] = None, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats") # pylint: disable=line-too-long + path_format_arguments = { + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + if max_page_size is not None: + _query_parameters['$maxPageSize'] = _SERIALIZER.query("max_page_size", max_page_size, 'int', maximum=1000, minimum=10) + if skip_token is not None: + _query_parameters['$skipToken'] = _SERIALIZER.query("skip_token", skip_token, 'str') + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) class FarmBeatsModelsOperations(object): """FarmBeatsModelsOperations operations. @@ -45,13 +288,13 @@ def __init__(self, client, config, serializer, deserializer): self._deserialize = deserializer self._config = config + @distributed_trace def get( self, - resource_group_name, # type: str - farm_beats_resource_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.FarmBeats" + resource_group_name: str, + farm_beats_resource_name: str, + **kwargs: Any + ) -> "_models.FarmBeats": """Get FarmBeats resource. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -68,33 +311,30 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-preview" - accept = "application/json" - - # Construct URL - url = self.get.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\._\(\)]+$'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'farmBeatsResourceName': self._serialize.url("farm_beats_resource_name", farm_beats_resource_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') + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = build_get_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + farm_beats_resource_name=farm_beats_resource_name, + api_version=api_version, + template_url=self.get.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('FarmBeats', pipeline_response) @@ -103,16 +343,18 @@ def get( return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}'} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}"} # type: ignore + + + @distributed_trace def create_or_update( self, - farm_beats_resource_name, # type: str - resource_group_name, # type: str - body, # type: "_models.FarmBeats" - **kwargs # type: Any - ): - # type: (...) -> "_models.FarmBeats" + farm_beats_resource_name: str, + resource_group_name: str, + body: "_models.FarmBeats", + **kwargs: Any + ) -> "_models.FarmBeats": """Create or update FarmBeats resource. :param farm_beats_resource_name: FarmBeats resource name. @@ -131,38 +373,34 @@ def create_or_update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-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 = { - 'farmBeatsResourceName': self._serialize.url("farm_beats_resource_name", farm_beats_resource_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - '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) - - # 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(body, 'FarmBeats') - 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) + + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + + _json = self._serialize.body(body, 'FarmBeats') + + request = build_create_or_update_request( + farm_beats_resource_name=farm_beats_resource_name, + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + json=_json, + template_url=self.create_or_update.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -175,16 +413,18 @@ def create_or_update( return cls(pipeline_response, deserialized, {}) return deserialized - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}'} # type: ignore + create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}"} # type: ignore + + + @distributed_trace def update( self, - farm_beats_resource_name, # type: str - resource_group_name, # type: str - body, # type: "_models.FarmBeatsUpdateRequestModel" - **kwargs # type: Any - ): - # type: (...) -> "_models.FarmBeats" + farm_beats_resource_name: str, + resource_group_name: str, + body: "_models.FarmBeatsUpdateRequestModel", + **kwargs: Any + ) -> "_models.FarmBeats": """Update a FarmBeats resource. :param farm_beats_resource_name: FarmBeats resource name. @@ -203,38 +443,34 @@ def update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-preview" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.update.metadata['url'] # type: ignore - path_format_arguments = { - 'farmBeatsResourceName': self._serialize.url("farm_beats_resource_name", farm_beats_resource_name, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - '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) - - # 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(body, 'FarmBeatsUpdateRequestModel') - 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) + + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + + _json = self._serialize.body(body, 'FarmBeatsUpdateRequestModel') + + request = build_update_request( + farm_beats_resource_name=farm_beats_resource_name, + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + json=_json, + template_url=self.update.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('FarmBeats', pipeline_response) @@ -243,15 +479,17 @@ def update( return cls(pipeline_response, deserialized, {}) return deserialized - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}'} # type: ignore - def delete( + update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}"} # type: ignore + + + @distributed_trace + def delete( # pylint: disable=inconsistent-return-statements self, - resource_group_name, # type: str - farm_beats_resource_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> None + resource_group_name: str, + farm_beats_resource_name: str, + **kwargs: Any + ) -> None: """Delete a FarmBeats resource. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -268,96 +506,94 @@ def delete( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-preview" - accept = "application/json" - - # Construct URL - url = self.delete.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\._\(\)]+$'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'farmBeatsResourceName': self._serialize.url("farm_beats_resource_name", farm_beats_resource_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') + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = build_delete_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + farm_beats_resource_name=farm_beats_resource_name, + api_version=api_version, + template_url=self.delete.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}'} # type: ignore + delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}"} # type: ignore + + @distributed_trace def list_by_subscription( self, - max_page_size=50, # type: Optional[int] - skip_token=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.FarmBeatsListResponse"] + max_page_size: Optional[int] = 50, + skip_token: Optional[str] = None, + **kwargs: Any + ) -> Iterable["_models.FarmBeatsListResponse"]: """Lists the FarmBeats instances for a subscription. :param max_page_size: Maximum number of items needed (inclusive). - Minimum = 10, Maximum = 1000, Default value = 50. + Minimum = 10, Maximum = 1000, Default value = 50. Default value is 50. :type max_page_size: int - :param skip_token: Skip token for getting next set of results. + :param skip_token: Skip token for getting next set of results. Default value is None. :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 FarmBeatsListResponse or the result of cls(response) + :return: An iterator like instance of either FarmBeatsListResponse or the result of + cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.agrifood.models.FarmBeatsListResponse] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.FarmBeatsListResponse"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-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_subscription.metadata['url'] # type: ignore - path_format_arguments = { - '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) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if max_page_size is not None: - query_parameters['$maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int', maximum=1000, minimum=10) - if skip_token is not None: - query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) + + request = build_list_by_subscription_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + max_page_size=max_page_size, + skip_token=skip_token, + template_url=self.list_by_subscription.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) + + request = build_list_by_subscription_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + max_page_size=max_page_size, + skip_token=skip_token, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" return request def extract_data(pipeline_response): - deserialized = self._deserialize('FarmBeatsListResponse', pipeline_response) + deserialized = self._deserialize("FarmBeatsListResponse", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -366,81 +602,87 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response + return ItemPaged( get_next, extract_data ) - list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/farmBeats'} # type: ignore + list_by_subscription.metadata = {'url': "/subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/farmBeats"} # type: ignore + @distributed_trace def list_by_resource_group( self, - resource_group_name, # type: str - max_page_size=50, # type: Optional[int] - skip_token=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.FarmBeatsListResponse"] + resource_group_name: str, + max_page_size: Optional[int] = 50, + skip_token: Optional[str] = None, + **kwargs: Any + ) -> Iterable["_models.FarmBeatsListResponse"]: """Lists the FarmBeats instances for a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param max_page_size: Maximum number of items needed (inclusive). - Minimum = 10, Maximum = 1000, Default value = 50. + Minimum = 10, Maximum = 1000, Default value = 50. Default value is 50. :type max_page_size: int - :param skip_token: Continuation token for getting next set of results. + :param skip_token: Continuation token for getting next set of results. Default value is None. :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 FarmBeatsListResponse or the result of cls(response) + :return: An iterator like instance of either FarmBeatsListResponse or the result of + cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.agrifood.models.FarmBeatsListResponse] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.FarmBeatsListResponse"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-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_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\._\(\)]+$'), - '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) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if max_page_size is not None: - query_parameters['$maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int', maximum=1000, minimum=10) - if skip_token is not None: - query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) + + request = build_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + max_page_size=max_page_size, + skip_token=skip_token, + template_url=self.list_by_resource_group.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) + + request = build_list_by_resource_group_request( + resource_group_name=resource_group_name, + subscription_id=self._config.subscription_id, + api_version=api_version, + max_page_size=max_page_size, + skip_token=skip_token, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" return request def extract_data(pipeline_response): - deserialized = self._deserialize('FarmBeatsListResponse', pipeline_response) + deserialized = self._deserialize("FarmBeatsListResponse", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -449,17 +691,22 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) 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.AgFoodPlatform/farmBeats'} # type: ignore + list_by_resource_group.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats"} # type: ignore diff --git a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/operations/_locations_operations.py b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/operations/_locations_operations.py index 3903612ef1b4..74262501a47c 100644 --- a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/operations/_locations_operations.py +++ b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/operations/_locations_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,22 +6,64 @@ # 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 typing import Any, Callable, Dict, Optional, TypeVar + +from msrest import Serializer 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.core.pipeline.transport import HttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace 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]] +from .._vendor import _convert_request, _format_url_section +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +_SERIALIZER = Serializer() +_SERIALIZER.client_side_validation = False + +def build_check_name_availability_request( + subscription_id: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + content_type = kwargs.pop('content_type', None) # type: Optional[str] + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/checkNameAvailability") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=_url, + params=_query_parameters, + headers=_header_parameters, + json=json, + content=content, + **kwargs + ) class LocationsOperations(object): """LocationsOperations operations. @@ -44,12 +87,12 @@ def __init__(self, client, config, serializer, deserializer): self._deserialize = deserializer self._config = config + @distributed_trace def check_name_availability( self, - body, # type: "_models.CheckNameAvailabilityRequest" - **kwargs # type: Any - ): - # type: (...) -> "_models.CheckNameAvailabilityResponse" + body: "_models.CheckNameAvailabilityRequest", + **kwargs: Any + ) -> "_models.CheckNameAvailabilityResponse": """Checks the name availability of the resource with requested resource name. :param body: NameAvailabilityRequest object. @@ -64,36 +107,32 @@ def check_name_availability( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-05-12-preview" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.check_name_availability.metadata['url'] # type: ignore - path_format_arguments = { - '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) - - # 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(body, 'CheckNameAvailabilityRequest') - 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) + + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + + _json = self._serialize.body(body, 'CheckNameAvailabilityRequest') + + request = build_check_name_availability_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + content_type=content_type, + json=_json, + template_url=self.check_name_availability.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('CheckNameAvailabilityResponse', pipeline_response) @@ -102,4 +141,6 @@ def check_name_availability( return cls(pipeline_response, deserialized, {}) return deserialized - check_name_availability.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/checkNameAvailability'} # type: ignore + + check_name_availability.metadata = {'url': "/subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/checkNameAvailability"} # type: ignore + diff --git a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/operations/_operations.py b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/operations/_operations.py index c781c686e1cc..585345dbc39f 100644 --- a/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/operations/_operations.py +++ b/sdk/agrifood/azure-mgmt-agrifood/azure/mgmt/agrifood/operations/_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,23 +6,50 @@ # 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 typing import Any, Callable, Dict, Iterable, Optional, TypeVar + +from msrest import Serializer 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.pipeline.transport import HttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace 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]] +from .._vendor import _convert_request +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +_SERIALIZER = Serializer() +_SERIALIZER.client_side_validation = False + +def build_list_request( + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/providers/Microsoft.AgFoodPlatform/operations") + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) class Operations(object): """Operations operations. @@ -45,11 +73,11 @@ def __init__(self, client, config, serializer, deserializer): self._deserialize = deserializer self._config = config + @distributed_trace def list( self, - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.OperationListResult"] + **kwargs: Any + ) -> Iterable["_models.OperationListResult"]: """Lists the available operations of Microsoft.AgFoodPlatform resource provider. :keyword callable cls: A custom type or function that will be passed the direct response @@ -57,35 +85,36 @@ def list( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.agrifood.models.OperationListResult] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2020-05-12-preview") # type: str + 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-05-12-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.metadata['url'] # type: ignore - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = build_list_request( + api_version=api_version, + template_url=self.list.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) - 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) + + request = build_list_request( + api_version=api_version, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" return request def extract_data(pipeline_response): - deserialized = self._deserialize('OperationListResult', pipeline_response) + deserialized = self._deserialize("OperationListResult", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -94,17 +123,22 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + 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) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) return pipeline_response + return ItemPaged( get_next, extract_data ) - list.metadata = {'url': '/providers/Microsoft.AgFoodPlatform/operations'} # type: ignore + list.metadata = {'url': "/providers/Microsoft.AgFoodPlatform/operations"} # type: ignore diff --git a/sdk/app/azure-mgmt-app/CHANGELOG.md b/sdk/app/azure-mgmt-app/CHANGELOG.md index baadc4f446e6..04fa001179be 100644 --- a/sdk/app/azure-mgmt-app/CHANGELOG.md +++ b/sdk/app/azure-mgmt-app/CHANGELOG.md @@ -1,5 +1,9 @@ -# Release History - -## 1.0.0b1 (2022-03-22) - -* Initial Release +# Release History + +## 1.0.0b2 (2022-05-11) + +- Deprecate the package + +## 1.0.0b1 (2022-03-22) + +* Initial Release diff --git a/sdk/app/azure-mgmt-app/README.md b/sdk/app/azure-mgmt-app/README.md index a2c24f1d3e50..19ecb852c285 100644 --- a/sdk/app/azure-mgmt-app/README.md +++ b/sdk/app/azure-mgmt-app/README.md @@ -1,30 +1,6 @@ # Microsoft Azure SDK for Python This is the Microsoft Azure App Management Client Library. -This package has been tested with Python 3.6+. -For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all). +This package is deprecated. Please install the [azure-mgmt-appcontainers](https://pypi.org/project/azure-mgmt-appcontainers/) instead of it for your application. -## _Disclaimer_ - -_Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_ - -# 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 [App 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-app%2FREADME.png) +The complete list of available packages can be found at: https://aka.ms/azsdk/python/all diff --git a/sdk/app/azure-mgmt-app/azure/mgmt/app/_version.py b/sdk/app/azure-mgmt-app/azure/mgmt/app/_version.py index e5754a47ce68..dfa6ee022f15 100644 --- a/sdk/app/azure-mgmt-app/azure/mgmt/app/_version.py +++ b/sdk/app/azure-mgmt-app/azure/mgmt/app/_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/containerregistry/azure-containerregistry/CHANGELOG.md b/sdk/containerregistry/azure-containerregistry/CHANGELOG.md index b3790768609b..bd634484de49 100644 --- a/sdk/containerregistry/azure-containerregistry/CHANGELOG.md +++ b/sdk/containerregistry/azure-containerregistry/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.0.1 (Unreleased) +## 1.1.0b2 (Unreleased) ### Features Added @@ -10,7 +10,14 @@ ### Other Changes +## 1.1.0b1 (2022-05-10) + +### Features Added +- Support uploading and downloading OCI manifests and artifact blobs in synchronous `ContainerRegistryClient`. ([#24004](https://github.com/Azure/azure-sdk-for-python/pull/24004)) +### Other Changes + - Fixed a spell error in a property of `RepositoryProperties` to `last_updated_on`. +- Bumped dependency on `azure-core` to `>=1.23.0`. ## 1.0.0 (2022-01-25) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_authentication_policy.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_authentication_policy.py index 4f97428d6b61..8d71eb4b8eed 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_authentication_policy.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_authentication_policy.py @@ -5,6 +5,7 @@ # ------------------------------------ from typing import TYPE_CHECKING, Any +from io import SEEK_SET, UnsupportedOperation from azure.core.pipeline.policies import HTTPPolicy @@ -52,6 +53,14 @@ def send(self, request): if response.http_response.status_code == 401: challenge = response.http_response.headers.get("WWW-Authenticate") if challenge and self.on_challenge(request, response, challenge): + if request.http_request.body and hasattr(request.http_request.body, 'read'): + try: + # attempt to rewind the body to the initial position + request.http_request.body.seek(0, SEEK_SET) + except (UnsupportedOperation, ValueError, AttributeError): + # if body is not seekable, then retry would not work + return response + response = self.next.send(request) return response diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py index 575e240def9f..27beca997757 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_container_registry_client.py @@ -3,7 +3,8 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ -from typing import TYPE_CHECKING, overload, Any, Dict, Optional, Union +from io import BytesIO +from typing import TYPE_CHECKING, Any, IO, Optional, overload, Union from azure.core.exceptions import ( ClientAuthenticationError, ResourceNotFoundError, @@ -15,12 +16,30 @@ from azure.core.tracing.decorator import distributed_trace from ._base_client import ContainerRegistryBaseClient -from ._generated.models import AcrErrors -from ._helpers import _parse_next_link, _is_tag, SUPPORTED_API_VERSIONS -from ._models import RepositoryProperties, ArtifactTagProperties, ArtifactManifestProperties +from ._generated.models import AcrErrors, OCIManifest +from ._helpers import ( + _compute_digest, + _is_tag, + _parse_next_link, + _serialize_manifest, + _validate_digest, + OCI_MANIFEST_MEDIA_TYPE, + SUPPORTED_API_VERSIONS, +) +from ._models import ( + RepositoryProperties, + ArtifactTagProperties, + ArtifactManifestProperties, + DownloadBlobResult, + DownloadManifestResult, +) if TYPE_CHECKING: from azure.core.credentials import TokenCredential + from typing import Dict + +def _return_response(pipeline_response, deserialized, response_headers): + return pipeline_response, deserialized, response_headers class ContainerRegistryClient(ContainerRegistryBaseClient): @@ -338,33 +357,6 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) - @distributed_trace - def delete_manifest(self, repository, tag_or_digest, **kwargs): - # type: (str, str, **Any) -> None - """Delete a manifest. If the manifest cannot be found or a response status code of - 404 is returned an error will not be raised. - - :param str repository: Name of the repository the manifest belongs to - :param str tag_or_digest: Tag or digest of the manifest to be deleted - :returns: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example - - .. code-block:: python - - from azure.containerregistry import ContainerRegistryClient - from azure.identity import DefaultAzureCredential - endpoint = os.environ["CONTAINERREGISTRY_ENDPOINT"] - client = ContainerRegistryClient(endpoint, DefaultAzureCredential(), audience="my_audience") - client.delete_manifest("my_repository", "my_tag_or_digest") - """ - if _is_tag(tag_or_digest): - tag_or_digest = self._get_digest_from_tag(repository, tag_or_digest) - - self._client.container_registry.delete_manifest(repository, tag_or_digest, **kwargs) - @distributed_trace def delete_tag(self, repository, tag, **kwargs): # type: (str, str, **Any) -> None @@ -764,3 +756,190 @@ def update_repository_properties(self, *args, **kwargs): repository, value=properties._to_generated(), **kwargs # pylint: disable=protected-access ) ) + + @distributed_trace + def upload_manifest( + self, repository: str, manifest: "Union['OCIManifest', 'IO']", *, tag: "Optional[str]" = None, **kwargs: "Any" + ) -> str: + """Upload a manifest for an OCI artifact. + + :param str repository: Name of the repository + :param manifest: The manifest to upload. Note: This must be a seekable stream. + :type manifest: ~azure.containerregistry.models.OCIManifest or IO + :keyword tag: Tag of the manifest. + :paramtype tag: str or None + :returns: The digest of the uploaded manifest, calculated by the registry. + :rtype: str + :raises ValueError: If the parameter repository or manifest is None. + :raises ~azure.core.exceptions.HttpResponseError: + If the digest in the response does not match the digest of the uploaded manifest. + """ + try: + data = manifest + if isinstance(manifest, OCIManifest): + data = _serialize_manifest(manifest) + tag_or_digest = tag + if tag is None: + tag_or_digest = _compute_digest(data) + + _, _, response_headers = self._client.container_registry.create_manifest( + name=repository, + reference=tag_or_digest, + payload=data, + content_type=OCI_MANIFEST_MEDIA_TYPE, + headers={"Accept": OCI_MANIFEST_MEDIA_TYPE}, + cls=_return_response, + **kwargs + ) + + digest = response_headers['Docker-Content-Digest'] + except ValueError: + if repository is None or manifest is None: + raise ValueError("The parameter repository and manifest cannot be None.") + if not _validate_digest(data, digest): + raise ValueError("The digest in the response does not match the digest of the uploaded manifest.") + raise + + return digest + + @distributed_trace + def upload_blob(self, repository, data, **kwargs): + # type: (str, IO, **Any) -> str + """Upload an artifact blob. + + :param str repository: Name of the repository + :param data: The blob to upload. Note: This must be a seekable stream. + :type data: IO + :returns: The digest of the uploaded blob, calculated by the registry. + :rtype: str + :raises ValueError: If the parameter repository or data is None. + """ + try: + _, _, start_upload_response_headers = self._client.container_registry_blob.start_upload( + repository, cls=_return_response, **kwargs + ) + _, _, upload_chunk_response_headers = self._client.container_registry_blob.upload_chunk( + start_upload_response_headers['Location'], data, cls=_return_response, **kwargs + ) + digest = _compute_digest(data) + _, _, complete_upload_response_headers = self._client.container_registry_blob.complete_upload( + digest=digest, next_link=upload_chunk_response_headers['Location'], cls=_return_response, **kwargs + ) + except ValueError: + if repository is None or data is None: + raise ValueError("The parameter repository and data cannot be None.") + raise + return complete_upload_response_headers['Docker-Content-Digest'] + + @distributed_trace + def download_manifest(self, repository, tag_or_digest, **kwargs): + # type: (str, str, **Any) -> DownloadManifestResult + """Download the manifest for an OCI artifact. + + :param str repository: Name of the repository + :param str tag_or_digest: The tag or digest of the manifest to download. + :returns: DownloadManifestResult + :rtype: ~azure.containerregistry.models.DownloadManifestResult + :raises ValueError: If the parameter repository or tag_or_digest is None. + :raises ~azure.core.exceptions.HttpResponseError: + If the requested digest does not match the digest of the received manifest. + """ + try: + response, manifest_wrapper, _ = self._client.container_registry.get_manifest( + name=repository, + reference=tag_or_digest, + headers={"Accept": OCI_MANIFEST_MEDIA_TYPE}, + cls=_return_response, + **kwargs + ) + digest = response.http_response.headers['Docker-Content-Digest'] + manifest = OCIManifest.deserialize(manifest_wrapper.serialize()) + manifest_stream = _serialize_manifest(manifest) + except ValueError: + if repository is None or tag_or_digest is None: + raise ValueError("The parameter repository and tag_or_digest cannot be None.") + if not _validate_digest(manifest_stream, digest): + raise ValueError("The requested digest does not match the digest of the received manifest.") + raise + + return DownloadManifestResult(digest=digest, data=manifest_stream, manifest=manifest) + + @distributed_trace + def download_blob(self, repository, digest, **kwargs): + # type: (str, str, **Any) -> DownloadBlobResult | None + """Download a blob that is part of an artifact. + + :param str repository: Name of the repository + :param str digest: The digest of the blob to download. + :returns: DownloadBlobResult or None + :rtype: ~azure.containerregistry.DownloadBlobResult or None + :raises ValueError: If the parameter repository or digest is None. + """ + try: + _, deserialized, _ = self._client.container_registry_blob.get_blob( + repository, digest, cls=_return_response, **kwargs + ) + except ValueError: + if repository is None or digest is None: + raise ValueError("The parameter repository and digest cannot be None.") + raise + + if deserialized: + blob_content = b'' + for chunk in deserialized: + if chunk: + blob_content += chunk + return DownloadBlobResult(data=BytesIO(blob_content), digest=digest) + return None + + @distributed_trace + def delete_manifest(self, repository, tag_or_digest, **kwargs): + # type: (str, str, **Any) -> None + """Delete a manifest. If the manifest cannot be found or a response status code of + 404 is returned an error will not be raised. + + :param str repository: Name of the repository the manifest belongs to + :param str tag_or_digest: Tag or digest of the manifest to be deleted + :returns: None + :raises: ~azure.core.exceptions.HttpResponseError + + Example + + .. code-block:: python + + from azure.containerregistry import ContainerRegistryClient + from azure.identity import DefaultAzureCredential + endpoint = os.environ["CONTAINERREGISTRY_ENDPOINT"] + client = ContainerRegistryClient(endpoint, DefaultAzureCredential(), audience="my_audience") + client.delete_manifest("my_repository", "my_tag_or_digest") + """ + if _is_tag(tag_or_digest): + tag_or_digest = self._get_digest_from_tag(repository, tag_or_digest) + + self._client.container_registry.delete_manifest(repository, tag_or_digest, **kwargs) + + @distributed_trace + def delete_blob(self, repository, tag_or_digest, **kwargs): + # type: (str, str, **Any) -> None + """Delete a blob. If the blob cannot be found or a response status code of + 404 is returned an error will not be raised. + + :param str repository: Name of the repository the manifest belongs to + :param str tag_or_digest: Tag or digest of the blob to be deleted + :returns: None + :raises: ~azure.core.exceptions.HttpResponseError + + Example + + .. code-block:: python + + from azure.containerregistry import ContainerRegistryClient + from azure.identity import DefaultAzureCredential + endpoint = os.environ["CONTAINERREGISTRY_ENDPOINT"] + client = ContainerRegistryClient(endpoint, DefaultAzureCredential(), audience="my_audience") + client.delete_blob("my_repository", "my_tag_or_digest") + """ + if _is_tag(tag_or_digest): + tag_or_digest = self._get_digest_from_tag(repository, tag_or_digest) + + self._client.container_registry_blob.delete_blob(repository, tag_or_digest, **kwargs) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/__init__.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/__init__.py index 8ef23f2d9eac..2fe2f31e947b 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/__init__.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/__init__.py @@ -1,13 +1,18 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.7.4, generator: @autorest/python@5.12.4) +# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.1.3, generator: {generator}) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from ._container_registry import ContainerRegistry + +try: + from ._patch import __all__ as _patch_all + from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import +except ImportError: + _patch_all = [] +from ._patch import patch_sdk as _patch_sdk __all__ = ['ContainerRegistry'] +__all__.extend([p for p in _patch_all if p not in __all__]) -# `._patch.py` is used for handwritten extensions to the generated code -# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md -from ._patch import patch_sdk -patch_sdk() +_patch_sdk() diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/_configuration.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/_configuration.py index 74918e8be76c..e1a50aad36c1 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/_configuration.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/_configuration.py @@ -1,6 +1,6 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.7.4, generator: @autorest/python@5.12.4) +# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.1.3, generator: {generator}) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -15,7 +15,7 @@ VERSION = "unknown" -class ContainerRegistryConfiguration(Configuration): +class ContainerRegistryConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for ContainerRegistry. Note that all parameters used to create this instance are saved as instance @@ -23,7 +23,8 @@ class ContainerRegistryConfiguration(Configuration): :param url: Registry login URL. :type url: str - :keyword api_version: Api Version. The default value is "2021-07-01". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. Default value is "2021-07-01". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/_container_registry.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/_container_registry.py index 29ce8e7e887d..52b987703f9b 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/_container_registry.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/_container_registry.py @@ -1,15 +1,16 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.7.4, generator: @autorest/python@5.12.4) +# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.1.3, generator: {generator}) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from copy import deepcopy from typing import TYPE_CHECKING -from azure.core import PipelineClient from msrest import Deserializer, Serializer +from azure.core import PipelineClient + from . import models from ._configuration import ContainerRegistryConfiguration from .operations import AuthenticationOperations, ContainerRegistryBlobOperations, ContainerRegistryOperations @@ -31,7 +32,7 @@ class ContainerRegistry(object): :vartype authentication: container_registry.operations.AuthenticationOperations :param url: Registry login URL. :type url: str - :keyword api_version: Api Version. The default value is "2021-07-01". Note that overriding this + :keyword api_version: Api Version. Default value is "2021-07-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ @@ -50,9 +51,15 @@ def __init__( self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) self._serialize.client_side_validation = False - self.container_registry = ContainerRegistryOperations(self._client, self._config, self._serialize, self._deserialize) - self.container_registry_blob = ContainerRegistryBlobOperations(self._client, self._config, self._serialize, self._deserialize) - self.authentication = AuthenticationOperations(self._client, self._config, self._serialize, self._deserialize) + self.container_registry = ContainerRegistryOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.container_registry_blob = ContainerRegistryBlobOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.authentication = AuthenticationOperations( + self._client, self._config, self._serialize, self._deserialize + ) def _send_request( diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/_vendor.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/_vendor.py index f294c2aae4e1..5c6e1d9f50d9 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/_vendor.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/_vendor.py @@ -1,5 +1,5 @@ # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.7.4, generator: @autorest/python@5.12.4) +# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.1.3, generator: {generator}) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/__init__.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/__init__.py index 8ef23f2d9eac..2fe2f31e947b 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/__init__.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/__init__.py @@ -1,13 +1,18 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.7.4, generator: @autorest/python@5.12.4) +# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.1.3, generator: {generator}) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from ._container_registry import ContainerRegistry + +try: + from ._patch import __all__ as _patch_all + from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import +except ImportError: + _patch_all = [] +from ._patch import patch_sdk as _patch_sdk __all__ = ['ContainerRegistry'] +__all__.extend([p for p in _patch_all if p not in __all__]) -# `._patch.py` is used for handwritten extensions to the generated code -# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md -from ._patch import patch_sdk -patch_sdk() +_patch_sdk() diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/_configuration.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/_configuration.py index a8de260d01d6..5b63ebd5b4c2 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/_configuration.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/_configuration.py @@ -1,6 +1,6 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.7.4, generator: @autorest/python@5.12.4) +# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.1.3, generator: {generator}) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -11,7 +11,7 @@ VERSION = "unknown" -class ContainerRegistryConfiguration(Configuration): +class ContainerRegistryConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for ContainerRegistry. Note that all parameters used to create this instance are saved as instance @@ -19,7 +19,8 @@ class ContainerRegistryConfiguration(Configuration): :param url: Registry login URL. :type url: str - :keyword api_version: Api Version. The default value is "2021-07-01". Note that overriding this default value may result in unsupported behavior. + :keyword api_version: Api Version. Default value is "2021-07-01". Note that overriding this + default value may result in unsupported behavior. :paramtype api_version: str """ diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/_container_registry.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/_container_registry.py index 42bdc954fdfb..551bcef7a441 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/_container_registry.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/_container_registry.py @@ -1,15 +1,16 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.7.4, generator: @autorest/python@5.12.4) +# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.1.3, generator: {generator}) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from copy import deepcopy from typing import Any, Awaitable +from msrest import Deserializer, Serializer + from azure.core import AsyncPipelineClient from azure.core.rest import AsyncHttpResponse, HttpRequest -from msrest import Deserializer, Serializer from .. import models from ._configuration import ContainerRegistryConfiguration @@ -27,7 +28,7 @@ class ContainerRegistry: :vartype authentication: container_registry.aio.operations.AuthenticationOperations :param url: Registry login URL. :type url: str - :keyword api_version: Api Version. The default value is "2021-07-01". Note that overriding this + :keyword api_version: Api Version. Default value is "2021-07-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ @@ -45,9 +46,15 @@ def __init__( self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) self._serialize.client_side_validation = False - self.container_registry = ContainerRegistryOperations(self._client, self._config, self._serialize, self._deserialize) - self.container_registry_blob = ContainerRegistryBlobOperations(self._client, self._config, self._serialize, self._deserialize) - self.authentication = AuthenticationOperations(self._client, self._config, self._serialize, self._deserialize) + self.container_registry = ContainerRegistryOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.container_registry_blob = ContainerRegistryBlobOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.authentication = AuthenticationOperations( + self._client, self._config, self._serialize, self._deserialize + ) def _send_request( diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/__init__.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/__init__.py index 12151dd8616a..bbce3721e2af 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/__init__.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/__init__.py @@ -1,6 +1,6 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.7.4, generator: @autorest/python@5.12.4) +# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.1.3, generator: {generator}) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -8,8 +8,13 @@ from ._container_registry_blob_operations import ContainerRegistryBlobOperations from ._authentication_operations import AuthenticationOperations +from ._patch import __all__ as _patch_all +from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import +from ._patch import patch_sdk as _patch_sdk __all__ = [ 'ContainerRegistryOperations', 'ContainerRegistryBlobOperations', 'AuthenticationOperations', ] +__all__.extend([p for p in _patch_all if p not in __all__]) +_patch_sdk() \ No newline at end of file diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_authentication_operations.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_authentication_operations.py index 8d2f6e6672ea..63313bccce9b 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_authentication_operations.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_authentication_operations.py @@ -1,17 +1,17 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.7.4, generator: @autorest/python@5.12.4) +# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.1.3, generator: {generator}) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, Optional, TypeVar, Union from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import AsyncHttpResponse from azure.core.rest import HttpRequest from azure.core.tracing.decorator_async import distributed_trace_async +from azure.core.utils import case_insensitive_dict from ... import models as _models from ..._vendor import _convert_request @@ -20,26 +20,24 @@ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] class AuthenticationOperations: - """AuthenticationOperations 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. + """ + .. warning:: + **DO NOT** instantiate this class directly. - :ivar models: Alias to model classes used in this operation group. - :type models: ~container_registry.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. + Instead, you should access the following operations through + :class:`~container_registry.aio.ContainerRegistry`'s + :attr:`authentication` attribute. """ models = _models - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + @distributed_trace_async async def exchange_aad_access_token_for_acr_refresh_token( @@ -50,7 +48,7 @@ async def exchange_aad_access_token_for_acr_refresh_token( refresh_token: Optional[str] = None, access_token: Optional[str] = None, **kwargs: Any - ) -> "_models.AcrRefreshToken": + ) -> _models.AcrRefreshToken: """Exchange AAD tokens for an ACR refresh Token. :param grant_type: Can take a value of access_token_refresh_token, or access_token, or @@ -58,27 +56,30 @@ async def exchange_aad_access_token_for_acr_refresh_token( :type grant_type: str or ~container_registry.models.PostContentSchemaGrantType :param service: Indicates the name of your Azure container registry. :type service: str - :param tenant: AAD tenant associated to the AAD credentials. + :param tenant: AAD tenant associated to the AAD credentials. Default value is None. :type tenant: str :param refresh_token: AAD refresh token, mandatory when grant_type is - access_token_refresh_token or refresh_token. + access_token_refresh_token or refresh_token. Default value is None. :type refresh_token: str :param access_token: AAD access token, mandatory when grant_type is access_token_refresh_token - or access_token. + or access_token. Default value is None. :type access_token: str :keyword callable cls: A custom type or function that will be passed the direct response :return: AcrRefreshToken, or the result of cls(response) :rtype: ~container_registry.models.AcrRefreshToken :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.AcrRefreshToken"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version = kwargs.pop('api_version', "2021-07-01") # type: str - content_type = kwargs.pop('content_type', "application/x-www-form-urlencoded") # type: Optional[str] + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/x-www-form-urlencoded")) # type: Optional[str] + cls = kwargs.pop('cls', None) # type: ClsType[_models.AcrRefreshToken] # Construct form data _data = { @@ -94,14 +95,20 @@ async def exchange_aad_access_token_for_acr_refresh_token( content_type=content_type, data=_data, template_url=self.exchange_aad_access_token_for_acr_refresh_token.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -116,7 +123,7 @@ async def exchange_aad_access_token_for_acr_refresh_token( return deserialized - exchange_aad_access_token_for_acr_refresh_token.metadata = {'url': '/oauth2/exchange'} # type: ignore + exchange_aad_access_token_for_acr_refresh_token.metadata = {'url': "/oauth2/exchange"} # type: ignore @distributed_trace_async @@ -127,7 +134,7 @@ async def exchange_acr_refresh_token_for_acr_access_token( refresh_token: str, grant_type: Union[str, "_models.TokenGrantType"] = "refresh_token", **kwargs: Any - ) -> "_models.AcrAccessToken": + ) -> _models.AcrAccessToken: """Exchange ACR Refresh token for an ACR Access Token. :param service: Indicates the name of your Azure container registry. @@ -138,21 +145,25 @@ async def exchange_acr_refresh_token_for_acr_access_token( :type scope: str :param refresh_token: Must be a valid ACR refresh token. :type refresh_token: str - :param grant_type: Grant type is expected to be refresh_token. + :param grant_type: Grant type is expected to be refresh_token. Default value is + "refresh_token". :type grant_type: str or ~container_registry.models.TokenGrantType :keyword callable cls: A custom type or function that will be passed the direct response :return: AcrAccessToken, or the result of cls(response) :rtype: ~container_registry.models.AcrAccessToken :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.AcrAccessToken"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version = kwargs.pop('api_version', "2021-07-01") # type: str - content_type = kwargs.pop('content_type', "application/x-www-form-urlencoded") # type: Optional[str] + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/x-www-form-urlencoded")) # type: Optional[str] + cls = kwargs.pop('cls', None) # type: ClsType[_models.AcrAccessToken] # Construct form data _data = { @@ -167,14 +178,20 @@ async def exchange_acr_refresh_token_for_acr_access_token( content_type=content_type, data=_data, template_url=self.exchange_acr_refresh_token_for_acr_access_token.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -189,5 +206,5 @@ async def exchange_acr_refresh_token_for_acr_access_token( return deserialized - exchange_acr_refresh_token_for_acr_access_token.metadata = {'url': '/oauth2/token'} # type: ignore + exchange_acr_refresh_token_for_acr_access_token.metadata = {'url': "/oauth2/token"} # type: ignore diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_container_registry_blob_operations.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_container_registry_blob_operations.py index 7084e765fd46..4c9623d53db2 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_container_registry_blob_operations.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_container_registry_blob_operations.py @@ -1,17 +1,17 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.7.4, generator: @autorest/python@5.12.4) +# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.1.3, generator: {generator}) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, IO, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, IO, Optional, TypeVar from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import AsyncHttpResponse from azure.core.rest import HttpRequest from azure.core.tracing.decorator_async import distributed_trace_async +from azure.core.utils import case_insensitive_dict from ... import models as _models from ..._vendor import _convert_request @@ -20,26 +20,24 @@ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] class ContainerRegistryBlobOperations: - """ContainerRegistryBlobOperations 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. + """ + .. warning:: + **DO NOT** instantiate this class directly. - :ivar models: Alias to model classes used in this operation group. - :type models: ~container_registry.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. + Instead, you should access the following operations through + :class:`~container_registry.aio.ContainerRegistry`'s + :attr:`container_registry_blob` attribute. """ models = _models - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + @distributed_trace_async async def get_blob( @@ -59,25 +57,35 @@ async def get_blob( :rtype: IO or None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[Optional[IO]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop('cls', None) # type: ClsType[Optional[IO]] request = build_get_blob_request( name=name, digest=digest, template_url=self.get_blob.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=True, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=True, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -101,11 +109,11 @@ async def get_blob( return deserialized - get_blob.metadata = {'url': '/v2/{name}/blobs/{digest}'} # type: ignore + get_blob.metadata = {'url': "/v2/{name}/blobs/{digest}"} # type: ignore @distributed_trace_async - async def check_blob_exists( + async def check_blob_exists( # pylint: disable=inconsistent-return-statements self, name: str, digest: str, @@ -122,25 +130,35 @@ async def check_blob_exists( :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop('cls', None) # type: ClsType[None] request = build_check_blob_exists_request( name=name, digest=digest, template_url=self.check_blob_exists.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -161,7 +179,7 @@ async def check_blob_exists( if cls: return cls(pipeline_response, None, response_headers) - check_blob_exists.metadata = {'url': '/v2/{name}/blobs/{digest}'} # type: ignore + check_blob_exists.metadata = {'url': "/v2/{name}/blobs/{digest}"} # type: ignore @distributed_trace_async @@ -182,25 +200,35 @@ async def delete_blob( :rtype: IO :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[IO] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop('cls', None) # type: ClsType[IO] request = build_delete_blob_request( name=name, digest=digest, template_url=self.delete_blob.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=True, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=True, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [202]: @@ -217,11 +245,11 @@ async def delete_blob( return deserialized - delete_blob.metadata = {'url': '/v2/{name}/blobs/{digest}'} # type: ignore + delete_blob.metadata = {'url': "/v2/{name}/blobs/{digest}"} # type: ignore @distributed_trace_async - async def mount_blob( + async def mount_blob( # pylint: disable=inconsistent-return-statements self, name: str, from_parameter: str, @@ -241,11 +269,15 @@ async def mount_blob( :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop('cls', None) # type: ClsType[None] request = build_mount_blob_request( @@ -253,14 +285,20 @@ async def mount_blob( from_parameter=from_parameter, mount=mount, template_url=self.mount_blob.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [201]: @@ -277,44 +315,54 @@ async def mount_blob( if cls: return cls(pipeline_response, None, response_headers) - mount_blob.metadata = {'url': '/v2/{name}/blobs/uploads/'} # type: ignore + mount_blob.metadata = {'url': "/v2/{name}/blobs/uploads/"} # type: ignore @distributed_trace_async - async def get_upload_status( + async def get_upload_status( # pylint: disable=inconsistent-return-statements self, - location: str, + next_link: str, **kwargs: Any ) -> None: """Retrieve status of upload identified by uuid. The primary purpose of this endpoint is to resolve the current status of a resumable upload. - :param location: Link acquired from upload start or previous chunk. Note, do not include + :param next_link: Link acquired from upload start or previous chunk. Note, do not include initial / (must do substring(1) ). - :type location: str + :type next_link: str :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop('cls', None) # type: ClsType[None] request = build_get_upload_status_request( - location=location, + next_link=next_link, template_url=self.get_upload_status.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [204]: @@ -330,21 +378,21 @@ async def get_upload_status( if cls: return cls(pipeline_response, None, response_headers) - get_upload_status.metadata = {'url': '/{nextBlobUuidLink}'} # type: ignore + get_upload_status.metadata = {'url': "/{nextBlobUuidLink}"} # type: ignore @distributed_trace_async - async def upload_chunk( + async def upload_chunk( # pylint: disable=inconsistent-return-statements self, - location: str, + next_link: str, value: IO, **kwargs: Any ) -> None: """Upload a stream of data without completing the upload. - :param location: Link acquired from upload start or previous chunk. Note, do not include + :param next_link: Link acquired from upload start or previous chunk. Note, do not include initial / (must do substring(1) ). - :type location: str + :type next_link: str :param value: Raw data of blob. :type value: IO :keyword callable cls: A custom type or function that will be passed the direct response @@ -352,29 +400,38 @@ async def upload_chunk( :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} - content_type = kwargs.pop('content_type', "application/octet-stream") # type: Optional[str] + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/octet-stream")) # type: Optional[str] + cls = kwargs.pop('cls', None) # type: ClsType[None] _content = value request = build_upload_chunk_request( - location=location, + next_link=next_link, content_type=content_type, content=_content, template_url=self.upload_chunk.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [202]: @@ -391,14 +448,14 @@ async def upload_chunk( if cls: return cls(pipeline_response, None, response_headers) - upload_chunk.metadata = {'url': '/{nextBlobUuidLink}'} # type: ignore + upload_chunk.metadata = {'url': "/{nextBlobUuidLink}"} # type: ignore @distributed_trace_async - async def complete_upload( + async def complete_upload( # pylint: disable=inconsistent-return-statements self, digest: str, - location: str, + next_link: str, value: Optional[IO] = None, **kwargs: Any ) -> None: @@ -407,40 +464,49 @@ async def complete_upload( :param digest: Digest of a BLOB. :type digest: str - :param location: Link acquired from upload start or previous chunk. Note, do not include + :param next_link: Link acquired from upload start or previous chunk. Note, do not include initial / (must do substring(1) ). - :type location: str - :param value: Optional raw data of blob. + :type next_link: str + :param value: Optional raw data of blob. Default value is None. :type value: IO :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} - content_type = kwargs.pop('content_type', "application/octet-stream") # type: Optional[str] + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/octet-stream")) # type: Optional[str] + cls = kwargs.pop('cls', None) # type: ClsType[None] _content = value request = build_complete_upload_request( - location=location, + next_link=next_link, content_type=content_type, digest=digest, content=_content, template_url=self.complete_upload.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [201]: @@ -457,44 +523,54 @@ async def complete_upload( if cls: return cls(pipeline_response, None, response_headers) - complete_upload.metadata = {'url': '/{nextBlobUuidLink}'} # type: ignore + complete_upload.metadata = {'url': "/{nextBlobUuidLink}"} # type: ignore @distributed_trace_async - async def cancel_upload( + async def cancel_upload( # pylint: disable=inconsistent-return-statements self, - location: str, + next_link: str, **kwargs: Any ) -> None: """Cancel outstanding upload processes, releasing associated resources. If this is not called, the unfinished uploads will eventually timeout. - :param location: Link acquired from upload start or previous chunk. Note, do not include + :param next_link: Link acquired from upload start or previous chunk. Note, do not include initial / (must do substring(1) ). - :type location: str + :type next_link: str :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop('cls', None) # type: ClsType[None] request = build_cancel_upload_request( - location=location, + next_link=next_link, template_url=self.cancel_upload.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [204]: @@ -505,11 +581,11 @@ async def cancel_upload( if cls: return cls(pipeline_response, None, {}) - cancel_upload.metadata = {'url': '/{nextBlobUuidLink}'} # type: ignore + cancel_upload.metadata = {'url': "/{nextBlobUuidLink}"} # type: ignore @distributed_trace_async - async def start_upload( + async def start_upload( # pylint: disable=inconsistent-return-statements self, name: str, **kwargs: Any @@ -523,24 +599,34 @@ async def start_upload( :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop('cls', None) # type: ClsType[None] request = build_start_upload_request( name=name, template_url=self.start_upload.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [202]: @@ -557,7 +643,7 @@ async def start_upload( if cls: return cls(pipeline_response, None, response_headers) - start_upload.metadata = {'url': '/v2/{name}/blobs/uploads/'} # type: ignore + start_upload.metadata = {'url': "/v2/{name}/blobs/uploads/"} # type: ignore @distributed_trace_async @@ -585,11 +671,15 @@ async def get_chunk( :rtype: IO :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[IO] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop('cls', None) # type: ClsType[IO] request = build_get_chunk_request( @@ -597,14 +687,20 @@ async def get_chunk( digest=digest, range=range, template_url=self.get_chunk.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=True, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=True, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [206]: @@ -622,11 +718,11 @@ async def get_chunk( return deserialized - get_chunk.metadata = {'url': '/v2/{name}/blobs/{digest}'} # type: ignore + get_chunk.metadata = {'url': "/v2/{name}/blobs/{digest}"} # type: ignore @distributed_trace_async - async def check_chunk_exists( + async def check_chunk_exists( # pylint: disable=inconsistent-return-statements self, name: str, digest: str, @@ -647,11 +743,15 @@ async def check_chunk_exists( :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop('cls', None) # type: ClsType[None] request = build_check_chunk_exists_request( @@ -659,14 +759,20 @@ async def check_chunk_exists( digest=digest, range=range, template_url=self.check_chunk_exists.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -682,5 +788,5 @@ async def check_chunk_exists( if cls: return cls(pipeline_response, None, response_headers) - check_chunk_exists.metadata = {'url': '/v2/{name}/blobs/{digest}'} # type: ignore + check_chunk_exists.metadata = {'url': "/v2/{name}/blobs/{digest}"} # type: ignore diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_container_registry_operations.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_container_registry_operations.py index 6ce439813481..8655b9548316 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_container_registry_operations.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_container_registry_operations.py @@ -1,11 +1,10 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.7.4, generator: @autorest/python@5.12.4) +# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.1.3, generator: {generator}) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -14,6 +13,7 @@ from azure.core.rest import HttpRequest from azure.core.tracing.decorator import distributed_trace from azure.core.tracing.decorator_async import distributed_trace_async +from azure.core.utils import case_insensitive_dict from ... import models as _models from ..._vendor import _convert_request @@ -22,29 +22,27 @@ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] class ContainerRegistryOperations: - """ContainerRegistryOperations 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. + """ + .. warning:: + **DO NOT** instantiate this class directly. - :ivar models: Alias to model classes used in this operation group. - :type models: ~container_registry.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. + Instead, you should access the following operations through + :class:`~container_registry.aio.ContainerRegistry`'s + :attr:`container_registry` attribute. """ models = _models - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + @distributed_trace_async - async def check_docker_v2_support( + async def check_docker_v2_support( # pylint: disable=inconsistent-return-statements self, **kwargs: Any ) -> None: @@ -55,23 +53,33 @@ async def check_docker_v2_support( :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop('cls', None) # type: ClsType[None] request = build_check_docker_v2_support_request( template_url=self.check_docker_v2_support.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -82,7 +90,7 @@ async def check_docker_v2_support( if cls: return cls(pipeline_response, None, {}) - check_docker_v2_support.metadata = {'url': '/v2/'} # type: ignore + check_docker_v2_support.metadata = {'url': "/v2/"} # type: ignore @distributed_trace_async @@ -90,9 +98,8 @@ async def get_manifest( self, name: str, reference: str, - accept: Optional[str] = None, **kwargs: Any - ) -> "_models.ManifestWrapper": + ) -> _models.ManifestWrapper: """Get the manifest identified by ``name`` and ``reference`` where ``reference`` can be a tag or digest. @@ -100,34 +107,40 @@ async def get_manifest( :type name: str :param reference: A tag or a digest, pointing to a specific image. :type reference: str - :param accept: Accept header string delimited by comma. For example, - application/vnd.docker.distribution.manifest.v2+json. - :type accept: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ManifestWrapper, or the result of cls(response) :rtype: ~container_registry.models.ManifestWrapper :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ManifestWrapper"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop('cls', None) # type: ClsType[_models.ManifestWrapper] request = build_get_manifest_request( name=name, reference=reference, - accept=accept, template_url=self.get_manifest.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -142,7 +155,7 @@ async def get_manifest( return deserialized - get_manifest.metadata = {'url': '/v2/{name}/manifests/{reference}'} # type: ignore + get_manifest.metadata = {'url': "/v2/{name}/manifests/{reference}"} # type: ignore @distributed_trace_async @@ -150,7 +163,7 @@ async def create_manifest( self, name: str, reference: str, - payload: "_models.Manifest", + payload: IO, **kwargs: Any ) -> Any: """Put the manifest identified by ``name`` and ``reference`` where ``reference`` can be a tag or @@ -161,36 +174,45 @@ async def create_manifest( :param reference: A tag or a digest, pointing to a specific image. :type reference: str :param payload: Manifest body, can take v1 or v2 values depending on accept header. - :type payload: ~container_registry.models.Manifest + :type payload: IO :keyword callable cls: A custom type or function that will be passed the direct response :return: any, or the result of cls(response) :rtype: any :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} - content_type = kwargs.pop('content_type', "application/vnd.docker.distribution.manifest.v2+json") # type: Optional[str] + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/vnd.docker.distribution.manifest.v2+json")) # type: Optional[str] + cls = kwargs.pop('cls', None) # type: ClsType[Any] - _json = self._serialize.body(payload, 'Manifest') + _content = payload request = build_create_manifest_request( name=name, reference=reference, content_type=content_type, - json=_json, + content=_content, template_url=self.create_manifest.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [201]: @@ -210,11 +232,11 @@ async def create_manifest( return deserialized - create_manifest.metadata = {'url': '/v2/{name}/manifests/{reference}'} # type: ignore + create_manifest.metadata = {'url': "/v2/{name}/manifests/{reference}"} # type: ignore @distributed_trace_async - async def delete_manifest( + async def delete_manifest( # pylint: disable=inconsistent-return-statements self, name: str, reference: str, @@ -232,25 +254,35 @@ async def delete_manifest( :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop('cls', None) # type: ClsType[None] request = build_delete_manifest_request( name=name, reference=reference, template_url=self.delete_manifest.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [202, 404]: @@ -261,7 +293,7 @@ async def delete_manifest( if cls: return cls(pipeline_response, None, {}) - delete_manifest.metadata = {'url': '/v2/{name}/manifests/{reference}'} # type: ignore + delete_manifest.metadata = {'url': "/v2/{name}/manifests/{reference}"} # type: ignore @distributed_trace @@ -270,26 +302,29 @@ def get_repositories( last: Optional[str] = None, n: Optional[int] = None, **kwargs: Any - ) -> AsyncIterable["_models.Repositories"]: + ) -> AsyncIterable[_models.Repositories]: """List repositories. :param last: Query parameter for the last item in previous query. Result set will include - values lexically after last. + values lexically after last. Default value is None. :type last: str - :param n: query parameter for max number of items. + :param n: query parameter for max number of items. Default value is None. :type n: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either Repositories or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~container_registry.models.Repositories] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2021-07-01") # type: str + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.Repositories] - cls = kwargs.pop('cls', None) # type: ClsType["_models.Repositories"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) def prepare_request(next_link=None): if not next_link: @@ -298,12 +333,14 @@ def prepare_request(next_link=None): last=last, n=n, template_url=self.get_repositories.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore else: @@ -312,12 +349,14 @@ def prepare_request(next_link=None): last=last, n=n, template_url=next_link, + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), @@ -335,7 +374,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -349,14 +392,14 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - get_repositories.metadata = {'url': '/acr/v1/_catalog'} # type: ignore + get_repositories.metadata = {'url': "/acr/v1/_catalog"} # type: ignore @distributed_trace_async async def get_properties( self, name: str, **kwargs: Any - ) -> "_models.ContainerRepositoryProperties": + ) -> _models.ContainerRepositoryProperties: """Get repository attributes. :param name: Name of the image (including the namespace). @@ -366,27 +409,36 @@ async def get_properties( :rtype: ~container_registry.models.ContainerRepositoryProperties :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ContainerRepositoryProperties"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) - api_version = kwargs.pop('api_version', "2021-07-01") # type: str + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.ContainerRepositoryProperties] request = build_get_properties_request( name=name, api_version=api_version, template_url=self.get_properties.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -401,11 +453,11 @@ async def get_properties( return deserialized - get_properties.metadata = {'url': '/acr/v1/{name}'} # type: ignore + get_properties.metadata = {'url': "/acr/v1/{name}"} # type: ignore @distributed_trace_async - async def delete_repository( + async def delete_repository( # pylint: disable=inconsistent-return-statements self, name: str, **kwargs: Any @@ -419,27 +471,36 @@ async def delete_repository( :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) - api_version = kwargs.pop('api_version', "2021-07-01") # type: str + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[None] request = build_delete_repository_request( name=name, api_version=api_version, template_url=self.delete_repository.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [202, 404]: @@ -450,35 +511,38 @@ async def delete_repository( if cls: return cls(pipeline_response, None, {}) - delete_repository.metadata = {'url': '/acr/v1/{name}'} # type: ignore + delete_repository.metadata = {'url': "/acr/v1/{name}"} # type: ignore @distributed_trace_async async def update_properties( self, name: str, - value: Optional["_models.RepositoryWriteableProperties"] = None, + value: Optional[_models.RepositoryWriteableProperties] = None, **kwargs: Any - ) -> "_models.ContainerRepositoryProperties": + ) -> _models.ContainerRepositoryProperties: """Update the attribute identified by ``name`` where ``reference`` is the name of the repository. :param name: Name of the image (including the namespace). :type name: str - :param value: Repository attribute value. + :param value: Repository attribute value. Default value is None. :type value: ~container_registry.models.RepositoryWriteableProperties :keyword callable cls: A custom type or function that will be passed the direct response :return: ContainerRepositoryProperties, or the result of cls(response) :rtype: ~container_registry.models.ContainerRepositoryProperties :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ContainerRepositoryProperties"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) - api_version = kwargs.pop('api_version', "2021-07-01") # type: str - content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/json")) # type: Optional[str] + cls = kwargs.pop('cls', None) # type: ClsType[_models.ContainerRepositoryProperties] if value is not None: _json = self._serialize.body(value, 'RepositoryWriteableProperties') @@ -491,14 +555,20 @@ async def update_properties( content_type=content_type, json=_json, template_url=self.update_properties.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -513,7 +583,7 @@ async def update_properties( return deserialized - update_properties.metadata = {'url': '/acr/v1/{name}'} # type: ignore + update_properties.metadata = {'url': "/acr/v1/{name}"} # type: ignore @distributed_trace @@ -525,32 +595,35 @@ def get_tags( orderby: Optional[str] = None, digest: Optional[str] = None, **kwargs: Any - ) -> AsyncIterable["_models.TagList"]: + ) -> AsyncIterable[_models.TagList]: """List tags of a repository. :param name: Name of the image (including the namespace). :type name: str :param last: Query parameter for the last item in previous query. Result set will include - values lexically after last. + values lexically after last. Default value is None. :type last: str - :param n: query parameter for max number of items. + :param n: query parameter for max number of items. Default value is None. :type n: int - :param orderby: orderby query parameter. + :param orderby: orderby query parameter. Default value is None. :type orderby: str - :param digest: filter by digest. + :param digest: filter by digest. Default value is None. :type digest: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either TagList or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~container_registry.models.TagList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2021-07-01") # type: str + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.TagList] - cls = kwargs.pop('cls', None) # type: ClsType["_models.TagList"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) def prepare_request(next_link=None): if not next_link: @@ -562,12 +635,14 @@ def prepare_request(next_link=None): orderby=orderby, digest=digest, template_url=self.get_tags.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore else: @@ -579,12 +654,14 @@ def prepare_request(next_link=None): orderby=orderby, digest=digest, template_url=next_link, + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), @@ -602,7 +679,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -616,7 +697,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - get_tags.metadata = {'url': '/acr/v1/{name}/_tags'} # type: ignore + get_tags.metadata = {'url': "/acr/v1/{name}/_tags"} # type: ignore @distributed_trace_async async def get_tag_properties( @@ -624,7 +705,7 @@ async def get_tag_properties( name: str, reference: str, **kwargs: Any - ) -> "_models.ArtifactTagProperties": + ) -> _models.ArtifactTagProperties: """Get tag attributes by tag. :param name: Name of the image (including the namespace). @@ -636,13 +717,16 @@ async def get_tag_properties( :rtype: ~container_registry.models.ArtifactTagProperties :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactTagProperties"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) - api_version = kwargs.pop('api_version', "2021-07-01") # type: str + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.ArtifactTagProperties] request = build_get_tag_properties_request( @@ -650,14 +734,20 @@ async def get_tag_properties( reference=reference, api_version=api_version, template_url=self.get_tag_properties.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -672,7 +762,7 @@ async def get_tag_properties( return deserialized - get_tag_properties.metadata = {'url': '/acr/v1/{name}/_tags/{reference}'} # type: ignore + get_tag_properties.metadata = {'url': "/acr/v1/{name}/_tags/{reference}"} # type: ignore @distributed_trace_async @@ -680,30 +770,33 @@ async def update_tag_attributes( self, name: str, reference: str, - value: Optional["_models.TagWriteableProperties"] = None, + value: Optional[_models.TagWriteableProperties] = None, **kwargs: Any - ) -> "_models.ArtifactTagProperties": + ) -> _models.ArtifactTagProperties: """Update tag attributes. :param name: Name of the image (including the namespace). :type name: str :param reference: Tag name. :type reference: str - :param value: Tag attribute value. + :param value: Tag attribute value. Default value is None. :type value: ~container_registry.models.TagWriteableProperties :keyword callable cls: A custom type or function that will be passed the direct response :return: ArtifactTagProperties, or the result of cls(response) :rtype: ~container_registry.models.ArtifactTagProperties :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactTagProperties"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) - api_version = kwargs.pop('api_version', "2021-07-01") # type: str - content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/json")) # type: Optional[str] + cls = kwargs.pop('cls', None) # type: ClsType[_models.ArtifactTagProperties] if value is not None: _json = self._serialize.body(value, 'TagWriteableProperties') @@ -717,14 +810,20 @@ async def update_tag_attributes( content_type=content_type, json=_json, template_url=self.update_tag_attributes.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -739,11 +838,11 @@ async def update_tag_attributes( return deserialized - update_tag_attributes.metadata = {'url': '/acr/v1/{name}/_tags/{reference}'} # type: ignore + update_tag_attributes.metadata = {'url': "/acr/v1/{name}/_tags/{reference}"} # type: ignore @distributed_trace_async - async def delete_tag( + async def delete_tag( # pylint: disable=inconsistent-return-statements self, name: str, reference: str, @@ -760,13 +859,16 @@ async def delete_tag( :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) - api_version = kwargs.pop('api_version', "2021-07-01") # type: str + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[None] request = build_delete_tag_request( @@ -774,14 +876,20 @@ async def delete_tag( reference=reference, api_version=api_version, template_url=self.delete_tag.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [202, 404]: @@ -792,7 +900,7 @@ async def delete_tag( if cls: return cls(pipeline_response, None, {}) - delete_tag.metadata = {'url': '/acr/v1/{name}/_tags/{reference}'} # type: ignore + delete_tag.metadata = {'url': "/acr/v1/{name}/_tags/{reference}"} # type: ignore @distributed_trace @@ -803,30 +911,33 @@ def get_manifests( n: Optional[int] = None, orderby: Optional[str] = None, **kwargs: Any - ) -> AsyncIterable["_models.AcrManifests"]: + ) -> AsyncIterable[_models.AcrManifests]: """List manifests of a repository. :param name: Name of the image (including the namespace). :type name: str :param last: Query parameter for the last item in previous query. Result set will include - values lexically after last. + values lexically after last. Default value is None. :type last: str - :param n: query parameter for max number of items. + :param n: query parameter for max number of items. Default value is None. :type n: int - :param orderby: orderby query parameter. + :param orderby: orderby query parameter. Default value is None. :type orderby: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either AcrManifests or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~container_registry.models.AcrManifests] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2021-07-01") # type: str + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.AcrManifests] - cls = kwargs.pop('cls', None) # type: ClsType["_models.AcrManifests"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) def prepare_request(next_link=None): if not next_link: @@ -837,12 +948,14 @@ def prepare_request(next_link=None): n=n, orderby=orderby, template_url=self.get_manifests.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore else: @@ -853,12 +966,14 @@ def prepare_request(next_link=None): n=n, orderby=orderby, template_url=next_link, + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), @@ -876,7 +991,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -890,7 +1009,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - get_manifests.metadata = {'url': '/acr/v1/{name}/_manifests'} # type: ignore + get_manifests.metadata = {'url': "/acr/v1/{name}/_manifests"} # type: ignore @distributed_trace_async async def get_manifest_properties( @@ -898,7 +1017,7 @@ async def get_manifest_properties( name: str, digest: str, **kwargs: Any - ) -> "_models.ArtifactManifestProperties": + ) -> _models.ArtifactManifestProperties: """Get manifest attributes. :param name: Name of the image (including the namespace). @@ -910,13 +1029,16 @@ async def get_manifest_properties( :rtype: ~container_registry.models.ArtifactManifestProperties :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactManifestProperties"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version = kwargs.pop('api_version', "2021-07-01") # type: str + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.ArtifactManifestProperties] request = build_get_manifest_properties_request( @@ -924,14 +1046,20 @@ async def get_manifest_properties( digest=digest, api_version=api_version, template_url=self.get_manifest_properties.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -946,7 +1074,7 @@ async def get_manifest_properties( return deserialized - get_manifest_properties.metadata = {'url': '/acr/v1/{name}/_manifests/{digest}'} # type: ignore + get_manifest_properties.metadata = {'url': "/acr/v1/{name}/_manifests/{digest}"} # type: ignore @distributed_trace_async @@ -954,30 +1082,33 @@ async def update_manifest_properties( self, name: str, digest: str, - value: Optional["_models.ManifestWriteableProperties"] = None, + value: Optional[_models.ManifestWriteableProperties] = None, **kwargs: Any - ) -> "_models.ArtifactManifestProperties": + ) -> _models.ArtifactManifestProperties: """Update properties of a manifest. :param name: Name of the image (including the namespace). :type name: str :param digest: Digest of a BLOB. :type digest: str - :param value: Manifest attribute value. + :param value: Manifest attribute value. Default value is None. :type value: ~container_registry.models.ManifestWriteableProperties :keyword callable cls: A custom type or function that will be passed the direct response :return: ArtifactManifestProperties, or the result of cls(response) :rtype: ~container_registry.models.ArtifactManifestProperties :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactManifestProperties"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) - api_version = kwargs.pop('api_version', "2021-07-01") # type: str - content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/json")) # type: Optional[str] + cls = kwargs.pop('cls', None) # type: ClsType[_models.ArtifactManifestProperties] if value is not None: _json = self._serialize.body(value, 'ManifestWriteableProperties') @@ -991,14 +1122,20 @@ async def update_manifest_properties( content_type=content_type, json=_json, template_url=self.update_manifest_properties.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1013,5 +1150,5 @@ async def update_manifest_properties( return deserialized - update_manifest_properties.metadata = {'url': '/acr/v1/{name}/_manifests/{digest}'} # type: ignore + update_manifest_properties.metadata = {'url': "/acr/v1/{name}/_manifests/{digest}"} # type: ignore diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_patch.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_patch.py new file mode 100644 index 000000000000..8a35ddb87c7e --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_patch.py @@ -0,0 +1,23 @@ +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +"""Customize generated code here. + +Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize +""" +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import List + +__all__ = [] # type: List[str] # Add all objects you want publicly available to users at this package level + +def patch_sdk(): + """Do not remove from this file. + + `patch_sdk` is a last resort escape hatch that allows you to do customizations + you can't accomplish using the techniques described in + https://aka.ms/azsdk/python/dpcodegen/python/customize + """ diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/__init__.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/__init__.py index 0fc6a0cb7029..1e0d9df51dc5 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/__init__.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/__init__.py @@ -1,6 +1,6 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.7.4, generator: @autorest/python@5.12.4) +# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.1.3, generator: {generator}) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -91,7 +91,9 @@ PostContentSchemaGrantType, TokenGrantType, ) - +from ._patch import __all__ as _patch_all +from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import +from ._patch import patch_sdk as _patch_sdk __all__ = [ 'AcrAccessToken', 'AcrErrorInfo', @@ -138,3 +140,5 @@ 'PostContentSchemaGrantType', 'TokenGrantType', ] +__all__.extend([p for p in _patch_all if p not in __all__]) +_patch_sdk() \ No newline at end of file diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_container_registry_enums.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_container_registry_enums.py index 2cfcae496bf5..ec2bf579b5cb 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_container_registry_enums.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_container_registry_enums.py @@ -1,15 +1,14 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.7.4, generator: @autorest/python@5.12.4) +# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.1.3, generator: {generator}) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from enum import Enum -from six import with_metaclass from azure.core import CaseInsensitiveEnumMeta -class ArtifactArchitecture(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): +class ArtifactArchitecture(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The artifact platform's architecture. """ @@ -40,7 +39,7 @@ class ArtifactArchitecture(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): #: Wasm. WASM = "wasm" -class ArtifactManifestOrder(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): +class ArtifactManifestOrder(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Sort options for ordering manifests in a collection. """ @@ -51,7 +50,7 @@ class ArtifactManifestOrder(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): #: Order manifest by LastUpdatedOn field, from least recently updated to most recently updated. LAST_UPDATED_ON_ASCENDING = "timeasc" -class ArtifactOperatingSystem(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): +class ArtifactOperatingSystem(str, Enum, metaclass=CaseInsensitiveEnumMeta): AIX = "aix" ANDROID = "android" @@ -68,7 +67,7 @@ class ArtifactOperatingSystem(with_metaclass(CaseInsensitiveEnumMeta, str, Enum) SOLARIS = "solaris" WINDOWS = "windows" -class ArtifactTagOrder(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): +class ArtifactTagOrder(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Sort options for ordering tags in a collection. """ @@ -79,7 +78,7 @@ class ArtifactTagOrder(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): #: Order tags by LastUpdatedOn field, from least recently updated to most recently updated. LAST_UPDATED_ON_ASCENDING = "timeasc" -class PostContentSchemaGrantType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): +class PostContentSchemaGrantType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Can take a value of access_token_refresh_token, or access_token, or refresh_token """ @@ -87,7 +86,7 @@ class PostContentSchemaGrantType(with_metaclass(CaseInsensitiveEnumMeta, str, En ACCESS_TOKEN = "access_token" REFRESH_TOKEN = "refresh_token" -class TokenGrantType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): +class TokenGrantType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Grant type is expected to be refresh_token """ diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models.py index b00cc629fccd..5b9dda9cf8b5 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models.py @@ -1,6 +1,6 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.7.4, generator: @autorest/python@5.12.4) +# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.1.3, generator: {generator}) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -267,10 +267,10 @@ class ArtifactManifestPlatform(msrest.serialization.Model): :ivar digest: Required. Manifest digest. :vartype digest: str - :ivar architecture: CPU architecture. Possible values include: "386", "amd64", "arm", "arm64", - "mips", "mipsle", "mips64", "mips64le", "ppc64", "ppc64le", "riscv64", "s390x", "wasm". + :ivar architecture: CPU architecture. Known values are: "386", "amd64", "arm", "arm64", "mips", + "mipsle", "mips64", "mips64le", "ppc64", "ppc64le", "riscv64", "s390x", "wasm". :vartype architecture: str or ~container_registry.models.ArtifactArchitecture - :ivar operating_system: Operating system. Possible values include: "aix", "android", "darwin", + :ivar operating_system: Operating system. Known values are: "aix", "android", "darwin", "dragonfly", "freebsd", "illumos", "ios", "js", "linux", "netbsd", "openbsd", "plan9", "solaris", "windows". :vartype operating_system: str or ~container_registry.models.ArtifactOperatingSystem @@ -320,10 +320,10 @@ class ArtifactManifestProperties(msrest.serialization.Model): :vartype created_on: ~datetime.datetime :ivar last_updated_on: Required. Last update time. :vartype last_updated_on: ~datetime.datetime - :ivar architecture: CPU architecture. Possible values include: "386", "amd64", "arm", "arm64", - "mips", "mipsle", "mips64", "mips64le", "ppc64", "ppc64le", "riscv64", "s390x", "wasm". + :ivar architecture: CPU architecture. Known values are: "386", "amd64", "arm", "arm64", "mips", + "mipsle", "mips64", "mips64le", "ppc64", "ppc64le", "riscv64", "s390x", "wasm". :vartype architecture: str or ~container_registry.models.ArtifactArchitecture - :ivar operating_system: Operating system. Possible values include: "aix", "android", "darwin", + :ivar operating_system: Operating system. Known values are: "aix", "android", "darwin", "dragonfly", "freebsd", "illumos", "ios", "js", "linux", "netbsd", "openbsd", "plan9", "solaris", "windows". :vartype operating_system: str or ~container_registry.models.ArtifactOperatingSystem @@ -836,10 +836,10 @@ class ManifestAttributesBase(msrest.serialization.Model): :vartype created_on: ~datetime.datetime :ivar last_updated_on: Required. Last update time. :vartype last_updated_on: ~datetime.datetime - :ivar architecture: CPU architecture. Possible values include: "386", "amd64", "arm", "arm64", - "mips", "mipsle", "mips64", "mips64le", "ppc64", "ppc64le", "riscv64", "s390x", "wasm". + :ivar architecture: CPU architecture. Known values are: "386", "amd64", "arm", "arm64", "mips", + "mipsle", "mips64", "mips64le", "ppc64", "ppc64le", "riscv64", "s390x", "wasm". :vartype architecture: str or ~container_registry.models.ArtifactArchitecture - :ivar operating_system: Operating system. Possible values include: "aix", "android", "darwin", + :ivar operating_system: Operating system. Known values are: "aix", "android", "darwin", "dragonfly", "freebsd", "illumos", "ios", "js", "linux", "netbsd", "openbsd", "plan9", "solaris", "windows". :vartype operating_system: str or ~container_registry.models.ArtifactOperatingSystem @@ -1184,24 +1184,24 @@ def __init__( self.annotations = kwargs.get('annotations', None) -class OCIManifest(Manifest): +class OCIManifest(msrest.serialization.Model): """Returns the requested OCI Manifest file. - :ivar schema_version: Schema version. - :vartype schema_version: int :ivar config: V2 image config descriptor. :vartype config: ~container_registry.models.Descriptor :ivar layers: List of V2 image layer information. :vartype layers: list[~container_registry.models.Descriptor] :ivar annotations: Additional information provided through arbitrary metadata. :vartype annotations: ~container_registry.models.Annotations + :ivar schema_version: Schema version. + :vartype schema_version: int """ _attribute_map = { - 'schema_version': {'key': 'schemaVersion', 'type': 'int'}, 'config': {'key': 'config', 'type': 'Descriptor'}, 'layers': {'key': 'layers', 'type': '[Descriptor]'}, 'annotations': {'key': 'annotations', 'type': 'Annotations'}, + 'schema_version': {'key': 'schemaVersion', 'type': 'int'}, } def __init__( @@ -1209,19 +1209,20 @@ def __init__( **kwargs ): """ - :keyword schema_version: Schema version. - :paramtype schema_version: int :keyword config: V2 image config descriptor. :paramtype config: ~container_registry.models.Descriptor :keyword layers: List of V2 image layer information. :paramtype layers: list[~container_registry.models.Descriptor] :keyword annotations: Additional information provided through arbitrary metadata. :paramtype annotations: ~container_registry.models.Annotations + :keyword schema_version: Schema version. + :paramtype schema_version: int """ super(OCIManifest, self).__init__(**kwargs) self.config = kwargs.get('config', None) self.layers = kwargs.get('layers', None) self.annotations = kwargs.get('annotations', None) + self.schema_version = kwargs.get('schema_version', None) class Paths108HwamOauth2ExchangePostRequestbodyContentApplicationXWwwFormUrlencodedSchema(msrest.serialization.Model): @@ -1230,8 +1231,7 @@ class Paths108HwamOauth2ExchangePostRequestbodyContentApplicationXWwwFormUrlenco All required parameters must be populated in order to send to Azure. :ivar grant_type: Required. Can take a value of access_token_refresh_token, or access_token, or - refresh_token. Possible values include: "access_token_refresh_token", "access_token", - "refresh_token". + refresh_token. Known values are: "access_token_refresh_token", "access_token", "refresh_token". :vartype grant_type: str or ~container_registry.models.PostContentSchemaGrantType :ivar service: Required. Indicates the name of your Azure container registry. :vartype service: str @@ -1264,7 +1264,7 @@ def __init__( ): """ :keyword grant_type: Required. Can take a value of access_token_refresh_token, or access_token, - or refresh_token. Possible values include: "access_token_refresh_token", "access_token", + or refresh_token. Known values are: "access_token_refresh_token", "access_token", "refresh_token". :paramtype grant_type: str or ~container_registry.models.PostContentSchemaGrantType :keyword service: Required. Indicates the name of your Azure container registry. @@ -1299,8 +1299,8 @@ class PathsV3R3RxOauth2TokenPostRequestbodyContentApplicationXWwwFormUrlencodedS :vartype scope: str :ivar acr_refresh_token: Required. Must be a valid ACR refresh token. :vartype acr_refresh_token: str - :ivar grant_type: Required. Grant type is expected to be refresh_token. Possible values - include: "refresh_token", "password". + :ivar grant_type: Required. Grant type is expected to be refresh_token. Known values are: + "refresh_token", "password". :vartype grant_type: str or ~container_registry.models.TokenGrantType """ @@ -1331,8 +1331,8 @@ def __init__( :paramtype scope: str :keyword acr_refresh_token: Required. Must be a valid ACR refresh token. :paramtype acr_refresh_token: str - :keyword grant_type: Required. Grant type is expected to be refresh_token. Possible values - include: "refresh_token", "password". + :keyword grant_type: Required. Grant type is expected to be refresh_token. Known values are: + "refresh_token", "password". :paramtype grant_type: str or ~container_registry.models.TokenGrantType """ super(PathsV3R3RxOauth2TokenPostRequestbodyContentApplicationXWwwFormUrlencodedSchema, self).__init__(**kwargs) diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models_py3.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models_py3.py index 07281f128fbd..6e052b9cf35c 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models_py3.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_models_py3.py @@ -1,16 +1,18 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.7.4, generator: @autorest/python@5.12.4) +# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.1.3, generator: {generator}) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- import datetime -from typing import Any, Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union from azure.core.exceptions import HttpResponseError import msrest.serialization -from ._container_registry_enums import * +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + import __init__ as _models class AcrAccessToken(msrest.serialization.Model): @@ -91,7 +93,7 @@ class AcrErrors(msrest.serialization.Model): def __init__( self, *, - errors: Optional[List["AcrErrorInfo"]] = None, + errors: Optional[List["_models.AcrErrorInfo"]] = None, **kwargs ): """ @@ -128,7 +130,7 @@ def __init__( *, registry_login_server: Optional[str] = None, repository: Optional[str] = None, - manifests: Optional[List["ManifestAttributesBase"]] = None, + manifests: Optional[List["_models.ManifestAttributesBase"]] = None, link: Optional[str] = None, **kwargs ): @@ -301,10 +303,10 @@ class ArtifactManifestPlatform(msrest.serialization.Model): :ivar digest: Required. Manifest digest. :vartype digest: str - :ivar architecture: CPU architecture. Possible values include: "386", "amd64", "arm", "arm64", - "mips", "mipsle", "mips64", "mips64le", "ppc64", "ppc64le", "riscv64", "s390x", "wasm". + :ivar architecture: CPU architecture. Known values are: "386", "amd64", "arm", "arm64", "mips", + "mipsle", "mips64", "mips64le", "ppc64", "ppc64le", "riscv64", "s390x", "wasm". :vartype architecture: str or ~container_registry.models.ArtifactArchitecture - :ivar operating_system: Operating system. Possible values include: "aix", "android", "darwin", + :ivar operating_system: Operating system. Known values are: "aix", "android", "darwin", "dragonfly", "freebsd", "illumos", "ios", "js", "linux", "netbsd", "openbsd", "plan9", "solaris", "windows". :vartype operating_system: str or ~container_registry.models.ArtifactOperatingSystem @@ -354,10 +356,10 @@ class ArtifactManifestProperties(msrest.serialization.Model): :vartype created_on: ~datetime.datetime :ivar last_updated_on: Required. Last update time. :vartype last_updated_on: ~datetime.datetime - :ivar architecture: CPU architecture. Possible values include: "386", "amd64", "arm", "arm64", - "mips", "mipsle", "mips64", "mips64le", "ppc64", "ppc64le", "riscv64", "s390x", "wasm". + :ivar architecture: CPU architecture. Known values are: "386", "amd64", "arm", "arm64", "mips", + "mipsle", "mips64", "mips64le", "ppc64", "ppc64le", "riscv64", "s390x", "wasm". :vartype architecture: str or ~container_registry.models.ArtifactArchitecture - :ivar operating_system: Operating system. Possible values include: "aix", "android", "darwin", + :ivar operating_system: Operating system. Known values are: "aix", "android", "darwin", "dragonfly", "freebsd", "illumos", "ios", "js", "linux", "netbsd", "openbsd", "plan9", "solaris", "windows". :vartype operating_system: str or ~container_registry.models.ArtifactOperatingSystem @@ -673,7 +675,7 @@ def __init__( size: Optional[int] = None, digest: Optional[str] = None, urls: Optional[List[str]] = None, - annotations: Optional["Annotations"] = None, + annotations: Optional["_models.Annotations"] = None, **kwargs ): """ @@ -766,7 +768,7 @@ class ImageSignature(msrest.serialization.Model): def __init__( self, *, - header: Optional["JWK"] = None, + header: Optional["_models.JWK"] = None, signature: Optional[str] = None, protected: Optional[str] = None, **kwargs @@ -802,7 +804,7 @@ class JWK(msrest.serialization.Model): def __init__( self, *, - jwk: Optional["JWKHeader"] = None, + jwk: Optional["_models.JWKHeader"] = None, alg: Optional[str] = None, **kwargs ): @@ -910,10 +912,10 @@ class ManifestAttributesBase(msrest.serialization.Model): :vartype created_on: ~datetime.datetime :ivar last_updated_on: Required. Last update time. :vartype last_updated_on: ~datetime.datetime - :ivar architecture: CPU architecture. Possible values include: "386", "amd64", "arm", "arm64", - "mips", "mipsle", "mips64", "mips64le", "ppc64", "ppc64le", "riscv64", "s390x", "wasm". + :ivar architecture: CPU architecture. Known values are: "386", "amd64", "arm", "arm64", "mips", + "mipsle", "mips64", "mips64le", "ppc64", "ppc64le", "riscv64", "s390x", "wasm". :vartype architecture: str or ~container_registry.models.ArtifactArchitecture - :ivar operating_system: Operating system. Possible values include: "aix", "android", "darwin", + :ivar operating_system: Operating system. Known values are: "aix", "android", "darwin", "dragonfly", "freebsd", "illumos", "ios", "js", "linux", "netbsd", "openbsd", "plan9", "solaris", "windows". :vartype operating_system: str or ~container_registry.models.ArtifactOperatingSystem @@ -1007,7 +1009,7 @@ class ManifestAttributesManifest(msrest.serialization.Model): def __init__( self, *, - references: Optional[List["ArtifactManifestPlatform"]] = None, + references: Optional[List["_models.ArtifactManifestPlatform"]] = None, **kwargs ): """ @@ -1040,7 +1042,7 @@ def __init__( *, schema_version: Optional[int] = None, media_type: Optional[str] = None, - manifests: Optional[List["ManifestListAttributes"]] = None, + manifests: Optional[List["_models.ManifestListAttributes"]] = None, **kwargs ): """ @@ -1086,7 +1088,7 @@ def __init__( media_type: Optional[str] = None, size: Optional[int] = None, digest: Optional[str] = None, - platform: Optional["Platform"] = None, + platform: Optional["_models.Platform"] = None, **kwargs ): """ @@ -1160,16 +1162,16 @@ def __init__( *, schema_version: Optional[int] = None, media_type: Optional[str] = None, - manifests: Optional[List["ManifestListAttributes"]] = None, - config: Optional["Descriptor"] = None, - layers: Optional[List["Descriptor"]] = None, - annotations: Optional["Annotations"] = None, + manifests: Optional[List["_models.ManifestListAttributes"]] = None, + config: Optional["_models.Descriptor"] = None, + layers: Optional[List["_models.Descriptor"]] = None, + annotations: Optional["_models.Annotations"] = None, architecture: Optional[str] = None, name: Optional[str] = None, tag: Optional[str] = None, - fs_layers: Optional[List["FsLayer"]] = None, - history: Optional[List["History"]] = None, - signatures: Optional[List["ImageSignature"]] = None, + fs_layers: Optional[List["_models.FsLayer"]] = None, + history: Optional[List["_models.History"]] = None, + signatures: Optional[List["_models.ImageSignature"]] = None, **kwargs ): """ @@ -1279,8 +1281,8 @@ def __init__( self, *, schema_version: Optional[int] = None, - manifests: Optional[List["ManifestListAttributes"]] = None, - annotations: Optional["Annotations"] = None, + manifests: Optional[List["_models.ManifestListAttributes"]] = None, + annotations: Optional["_models.Annotations"] = None, **kwargs ): """ @@ -1296,49 +1298,50 @@ def __init__( self.annotations = annotations -class OCIManifest(Manifest): +class OCIManifest(msrest.serialization.Model): """Returns the requested OCI Manifest file. - :ivar schema_version: Schema version. - :vartype schema_version: int :ivar config: V2 image config descriptor. :vartype config: ~container_registry.models.Descriptor :ivar layers: List of V2 image layer information. :vartype layers: list[~container_registry.models.Descriptor] :ivar annotations: Additional information provided through arbitrary metadata. :vartype annotations: ~container_registry.models.Annotations + :ivar schema_version: Schema version. + :vartype schema_version: int """ _attribute_map = { - 'schema_version': {'key': 'schemaVersion', 'type': 'int'}, 'config': {'key': 'config', 'type': 'Descriptor'}, 'layers': {'key': 'layers', 'type': '[Descriptor]'}, 'annotations': {'key': 'annotations', 'type': 'Annotations'}, + 'schema_version': {'key': 'schemaVersion', 'type': 'int'}, } def __init__( self, *, + config: Optional["_models.Descriptor"] = None, + layers: Optional[List["_models.Descriptor"]] = None, + annotations: Optional["_models.Annotations"] = None, schema_version: Optional[int] = None, - config: Optional["Descriptor"] = None, - layers: Optional[List["Descriptor"]] = None, - annotations: Optional["Annotations"] = None, **kwargs ): """ - :keyword schema_version: Schema version. - :paramtype schema_version: int :keyword config: V2 image config descriptor. :paramtype config: ~container_registry.models.Descriptor :keyword layers: List of V2 image layer information. :paramtype layers: list[~container_registry.models.Descriptor] :keyword annotations: Additional information provided through arbitrary metadata. :paramtype annotations: ~container_registry.models.Annotations + :keyword schema_version: Schema version. + :paramtype schema_version: int """ - super(OCIManifest, self).__init__(schema_version=schema_version, **kwargs) + super(OCIManifest, self).__init__(**kwargs) self.config = config self.layers = layers self.annotations = annotations + self.schema_version = schema_version class Paths108HwamOauth2ExchangePostRequestbodyContentApplicationXWwwFormUrlencodedSchema(msrest.serialization.Model): @@ -1347,8 +1350,7 @@ class Paths108HwamOauth2ExchangePostRequestbodyContentApplicationXWwwFormUrlenco All required parameters must be populated in order to send to Azure. :ivar grant_type: Required. Can take a value of access_token_refresh_token, or access_token, or - refresh_token. Possible values include: "access_token_refresh_token", "access_token", - "refresh_token". + refresh_token. Known values are: "access_token_refresh_token", "access_token", "refresh_token". :vartype grant_type: str or ~container_registry.models.PostContentSchemaGrantType :ivar service: Required. Indicates the name of your Azure container registry. :vartype service: str @@ -1378,7 +1380,7 @@ class Paths108HwamOauth2ExchangePostRequestbodyContentApplicationXWwwFormUrlenco def __init__( self, *, - grant_type: Union[str, "PostContentSchemaGrantType"], + grant_type: Union[str, "_models.PostContentSchemaGrantType"], service: str, tenant: Optional[str] = None, refresh_token: Optional[str] = None, @@ -1387,7 +1389,7 @@ def __init__( ): """ :keyword grant_type: Required. Can take a value of access_token_refresh_token, or access_token, - or refresh_token. Possible values include: "access_token_refresh_token", "access_token", + or refresh_token. Known values are: "access_token_refresh_token", "access_token", "refresh_token". :paramtype grant_type: str or ~container_registry.models.PostContentSchemaGrantType :keyword service: Required. Indicates the name of your Azure container registry. @@ -1422,8 +1424,8 @@ class PathsV3R3RxOauth2TokenPostRequestbodyContentApplicationXWwwFormUrlencodedS :vartype scope: str :ivar acr_refresh_token: Required. Must be a valid ACR refresh token. :vartype acr_refresh_token: str - :ivar grant_type: Required. Grant type is expected to be refresh_token. Possible values - include: "refresh_token", "password". + :ivar grant_type: Required. Grant type is expected to be refresh_token. Known values are: + "refresh_token", "password". :vartype grant_type: str or ~container_registry.models.TokenGrantType """ @@ -1447,7 +1449,7 @@ def __init__( service: str, scope: str, acr_refresh_token: str, - grant_type: Union[str, "TokenGrantType"] = "refresh_token", + grant_type: Union[str, "_models.TokenGrantType"] = "refresh_token", **kwargs ): """ @@ -1459,8 +1461,8 @@ def __init__( :paramtype scope: str :keyword acr_refresh_token: Required. Must be a valid ACR refresh token. :paramtype acr_refresh_token: str - :keyword grant_type: Required. Grant type is expected to be refresh_token. Possible values - include: "refresh_token", "password". + :keyword grant_type: Required. Grant type is expected to be refresh_token. Known values are: + "refresh_token", "password". :paramtype grant_type: str or ~container_registry.models.TokenGrantType """ super(PathsV3R3RxOauth2TokenPostRequestbodyContentApplicationXWwwFormUrlencodedSchema, self).__init__(**kwargs) @@ -1780,7 +1782,7 @@ def __init__( *, registry_login_server: str, repository: str, - tag_attribute_bases: List["TagAttributesBase"], + tag_attribute_bases: List["_models.TagAttributesBase"], link: Optional[str] = None, **kwargs ): @@ -1884,9 +1886,9 @@ def __init__( architecture: Optional[str] = None, name: Optional[str] = None, tag: Optional[str] = None, - fs_layers: Optional[List["FsLayer"]] = None, - history: Optional[List["History"]] = None, - signatures: Optional[List["ImageSignature"]] = None, + fs_layers: Optional[List["_models.FsLayer"]] = None, + history: Optional[List["_models.History"]] = None, + signatures: Optional[List["_models.ImageSignature"]] = None, **kwargs ): """ @@ -1939,8 +1941,8 @@ def __init__( *, schema_version: Optional[int] = None, media_type: Optional[str] = None, - config: Optional["Descriptor"] = None, - layers: Optional[List["Descriptor"]] = None, + config: Optional["_models.Descriptor"] = None, + layers: Optional[List["_models.Descriptor"]] = None, **kwargs ): """ diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_patch.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_patch.py new file mode 100644 index 000000000000..8a35ddb87c7e --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/models/_patch.py @@ -0,0 +1,23 @@ +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +"""Customize generated code here. + +Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize +""" +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import List + +__all__ = [] # type: List[str] # Add all objects you want publicly available to users at this package level + +def patch_sdk(): + """Do not remove from this file. + + `patch_sdk` is a last resort escape hatch that allows you to do customizations + you can't accomplish using the techniques described in + https://aka.ms/azsdk/python/dpcodegen/python/customize + """ diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/__init__.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/__init__.py index 12151dd8616a..bbce3721e2af 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/__init__.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/__init__.py @@ -1,6 +1,6 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.7.4, generator: @autorest/python@5.12.4) +# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.1.3, generator: {generator}) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -8,8 +8,13 @@ from ._container_registry_blob_operations import ContainerRegistryBlobOperations from ._authentication_operations import AuthenticationOperations +from ._patch import __all__ as _patch_all +from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import +from ._patch import patch_sdk as _patch_sdk __all__ = [ 'ContainerRegistryOperations', 'ContainerRegistryBlobOperations', 'AuthenticationOperations', ] +__all__.extend([p for p in _patch_all if p not in __all__]) +_patch_sdk() \ No newline at end of file diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_authentication_operations.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_authentication_operations.py index b4050231f472..4bd69810d58f 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_authentication_operations.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_authentication_operations.py @@ -1,25 +1,26 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.7.4, generator: @autorest/python@5.12.4) +# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.1.3, generator: {generator}) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings + +from msrest import Serializer from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import HttpResponse from azure.core.rest import HttpRequest from azure.core.tracing.decorator import distributed_trace -from msrest import Serializer +from azure.core.utils import case_insensitive_dict from .. import models as _models from .._vendor import _convert_request if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Optional, TypeVar, Union T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -31,28 +32,29 @@ def build_exchange_aad_access_token_for_acr_refresh_token_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2021-07-01") # type: str - content_type = kwargs.pop('content_type', None) # type: Optional[str] + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', None)) # type: Optional[str] + accept = _headers.pop('Accept', "application/json") - accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/oauth2/exchange') + _url = kwargs.pop("template_url", "/oauth2/exchange") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _params['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_params, + headers=_headers, **kwargs ) @@ -61,53 +63,52 @@ def build_exchange_acr_refresh_token_for_acr_access_token_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2021-07-01") # type: str - content_type = kwargs.pop('content_type', None) # type: Optional[str] + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', None)) # type: Optional[str] + accept = _headers.pop('Accept', "application/json") - accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/oauth2/token') + _url = kwargs.pop("template_url", "/oauth2/token") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _params['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_params, + headers=_headers, **kwargs ) # fmt: on class AuthenticationOperations(object): - """AuthenticationOperations 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. + """ + .. warning:: + **DO NOT** instantiate this class directly. - :ivar models: Alias to model classes used in this operation group. - :type models: ~container_registry.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. + Instead, you should access the following operations through + :class:`~container_registry.ContainerRegistry`'s + :attr:`authentication` attribute. """ models = _models - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config + def __init__(self, *args, **kwargs): + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + @distributed_trace def exchange_aad_access_token_for_acr_refresh_token( @@ -119,7 +120,7 @@ def exchange_aad_access_token_for_acr_refresh_token( access_token=None, # type: Optional[str] **kwargs # type: Any ): - # type: (...) -> "_models.AcrRefreshToken" + # type: (...) -> _models.AcrRefreshToken """Exchange AAD tokens for an ACR refresh Token. :param grant_type: Can take a value of access_token_refresh_token, or access_token, or @@ -127,27 +128,30 @@ def exchange_aad_access_token_for_acr_refresh_token( :type grant_type: str or ~container_registry.models.PostContentSchemaGrantType :param service: Indicates the name of your Azure container registry. :type service: str - :param tenant: AAD tenant associated to the AAD credentials. + :param tenant: AAD tenant associated to the AAD credentials. Default value is None. :type tenant: str :param refresh_token: AAD refresh token, mandatory when grant_type is - access_token_refresh_token or refresh_token. + access_token_refresh_token or refresh_token. Default value is None. :type refresh_token: str :param access_token: AAD access token, mandatory when grant_type is access_token_refresh_token - or access_token. + or access_token. Default value is None. :type access_token: str :keyword callable cls: A custom type or function that will be passed the direct response :return: AcrRefreshToken, or the result of cls(response) :rtype: ~container_registry.models.AcrRefreshToken :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.AcrRefreshToken"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version = kwargs.pop('api_version', "2021-07-01") # type: str - content_type = kwargs.pop('content_type', "application/x-www-form-urlencoded") # type: Optional[str] + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/x-www-form-urlencoded")) # type: Optional[str] + cls = kwargs.pop('cls', None) # type: ClsType[_models.AcrRefreshToken] # Construct form data _data = { @@ -163,14 +167,20 @@ def exchange_aad_access_token_for_acr_refresh_token( content_type=content_type, data=_data, template_url=self.exchange_aad_access_token_for_acr_refresh_token.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -185,7 +195,7 @@ def exchange_aad_access_token_for_acr_refresh_token( return deserialized - exchange_aad_access_token_for_acr_refresh_token.metadata = {'url': '/oauth2/exchange'} # type: ignore + exchange_aad_access_token_for_acr_refresh_token.metadata = {'url': "/oauth2/exchange"} # type: ignore @distributed_trace @@ -197,7 +207,7 @@ def exchange_acr_refresh_token_for_acr_access_token( grant_type="refresh_token", # type: Union[str, "_models.TokenGrantType"] **kwargs # type: Any ): - # type: (...) -> "_models.AcrAccessToken" + # type: (...) -> _models.AcrAccessToken """Exchange ACR Refresh token for an ACR Access Token. :param service: Indicates the name of your Azure container registry. @@ -208,21 +218,25 @@ def exchange_acr_refresh_token_for_acr_access_token( :type scope: str :param refresh_token: Must be a valid ACR refresh token. :type refresh_token: str - :param grant_type: Grant type is expected to be refresh_token. + :param grant_type: Grant type is expected to be refresh_token. Default value is + "refresh_token". :type grant_type: str or ~container_registry.models.TokenGrantType :keyword callable cls: A custom type or function that will be passed the direct response :return: AcrAccessToken, or the result of cls(response) :rtype: ~container_registry.models.AcrAccessToken :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.AcrAccessToken"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version = kwargs.pop('api_version', "2021-07-01") # type: str - content_type = kwargs.pop('content_type', "application/x-www-form-urlencoded") # type: Optional[str] + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/x-www-form-urlencoded")) # type: Optional[str] + cls = kwargs.pop('cls', None) # type: ClsType[_models.AcrAccessToken] # Construct form data _data = { @@ -237,14 +251,20 @@ def exchange_acr_refresh_token_for_acr_access_token( content_type=content_type, data=_data, template_url=self.exchange_acr_refresh_token_for_acr_access_token.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -259,5 +279,5 @@ def exchange_acr_refresh_token_for_acr_access_token( return deserialized - exchange_acr_refresh_token_for_acr_access_token.metadata = {'url': '/oauth2/token'} # type: ignore + exchange_acr_refresh_token_for_acr_access_token.metadata = {'url': "/oauth2/token"} # type: ignore diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_container_registry_blob_operations.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_container_registry_blob_operations.py index 8a375b75e7ad..4d03cda4c682 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_container_registry_blob_operations.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_container_registry_blob_operations.py @@ -1,25 +1,26 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.7.4, generator: @autorest/python@5.12.4) +# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.1.3, generator: {generator}) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings + +from msrest import Serializer from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import HttpResponse from azure.core.rest import HttpRequest from azure.core.tracing.decorator import distributed_trace -from msrest import Serializer +from azure.core.utils import case_insensitive_dict from .. import models as _models from .._vendor import _convert_request, _format_url_section if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, IO, Optional, TypeVar + from typing import Any, Callable, Dict, IO, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -33,24 +34,26 @@ def build_get_blob_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - accept = "application/octet-stream" + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + + accept = _headers.pop('Accept', "application/octet-stream") + # Construct URL - url = kwargs.pop("template_url", '/v2/{name}/blobs/{digest}') + _url = kwargs.pop("template_url", "/v2/{name}/blobs/{digest}") path_format_arguments = { "name": _SERIALIZER.url("name", name, 'str'), "digest": _SERIALIZER.url("digest", digest, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_headers, **kwargs ) @@ -61,24 +64,26 @@ def build_check_blob_exists_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - accept = "application/json" + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + + accept = _headers.pop('Accept', "application/json") + # Construct URL - url = kwargs.pop("template_url", '/v2/{name}/blobs/{digest}') + _url = kwargs.pop("template_url", "/v2/{name}/blobs/{digest}") path_format_arguments = { "name": _SERIALIZER.url("name", name, 'str'), "digest": _SERIALIZER.url("digest", digest, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_headers, **kwargs ) @@ -89,24 +94,26 @@ def build_delete_blob_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - accept = "application/octet-stream" + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + + accept = _headers.pop('Accept', "application/octet-stream") + # Construct URL - url = kwargs.pop("template_url", '/v2/{name}/blobs/{digest}') + _url = kwargs.pop("template_url", "/v2/{name}/blobs/{digest}") path_format_arguments = { "name": _SERIALIZER.url("name", name, 'str'), "digest": _SERIALIZER.url("digest", digest, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_headers, **kwargs ) @@ -116,150 +123,157 @@ def build_mount_blob_request( **kwargs # type: Any ): # type: (...) -> HttpRequest + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + from_parameter = kwargs.pop('from_parameter') # type: str mount = kwargs.pop('mount') # type: str + accept = _headers.pop('Accept', "application/json") - accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/v2/{name}/blobs/uploads/') + _url = kwargs.pop("template_url", "/v2/{name}/blobs/uploads/") path_format_arguments = { "name": _SERIALIZER.url("name", name, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['from'] = _SERIALIZER.query("from_parameter", from_parameter, 'str') - query_parameters['mount'] = _SERIALIZER.query("mount", mount, 'str') + _params['from'] = _SERIALIZER.query("from_parameter", from_parameter, 'str') + _params['mount'] = _SERIALIZER.query("mount", mount, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_params, + headers=_headers, **kwargs ) def build_get_upload_status_request( - location, # type: str + next_link, # type: str **kwargs # type: Any ): # type: (...) -> HttpRequest - accept = "application/json" + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + + accept = _headers.pop('Accept', "application/json") + # Construct URL - url = kwargs.pop("template_url", '/{nextBlobUuidLink}') + _url = kwargs.pop("template_url", "/{nextBlobUuidLink}") path_format_arguments = { - "nextBlobUuidLink": _SERIALIZER.url("location", location, 'str', skip_quote=True), + "nextBlobUuidLink": _SERIALIZER.url("next_link", next_link, 'str', skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_headers, **kwargs ) def build_upload_chunk_request( - location, # type: str + next_link, # type: str **kwargs # type: Any ): # type: (...) -> HttpRequest - content_type = kwargs.pop('content_type', None) # type: Optional[str] + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', None)) # type: Optional[str] + accept = _headers.pop('Accept', "application/json") - accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/{nextBlobUuidLink}') + _url = kwargs.pop("template_url", "/{nextBlobUuidLink}") path_format_arguments = { - "nextBlobUuidLink": _SERIALIZER.url("location", location, 'str', skip_quote=True), + "nextBlobUuidLink": _SERIALIZER.url("next_link", next_link, 'str', skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - headers=header_parameters, + url=_url, + headers=_headers, **kwargs ) def build_complete_upload_request( - location, # type: str + next_link, # type: str **kwargs # type: Any ): # type: (...) -> HttpRequest - content_type = kwargs.pop('content_type', None) # type: Optional[str] + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', None)) # type: Optional[str] digest = kwargs.pop('digest') # type: str + accept = _headers.pop('Accept', "application/json") - accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/{nextBlobUuidLink}') + _url = kwargs.pop("template_url", "/{nextBlobUuidLink}") path_format_arguments = { - "nextBlobUuidLink": _SERIALIZER.url("location", location, 'str', skip_quote=True), + "nextBlobUuidLink": _SERIALIZER.url("next_link", next_link, 'str', skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['digest'] = _SERIALIZER.query("digest", digest, 'str') + _params['digest'] = _SERIALIZER.query("digest", digest, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_params, + headers=_headers, **kwargs ) def build_cancel_upload_request( - location, # type: str + next_link, # type: str **kwargs # type: Any ): # type: (...) -> HttpRequest - accept = "application/json" + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + + accept = _headers.pop('Accept', "application/json") + # Construct URL - url = kwargs.pop("template_url", '/{nextBlobUuidLink}') + _url = kwargs.pop("template_url", "/{nextBlobUuidLink}") path_format_arguments = { - "nextBlobUuidLink": _SERIALIZER.url("location", location, 'str', skip_quote=True), + "nextBlobUuidLink": _SERIALIZER.url("next_link", next_link, 'str', skip_quote=True), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_headers, **kwargs ) @@ -269,23 +283,25 @@ def build_start_upload_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - accept = "application/json" + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + + accept = _headers.pop('Accept', "application/json") + # Construct URL - url = kwargs.pop("template_url", '/v2/{name}/blobs/uploads/') + _url = kwargs.pop("template_url", "/v2/{name}/blobs/uploads/") path_format_arguments = { "name": _SERIALIZER.url("name", name, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="POST", - url=url, - headers=header_parameters, + url=_url, + headers=_headers, **kwargs ) @@ -296,27 +312,28 @@ def build_get_chunk_request( **kwargs # type: Any ): # type: (...) -> HttpRequest + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + range = kwargs.pop('range') # type: str + accept = _headers.pop('Accept', "application/octet-stream") - accept = "application/octet-stream" # Construct URL - url = kwargs.pop("template_url", '/v2/{name}/blobs/{digest}') + _url = kwargs.pop("template_url", "/v2/{name}/blobs/{digest}") path_format_arguments = { "name": _SERIALIZER.url("name", name, 'str'), "digest": _SERIALIZER.url("digest", digest, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Range'] = _SERIALIZER.header("range", range, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Range'] = _SERIALIZER.header("range", range, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_headers, **kwargs ) @@ -327,52 +344,51 @@ def build_check_chunk_exists_request( **kwargs # type: Any ): # type: (...) -> HttpRequest + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + range = kwargs.pop('range') # type: str + accept = _headers.pop('Accept', "application/json") - accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/v2/{name}/blobs/{digest}') + _url = kwargs.pop("template_url", "/v2/{name}/blobs/{digest}") path_format_arguments = { "name": _SERIALIZER.url("name", name, 'str'), "digest": _SERIALIZER.url("digest", digest, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Range'] = _SERIALIZER.header("range", range, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Range'] = _SERIALIZER.header("range", range, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="HEAD", - url=url, - headers=header_parameters, + url=_url, + headers=_headers, **kwargs ) # fmt: on class ContainerRegistryBlobOperations(object): - """ContainerRegistryBlobOperations 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. + """ + .. warning:: + **DO NOT** instantiate this class directly. - :ivar models: Alias to model classes used in this operation group. - :type models: ~container_registry.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. + Instead, you should access the following operations through + :class:`~container_registry.ContainerRegistry`'s + :attr:`container_registry_blob` attribute. """ models = _models - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config + def __init__(self, *args, **kwargs): + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + @distributed_trace def get_blob( @@ -393,25 +409,35 @@ def get_blob( :rtype: IO or None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[Optional[IO]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop('cls', None) # type: ClsType[Optional[IO]] request = build_get_blob_request( name=name, digest=digest, template_url=self.get_blob.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=True, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=True, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -435,11 +461,11 @@ def get_blob( return deserialized - get_blob.metadata = {'url': '/v2/{name}/blobs/{digest}'} # type: ignore + get_blob.metadata = {'url': "/v2/{name}/blobs/{digest}"} # type: ignore @distributed_trace - def check_blob_exists( + def check_blob_exists( # pylint: disable=inconsistent-return-statements self, name, # type: str digest, # type: str @@ -457,25 +483,35 @@ def check_blob_exists( :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop('cls', None) # type: ClsType[None] request = build_check_blob_exists_request( name=name, digest=digest, template_url=self.check_blob_exists.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 307]: @@ -496,7 +532,7 @@ def check_blob_exists( if cls: return cls(pipeline_response, None, response_headers) - check_blob_exists.metadata = {'url': '/v2/{name}/blobs/{digest}'} # type: ignore + check_blob_exists.metadata = {'url': "/v2/{name}/blobs/{digest}"} # type: ignore @distributed_trace @@ -518,25 +554,35 @@ def delete_blob( :rtype: IO :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[IO] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop('cls', None) # type: ClsType[IO] request = build_delete_blob_request( name=name, digest=digest, template_url=self.delete_blob.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=True, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=True, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [202]: @@ -553,11 +599,11 @@ def delete_blob( return deserialized - delete_blob.metadata = {'url': '/v2/{name}/blobs/{digest}'} # type: ignore + delete_blob.metadata = {'url': "/v2/{name}/blobs/{digest}"} # type: ignore @distributed_trace - def mount_blob( + def mount_blob( # pylint: disable=inconsistent-return-statements self, name, # type: str from_parameter, # type: str @@ -578,11 +624,15 @@ def mount_blob( :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop('cls', None) # type: ClsType[None] request = build_mount_blob_request( @@ -590,14 +640,20 @@ def mount_blob( from_parameter=from_parameter, mount=mount, template_url=self.mount_blob.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [201]: @@ -614,45 +670,55 @@ def mount_blob( if cls: return cls(pipeline_response, None, response_headers) - mount_blob.metadata = {'url': '/v2/{name}/blobs/uploads/'} # type: ignore + mount_blob.metadata = {'url': "/v2/{name}/blobs/uploads/"} # type: ignore @distributed_trace - def get_upload_status( + def get_upload_status( # pylint: disable=inconsistent-return-statements self, - location, # type: str + next_link, # type: str **kwargs # type: Any ): # type: (...) -> None """Retrieve status of upload identified by uuid. The primary purpose of this endpoint is to resolve the current status of a resumable upload. - :param location: Link acquired from upload start or previous chunk. Note, do not include + :param next_link: Link acquired from upload start or previous chunk. Note, do not include initial / (must do substring(1) ). - :type location: str + :type next_link: str :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop('cls', None) # type: ClsType[None] request = build_get_upload_status_request( - location=location, + next_link=next_link, template_url=self.get_upload_status.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [204]: @@ -668,22 +734,22 @@ def get_upload_status( if cls: return cls(pipeline_response, None, response_headers) - get_upload_status.metadata = {'url': '/{nextBlobUuidLink}'} # type: ignore + get_upload_status.metadata = {'url': "/{nextBlobUuidLink}"} # type: ignore @distributed_trace - def upload_chunk( + def upload_chunk( # pylint: disable=inconsistent-return-statements self, - location, # type: str + next_link, # type: str value, # type: IO **kwargs # type: Any ): # type: (...) -> None """Upload a stream of data without completing the upload. - :param location: Link acquired from upload start or previous chunk. Note, do not include + :param next_link: Link acquired from upload start or previous chunk. Note, do not include initial / (must do substring(1) ). - :type location: str + :type next_link: str :param value: Raw data of blob. :type value: IO :keyword callable cls: A custom type or function that will be passed the direct response @@ -691,29 +757,38 @@ def upload_chunk( :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} - content_type = kwargs.pop('content_type', "application/octet-stream") # type: Optional[str] + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/octet-stream")) # type: Optional[str] + cls = kwargs.pop('cls', None) # type: ClsType[None] _content = value request = build_upload_chunk_request( - location=location, + next_link=next_link, content_type=content_type, content=_content, template_url=self.upload_chunk.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [202]: @@ -730,14 +805,14 @@ def upload_chunk( if cls: return cls(pipeline_response, None, response_headers) - upload_chunk.metadata = {'url': '/{nextBlobUuidLink}'} # type: ignore + upload_chunk.metadata = {'url': "/{nextBlobUuidLink}"} # type: ignore @distributed_trace - def complete_upload( + def complete_upload( # pylint: disable=inconsistent-return-statements self, digest, # type: str - location, # type: str + next_link, # type: str value=None, # type: Optional[IO] **kwargs # type: Any ): @@ -747,40 +822,49 @@ def complete_upload( :param digest: Digest of a BLOB. :type digest: str - :param location: Link acquired from upload start or previous chunk. Note, do not include + :param next_link: Link acquired from upload start or previous chunk. Note, do not include initial / (must do substring(1) ). - :type location: str - :param value: Optional raw data of blob. + :type next_link: str + :param value: Optional raw data of blob. Default value is None. :type value: IO :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) - content_type = kwargs.pop('content_type', "application/octet-stream") # type: Optional[str] + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/octet-stream")) # type: Optional[str] + cls = kwargs.pop('cls', None) # type: ClsType[None] _content = value request = build_complete_upload_request( - location=location, + next_link=next_link, content_type=content_type, digest=digest, content=_content, template_url=self.complete_upload.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [201]: @@ -797,45 +881,55 @@ def complete_upload( if cls: return cls(pipeline_response, None, response_headers) - complete_upload.metadata = {'url': '/{nextBlobUuidLink}'} # type: ignore + complete_upload.metadata = {'url': "/{nextBlobUuidLink}"} # type: ignore @distributed_trace - def cancel_upload( + def cancel_upload( # pylint: disable=inconsistent-return-statements self, - location, # type: str + next_link, # type: str **kwargs # type: Any ): # type: (...) -> None """Cancel outstanding upload processes, releasing associated resources. If this is not called, the unfinished uploads will eventually timeout. - :param location: Link acquired from upload start or previous chunk. Note, do not include + :param next_link: Link acquired from upload start or previous chunk. Note, do not include initial / (must do substring(1) ). - :type location: str + :type next_link: str :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop('cls', None) # type: ClsType[None] request = build_cancel_upload_request( - location=location, + next_link=next_link, template_url=self.cancel_upload.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [204]: @@ -846,11 +940,11 @@ def cancel_upload( if cls: return cls(pipeline_response, None, {}) - cancel_upload.metadata = {'url': '/{nextBlobUuidLink}'} # type: ignore + cancel_upload.metadata = {'url': "/{nextBlobUuidLink}"} # type: ignore @distributed_trace - def start_upload( + def start_upload( # pylint: disable=inconsistent-return-statements self, name, # type: str **kwargs # type: Any @@ -865,24 +959,34 @@ def start_upload( :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop('cls', None) # type: ClsType[None] request = build_start_upload_request( name=name, template_url=self.start_upload.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [202]: @@ -899,7 +1003,7 @@ def start_upload( if cls: return cls(pipeline_response, None, response_headers) - start_upload.metadata = {'url': '/v2/{name}/blobs/uploads/'} # type: ignore + start_upload.metadata = {'url': "/v2/{name}/blobs/uploads/"} # type: ignore @distributed_trace @@ -928,11 +1032,15 @@ def get_chunk( :rtype: IO :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[IO] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop('cls', None) # type: ClsType[IO] request = build_get_chunk_request( @@ -940,14 +1048,20 @@ def get_chunk( digest=digest, range=range, template_url=self.get_chunk.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=True, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=True, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [206]: @@ -965,11 +1079,11 @@ def get_chunk( return deserialized - get_chunk.metadata = {'url': '/v2/{name}/blobs/{digest}'} # type: ignore + get_chunk.metadata = {'url': "/v2/{name}/blobs/{digest}"} # type: ignore @distributed_trace - def check_chunk_exists( + def check_chunk_exists( # pylint: disable=inconsistent-return-statements self, name, # type: str digest, # type: str @@ -991,11 +1105,15 @@ def check_chunk_exists( :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop('cls', None) # type: ClsType[None] request = build_check_chunk_exists_request( @@ -1003,14 +1121,20 @@ def check_chunk_exists( digest=digest, range=range, template_url=self.check_chunk_exists.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1026,5 +1150,5 @@ def check_chunk_exists( if cls: return cls(pipeline_response, None, response_headers) - check_chunk_exists.metadata = {'url': '/v2/{name}/blobs/{digest}'} # type: ignore + check_chunk_exists.metadata = {'url': "/v2/{name}/blobs/{digest}"} # type: ignore diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_container_registry_operations.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_container_registry_operations.py index 064fa2f0ca53..c1469935e49e 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_container_registry_operations.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_container_registry_operations.py @@ -1,11 +1,12 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.7.4, generator: @autorest/python@5.12.4) +# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.1.3, generator: {generator}) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools from typing import TYPE_CHECKING -import warnings + +from msrest import Serializer from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged @@ -13,14 +14,14 @@ from azure.core.pipeline.transport import HttpResponse from azure.core.rest import HttpRequest from azure.core.tracing.decorator import distributed_trace -from msrest import Serializer +from azure.core.utils import case_insensitive_dict from .. import models as _models from .._vendor import _convert_request, _format_url_section if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar + from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -32,18 +33,20 @@ def build_check_docker_v2_support_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - accept = "application/json" + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + + accept = _headers.pop('Accept', "application/json") + # Construct URL - url = kwargs.pop("template_url", '/v2/') + _url = kwargs.pop("template_url", "/v2/") # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_headers, **kwargs ) @@ -54,26 +57,26 @@ def build_get_manifest_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - accept = kwargs.pop('accept', None) # type: Optional[str] + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + + accept = _headers.pop('Accept', "application/json") - accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/v2/{name}/manifests/{reference}') + _url = kwargs.pop("template_url", "/v2/{name}/manifests/{reference}") path_format_arguments = { "name": _SERIALIZER.url("name", name, 'str'), "reference": _SERIALIZER.url("reference", reference, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - headers=header_parameters, + url=_url, + headers=_headers, **kwargs ) @@ -84,28 +87,29 @@ def build_create_manifest_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - content_type = kwargs.pop('content_type', None) # type: Optional[str] + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', None)) # type: Optional[str] + accept = _headers.pop('Accept', "application/json") - accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/v2/{name}/manifests/{reference}') + _url = kwargs.pop("template_url", "/v2/{name}/manifests/{reference}") path_format_arguments = { "name": _SERIALIZER.url("name", name, 'str'), "reference": _SERIALIZER.url("reference", reference, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - headers=header_parameters, + url=_url, + headers=_headers, **kwargs ) @@ -116,24 +120,26 @@ def build_delete_manifest_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - accept = "application/json" + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + + accept = _headers.pop('Accept', "application/json") + # Construct URL - url = kwargs.pop("template_url", '/v2/{name}/manifests/{reference}') + _url = kwargs.pop("template_url", "/v2/{name}/manifests/{reference}") path_format_arguments = { "name": _SERIALIZER.url("name", name, 'str'), "reference": _SERIALIZER.url("reference", reference, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - headers=header_parameters, + url=_url, + headers=_headers, **kwargs ) @@ -142,31 +148,32 @@ def build_get_repositories_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2021-07-01") # type: str - last = kwargs.pop('last', None) # type: Optional[str] - n = kwargs.pop('n', None) # type: Optional[int] + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + last = kwargs.pop('last', _params.pop('last', None)) # type: Optional[str] + n = kwargs.pop('n', _params.pop('n', None)) # type: Optional[int] + accept = _headers.pop('Accept', "application/json") - accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/acr/v1/_catalog') + _url = kwargs.pop("template_url", "/acr/v1/_catalog") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if last is not None: - query_parameters['last'] = _SERIALIZER.query("last", last, 'str') + _params['last'] = _SERIALIZER.query("last", last, 'str') if n is not None: - query_parameters['n'] = _SERIALIZER.query("n", n, 'int') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _params['n'] = _SERIALIZER.query("n", n, 'int') + _params['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_params, + headers=_headers, **kwargs ) @@ -176,30 +183,31 @@ def build_get_properties_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2021-07-01") # type: str + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + accept = _headers.pop('Accept', "application/json") - accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/acr/v1/{name}') + _url = kwargs.pop("template_url", "/acr/v1/{name}") path_format_arguments = { "name": _SERIALIZER.url("name", name, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _params['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_params, + headers=_headers, **kwargs ) @@ -209,30 +217,31 @@ def build_delete_repository_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2021-07-01") # type: str + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + accept = _headers.pop('Accept', "application/json") - accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/acr/v1/{name}') + _url = kwargs.pop("template_url", "/acr/v1/{name}") path_format_arguments = { "name": _SERIALIZER.url("name", name, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _params['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_params, + headers=_headers, **kwargs ) @@ -242,33 +251,34 @@ def build_update_properties_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2021-07-01") # type: str - content_type = kwargs.pop('content_type', None) # type: Optional[str] + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', None)) # type: Optional[str] + accept = _headers.pop('Accept', "application/json") - accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/acr/v1/{name}') + _url = kwargs.pop("template_url", "/acr/v1/{name}") path_format_arguments = { "name": _SERIALIZER.url("name", name, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _params['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_params, + headers=_headers, **kwargs ) @@ -278,42 +288,43 @@ def build_get_tags_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2021-07-01") # type: str - last = kwargs.pop('last', None) # type: Optional[str] - n = kwargs.pop('n', None) # type: Optional[int] - orderby = kwargs.pop('orderby', None) # type: Optional[str] - digest = kwargs.pop('digest', None) # type: Optional[str] + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + last = kwargs.pop('last', _params.pop('last', None)) # type: Optional[str] + n = kwargs.pop('n', _params.pop('n', None)) # type: Optional[int] + orderby = kwargs.pop('orderby', _params.pop('orderby', None)) # type: Optional[str] + digest = kwargs.pop('digest', _params.pop('digest', None)) # type: Optional[str] + accept = _headers.pop('Accept', "application/json") - accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/acr/v1/{name}/_tags') + _url = kwargs.pop("template_url", "/acr/v1/{name}/_tags") path_format_arguments = { "name": _SERIALIZER.url("name", name, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if last is not None: - query_parameters['last'] = _SERIALIZER.query("last", last, 'str') + _params['last'] = _SERIALIZER.query("last", last, 'str') if n is not None: - query_parameters['n'] = _SERIALIZER.query("n", n, 'int') + _params['n'] = _SERIALIZER.query("n", n, 'int') if orderby is not None: - query_parameters['orderby'] = _SERIALIZER.query("orderby", orderby, 'str') + _params['orderby'] = _SERIALIZER.query("orderby", orderby, 'str') if digest is not None: - query_parameters['digest'] = _SERIALIZER.query("digest", digest, 'str') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _params['digest'] = _SERIALIZER.query("digest", digest, 'str') + _params['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_params, + headers=_headers, **kwargs ) @@ -324,31 +335,32 @@ def build_get_tag_properties_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2021-07-01") # type: str + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + accept = _headers.pop('Accept', "application/json") - accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/acr/v1/{name}/_tags/{reference}') + _url = kwargs.pop("template_url", "/acr/v1/{name}/_tags/{reference}") path_format_arguments = { "name": _SERIALIZER.url("name", name, 'str'), "reference": _SERIALIZER.url("reference", reference, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _params['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_params, + headers=_headers, **kwargs ) @@ -359,34 +371,35 @@ def build_update_tag_attributes_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2021-07-01") # type: str - content_type = kwargs.pop('content_type', None) # type: Optional[str] + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', None)) # type: Optional[str] + accept = _headers.pop('Accept', "application/json") - accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/acr/v1/{name}/_tags/{reference}') + _url = kwargs.pop("template_url", "/acr/v1/{name}/_tags/{reference}") path_format_arguments = { "name": _SERIALIZER.url("name", name, 'str'), "reference": _SERIALIZER.url("reference", reference, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _params['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_params, + headers=_headers, **kwargs ) @@ -397,31 +410,32 @@ def build_delete_tag_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2021-07-01") # type: str + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + accept = _headers.pop('Accept', "application/json") - accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/acr/v1/{name}/_tags/{reference}') + _url = kwargs.pop("template_url", "/acr/v1/{name}/_tags/{reference}") path_format_arguments = { "name": _SERIALIZER.url("name", name, 'str'), "reference": _SERIALIZER.url("reference", reference, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _params['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_params, + headers=_headers, **kwargs ) @@ -431,39 +445,40 @@ def build_get_manifests_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2021-07-01") # type: str - last = kwargs.pop('last', None) # type: Optional[str] - n = kwargs.pop('n', None) # type: Optional[int] - orderby = kwargs.pop('orderby', None) # type: Optional[str] + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + last = kwargs.pop('last', _params.pop('last', None)) # type: Optional[str] + n = kwargs.pop('n', _params.pop('n', None)) # type: Optional[int] + orderby = kwargs.pop('orderby', _params.pop('orderby', None)) # type: Optional[str] + accept = _headers.pop('Accept', "application/json") - accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/acr/v1/{name}/_manifests') + _url = kwargs.pop("template_url", "/acr/v1/{name}/_manifests") path_format_arguments = { "name": _SERIALIZER.url("name", name, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] if last is not None: - query_parameters['last'] = _SERIALIZER.query("last", last, 'str') + _params['last'] = _SERIALIZER.query("last", last, 'str') if n is not None: - query_parameters['n'] = _SERIALIZER.query("n", n, 'int') + _params['n'] = _SERIALIZER.query("n", n, 'int') if orderby is not None: - query_parameters['orderby'] = _SERIALIZER.query("orderby", orderby, 'str') - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _params['orderby'] = _SERIALIZER.query("orderby", orderby, 'str') + _params['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_params, + headers=_headers, **kwargs ) @@ -474,31 +489,32 @@ def build_get_manifest_properties_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2021-07-01") # type: str + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + accept = _headers.pop('Accept', "application/json") - accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/acr/v1/{name}/_manifests/{digest}') + _url = kwargs.pop("template_url", "/acr/v1/{name}/_manifests/{digest}") path_format_arguments = { "name": _SERIALIZER.url("name", name, 'str'), "digest": _SERIALIZER.url("digest", digest, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _params['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_params, + headers=_headers, **kwargs ) @@ -509,62 +525,61 @@ def build_update_manifest_properties_request( **kwargs # type: Any ): # type: (...) -> HttpRequest - api_version = kwargs.pop('api_version', "2021-07-01") # type: str - content_type = kwargs.pop('content_type', None) # type: Optional[str] + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', None)) # type: Optional[str] + accept = _headers.pop('Accept', "application/json") - accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/acr/v1/{name}/_manifests/{digest}') + _url = kwargs.pop("template_url", "/acr/v1/{name}/_manifests/{digest}") path_format_arguments = { "name": _SERIALIZER.url("name", name, 'str'), "digest": _SERIALIZER.url("digest", digest, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _params['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_params, + headers=_headers, **kwargs ) # fmt: on class ContainerRegistryOperations(object): - """ContainerRegistryOperations 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. + """ + .. warning:: + **DO NOT** instantiate this class directly. - :ivar models: Alias to model classes used in this operation group. - :type models: ~container_registry.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. + Instead, you should access the following operations through + :class:`~container_registry.ContainerRegistry`'s + :attr:`container_registry` attribute. """ models = _models - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config + def __init__(self, *args, **kwargs): + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + @distributed_trace - def check_docker_v2_support( + def check_docker_v2_support( # pylint: disable=inconsistent-return-statements self, **kwargs # type: Any ): @@ -576,23 +591,33 @@ def check_docker_v2_support( :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop('cls', None) # type: ClsType[None] request = build_check_docker_v2_support_request( template_url=self.check_docker_v2_support.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -603,7 +628,7 @@ def check_docker_v2_support( if cls: return cls(pipeline_response, None, {}) - check_docker_v2_support.metadata = {'url': '/v2/'} # type: ignore + check_docker_v2_support.metadata = {'url': "/v2/"} # type: ignore @distributed_trace @@ -611,10 +636,9 @@ def get_manifest( self, name, # type: str reference, # type: str - accept=None, # type: Optional[str] **kwargs # type: Any ): - # type: (...) -> "_models.ManifestWrapper" + # type: (...) -> _models.ManifestWrapper """Get the manifest identified by ``name`` and ``reference`` where ``reference`` can be a tag or digest. @@ -622,34 +646,40 @@ def get_manifest( :type name: str :param reference: A tag or a digest, pointing to a specific image. :type reference: str - :param accept: Accept header string delimited by comma. For example, - application/vnd.docker.distribution.manifest.v2+json. - :type accept: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ManifestWrapper, or the result of cls(response) :rtype: ~container_registry.models.ManifestWrapper :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ManifestWrapper"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop('cls', None) # type: ClsType[_models.ManifestWrapper] request = build_get_manifest_request( name=name, reference=reference, - accept=accept, template_url=self.get_manifest.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -664,7 +694,7 @@ def get_manifest( return deserialized - get_manifest.metadata = {'url': '/v2/{name}/manifests/{reference}'} # type: ignore + get_manifest.metadata = {'url': "/v2/{name}/manifests/{reference}"} # type: ignore @distributed_trace @@ -672,7 +702,7 @@ def create_manifest( self, name, # type: str reference, # type: str - payload, # type: "_models.Manifest" + payload, # type: IO **kwargs # type: Any ): # type: (...) -> Any @@ -684,36 +714,45 @@ def create_manifest( :param reference: A tag or a digest, pointing to a specific image. :type reference: str :param payload: Manifest body, can take v1 or v2 values depending on accept header. - :type payload: ~container_registry.models.Manifest + :type payload: IO :keyword callable cls: A custom type or function that will be passed the direct response :return: any, or the result of cls(response) :rtype: any :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) - content_type = kwargs.pop('content_type', "application/vnd.docker.distribution.manifest.v2+json") # type: Optional[str] + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} - _json = self._serialize.body(payload, 'Manifest') + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/vnd.docker.distribution.manifest.v2+json")) # type: Optional[str] + cls = kwargs.pop('cls', None) # type: ClsType[Any] + + _content = payload request = build_create_manifest_request( name=name, reference=reference, content_type=content_type, - json=_json, + content=_content, template_url=self.create_manifest.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [201]: @@ -733,11 +772,11 @@ def create_manifest( return deserialized - create_manifest.metadata = {'url': '/v2/{name}/manifests/{reference}'} # type: ignore + create_manifest.metadata = {'url': "/v2/{name}/manifests/{reference}"} # type: ignore @distributed_trace - def delete_manifest( + def delete_manifest( # pylint: disable=inconsistent-return-statements self, name, # type: str reference, # type: str @@ -756,25 +795,35 @@ def delete_manifest( :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop('cls', None) # type: ClsType[None] request = build_delete_manifest_request( name=name, reference=reference, template_url=self.delete_manifest.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [202, 404]: @@ -785,7 +834,7 @@ def delete_manifest( if cls: return cls(pipeline_response, None, {}) - delete_manifest.metadata = {'url': '/v2/{name}/manifests/{reference}'} # type: ignore + delete_manifest.metadata = {'url': "/v2/{name}/manifests/{reference}"} # type: ignore @distributed_trace @@ -795,26 +844,29 @@ def get_repositories( n=None, # type: Optional[int] **kwargs # type: Any ): - # type: (...) -> Iterable["_models.Repositories"] + # type: (...) -> Iterable[_models.Repositories] """List repositories. :param last: Query parameter for the last item in previous query. Result set will include - values lexically after last. + values lexically after last. Default value is None. :type last: str - :param n: query parameter for max number of items. + :param n: query parameter for max number of items. Default value is None. :type n: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either Repositories or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~container_registry.models.Repositories] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2021-07-01") # type: str + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.Repositories] - cls = kwargs.pop('cls', None) # type: ClsType["_models.Repositories"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) def prepare_request(next_link=None): if not next_link: @@ -823,12 +875,14 @@ def prepare_request(next_link=None): last=last, n=n, template_url=self.get_repositories.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore else: @@ -837,12 +891,14 @@ def prepare_request(next_link=None): last=last, n=n, template_url=next_link, + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), @@ -860,7 +916,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -874,7 +934,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - get_repositories.metadata = {'url': '/acr/v1/_catalog'} # type: ignore + get_repositories.metadata = {'url': "/acr/v1/_catalog"} # type: ignore @distributed_trace def get_properties( @@ -882,7 +942,7 @@ def get_properties( name, # type: str **kwargs # type: Any ): - # type: (...) -> "_models.ContainerRepositoryProperties" + # type: (...) -> _models.ContainerRepositoryProperties """Get repository attributes. :param name: Name of the image (including the namespace). @@ -892,27 +952,36 @@ def get_properties( :rtype: ~container_registry.models.ContainerRepositoryProperties :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ContainerRepositoryProperties"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) - api_version = kwargs.pop('api_version', "2021-07-01") # type: str + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.ContainerRepositoryProperties] request = build_get_properties_request( name=name, api_version=api_version, template_url=self.get_properties.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -927,11 +996,11 @@ def get_properties( return deserialized - get_properties.metadata = {'url': '/acr/v1/{name}'} # type: ignore + get_properties.metadata = {'url': "/acr/v1/{name}"} # type: ignore @distributed_trace - def delete_repository( + def delete_repository( # pylint: disable=inconsistent-return-statements self, name, # type: str **kwargs # type: Any @@ -946,27 +1015,36 @@ def delete_repository( :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version = kwargs.pop('api_version', "2021-07-01") # type: str + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[None] request = build_delete_repository_request( name=name, api_version=api_version, template_url=self.delete_repository.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [202, 404]: @@ -977,36 +1055,39 @@ def delete_repository( if cls: return cls(pipeline_response, None, {}) - delete_repository.metadata = {'url': '/acr/v1/{name}'} # type: ignore + delete_repository.metadata = {'url': "/acr/v1/{name}"} # type: ignore @distributed_trace def update_properties( self, name, # type: str - value=None, # type: Optional["_models.RepositoryWriteableProperties"] + value=None, # type: Optional[_models.RepositoryWriteableProperties] **kwargs # type: Any ): - # type: (...) -> "_models.ContainerRepositoryProperties" + # type: (...) -> _models.ContainerRepositoryProperties """Update the attribute identified by ``name`` where ``reference`` is the name of the repository. :param name: Name of the image (including the namespace). :type name: str - :param value: Repository attribute value. + :param value: Repository attribute value. Default value is None. :type value: ~container_registry.models.RepositoryWriteableProperties :keyword callable cls: A custom type or function that will be passed the direct response :return: ContainerRepositoryProperties, or the result of cls(response) :rtype: ~container_registry.models.ContainerRepositoryProperties :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ContainerRepositoryProperties"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) - api_version = kwargs.pop('api_version', "2021-07-01") # type: str - content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/json")) # type: Optional[str] + cls = kwargs.pop('cls', None) # type: ClsType[_models.ContainerRepositoryProperties] if value is not None: _json = self._serialize.body(value, 'RepositoryWriteableProperties') @@ -1019,14 +1100,20 @@ def update_properties( content_type=content_type, json=_json, template_url=self.update_properties.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1041,7 +1128,7 @@ def update_properties( return deserialized - update_properties.metadata = {'url': '/acr/v1/{name}'} # type: ignore + update_properties.metadata = {'url': "/acr/v1/{name}"} # type: ignore @distributed_trace @@ -1054,32 +1141,35 @@ def get_tags( digest=None, # type: Optional[str] **kwargs # type: Any ): - # type: (...) -> Iterable["_models.TagList"] + # type: (...) -> Iterable[_models.TagList] """List tags of a repository. :param name: Name of the image (including the namespace). :type name: str :param last: Query parameter for the last item in previous query. Result set will include - values lexically after last. + values lexically after last. Default value is None. :type last: str - :param n: query parameter for max number of items. + :param n: query parameter for max number of items. Default value is None. :type n: int - :param orderby: orderby query parameter. + :param orderby: orderby query parameter. Default value is None. :type orderby: str - :param digest: filter by digest. + :param digest: filter by digest. Default value is None. :type digest: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either TagList or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~container_registry.models.TagList] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2021-07-01") # type: str + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.TagList] - cls = kwargs.pop('cls', None) # type: ClsType["_models.TagList"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) def prepare_request(next_link=None): if not next_link: @@ -1091,12 +1181,14 @@ def prepare_request(next_link=None): orderby=orderby, digest=digest, template_url=self.get_tags.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore else: @@ -1108,12 +1200,14 @@ def prepare_request(next_link=None): orderby=orderby, digest=digest, template_url=next_link, + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), @@ -1131,7 +1225,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1145,7 +1243,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - get_tags.metadata = {'url': '/acr/v1/{name}/_tags'} # type: ignore + get_tags.metadata = {'url': "/acr/v1/{name}/_tags"} # type: ignore @distributed_trace def get_tag_properties( @@ -1154,7 +1252,7 @@ def get_tag_properties( reference, # type: str **kwargs # type: Any ): - # type: (...) -> "_models.ArtifactTagProperties" + # type: (...) -> _models.ArtifactTagProperties """Get tag attributes by tag. :param name: Name of the image (including the namespace). @@ -1166,13 +1264,16 @@ def get_tag_properties( :rtype: ~container_registry.models.ArtifactTagProperties :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactTagProperties"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version = kwargs.pop('api_version', "2021-07-01") # type: str + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.ArtifactTagProperties] request = build_get_tag_properties_request( @@ -1180,14 +1281,20 @@ def get_tag_properties( reference=reference, api_version=api_version, template_url=self.get_tag_properties.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1202,7 +1309,7 @@ def get_tag_properties( return deserialized - get_tag_properties.metadata = {'url': '/acr/v1/{name}/_tags/{reference}'} # type: ignore + get_tag_properties.metadata = {'url': "/acr/v1/{name}/_tags/{reference}"} # type: ignore @distributed_trace @@ -1210,31 +1317,34 @@ def update_tag_attributes( self, name, # type: str reference, # type: str - value=None, # type: Optional["_models.TagWriteableProperties"] + value=None, # type: Optional[_models.TagWriteableProperties] **kwargs # type: Any ): - # type: (...) -> "_models.ArtifactTagProperties" + # type: (...) -> _models.ArtifactTagProperties """Update tag attributes. :param name: Name of the image (including the namespace). :type name: str :param reference: Tag name. :type reference: str - :param value: Tag attribute value. + :param value: Tag attribute value. Default value is None. :type value: ~container_registry.models.TagWriteableProperties :keyword callable cls: A custom type or function that will be passed the direct response :return: ArtifactTagProperties, or the result of cls(response) :rtype: ~container_registry.models.ArtifactTagProperties :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactTagProperties"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version = kwargs.pop('api_version', "2021-07-01") # type: str - content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/json")) # type: Optional[str] + cls = kwargs.pop('cls', None) # type: ClsType[_models.ArtifactTagProperties] if value is not None: _json = self._serialize.body(value, 'TagWriteableProperties') @@ -1248,14 +1358,20 @@ def update_tag_attributes( content_type=content_type, json=_json, template_url=self.update_tag_attributes.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1270,11 +1386,11 @@ def update_tag_attributes( return deserialized - update_tag_attributes.metadata = {'url': '/acr/v1/{name}/_tags/{reference}'} # type: ignore + update_tag_attributes.metadata = {'url': "/acr/v1/{name}/_tags/{reference}"} # type: ignore @distributed_trace - def delete_tag( + def delete_tag( # pylint: disable=inconsistent-return-statements self, name, # type: str reference, # type: str @@ -1292,13 +1408,16 @@ def delete_tag( :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) - api_version = kwargs.pop('api_version', "2021-07-01") # type: str + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[None] request = build_delete_tag_request( @@ -1306,14 +1425,20 @@ def delete_tag( reference=reference, api_version=api_version, template_url=self.delete_tag.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [202, 404]: @@ -1324,7 +1449,7 @@ def delete_tag( if cls: return cls(pipeline_response, None, {}) - delete_tag.metadata = {'url': '/acr/v1/{name}/_tags/{reference}'} # type: ignore + delete_tag.metadata = {'url': "/acr/v1/{name}/_tags/{reference}"} # type: ignore @distributed_trace @@ -1336,30 +1461,33 @@ def get_manifests( orderby=None, # type: Optional[str] **kwargs # type: Any ): - # type: (...) -> Iterable["_models.AcrManifests"] + # type: (...) -> Iterable[_models.AcrManifests] """List manifests of a repository. :param name: Name of the image (including the namespace). :type name: str :param last: Query parameter for the last item in previous query. Result set will include - values lexically after last. + values lexically after last. Default value is None. :type last: str - :param n: query parameter for max number of items. + :param n: query parameter for max number of items. Default value is None. :type n: int - :param orderby: orderby query parameter. + :param orderby: orderby query parameter. Default value is None. :type orderby: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either AcrManifests or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~container_registry.models.AcrManifests] :raises: ~azure.core.exceptions.HttpResponseError """ - api_version = kwargs.pop('api_version', "2021-07-01") # type: str + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.AcrManifests] - cls = kwargs.pop('cls', None) # type: ClsType["_models.AcrManifests"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) def prepare_request(next_link=None): if not next_link: @@ -1370,12 +1498,14 @@ def prepare_request(next_link=None): n=n, orderby=orderby, template_url=self.get_manifests.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore else: @@ -1386,12 +1516,14 @@ def prepare_request(next_link=None): n=n, orderby=orderby, template_url=next_link, + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), @@ -1409,7 +1541,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1423,7 +1559,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - get_manifests.metadata = {'url': '/acr/v1/{name}/_manifests'} # type: ignore + get_manifests.metadata = {'url': "/acr/v1/{name}/_manifests"} # type: ignore @distributed_trace def get_manifest_properties( @@ -1432,7 +1568,7 @@ def get_manifest_properties( digest, # type: str **kwargs # type: Any ): - # type: (...) -> "_models.ArtifactManifestProperties" + # type: (...) -> _models.ArtifactManifestProperties """Get manifest attributes. :param name: Name of the image (including the namespace). @@ -1444,13 +1580,16 @@ def get_manifest_properties( :rtype: ~container_registry.models.ArtifactManifestProperties :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactManifestProperties"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) - api_version = kwargs.pop('api_version', "2021-07-01") # type: str + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.ArtifactManifestProperties] request = build_get_manifest_properties_request( @@ -1458,14 +1597,20 @@ def get_manifest_properties( digest=digest, api_version=api_version, template_url=self.get_manifest_properties.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1480,7 +1625,7 @@ def get_manifest_properties( return deserialized - get_manifest_properties.metadata = {'url': '/acr/v1/{name}/_manifests/{digest}'} # type: ignore + get_manifest_properties.metadata = {'url': "/acr/v1/{name}/_manifests/{digest}"} # type: ignore @distributed_trace @@ -1488,31 +1633,34 @@ def update_manifest_properties( self, name, # type: str digest, # type: str - value=None, # type: Optional["_models.ManifestWriteableProperties"] + value=None, # type: Optional[_models.ManifestWriteableProperties] **kwargs # type: Any ): - # type: (...) -> "_models.ArtifactManifestProperties" + # type: (...) -> _models.ArtifactManifestProperties """Update properties of a manifest. :param name: Name of the image (including the namespace). :type name: str :param digest: Digest of a BLOB. :type digest: str - :param value: Manifest attribute value. + :param value: Manifest attribute value. Default value is None. :type value: ~container_registry.models.ManifestWriteableProperties :keyword callable cls: A custom type or function that will be passed the direct response :return: ArtifactManifestProperties, or the result of cls(response) :rtype: ~container_registry.models.ArtifactManifestProperties :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ArtifactManifestProperties"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) - api_version = kwargs.pop('api_version', "2021-07-01") # type: str - content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2021-07-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/json")) # type: Optional[str] + cls = kwargs.pop('cls', None) # type: ClsType[_models.ArtifactManifestProperties] if value is not None: _json = self._serialize.body(value, 'ManifestWriteableProperties') @@ -1526,14 +1674,20 @@ def update_manifest_properties( content_type=content_type, json=_json, template_url=self.update_manifest_properties.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) path_format_arguments = { "url": self._serialize.url("self._config.url", self._config.url, 'str', skip_quote=True), } - request.url = self._client.format_url(request.url, **path_format_arguments) + request.url = self._client.format_url(request.url, **path_format_arguments) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -1548,5 +1702,5 @@ def update_manifest_properties( return deserialized - update_manifest_properties.metadata = {'url': '/acr/v1/{name}/_manifests/{digest}'} # type: ignore + update_manifest_properties.metadata = {'url': "/acr/v1/{name}/_manifests/{digest}"} # type: ignore diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_patch.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_patch.py new file mode 100644 index 000000000000..8a35ddb87c7e --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/operations/_patch.py @@ -0,0 +1,23 @@ +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +"""Customize generated code here. + +Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize +""" +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import List + +__all__ = [] # type: List[str] # Add all objects you want publicly available to users at this package level + +def patch_sdk(): + """Do not remove from this file. + + `patch_sdk` is a last resort escape hatch that allows you to do customizations + you can't accomplish using the techniques described in + https://aka.ms/azsdk/python/dpcodegen/python/customize + """ diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_helpers.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_helpers.py index d9af0ea0bef2..f00b77452448 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_helpers.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_helpers.py @@ -4,18 +4,22 @@ # Licensed under the MIT License. # ------------------------------------ import base64 -import json +import hashlib import re import time -from typing import TYPE_CHECKING, List, Dict +import json +from typing import TYPE_CHECKING +from io import BytesIO try: from urllib.parse import urlparse except ImportError: from urlparse import urlparse from azure.core.exceptions import ServiceRequestError +from ._generated.models import OCIManifest if TYPE_CHECKING: + from typing import List, Dict, IO from azure.core.pipeline import PipelineRequest BEARER = "Bearer" @@ -24,13 +28,13 @@ "2019-08-15-preview", "2021-07-01" ] +OCI_MANIFEST_MEDIA_TYPE = "application/vnd.oci.image.manifest.v1+json" def _is_tag(tag_or_digest): # type: (str) -> bool tag = tag_or_digest.split(":") - return not (len(tag) == 2 and tag[0].startswith(u"sha")) - + return not (len(tag) == 2 and tag[0].startswith("sha")) def _clean(matches): # type: (List[str]) -> None @@ -47,7 +51,6 @@ def _clean(matches): except ValueError: return - def _parse_challenge(header): # type: (str) -> Dict[str, str] """Parse challenge header into service and scope""" @@ -63,7 +66,6 @@ def _parse_challenge(header): return ret - def _parse_next_link(link_string): # type: (str) -> str """Parses the next link in the list operations response URL @@ -81,7 +83,6 @@ def _parse_next_link(link_string): return None return link_string[1 : link_string.find(">")] - def _enforce_https(request): # type: (PipelineRequest) -> None """Raise ServiceRequestError if the request URL is non-HTTPS and the sender did not specify enforce_https=False""" @@ -100,18 +101,15 @@ def _enforce_https(request): "Bearer token authentication is not permitted for non-TLS protected (non-https) URLs." ) - def _host_only(url): # type: (str) -> str return urlparse(url).netloc - def _strip_alg(digest): if len(digest.split(":")) == 2: return digest.split(":")[1] return digest - def _parse_exp_time(raw_token): # type: (bytes) -> float value = raw_token.split(".") @@ -125,3 +123,27 @@ def _parse_exp_time(raw_token): return web_token.get("exp", time.time()) return time.time() + +def _serialize_manifest(manifest): + # type: (OCIManifest) -> IO + data = json.dumps(manifest.serialize()).encode('utf-8') + return BytesIO(data) + +def _deserialize_manifest(data): + # type: (IO) -> OCIManifest + data.seek(0) + value = data.read() + data.seek(0) + return OCIManifest.deserialize(json.loads(value.decode())) + +def _compute_digest(data): + # type: (IO) -> str + data.seek(0) + value = data.read() + data.seek(0) + return "sha256:" + hashlib.sha256(value).hexdigest() + +def _validate_digest(data, digest): + # type: (IO, str) -> bool + data_digest = _compute_digest(data) + return data_digest == digest diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py index 9ab797410e72..a41a61fd39eb 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_models.py @@ -18,8 +18,9 @@ from ._helpers import _host_only, _is_tag, _strip_alg if TYPE_CHECKING: + from typing import IO from datetime import datetime - from ._generated.models import ManifestAttributesBase + from ._generated.models import ManifestAttributesBase, OCIManifest class ArtifactManifestProperties(object): # pylint: disable=too-many-instance-attributes @@ -312,6 +313,35 @@ def repository_name(self): return self._repository_name +class DownloadBlobResult(object): + """The result from downloading a blob from the registry. + + :ivar data: The blob content. + :vartype data: IO + :ivar str digest: The blob's digest, calculated by the registry. + """ + + def __init__(self, **kwargs): + self.data = kwargs.get("data") + self.digest = kwargs.get("digest") + + +class DownloadManifestResult(object): + """The result from downloading a manifest from the registry. + + :ivar manifest: The OCI manifest that was downloaded. + :vartype manifest: ~azure.containerregistry.models.OCIManifest + :ivar data: The manifest stream that was downloaded. + :vartype data: IO + :ivar str digest: The manifest's digest, calculated by the registry. + """ + + def __init__(self, **kwargs): + self.manifest = kwargs.get("manifest") + self.data = kwargs.get("data") + self.digest = kwargs.get("digest") + + class ArtifactArchitecture(str, Enum): # pylint: disable=enum-must-inherit-case-insensitive-enum-meta AMD64 = "amd64" diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_version.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_version.py index 010063f9dd93..7ee83c005efc 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_version.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. # ------------------------------------ -VERSION = "1.0.1" +VERSION = "1.1.0b2" diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_base_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_base_client.py index 8f928afc9a3e..a1a5ca2e2d64 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_base_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_base_client.py @@ -59,7 +59,7 @@ async def close(self) -> None: def _is_tag(self, tag_or_digest: str) -> bool: # pylint: disable=no-self-use tag = tag_or_digest.split(":") - return not (len(tag) == 2 and tag[0].startswith(u"sha")) + return not (len(tag) == 2 and tag[0].startswith("sha")) class AsyncTransportWrapper(AsyncHttpTransport): diff --git a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py index 6a36f9441209..f17252575e5b 100644 --- a/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py +++ b/sdk/containerregistry/azure-containerregistry/azure/containerregistry/aio/_async_container_registry_client.py @@ -3,7 +3,7 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ -from typing import Any, Dict, TYPE_CHECKING, Optional, overload, Union +from typing import TYPE_CHECKING, Any, Optional, overload, Union from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ( @@ -23,11 +23,13 @@ if TYPE_CHECKING: from azure.core.credentials_async import AsyncTokenCredential + from typing import Dict class ContainerRegistryClient(ContainerRegistryBaseClient): def __init__( - self, endpoint: str, credential: Optional["AsyncTokenCredential"] = None, *, audience, **kwargs: Any) -> None: + self, endpoint: str, credential: "Optional['AsyncTokenCredential']" = None, *, audience: str, **kwargs: "Any" + ) -> None: """Create a ContainerRegistryClient from an ACR endpoint and a credential. :param str endpoint: An ACR endpoint. @@ -75,7 +77,7 @@ async def _get_digest_from_tag(self, repository: str, tag: str) -> str: return tag_props.digest @distributed_trace_async - async def delete_repository(self, repository: str, **kwargs: Any) -> None: + async def delete_repository(self, repository: str, **kwargs: "Any") -> None: """Delete a repository. If the repository cannot be found or a response status code of 404 is returned an error will not be raised. @@ -96,7 +98,7 @@ async def delete_repository(self, repository: str, **kwargs: Any) -> None: await self._client.container_registry.delete_repository(repository, **kwargs) @distributed_trace - def list_repository_names(self, **kwargs: Any) -> AsyncItemPaged[str]: + def list_repository_names(self, **kwargs: "Any") -> "AsyncItemPaged[str]": """List all repositories :keyword results_per_page: Number of repositories to return per page @@ -204,7 +206,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) @distributed_trace_async - async def get_repository_properties(self, repository: str, **kwargs: Any) -> RepositoryProperties: + async def get_repository_properties(self, repository: str, **kwargs: "Any") -> "RepositoryProperties": """Get the properties of a repository :param str repository: Name of the repository @@ -216,7 +218,9 @@ async def get_repository_properties(self, repository: str, **kwargs: Any) -> Rep ) @distributed_trace - def list_manifest_properties(self, repository: str, **kwargs: Any) -> AsyncItemPaged[ArtifactManifestProperties]: + def list_manifest_properties( + self, repository: str, **kwargs: "Any" + ) -> "AsyncItemPaged[ArtifactManifestProperties]": """List the manifests of a repository :param str repository: Name of the repository @@ -334,33 +338,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) @distributed_trace_async - async def delete_manifest(self, repository: str, tag_or_digest: str, **kwargs: Any) -> None: - """Delete a manifest. If the manifest cannot be found or a response status code of - 404 is returned an error will not be raised. - - :param str repository: Repository the manifest belongs to - :param str tag_or_digest: Tag or digest of the manifest to be deleted. - :returns: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - - Example - - .. code-block:: python - - from azure.containerregistry.aio import ContainerRegistryClient - from azure.identity.aio import DefaultAzureCredential - endpoint = os.environ["CONTAINERREGISTRY_ENDPOINT"] - client = ContainerRegistryClient(endpoint, DefaultAzureCredential(), audience="my_audience") - await client.delete_manifest("my_repository", "my_tag_or_digest") - """ - if _is_tag(tag_or_digest): - tag_or_digest = await self._get_digest_from_tag(repository, tag_or_digest) - - await self._client.container_registry.delete_manifest(repository, tag_or_digest, **kwargs) - - @distributed_trace_async - async def delete_tag(self, repository: str, tag: str, **kwargs: Any) -> None: + async def delete_tag(self, repository: str, tag: str, **kwargs: "Any") -> None: """Delete a tag from a repository. If the tag cannot be found or a response status code of 404 is returned an error will not be raised. @@ -385,8 +363,8 @@ async def delete_tag(self, repository: str, tag: str, **kwargs: Any) -> None: @distributed_trace_async async def get_manifest_properties( - self, repository: str, tag_or_digest: str, **kwargs: Any - ) -> ArtifactManifestProperties: + self, repository: str, tag_or_digest: str, **kwargs: "Any" + ) -> "ArtifactManifestProperties": """Get the properties of a registry artifact :param str repository: Name of the repository @@ -415,7 +393,7 @@ async def get_manifest_properties( ) @distributed_trace_async - async def get_tag_properties(self, repository: str, tag: str, **kwargs: Any) -> ArtifactTagProperties: + async def get_tag_properties(self, repository: str, tag: str, **kwargs: "Any") -> "ArtifactTagProperties": """Get the properties for a tag :param str repository: Repository the tag belongs to @@ -441,7 +419,7 @@ async def get_tag_properties(self, repository: str, tag: str, **kwargs: Any) -> ) @distributed_trace - def list_tag_properties(self, repository: str, **kwargs: Any) -> AsyncItemPaged[ArtifactTagProperties]: + def list_tag_properties(self, repository: str, **kwargs: "Any") -> "AsyncItemPaged[ArtifactTagProperties]": """List the tags for a repository :param str repository: Name of the repository @@ -572,18 +550,18 @@ async def get_next(next_link=None): @overload def update_repository_properties( - self, repository: str, properties: RepositoryProperties, **kwargs: Any + self, repository: str, properties: "RepositoryProperties", **kwargs: "Any" ) -> RepositoryProperties: ... @overload - def update_repository_properties(self, repository: str, **kwargs: Any) -> RepositoryProperties: + def update_repository_properties(self, repository: str, **kwargs: "Any") -> "RepositoryProperties": ... @distributed_trace_async async def update_repository_properties( - self, *args: Union[str, RepositoryProperties], **kwargs: Any - ) -> RepositoryProperties: + self, *args: "Union[str, RepositoryProperties]", **kwargs: "Any" + ) -> "RepositoryProperties": """Set the permission properties of a repository. The updatable properties include: `can_delete`, `can_list`, `can_read`, and `can_write`. @@ -620,20 +598,20 @@ async def update_repository_properties( @overload def update_manifest_properties( - self, repository: str, tag_or_digest: str, properties: ArtifactManifestProperties, **kwargs: Any - ) -> ArtifactManifestProperties: + self, repository: str, tag_or_digest: str, properties: "ArtifactManifestProperties", **kwargs: "Any" + ) -> "ArtifactManifestProperties": ... @overload def update_manifest_properties( - self, repository: str, tag_or_digest: str, **kwargs: Any - ) -> ArtifactManifestProperties: + self, repository: str, tag_or_digest: str, **kwargs: "Any" + ) -> "ArtifactManifestProperties": ... @distributed_trace_async async def update_manifest_properties( - self, *args: Union[str, ArtifactManifestProperties], **kwargs: Any - ) -> ArtifactManifestProperties: + self, *args: "Union[str, ArtifactManifestProperties]", **kwargs: "Any" + ) -> "ArtifactManifestProperties": """Set the permission properties for a manifest. The updatable properties include: `can_delete`, `can_list`, `can_read`, and `can_write`. @@ -697,18 +675,18 @@ async def update_manifest_properties( @overload def update_tag_properties( - self, repository: str, tag: str, properties: ArtifactTagProperties, **kwargs: Any - ) -> ArtifactTagProperties: + self, repository: str, tag: str, properties: "ArtifactTagProperties", **kwargs: "Any" + ) -> "ArtifactTagProperties": ... @overload - def update_tag_properties(self, repository: str, tag: str, **kwargs: Any) -> ArtifactTagProperties: + def update_tag_properties(self, repository: str, tag: str, **kwargs: "Any") -> "ArtifactTagProperties": ... @distributed_trace_async async def update_tag_properties( - self, *args: Union[str, ArtifactTagProperties], **kwargs: Any - ) -> ArtifactTagProperties: + self, *args: "Union[str, ArtifactTagProperties]", **kwargs: "Any" + ) -> "ArtifactTagProperties": """Set the permission properties for a tag. The updatable properties include: `can_delete`, `can_list`, `can_read`, and `can_write`. @@ -762,3 +740,29 @@ async def update_tag_properties( ), repository=repository, ) + + @distributed_trace_async + async def delete_manifest(self, repository: str, tag_or_digest: str, **kwargs: "Any") -> None: + """Delete a manifest. If the manifest cannot be found or a response status code of + 404 is returned an error will not be raised. + + :param str repository: Repository the manifest belongs to + :param str tag_or_digest: Tag or digest of the manifest to be deleted. + :returns: None + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + + Example + + .. code-block:: python + + from azure.containerregistry.aio import ContainerRegistryClient + from azure.identity.aio import DefaultAzureCredential + endpoint = os.environ["CONTAINERREGISTRY_ENDPOINT"] + client = ContainerRegistryClient(endpoint, DefaultAzureCredential(), audience="my_audience") + await client.delete_manifest("my_repository", "my_tag_or_digest") + """ + if _is_tag(tag_or_digest): + tag_or_digest = await self._get_digest_from_tag(repository, tag_or_digest) + + await self._client.container_registry.delete_manifest(repository, tag_or_digest, **kwargs) diff --git a/sdk/containerregistry/azure-containerregistry/setup.py b/sdk/containerregistry/azure-containerregistry/setup.py index 7be3cc945136..e6a860707bed 100644 --- a/sdk/containerregistry/azure-containerregistry/setup.py +++ b/sdk/containerregistry/azure-containerregistry/setup.py @@ -35,7 +35,7 @@ license="MIT License", # ensure that the development status reflects the status of your package classifiers=[ - "Development Status :: 5 - Production/Stable", + "Development Status :: 4 - Beta", "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3", @@ -55,7 +55,7 @@ ), python_requires=">=3.6", install_requires=[ - "azure-core>=1.20.0,<2.0.0", + "azure-core>=1.23.0,<2.0.0", "msrest>=0.6.21", ], project_urls={ diff --git a/sdk/containerregistry/azure-containerregistry/swagger/README.md b/sdk/containerregistry/azure-containerregistry/swagger/README.md index eee28f94cbfc..10b83eca3796 100644 --- a/sdk/containerregistry/azure-containerregistry/swagger/README.md +++ b/sdk/containerregistry/azure-containerregistry/swagger/README.md @@ -108,3 +108,66 @@ directive: transform: > $.required = true ``` + +# Change NextLink client name to nextLink +``` yaml +directive: + from: swagger-document + where: $.parameters.NextLink + transform: > + $["x-ms-client-name"] = "nextLink" +``` + +# Updates to OciManifest +``` yaml +directive: + from: swagger-document + where: $.definitions.OCIManifest + transform: > + $["x-csharp-usage"] = "model,input,output,converter"; + $["x-csharp-formats"] = "json"; + delete $["x-accessibility"]; + delete $["allOf"]; + $.properties["schemaVersion"] = { + "type": "integer", + "description": "Schema version" + }; +``` + +# Take stream as manifest body +``` yaml +directive: + from: swagger-document + where: $.parameters.ManifestBody + transform: > + $.schema = { + "type": "string", + "format": "binary" + } +``` + +# Make ArtifactBlobDescriptor a public type +``` yaml +directive: + from: swagger-document + where: $.definitions.Descriptor + transform: > + delete $["x-accessibility"] +``` + +# Make OciAnnotations a public type +``` yaml +directive: + from: swagger-document + where: $.definitions.Annotations + transform: > + delete $["x-accessibility"] +``` + +``` yaml +directive: + from: swagger-document + where-operation: ContainerRegistry_GetManifest + transform: > + $.parameters = $.parameters.filter(item => item.name !== "accept") +``` diff --git a/sdk/containerregistry/azure-containerregistry/tests/data/oci_artifact/654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed b/sdk/containerregistry/azure-containerregistry/tests/data/oci_artifact/654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed new file mode 100644 index 000000000000..80993781b54e Binary files /dev/null and b/sdk/containerregistry/azure-containerregistry/tests/data/oci_artifact/654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed differ diff --git a/sdk/containerregistry/azure-containerregistry/tests/data/oci_artifact/config.json b/sdk/containerregistry/azure-containerregistry/tests/data/oci_artifact/config.json new file mode 100644 index 000000000000..2e34cd1899dc Binary files /dev/null and b/sdk/containerregistry/azure-containerregistry/tests/data/oci_artifact/config.json differ diff --git a/sdk/containerregistry/azure-containerregistry/tests/data/oci_artifact/manifest.json b/sdk/containerregistry/azure-containerregistry/tests/data/oci_artifact/manifest.json new file mode 100644 index 000000000000..97ab36d0ddcf --- /dev/null +++ b/sdk/containerregistry/azure-containerregistry/tests/data/oci_artifact/manifest.json @@ -0,0 +1,18 @@ +{ + "schemaVersion": 2, + "config": { + "mediaType": "application/vnd.acme.rocket.config", + "digest": "sha256:d25b42d3dbad5361ed2d909624d899e7254a822c9a632b582ebd3a44f9b0dbc8", + "size": 171 + }, + "layers": [ + { + "mediaType": "application/vnd.oci.image.layer.v1.tar", + "digest": "sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", + "size": 28, + "annotations": { + "org.opencontainers.image.title": "artifact.txt" + } + } + ] +} diff --git a/sdk/containerregistry/azure-containerregistry/tests/test_container_registry_client.py b/sdk/containerregistry/azure-containerregistry/tests/test_container_registry_client.py index bfd7dd9c7ae8..41823e99407b 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/test_container_registry_client.py +++ b/sdk/containerregistry/azure-containerregistry/tests/test_container_registry_client.py @@ -4,10 +4,9 @@ # Licensed under the MIT License. # ------------------------------------ from datetime import datetime -from azure.core import credentials +import os import pytest import six -import time from azure.containerregistry import ( RepositoryProperties, @@ -17,6 +16,7 @@ ArtifactTagOrder, ContainerRegistryClient, ) +from azure.containerregistry._helpers import _deserialize_manifest from azure.core.exceptions import ResourceNotFoundError, ClientAuthenticationError from azure.core.paging import ItemPaged @@ -601,3 +601,136 @@ def test_get_misspell_property(self, containerregistry_endpoint): last_udpated_on = properties.last_udpated_on last_updated_on = properties.last_updated_on assert last_udpated_on == last_updated_on + + @pytest.mark.live_test_only + @acr_preparer() + def test_upload_oci_manifest(self, containerregistry_endpoint): + # TODO: remove the "@pytest.mark.live_test_only" annotation once moved to the new test framework + # Arrange + repo = self.get_resource_name("repo") + manifest = self.create_oci_manifest() + client = self.create_registry_client(containerregistry_endpoint) + + self.upload_manifest_prerequisites(repo, client) + + # Act + digest = client.upload_manifest(repo, manifest) + + # Assert + response = client.download_manifest(repo, digest) + assert response.digest == digest + assert response.data.tell() == 0 + self.assert_manifest(response.manifest, manifest) + + client.delete_manifest(repo, digest) + + @pytest.mark.live_test_only + @acr_preparer() + def test_upload_oci_manifest_stream(self, containerregistry_endpoint): + # TODO: remove the "@pytest.mark.live_test_only" annotation once moved to the new test framework + # Arrange + repo = self.get_resource_name("repo") + base_path = os.path.join(self.get_test_directory(), "data", "oci_artifact") + manifest_stream = open(os.path.join(base_path, "manifest.json"), "rb") + manifest = _deserialize_manifest(manifest_stream) + client = self.create_registry_client(containerregistry_endpoint) + + self.upload_manifest_prerequisites(repo, client) + + # Act + digest = client.upload_manifest(repo, manifest_stream) + + # Assert + response = client.download_manifest(repo, digest) + assert response.digest == digest + assert response.data.tell() == 0 + self.assert_manifest(response.manifest, manifest) + + client.delete_manifest(repo, digest) + + @pytest.mark.live_test_only + @acr_preparer() + def test_upload_oci_manifest_with_tag(self, containerregistry_endpoint): + # TODO: remove the "@pytest.mark.live_test_only" annotation once moved to the new test framework + # Arrange + repo = self.get_resource_name("repo") + manifest = self.create_oci_manifest() + client = self.create_registry_client(containerregistry_endpoint) + tag = "v1" + + self.upload_manifest_prerequisites(repo, client) + + # Act + digest = client.upload_manifest(repo, manifest, tag=tag) + + # Assert + response = client.download_manifest(repo, digest) + assert response.digest == digest + assert response.data.tell() == 0 + self.assert_manifest(response.manifest, manifest) + + response = client.download_manifest(repo, tag) + assert response.digest == digest + assert response.data.tell() == 0 + self.assert_manifest(response.manifest, manifest) + + tags = client.get_manifest_properties(repo, digest).tags + assert len(tags) == 1 + assert tags[0] == tag + + client.delete_manifest(repo, digest) + + @pytest.mark.live_test_only + @acr_preparer() + def test_upload_oci_manifest_stream_with_tag(self, containerregistry_endpoint): + # TODO: remove the "@pytest.mark.live_test_only" annotation once moved to the new test framework + # Arrange + repo = self.get_resource_name("repo") + base_path = os.path.join(self.get_test_directory(), "data", "oci_artifact") + manifest_stream = open(os.path.join(base_path, "manifest.json"), "rb") + manifest = _deserialize_manifest(manifest_stream) + client = self.create_registry_client(containerregistry_endpoint) + tag = "v1" + + self.upload_manifest_prerequisites(repo, client) + + # Act + digest = client.upload_manifest(repo, manifest_stream, tag=tag) + + # Assert + response = client.download_manifest(repo, digest) + assert response.digest == digest + assert response.data.tell() == 0 + self.assert_manifest(response.manifest, manifest) + + response = client.download_manifest(repo, tag) + assert response.digest == digest + assert response.data.tell() == 0 + self.assert_manifest(response.manifest, manifest) + + tags = client.get_manifest_properties(repo, digest).tags + assert len(tags) == 1 + assert tags[0] == tag + + client.delete_manifest(repo, digest) + + @pytest.mark.live_test_only + @acr_preparer() + def test_upload_blob(self, containerregistry_endpoint): + # TODO: remove the "@pytest.mark.live_test_only" annotation once moved to the new test framework + # Arrange + repo = self.get_resource_name("repo") + client = self.create_registry_client(containerregistry_endpoint) + blob = "654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed" + path = os.path.join(self.get_test_directory(), "data", "oci_artifact", blob) + + # Act + data = open(path, "rb") + digest = client.upload_blob(repo, data) + + # Assert + res = client.download_blob(repo, digest) + assert len(res.data.read()) == len(data.read()) + assert res.digest == digest + + client.delete_blob(repo, digest) diff --git a/sdk/containerregistry/azure-containerregistry/tests/testcase.py b/sdk/containerregistry/azure-containerregistry/tests/testcase.py index a87bd1c09eed..3140f9c89dc7 100644 --- a/sdk/containerregistry/azure-containerregistry/tests/testcase.py +++ b/sdk/containerregistry/azure-containerregistry/tests/testcase.py @@ -12,7 +12,8 @@ import time from azure.containerregistry import ContainerRegistryClient -from azure.containerregistry._helpers import _is_tag +from azure.containerregistry._helpers import _is_tag, OCI_MANIFEST_MEDIA_TYPE +from azure.containerregistry._generated.models import Annotations, Descriptor, OCIManifest from azure.core.credentials import AccessToken from azure.mgmt.containerregistry import ContainerRegistryManagementClient @@ -196,6 +197,18 @@ def assert_all_properties(self, properties, value): assert properties.can_write == value assert properties.can_list == value + def assert_manifest(self, manifest, expected): + assert manifest is not None + assert manifest.schema_version == expected.schema_version + assert manifest.config is not None + assert_manifest_config_or_layer_properties(manifest.config, expected.config) + assert manifest.layers is not None + assert len(manifest.layers) == len(expected.layers) + count = 0 + for layer in manifest.layers: + assert_manifest_config_or_layer_properties(layer, expected.layers[count]) + count += 1 + def create_fully_qualified_reference(self, registry, repository, digest): return "{}/{}{}{}".format( registry, @@ -206,7 +219,32 @@ def create_fully_qualified_reference(self, registry, repository, digest): def is_public_endpoint(self, endpoint): return ".azurecr.io" in endpoint - + + def create_oci_manifest(self): + config1 = Descriptor( + media_type="application/vnd.acme.rocket.config", + digest="sha256:d25b42d3dbad5361ed2d909624d899e7254a822c9a632b582ebd3a44f9b0dbc8", + size=171 + ) + config2 = Descriptor( + media_type="application/vnd.oci.image.layer.v1.tar", + digest="sha256:654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed", + size=28, + annotations=Annotations(name="artifact.txt") + ) + return OCIManifest(config=config1, schema_version=2, layers=[config2]) + + def upload_manifest_prerequisites(self, repo, client): + layer = "654b93f61054e4ce90ed203bb8d556a6200d5f906cf3eca0620738d6dc18cbed" + config = "config.json" + base_path = os.path.join(self.get_test_directory(), "data", "oci_artifact") + # upload config + client.upload_blob(repo, open(os.path.join(base_path, config), "rb")) + # upload layers + client.upload_blob(repo, open(os.path.join(base_path, layer), "rb")) + + def get_test_directory(self): + return os.path.join(os.getcwd(), "tests") def get_authority(endpoint): if ".azurecr.io" in endpoint: @@ -223,7 +261,6 @@ def get_authority(endpoint): return AzureAuthorityHosts.AZURE_GERMANY raise ValueError("Endpoint ({}) could not be understood".format(endpoint)) - def get_audience(authority): if authority == AzureAuthorityHosts.AZURE_PUBLIC_CLOUD: logger.warning("Public auth scope") @@ -306,7 +343,6 @@ def import_image(authority, repository, tags): while not result.done(): pass - @pytest.fixture(scope="session") def load_registry(): if not is_live(): @@ -332,4 +368,9 @@ def load_registry(): try: import_image(authority, repo, tag) except Exception as e: - print(e) \ No newline at end of file + print(e) + +def assert_manifest_config_or_layer_properties(value, expected): + assert value.media_type == expected.media_type + assert value.digest == expected.digest + assert value.size == expected.size diff --git a/sdk/cosmos/azure-cosmos/README.md b/sdk/cosmos/azure-cosmos/README.md index 9930ae0530a5..7c29d7a73df7 100644 --- a/sdk/cosmos/azure-cosmos/README.md +++ b/sdk/cosmos/azure-cosmos/README.md @@ -468,7 +468,7 @@ For more information on TTL, see [Time to Live for Azure Cosmos DB data][cosmos_ ### Using the asynchronous client (Preview) The asynchronous cosmos client is a separate client that looks and works in a similar fashion to the existing synchronous client. However, the async client needs to be imported separately and its methods need to be used with the async/await keywords. -The Async client needs to be initialized and closed after usage. The example below shows how to do so by using the client's __aenter__() and close() methods. +The Async client needs to be initialized and closed after usage, which can be done manually or with the use of a context manager. The example below shows how to do so manually. ```Python from azure.cosmos.aio import CosmosClient @@ -481,7 +481,6 @@ CONTAINER_NAME = 'products' async def create_products(): client = CosmosClient(URL, credential=KEY) - await client.__aenter__() database = client.get_database_client(DATABASE_NAME) container = database.get_container_client(CONTAINER_NAME) for i in range(10): diff --git a/sdk/cosmos/azure-cosmos/azure/cosmos/_base.py b/sdk/cosmos/azure-cosmos/azure/cosmos/_base.py index aacafbd41458..b99a569fc1e9 100644 --- a/sdk/cosmos/azure-cosmos/azure/cosmos/_base.py +++ b/sdk/cosmos/azure-cosmos/azure/cosmos/_base.py @@ -242,7 +242,7 @@ def GetHeaders( # pylint: disable=too-many-statements,too-many-branches headers[http_constants.HttpHeaders.XDate] = datetime.datetime.utcnow().strftime("%a, %d %b %Y %H:%M:%S GMT") if cosmos_client_connection.master_key or cosmos_client_connection.resource_tokens: - authorization = auth.get_authorization_header( + authorization = auth._get_authorization_header( cosmos_client_connection, verb, path, resource_id, IsNameBased(resource_id), resource_type, headers ) # urllib.quote throws when the input parameter is None diff --git a/sdk/cosmos/azure-cosmos/azure/cosmos/auth.py b/sdk/cosmos/azure-cosmos/azure/cosmos/auth.py index 7c239ccec7ac..cca10023ca5f 100644 --- a/sdk/cosmos/azure-cosmos/azure/cosmos/auth.py +++ b/sdk/cosmos/azure-cosmos/azure/cosmos/auth.py @@ -36,11 +36,11 @@ def GetAuthorizationHeader( warnings.warn("This method has been deprecated and will be removed from the SDK in a future release.", DeprecationWarning) - return get_authorization_header( + return _get_authorization_header( cosmos_client_connection, verb, path, resource_id_or_fullname, is_name_based, resource_type, headers) -def get_authorization_header( +def _get_authorization_header( cosmos_client_connection, verb, path, resource_id_or_fullname, is_name_based, resource_type, headers ): """Gets the authorization header. diff --git a/sdk/cosmos/azure-cosmos/samples/examples_async.py b/sdk/cosmos/azure-cosmos/samples/examples_async.py index 97edcd7c9519..88a714fef0c4 100644 --- a/sdk/cosmos/azure-cosmos/samples/examples_async.py +++ b/sdk/cosmos/azure-cosmos/samples/examples_async.py @@ -19,16 +19,7 @@ async def examples_async(): # which can only be used within async methods like examples_async() here # Since this is an asynchronous client, in order to properly use it you also have to warm it up and close it down. - # One way to do it would be like below (all of these statements would be necessary if you want to do it this way). - - async_client = CosmosClient(url, key) - await async_client.__aenter__() - - # [CODE LOGIC HERE, CLOSING WITH THE STATEMENT BELOW WHEN DONE] - - await async_client.close() - - # Or better, you can use the `async with` keywords like below to start your clients - these keywords + # We recommend using the `async with` keywords like below to start your clients - these keywords # create a context manager that automatically warms up, initializes, and cleans up the client, so you don't have to. # [START create_client] diff --git a/sdk/eventhub/azure-eventhub/CHANGELOG.md b/sdk/eventhub/azure-eventhub/CHANGELOG.md index 8adeff22e210..ddc71cc7acfe 100644 --- a/sdk/eventhub/azure-eventhub/CHANGELOG.md +++ b/sdk/eventhub/azure-eventhub/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 5.9.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 5.9.0 (2022-05-10) ### Features Added diff --git a/sdk/eventhub/azure-eventhub/azure/eventhub/_version.py b/sdk/eventhub/azure-eventhub/azure/eventhub/_version.py index a2fb3f25b18c..0c74c27abc63 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.9.0" +VERSION = "5.9.1" diff --git a/sdk/identity/azure-identity/CHANGELOG.md b/sdk/identity/azure-identity/CHANGELOG.md index 5b10d4601250..bc8f4d71490d 100644 --- a/sdk/identity/azure-identity/CHANGELOG.md +++ b/sdk/identity/azure-identity/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.11.0b2 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.11.0b1 (2022-05-10) ### Features Added diff --git a/sdk/identity/azure-identity/azure/identity/_version.py b/sdk/identity/azure-identity/azure/identity/_version.py index ee47379c2b5d..affe362b8050 100644 --- a/sdk/identity/azure-identity/azure/identity/_version.py +++ b/sdk/identity/azure-identity/azure/identity/_version.py @@ -2,4 +2,4 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ -VERSION = "1.11.0b1" +VERSION = "1.11.0b2" diff --git a/sdk/keyvault/azure-keyvault-administration/tests/_async_test_case.py b/sdk/keyvault/azure-keyvault-administration/tests/_async_test_case.py new file mode 100644 index 000000000000..81b3f27463fc --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/_async_test_case.py @@ -0,0 +1,96 @@ +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +import os + +import pytest +from azure.keyvault.administration import ApiVersion +from azure.keyvault.administration._internal.client_base import DEFAULT_VERSION +from devtools_testutils import AzureRecordedTestCase + + +class BaseClientPreparer(AzureRecordedTestCase): + def __init__(self, **kwargs) -> None: + hsm_playback_url = "https://managedhsmvaultname.vault.azure.net" + container_playback_uri = "https://storagename.blob.core.windows.net/container" + playback_sas_token = "fake-sas" + + if self.is_live: + self.managed_hsm_url = os.environ.get("AZURE_MANAGEDHSM_URL") + storage_name = os.environ.get("BLOB_STORAGE_ACCOUNT_NAME") + storage_endpoint_suffix = os.environ.get("KEYVAULT_STORAGE_ENDPOINT_SUFFIX") + container_name = os.environ.get("BLOB_CONTAINER_NAME") + self.container_uri = "https://{}.blob.{}/{}".format(storage_name, storage_endpoint_suffix, container_name) + + self.sas_token = os.environ.get("BLOB_STORAGE_SAS_TOKEN") + + else: + self.managed_hsm_url = hsm_playback_url + self.container_uri = container_playback_uri + self.sas_token = playback_sas_token + + self._set_mgmt_settings_real_values() + + def _skip_if_not_configured(self, api_version, **kwargs): + if self.is_live and api_version != DEFAULT_VERSION: + pytest.skip("This test only uses the default API version for live tests") + if self.is_live and self.managed_hsm_url is None: + pytest.skip("No HSM endpoint for live testing") + + def _set_mgmt_settings_real_values(self): + if self.is_live: + os.environ["AZURE_TENANT_ID"] = os.environ["KEYVAULT_TENANT_ID"] + os.environ["AZURE_CLIENT_ID"] = os.environ["KEYVAULT_CLIENT_ID"] + os.environ["AZURE_CLIENT_SECRET"] = os.environ["KEYVAULT_CLIENT_SECRET"] + + + +class KeyVaultBackupClientPreparer(BaseClientPreparer): + def __call__(self, fn): + async def _preparer(test_class, api_version, **kwargs): + self._skip_if_not_configured(api_version) + kwargs["container_uri"] = self.container_uri + kwargs["sas_token"] = self.sas_token + kwargs["managed_hsm_url"] = self.managed_hsm_url + client = self.create_backup_client(api_version=api_version, **kwargs) + + async with client: + await fn(test_class, client, **kwargs) + return _preparer + + def create_backup_client(self, **kwargs): + from azure.keyvault.administration.aio import KeyVaultBackupClient + + credential = self.get_credential(KeyVaultBackupClient, is_async=True) + return self.create_client_from_credential( + KeyVaultBackupClient, credential=credential, vault_url=self.managed_hsm_url, **kwargs + ) + + +class KeyVaultAccessControlClientPreparer(BaseClientPreparer): + def __call__(self, fn): + async def _preparer(test_class, api_version, **kwargs): + self._skip_if_not_configured(api_version) + client = self.create_access_control_client(api_version=api_version, **kwargs) + + async with client: + await fn(test_class, client, **kwargs) + return _preparer + + def create_access_control_client(self, **kwargs): + from azure.keyvault.administration.aio import \ + KeyVaultAccessControlClient + + credential = self.get_credential(KeyVaultAccessControlClient, is_async=True) + return self.create_client_from_credential( + KeyVaultAccessControlClient, credential=credential, vault_url=self.managed_hsm_url, **kwargs + ) + + + +def get_decorator(**kwargs): + """returns a test decorator for test parameterization""" + versions = kwargs.pop("api_versions", None) or ApiVersion + params = [pytest.param(api_version) for api_version in versions] + return params diff --git a/sdk/keyvault/azure-keyvault-administration/tests/_shared/test_case.py b/sdk/keyvault/azure-keyvault-administration/tests/_shared/test_case.py index c6716ea2574e..3296dda10c4b 100644 --- a/sdk/keyvault/azure-keyvault-administration/tests/_shared/test_case.py +++ b/sdk/keyvault/azure-keyvault-administration/tests/_shared/test_case.py @@ -4,22 +4,12 @@ # ------------------------------------ import time -from azure_devtools.scenario_tests.patches import patch_time_sleep_api -from devtools_testutils import AzureMgmtTestCase +from devtools_testutils import AzureRecordedTestCase +from azure.keyvault.administration._internal import HttpChallengeCache -class KeyVaultTestCase(AzureMgmtTestCase): - def __init__(self, *args, **kwargs): - if "match_body" not in kwargs: - kwargs["match_body"] = True - - super(KeyVaultTestCase, self).__init__(*args, **kwargs) - self.replay_patches.append(patch_time_sleep_api) - - def setUp(self): - self.list_test_size = 7 - super(KeyVaultTestCase, self).setUp() +class KeyVaultTestCase(AzureRecordedTestCase): def _poll_until_no_exception(self, fn, expected_exception, max_retries=20, retry_delay=3): """polling helper for live tests because some operations take an unpredictable amount of time to complete""" @@ -44,3 +34,7 @@ def _poll_until_exception(self, fn, expected_exception, max_retries=20, retry_de return self.fail("expected exception {expected_exception} was not raised") + + def teardown_method(self, method): + HttpChallengeCache.clear() + assert len(HttpChallengeCache._cache) == 0 diff --git a/sdk/keyvault/azure-keyvault-administration/tests/_shared/test_case_async.py b/sdk/keyvault/azure-keyvault-administration/tests/_shared/test_case_async.py index 07991be314ff..ea5dfda4357a 100644 --- a/sdk/keyvault/azure-keyvault-administration/tests/_shared/test_case_async.py +++ b/sdk/keyvault/azure-keyvault-administration/tests/_shared/test_case_async.py @@ -5,7 +5,9 @@ import asyncio from azure_devtools.scenario_tests.patches import mock_in_unit_test -from devtools_testutils import AzureMgmtTestCase +from devtools_testutils import AzureRecordedTestCase + +from azure.keyvault.administration._internal import HttpChallengeCache def skip_sleep(unit_test): @@ -15,15 +17,7 @@ async def immediate_return(_): return mock_in_unit_test(unit_test, "asyncio.sleep", immediate_return) -class KeyVaultTestCase(AzureMgmtTestCase): - def __init__(self, *args, match_body=True, **kwargs): - super().__init__(*args, match_body=match_body, **kwargs) - self.replay_patches.append(skip_sleep) - - def setUp(self): - self.list_test_size = 7 - super(KeyVaultTestCase, self).setUp() - +class KeyVaultTestCase(AzureRecordedTestCase): async def _poll_until_no_exception(self, fn, *resource_names, expected_exception, max_retries=20, retry_delay=3): """polling helper for live tests because some operations take an unpredictable amount of time to complete""" @@ -52,3 +46,7 @@ async def _poll_until_exception(self, fn, *resource_names, expected_exception, m except expected_exception: return self.fail("expected exception {expected_exception} was not raised") + + def teardown_method(self, method): + HttpChallengeCache.clear() + assert len(HttpChallengeCache._cache) == 0 diff --git a/sdk/keyvault/azure-keyvault-administration/tests/_test_case.py b/sdk/keyvault/azure-keyvault-administration/tests/_test_case.py index fabd497beaf1..43776c7117a3 100644 --- a/sdk/keyvault/azure-keyvault-administration/tests/_test_case.py +++ b/sdk/keyvault/azure-keyvault-administration/tests/_test_case.py @@ -2,154 +2,100 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ -from datetime import datetime, timedelta -import functools import os +import pytest from azure.keyvault.administration import ApiVersion -from azure.keyvault.administration._internal import HttpChallengeCache from azure.keyvault.administration._internal.client_base import DEFAULT_VERSION -from azure.storage.blob import AccountSasPermissions, generate_account_sas, ResourceTypes -from devtools_testutils import AzureTestCase -from parameterized import parameterized, param -import pytest -from six.moves.urllib_parse import urlparse - - -def access_control_client_setup(testcase_func): - """decorator that creates a KeyVaultAccessControlClient to be passed in to a test method""" - - @functools.wraps(testcase_func) - def wrapper(test_class_instance, api_version, **kwargs): - test_class_instance._skip_if_not_configured(api_version) - client = test_class_instance.create_access_control_client(api_version=api_version, **kwargs) - - if kwargs.get("is_async"): - import asyncio - - coroutine = testcase_func(test_class_instance, client) - loop = asyncio.get_event_loop() - loop.run_until_complete(coroutine) - else: - testcase_func(test_class_instance, client) - - return wrapper - - -def backup_client_setup(testcase_func): - """decorator that creates a KeyVaultBackupClient to be passed in to a test method""" - - @functools.wraps(testcase_func) - def wrapper(test_class_instance, api_version, **kwargs): - test_class_instance._skip_if_not_configured(api_version) - client = test_class_instance.create_backup_client(api_version=api_version, **kwargs) - - if kwargs.get("is_async"): - import asyncio - - coroutine = testcase_func(test_class_instance, client) - loop = asyncio.get_event_loop() - loop.run_until_complete(coroutine) - else: - testcase_func(test_class_instance, client) - - return wrapper +from devtools_testutils import AzureRecordedTestCase -def get_decorator(**kwargs): - """returns a test decorator for test parameterization""" - versions = kwargs.pop("api_versions", None) or ApiVersion - params = [param(api_version=api_version, **kwargs) for api_version in versions] - return functools.partial(parameterized.expand, params, name_func=suffixed_test_name) - - -def suffixed_test_name(testcase_func, param_num, param): - return "{}_{}".format(testcase_func.__name__, parameterized.to_safe_name(param.kwargs.get("api_version"))) - - -class AdministrationTestCase(AzureTestCase): - def setUp(self, *args, **kwargs): - hsm_playback_url = "https://managedhsmname.managedhsm.azure.net" +class BaseClientPreparer(AzureRecordedTestCase): + def __init__(self, **kwargs) -> None: + hsm_playback_url = "https://managedhsmvaultname.vault.azure.net" container_playback_uri = "https://storagename.blob.core.windows.net/container" playback_sas_token = "fake-sas" if self.is_live: self.managed_hsm_url = os.environ.get("AZURE_MANAGEDHSM_URL") - if self.managed_hsm_url: - self._scrub_url(real_url=self.managed_hsm_url, playback_url=hsm_playback_url) - storage_name = os.environ.get("BLOB_STORAGE_ACCOUNT_NAME") storage_endpoint_suffix = os.environ.get("KEYVAULT_STORAGE_ENDPOINT_SUFFIX") container_name = os.environ.get("BLOB_CONTAINER_NAME") self.container_uri = "https://{}.blob.{}/{}".format(storage_name, storage_endpoint_suffix, container_name) - self._scrub_url(real_url=self.container_uri, playback_url=container_playback_uri) self.sas_token = os.environ.get("BLOB_STORAGE_SAS_TOKEN") - if self.sas_token: - self.scrubber.register_name_pair(self.sas_token, playback_sas_token) + else: self.managed_hsm_url = hsm_playback_url self.container_uri = container_playback_uri self.sas_token = playback_sas_token self._set_mgmt_settings_real_values() - super(AdministrationTestCase, self).setUp(*args, **kwargs) + + def _skip_if_not_configured(self, api_version, **kwargs): + if self.is_live and api_version != DEFAULT_VERSION: + pytest.skip("This test only uses the default API version for live tests") + if self.is_live and self.managed_hsm_url is None: + pytest.skip("No HSM endpoint for live testing") + + def _set_mgmt_settings_real_values(self): + if self.is_live: + os.environ["AZURE_TENANT_ID"] = os.environ["KEYVAULT_TENANT_ID"] + os.environ["AZURE_CLIENT_ID"] = os.environ["KEYVAULT_CLIENT_ID"] + os.environ["AZURE_CLIENT_SECRET"] = os.environ["KEYVAULT_CLIENT_SECRET"] - def tearDown(self): - HttpChallengeCache.clear() - assert len(HttpChallengeCache._cache) == 0 - super(AdministrationTestCase, self).tearDown() - def create_access_control_client(self, **kwargs): - if kwargs.pop("is_async", False): - from azure.keyvault.administration.aio import KeyVaultAccessControlClient - credential = self.get_credential(KeyVaultAccessControlClient, is_async=True) - else: - from azure.keyvault.administration import KeyVaultAccessControlClient +class KeyVaultBackupClientPreparer(BaseClientPreparer): + def __init__(self, **kwargs) -> None: + super().__init__(**kwargs) - credential = self.get_credential(KeyVaultAccessControlClient) - return self.create_client_from_credential( - KeyVaultAccessControlClient, credential=credential, vault_url=self.managed_hsm_url, **kwargs - ) + def __call__(self, fn): + def _preparer(test_class, api_version, **kwargs): + self._skip_if_not_configured(api_version) + kwargs["container_uri"] = self.container_uri + kwargs["sas_token"] = self.sas_token + kwargs["managed_hsm_url"] = self.managed_hsm_url + client = self.create_backup_client(api_version=api_version, **kwargs) - def create_backup_client(self, **kwargs): - if kwargs.pop("is_async", False): - from azure.keyvault.administration.aio import KeyVaultBackupClient + with client: + fn(test_class, client, **kwargs) + return _preparer - credential = self.get_credential(KeyVaultBackupClient, is_async=True) - else: - from azure.keyvault.administration import KeyVaultBackupClient + def create_backup_client(self, **kwargs): + from azure.keyvault.administration import KeyVaultBackupClient - credential = self.get_credential(KeyVaultBackupClient) + credential = self.get_credential(KeyVaultBackupClient) return self.create_client_from_credential( KeyVaultBackupClient, credential=credential, vault_url=self.managed_hsm_url, **kwargs ) - def create_key_client(self, vault_uri, **kwargs): - if kwargs.pop("is_async", False): - from azure.keyvault.keys.aio import KeyClient - credential = self.get_credential(KeyClient, is_async=True) - else: - from azure.keyvault.keys import KeyClient +class KeyVaultAccessControlClientPreparer(BaseClientPreparer): + def __init__(self, **kwargs) -> None: + super().__init__(**kwargs) - credential = self.get_credential(KeyClient) - return self.create_client_from_credential(KeyClient, credential=credential, vault_url=vault_uri, **kwargs) + def __call__(self, fn): + def _preparer(test_class, api_version, **kwargs): + self._skip_if_not_configured(api_version) + client = self.create_access_control_client(api_version=api_version, **kwargs) - def _scrub_url(self, real_url, playback_url): - real = urlparse(real_url) - playback = urlparse(playback_url) - self.scrubber.register_name_pair(real.netloc, playback.netloc) + with client: + fn(test_class, client, **kwargs) + return _preparer - def _set_mgmt_settings_real_values(self): - if self.is_live: - os.environ["AZURE_TENANT_ID"] = os.environ["KEYVAULT_TENANT_ID"] - os.environ["AZURE_CLIENT_ID"] = os.environ["KEYVAULT_CLIENT_ID"] - os.environ["AZURE_CLIENT_SECRET"] = os.environ["KEYVAULT_CLIENT_SECRET"] + def create_access_control_client(self, **kwargs): + from azure.keyvault.administration import KeyVaultAccessControlClient - def _skip_if_not_configured(self, api_version, **kwargs): - if self.is_live and api_version != DEFAULT_VERSION: - pytest.skip("This test only uses the default API version for live tests") - if self.is_live and self.managed_hsm_url is None: - pytest.skip("No HSM endpoint for live testing") + credential = self.get_credential(KeyVaultAccessControlClient) + return self.create_client_from_credential( + KeyVaultAccessControlClient, credential=credential, vault_url=self.managed_hsm_url, **kwargs + ) + + + +def get_decorator(**kwargs): + """returns a test decorator for test parameterization""" + versions = kwargs.pop("api_versions", None) or ApiVersion + params = [pytest.param(api_version) for api_version in versions] + return params diff --git a/sdk/keyvault/azure-keyvault-administration/tests/conftest.py b/sdk/keyvault/azure-keyvault-administration/tests/conftest.py new file mode 100644 index 000000000000..06f21d3c1053 --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/conftest.py @@ -0,0 +1,74 @@ +# ------------------------------------------------------------------------ +# 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 os +from unittest import mock + + +import pytest +from devtools_testutils import (add_general_regex_sanitizer, + add_oauth_response_sanitizer, is_live, + test_proxy) + +os.environ['PYTHONHASHSEED'] = '0' + +@pytest.fixture(scope="session", autouse=True) +def add_sanitizers(test_proxy): + azure_keyvault_url = os.getenv("azure_keyvault_url", "https://vaultname.vault.azure.net") + azure_keyvault_url = azure_keyvault_url.rstrip("/") + keyvault_tenant_id = os.getenv("keyvault_tenant_id", "keyvault_tenant_id") + keyvault_subscription_id = os.getenv("keyvault_subscription_id", "keyvault_subscription_id") + azure_managedhsm_url = os.environ.get("azure_managedhsm_url","https://managedhsmvaultname.vault.azure.net") + azure_managedhsm_url = azure_managedhsm_url.rstrip("/") + azure_attestation_uri = os.environ.get("azure_keyvault_attestation_url","https://fakeattestation.azurewebsites.net") + azure_attestation_uri = azure_attestation_uri.rstrip('/') + storage_name = os.environ.get("BLOB_STORAGE_ACCOUNT_NAME", "blob_storage_account_name") + storage_endpoint_suffix = os.environ.get("KEYVAULT_STORAGE_ENDPOINT_SUFFIX", "keyvault_endpoint_suffix") + client_id = os.environ.get("KEYVAULT_CLIENT_ID", "service-principal-id") + sas_token = os.environ.get("BLOB_STORAGE_SAS_TOKEN","fake-sas") + + add_general_regex_sanitizer(regex=azure_keyvault_url, value="https://vaultname.vault.azure.net") + add_general_regex_sanitizer(regex=keyvault_tenant_id, value="00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer(regex=keyvault_subscription_id, value="00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer(regex=azure_managedhsm_url,value="https://managedhsmvaultname.vault.azure.net") + add_general_regex_sanitizer(regex=azure_attestation_uri,value="https://fakeattestation.azurewebsites.net") + add_general_regex_sanitizer(regex=storage_name, value = "blob_storage_account_name") + add_general_regex_sanitizer(regex=storage_endpoint_suffix, value = "keyvault_endpoint_suffix") + add_general_regex_sanitizer(regex=sas_token, value="fake-sas") + add_general_regex_sanitizer(regex=client_id, value = "service-principal-id") + add_oauth_response_sanitizer() + + +@pytest.fixture(scope="session", autouse=True) +def patch_async_sleep(): + async def immediate_return(_): + return + + if not is_live(): + with mock.patch("asyncio.sleep", immediate_return): + yield + + else: + yield + + +@pytest.fixture(scope="session", autouse=True) +def patch_sleep(): + def immediate_return(_): + return + + if not is_live(): + with mock.patch("time.sleep", immediate_return): + yield + + else: + yield + +@pytest.fixture(scope="session") +def event_loop(request): + loop = asyncio.get_event_loop() + yield loop + loop.close() \ No newline at end of file diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_access_control.pyTestAccessControltest_role_assignment[7.2].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_access_control.pyTestAccessControltest_role_assignment[7.2].json new file mode 100644 index 000000000000..10c5af0a50fb --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_access_control.pyTestAccessControltest_role_assignment[7.2].json @@ -0,0 +1,753 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "2", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-server-latency": "3" + }, + "ResponseBody": "OK" + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:19:22 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAwAAAKJ7C9oOAAAA; expires=Wed, 08-Jun-2022 21:19:22 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", + "response_modes_supported": [ + "query", + "fragment", + "form_post" + ], + "subject_types_supported": [ + "pairwise" + ], + "id_token_signing_alg_values_supported": [ + "RS256" + ], + "response_types_supported": [ + "code", + "id_token", + "code id_token", + "id_token token" + ], + "scopes_supported": [ + "openid", + "profile", + "email", + "offline_access" + ], + "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", + "claims_supported": [ + "sub", + "iss", + "cloud_instance_name", + "cloud_instance_host_name", + "cloud_graph_host_name", + "msgraph_host", + "aud", + "exp", + "iat", + "auth_time", + "acr", + "nonce", + "preferred_username", + "name", + "tid", + "ver", + "at_hash", + "c_hash", + "email" + ], + "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAwAAAKJ7C9oOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:19:22 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAwAAAKJ7C9oOAAAA; expires=Wed, 08-Jun-2022 21:19:22 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7262", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1" + }, + "ResponseBody": { + "value": [ + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "name": "7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Backup User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17", + "name": "33413926-3206-4cdd-b39a-83574fe37a17", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Encryption User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c", + "name": "21dbd100-6940-42c2-9190-5d6cb909625c", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/release/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Release User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "name": "2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Auditor", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "name": "4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Policy Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/770fd66c-6266-4643-9d4e-b616870898d5", + "name": "770fd66c-6266-4643-9d4e-b616870898d5", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [ + "Microsoft.KeyVault/managedHsm/keys/createIfNotExists", + "Microsoft.KeyVault/managedHsm/keys/read/action" + ], + "dataActions": [], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM ARM User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", + "name": "21dbd100-6940-42c2-9190-5d6cb909625b", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/write/action", + "Microsoft.KeyVault/managedHsm/keys/delete", + "Microsoft.KeyVault/managedHsm/keys/create", + "Microsoft.KeyVault/managedHsm/keys/rotate/action", + "Microsoft.KeyVault/managedHsm/keys/import/action", + "Microsoft.KeyVault/managedHsm/keys/release/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action", + "Microsoft.KeyVault/managedHsm/keys/restore/action", + "Microsoft.KeyVault/managedHsm/keys/encrypt/action", + "Microsoft.KeyVault/managedHsm/keys/decrypt/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action", + "Microsoft.KeyVault/managedHsm/keys/sign/action", + "Microsoft.KeyVault/managedHsm/keys/verify/action", + "Microsoft.KeyVault/managedHsm/keys/derive/action", + "Microsoft.KeyVault/managedHsm/rng/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "name": "515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action", + "Microsoft.KeyVault/managedHsm/keys/export/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Officer", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "name": "a290e904-7015-4bba-90c8-60543313cdb4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/read", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/action", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/read", + "Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read", + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/restore/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/restore/status/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleAssignments/some-uuid?api-version=7.2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "184", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "properties": { + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "principalId": "service-principal-id" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "328", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "38" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Authorization/roleAssignments/some-uuid", + "name": "some-uuid", + "properties": { + "principalId": "service-principal-id", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleAssignments/some-uuid?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "328", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "0" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Authorization/roleAssignments/some-uuid", + "name": "some-uuid", + "properties": { + "principalId": "service-principal-id", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleAssignments?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1936", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1" + }, + "ResponseBody": { + "value": [ + { + "id": "/providers/Microsoft.Authorization/roleAssignments/some-uuid", + "name": "some-uuid", + "properties": { + "principalId": "service-principal-id", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/fe59af98-bb73-4bfe-9159-2361b96ff4d2", + "name": "fe59af98-bb73-4bfe-9159-2361b96ff4d2", + "properties": { + "principalId": "056d8a44-4054-4363-b4aa-64d756161a2c", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/8ad6e891-2fd6-08f2-9462-22f356ca6298", + "name": "8ad6e891-2fd6-08f2-9462-22f356ca6298", + "properties": { + "principalId": "fa54e51e-ab45-4fa9-b655-4b8b601b82c4", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/5454f3d8-7b30-43a0-04c2-fc383ef30e9c", + "name": "5454f3d8-7b30-43a0-04c2-fc383ef30e9c", + "properties": { + "principalId": "056d8a44-4054-4363-b4aa-64d756161a2c", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/42764359-6d8d-438a-bf8e-c69343d89e09", + "name": "42764359-6d8d-438a-bf8e-c69343d89e09", + "properties": { + "principalId": "056d8a44-4054-4363-b4aa-64d756161a2c", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleAssignments/some-uuid?api-version=7.2", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "328", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "58" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Authorization/roleAssignments/some-uuid", + "name": "some-uuid", + "properties": { + "principalId": "service-principal-id", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleAssignments?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1607", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "0" + }, + "ResponseBody": { + "value": [ + { + "id": "/providers/Microsoft.Authorization/roleAssignments/fe59af98-bb73-4bfe-9159-2361b96ff4d2", + "name": "fe59af98-bb73-4bfe-9159-2361b96ff4d2", + "properties": { + "principalId": "056d8a44-4054-4363-b4aa-64d756161a2c", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/8ad6e891-2fd6-08f2-9462-22f356ca6298", + "name": "8ad6e891-2fd6-08f2-9462-22f356ca6298", + "properties": { + "principalId": "fa54e51e-ab45-4fa9-b655-4b8b601b82c4", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/5454f3d8-7b30-43a0-04c2-fc383ef30e9c", + "name": "5454f3d8-7b30-43a0-04c2-fc383ef30e9c", + "properties": { + "principalId": "056d8a44-4054-4363-b4aa-64d756161a2c", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/42764359-6d8d-438a-bf8e-c69343d89e09", + "name": "42764359-6d8d-438a-bf8e-c69343d89e09", + "properties": { + "principalId": "056d8a44-4054-4363-b4aa-64d756161a2c", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_access_control.pyTestAccessControltest_role_assignment[7.3].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_access_control.pyTestAccessControltest_role_assignment[7.3].json new file mode 100644 index 000000000000..398d1854cef0 --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_access_control.pyTestAccessControltest_role_assignment[7.3].json @@ -0,0 +1,753 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "2", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-server-latency": "3" + }, + "ResponseBody": "OK" + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:18:21 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAgAAAKJ7C9oOAAAA; expires=Wed, 08-Jun-2022 21:18:21 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", + "response_modes_supported": [ + "query", + "fragment", + "form_post" + ], + "subject_types_supported": [ + "pairwise" + ], + "id_token_signing_alg_values_supported": [ + "RS256" + ], + "response_types_supported": [ + "code", + "id_token", + "code id_token", + "id_token token" + ], + "scopes_supported": [ + "openid", + "profile", + "email", + "offline_access" + ], + "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", + "claims_supported": [ + "sub", + "iss", + "cloud_instance_name", + "cloud_instance_host_name", + "cloud_graph_host_name", + "msgraph_host", + "aud", + "exp", + "iat", + "auth_time", + "acr", + "nonce", + "preferred_username", + "name", + "tid", + "ver", + "at_hash", + "c_hash", + "email" + ], + "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAgAAAKJ7C9oOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:18:21 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAgAAAKJ7C9oOAAAA; expires=Wed, 08-Jun-2022 21:18:21 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7262", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "3" + }, + "ResponseBody": { + "value": [ + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "name": "7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Backup User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17", + "name": "33413926-3206-4cdd-b39a-83574fe37a17", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Encryption User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c", + "name": "21dbd100-6940-42c2-9190-5d6cb909625c", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/release/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Release User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "name": "2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Auditor", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "name": "4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Policy Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/770fd66c-6266-4643-9d4e-b616870898d5", + "name": "770fd66c-6266-4643-9d4e-b616870898d5", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [ + "Microsoft.KeyVault/managedHsm/keys/createIfNotExists", + "Microsoft.KeyVault/managedHsm/keys/read/action" + ], + "dataActions": [], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM ARM User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", + "name": "21dbd100-6940-42c2-9190-5d6cb909625b", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/write/action", + "Microsoft.KeyVault/managedHsm/keys/delete", + "Microsoft.KeyVault/managedHsm/keys/create", + "Microsoft.KeyVault/managedHsm/keys/rotate/action", + "Microsoft.KeyVault/managedHsm/keys/import/action", + "Microsoft.KeyVault/managedHsm/keys/release/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action", + "Microsoft.KeyVault/managedHsm/keys/restore/action", + "Microsoft.KeyVault/managedHsm/keys/encrypt/action", + "Microsoft.KeyVault/managedHsm/keys/decrypt/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action", + "Microsoft.KeyVault/managedHsm/keys/sign/action", + "Microsoft.KeyVault/managedHsm/keys/verify/action", + "Microsoft.KeyVault/managedHsm/keys/derive/action", + "Microsoft.KeyVault/managedHsm/rng/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "name": "515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action", + "Microsoft.KeyVault/managedHsm/keys/export/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Officer", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "name": "a290e904-7015-4bba-90c8-60543313cdb4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/read", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/action", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/read", + "Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read", + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/restore/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/restore/status/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleAssignments/some-uuid?api-version=7.3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "184", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "properties": { + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "principalId": "service-principal-id" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "328", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "75" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Authorization/roleAssignments/some-uuid", + "name": "some-uuid", + "properties": { + "principalId": "service-principal-id", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleAssignments/some-uuid?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "328", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Authorization/roleAssignments/some-uuid", + "name": "some-uuid", + "properties": { + "principalId": "service-principal-id", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleAssignments?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1936", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "0" + }, + "ResponseBody": { + "value": [ + { + "id": "/providers/Microsoft.Authorization/roleAssignments/fe59af98-bb73-4bfe-9159-2361b96ff4d2", + "name": "fe59af98-bb73-4bfe-9159-2361b96ff4d2", + "properties": { + "principalId": "056d8a44-4054-4363-b4aa-64d756161a2c", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/8ad6e891-2fd6-08f2-9462-22f356ca6298", + "name": "8ad6e891-2fd6-08f2-9462-22f356ca6298", + "properties": { + "principalId": "fa54e51e-ab45-4fa9-b655-4b8b601b82c4", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/some-uuid", + "name": "some-uuid", + "properties": { + "principalId": "service-principal-id", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/5454f3d8-7b30-43a0-04c2-fc383ef30e9c", + "name": "5454f3d8-7b30-43a0-04c2-fc383ef30e9c", + "properties": { + "principalId": "056d8a44-4054-4363-b4aa-64d756161a2c", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/42764359-6d8d-438a-bf8e-c69343d89e09", + "name": "42764359-6d8d-438a-bf8e-c69343d89e09", + "properties": { + "principalId": "056d8a44-4054-4363-b4aa-64d756161a2c", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleAssignments/some-uuid?api-version=7.3", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "328", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "31" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Authorization/roleAssignments/some-uuid", + "name": "some-uuid", + "properties": { + "principalId": "service-principal-id", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleAssignments?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1607", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "0" + }, + "ResponseBody": { + "value": [ + { + "id": "/providers/Microsoft.Authorization/roleAssignments/fe59af98-bb73-4bfe-9159-2361b96ff4d2", + "name": "fe59af98-bb73-4bfe-9159-2361b96ff4d2", + "properties": { + "principalId": "056d8a44-4054-4363-b4aa-64d756161a2c", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/8ad6e891-2fd6-08f2-9462-22f356ca6298", + "name": "8ad6e891-2fd6-08f2-9462-22f356ca6298", + "properties": { + "principalId": "fa54e51e-ab45-4fa9-b655-4b8b601b82c4", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/5454f3d8-7b30-43a0-04c2-fc383ef30e9c", + "name": "5454f3d8-7b30-43a0-04c2-fc383ef30e9c", + "properties": { + "principalId": "056d8a44-4054-4363-b4aa-64d756161a2c", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/42764359-6d8d-438a-bf8e-c69343d89e09", + "name": "42764359-6d8d-438a-bf8e-c69343d89e09", + "properties": { + "principalId": "056d8a44-4054-4363-b4aa-64d756161a2c", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_access_control.pyTestAccessControltest_role_definitions[7.2].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_access_control.pyTestAccessControltest_role_definitions[7.2].json new file mode 100644 index 000000000000..9b3b9937b97a --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_access_control.pyTestAccessControltest_role_definitions[7.2].json @@ -0,0 +1,1314 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "2", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-server-latency": "3" + }, + "ResponseBody": "OK" + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:17:20 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAQAAAKJ7C9oOAAAA; expires=Wed, 08-Jun-2022 21:17:20 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", + "response_modes_supported": [ + "query", + "fragment", + "form_post" + ], + "subject_types_supported": [ + "pairwise" + ], + "id_token_signing_alg_values_supported": [ + "RS256" + ], + "response_types_supported": [ + "code", + "id_token", + "code id_token", + "id_token token" + ], + "scopes_supported": [ + "openid", + "profile", + "email", + "offline_access" + ], + "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", + "claims_supported": [ + "sub", + "iss", + "cloud_instance_name", + "cloud_instance_host_name", + "cloud_graph_host_name", + "msgraph_host", + "aud", + "exp", + "iat", + "auth_time", + "acr", + "nonce", + "preferred_username", + "name", + "tid", + "ver", + "at_hash", + "c_hash", + "email" + ], + "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAQAAAKJ7C9oOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:17:20 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAQAAAKJ7C9oOAAAA; expires=Wed, 08-Jun-2022 21:17:20 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7262", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "2" + }, + "ResponseBody": { + "value": [ + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "name": "7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Backup User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17", + "name": "33413926-3206-4cdd-b39a-83574fe37a17", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Encryption User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c", + "name": "21dbd100-6940-42c2-9190-5d6cb909625c", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/release/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Release User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "name": "2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Auditor", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "name": "4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Policy Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/770fd66c-6266-4643-9d4e-b616870898d5", + "name": "770fd66c-6266-4643-9d4e-b616870898d5", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [ + "Microsoft.KeyVault/managedHsm/keys/createIfNotExists", + "Microsoft.KeyVault/managedHsm/keys/read/action" + ], + "dataActions": [], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM ARM User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", + "name": "21dbd100-6940-42c2-9190-5d6cb909625b", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/write/action", + "Microsoft.KeyVault/managedHsm/keys/delete", + "Microsoft.KeyVault/managedHsm/keys/create", + "Microsoft.KeyVault/managedHsm/keys/rotate/action", + "Microsoft.KeyVault/managedHsm/keys/import/action", + "Microsoft.KeyVault/managedHsm/keys/release/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action", + "Microsoft.KeyVault/managedHsm/keys/restore/action", + "Microsoft.KeyVault/managedHsm/keys/encrypt/action", + "Microsoft.KeyVault/managedHsm/keys/decrypt/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action", + "Microsoft.KeyVault/managedHsm/keys/sign/action", + "Microsoft.KeyVault/managedHsm/keys/verify/action", + "Microsoft.KeyVault/managedHsm/keys/derive/action", + "Microsoft.KeyVault/managedHsm/rng/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "name": "515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action", + "Microsoft.KeyVault/managedHsm/keys/export/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Officer", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "name": "a290e904-7015-4bba-90c8-60543313cdb4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/read", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/action", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/read", + "Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read", + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/restore/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/restore/status/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions/definition-name?api-version=7.2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "158", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "properties": { + "roleName": "role-name357c306e", + "description": "test", + "permissions": [ + { + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ] + } + ] + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "411", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "79" + }, + "ResponseBody": { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/definition-name", + "name": "definition-name", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "test", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "role-name357c306e", + "type": "CustomRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions/definition-name?api-version=7.2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "124", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "properties": { + "permissions": [ + { + "dataActions": [], + "notDataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ] + } + ] + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "390", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "74" + }, + "ResponseBody": { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/definition-name", + "name": "definition-name", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [], + "notActions": [], + "notDataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ] + } + ], + "roleName": "", + "type": "CustomRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7653", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1" + }, + "ResponseBody": { + "value": [ + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "name": "7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Backup User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17", + "name": "33413926-3206-4cdd-b39a-83574fe37a17", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Encryption User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c", + "name": "21dbd100-6940-42c2-9190-5d6cb909625c", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/release/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Release User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "name": "2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Auditor", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "name": "4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Policy Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/770fd66c-6266-4643-9d4e-b616870898d5", + "name": "770fd66c-6266-4643-9d4e-b616870898d5", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [ + "Microsoft.KeyVault/managedHsm/keys/createIfNotExists", + "Microsoft.KeyVault/managedHsm/keys/read/action" + ], + "dataActions": [], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM ARM User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", + "name": "21dbd100-6940-42c2-9190-5d6cb909625b", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/write/action", + "Microsoft.KeyVault/managedHsm/keys/delete", + "Microsoft.KeyVault/managedHsm/keys/create", + "Microsoft.KeyVault/managedHsm/keys/rotate/action", + "Microsoft.KeyVault/managedHsm/keys/import/action", + "Microsoft.KeyVault/managedHsm/keys/release/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action", + "Microsoft.KeyVault/managedHsm/keys/restore/action", + "Microsoft.KeyVault/managedHsm/keys/encrypt/action", + "Microsoft.KeyVault/managedHsm/keys/decrypt/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action", + "Microsoft.KeyVault/managedHsm/keys/sign/action", + "Microsoft.KeyVault/managedHsm/keys/verify/action", + "Microsoft.KeyVault/managedHsm/keys/derive/action", + "Microsoft.KeyVault/managedHsm/rng/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "name": "515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action", + "Microsoft.KeyVault/managedHsm/keys/export/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Officer", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "name": "a290e904-7015-4bba-90c8-60543313cdb4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/read", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/action", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/read", + "Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read", + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/restore/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/restore/status/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/definition-name", + "name": "definition-name", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [], + "notActions": [], + "notDataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ] + } + ], + "roleName": "", + "type": "CustomRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions/definition-name?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "390", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1" + }, + "ResponseBody": { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/definition-name", + "name": "definition-name", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [], + "notActions": [], + "notDataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ] + } + ], + "roleName": "", + "type": "CustomRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions/definition-name?api-version=7.2", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "390", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "80" + }, + "ResponseBody": { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/definition-name", + "name": "definition-name", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [], + "notActions": [], + "notDataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ] + } + ], + "roleName": "", + "type": "CustomRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7262", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1" + }, + "ResponseBody": { + "value": [ + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "name": "7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Backup User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17", + "name": "33413926-3206-4cdd-b39a-83574fe37a17", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Encryption User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c", + "name": "21dbd100-6940-42c2-9190-5d6cb909625c", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/release/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Release User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "name": "2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Auditor", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "name": "4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Policy Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/770fd66c-6266-4643-9d4e-b616870898d5", + "name": "770fd66c-6266-4643-9d4e-b616870898d5", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [ + "Microsoft.KeyVault/managedHsm/keys/createIfNotExists", + "Microsoft.KeyVault/managedHsm/keys/read/action" + ], + "dataActions": [], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM ARM User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", + "name": "21dbd100-6940-42c2-9190-5d6cb909625b", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/write/action", + "Microsoft.KeyVault/managedHsm/keys/delete", + "Microsoft.KeyVault/managedHsm/keys/create", + "Microsoft.KeyVault/managedHsm/keys/rotate/action", + "Microsoft.KeyVault/managedHsm/keys/import/action", + "Microsoft.KeyVault/managedHsm/keys/release/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action", + "Microsoft.KeyVault/managedHsm/keys/restore/action", + "Microsoft.KeyVault/managedHsm/keys/encrypt/action", + "Microsoft.KeyVault/managedHsm/keys/decrypt/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action", + "Microsoft.KeyVault/managedHsm/keys/sign/action", + "Microsoft.KeyVault/managedHsm/keys/verify/action", + "Microsoft.KeyVault/managedHsm/keys/derive/action", + "Microsoft.KeyVault/managedHsm/rng/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "name": "515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action", + "Microsoft.KeyVault/managedHsm/keys/export/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Officer", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "name": "a290e904-7015-4bba-90c8-60543313cdb4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/read", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/action", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/read", + "Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read", + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/restore/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/restore/status/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_access_control.pyTestAccessControltest_role_definitions[7.3].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_access_control.pyTestAccessControltest_role_definitions[7.3].json new file mode 100644 index 000000000000..2eae890316b5 --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_access_control.pyTestAccessControltest_role_definitions[7.3].json @@ -0,0 +1,1315 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "2", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-server-latency": "4" + }, + "ResponseBody": "OK" + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:16:18 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OI; expires=Wed, 08-Jun-2022 21:16:18 GMT; path=/; secure; HttpOnly; SameSite=None", + "esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrUu5J5MPUB2LWKAkwXcVe5KNxVKtobCBnoN3wxro_E1Mku26Iw-C4LL7hX9lc14x8WRBTGwtXfMZLS0druLizOAZP2JHHVXpHS1zPcq6iyBmHMbx1Po1pUQe0lrd-dY14ylyPp7XKPR7-XoKUbYq5Axh8xFuUDGFUj4JD-nURKXggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", + "response_modes_supported": [ + "query", + "fragment", + "form_post" + ], + "subject_types_supported": [ + "pairwise" + ], + "id_token_signing_alg_values_supported": [ + "RS256" + ], + "response_types_supported": [ + "code", + "id_token", + "code id_token", + "id_token token" + ], + "scopes_supported": [ + "openid", + "profile", + "email", + "offline_access" + ], + "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", + "claims_supported": [ + "sub", + "iss", + "cloud_instance_name", + "cloud_instance_host_name", + "cloud_graph_host_name", + "msgraph_host", + "aud", + "exp", + "iat", + "auth_time", + "acr", + "nonce", + "preferred_username", + "name", + "tid", + "ver", + "at_hash", + "c_hash", + "email" + ], + "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AlGbu-8hHwdMkDUMy0Hw7OI; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:16:18 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OI; expires=Wed, 08-Jun-2022 21:16:19 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7262", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1" + }, + "ResponseBody": { + "value": [ + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "name": "7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Backup User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17", + "name": "33413926-3206-4cdd-b39a-83574fe37a17", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Encryption User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c", + "name": "21dbd100-6940-42c2-9190-5d6cb909625c", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/release/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Release User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "name": "2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Auditor", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "name": "4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Policy Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/770fd66c-6266-4643-9d4e-b616870898d5", + "name": "770fd66c-6266-4643-9d4e-b616870898d5", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [ + "Microsoft.KeyVault/managedHsm/keys/createIfNotExists", + "Microsoft.KeyVault/managedHsm/keys/read/action" + ], + "dataActions": [], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM ARM User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", + "name": "21dbd100-6940-42c2-9190-5d6cb909625b", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/write/action", + "Microsoft.KeyVault/managedHsm/keys/delete", + "Microsoft.KeyVault/managedHsm/keys/create", + "Microsoft.KeyVault/managedHsm/keys/rotate/action", + "Microsoft.KeyVault/managedHsm/keys/import/action", + "Microsoft.KeyVault/managedHsm/keys/release/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action", + "Microsoft.KeyVault/managedHsm/keys/restore/action", + "Microsoft.KeyVault/managedHsm/keys/encrypt/action", + "Microsoft.KeyVault/managedHsm/keys/decrypt/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action", + "Microsoft.KeyVault/managedHsm/keys/sign/action", + "Microsoft.KeyVault/managedHsm/keys/verify/action", + "Microsoft.KeyVault/managedHsm/keys/derive/action", + "Microsoft.KeyVault/managedHsm/rng/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "name": "515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action", + "Microsoft.KeyVault/managedHsm/keys/export/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Officer", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "name": "a290e904-7015-4bba-90c8-60543313cdb4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/read", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/action", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/read", + "Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read", + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/restore/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/restore/status/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions/definition-name?api-version=7.3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "158", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "properties": { + "roleName": "role-name3585306f", + "description": "test", + "permissions": [ + { + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ] + } + ] + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "411", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "49" + }, + "ResponseBody": { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/definition-name", + "name": "definition-name", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "test", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "role-name3585306f", + "type": "CustomRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions/definition-name?api-version=7.3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "124", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "properties": { + "permissions": [ + { + "dataActions": [], + "notDataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ] + } + ] + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "390", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "73" + }, + "ResponseBody": { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/definition-name", + "name": "definition-name", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [], + "notActions": [], + "notDataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ] + } + ], + "roleName": "", + "type": "CustomRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7653", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1" + }, + "ResponseBody": { + "value": [ + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "name": "7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Backup User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17", + "name": "33413926-3206-4cdd-b39a-83574fe37a17", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Encryption User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c", + "name": "21dbd100-6940-42c2-9190-5d6cb909625c", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/release/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Release User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "name": "2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Auditor", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "name": "4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Policy Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/770fd66c-6266-4643-9d4e-b616870898d5", + "name": "770fd66c-6266-4643-9d4e-b616870898d5", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [ + "Microsoft.KeyVault/managedHsm/keys/createIfNotExists", + "Microsoft.KeyVault/managedHsm/keys/read/action" + ], + "dataActions": [], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM ARM User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", + "name": "21dbd100-6940-42c2-9190-5d6cb909625b", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/write/action", + "Microsoft.KeyVault/managedHsm/keys/delete", + "Microsoft.KeyVault/managedHsm/keys/create", + "Microsoft.KeyVault/managedHsm/keys/rotate/action", + "Microsoft.KeyVault/managedHsm/keys/import/action", + "Microsoft.KeyVault/managedHsm/keys/release/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action", + "Microsoft.KeyVault/managedHsm/keys/restore/action", + "Microsoft.KeyVault/managedHsm/keys/encrypt/action", + "Microsoft.KeyVault/managedHsm/keys/decrypt/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action", + "Microsoft.KeyVault/managedHsm/keys/sign/action", + "Microsoft.KeyVault/managedHsm/keys/verify/action", + "Microsoft.KeyVault/managedHsm/keys/derive/action", + "Microsoft.KeyVault/managedHsm/rng/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "name": "515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action", + "Microsoft.KeyVault/managedHsm/keys/export/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Officer", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "name": "a290e904-7015-4bba-90c8-60543313cdb4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/read", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/action", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/read", + "Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read", + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/restore/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/restore/status/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/definition-name", + "name": "definition-name", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [], + "notActions": [], + "notDataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ] + } + ], + "roleName": "", + "type": "CustomRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions/definition-name?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "390", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1" + }, + "ResponseBody": { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/definition-name", + "name": "definition-name", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [], + "notActions": [], + "notDataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ] + } + ], + "roleName": "", + "type": "CustomRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions/definition-name?api-version=7.3", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "390", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "86" + }, + "ResponseBody": { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/definition-name", + "name": "definition-name", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [], + "notActions": [], + "notDataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ] + } + ], + "roleName": "", + "type": "CustomRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7262", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "2" + }, + "ResponseBody": { + "value": [ + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "name": "7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Backup User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17", + "name": "33413926-3206-4cdd-b39a-83574fe37a17", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Encryption User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c", + "name": "21dbd100-6940-42c2-9190-5d6cb909625c", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/release/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Release User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "name": "2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Auditor", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "name": "4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Policy Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/770fd66c-6266-4643-9d4e-b616870898d5", + "name": "770fd66c-6266-4643-9d4e-b616870898d5", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [ + "Microsoft.KeyVault/managedHsm/keys/createIfNotExists", + "Microsoft.KeyVault/managedHsm/keys/read/action" + ], + "dataActions": [], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM ARM User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", + "name": "21dbd100-6940-42c2-9190-5d6cb909625b", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/write/action", + "Microsoft.KeyVault/managedHsm/keys/delete", + "Microsoft.KeyVault/managedHsm/keys/create", + "Microsoft.KeyVault/managedHsm/keys/rotate/action", + "Microsoft.KeyVault/managedHsm/keys/import/action", + "Microsoft.KeyVault/managedHsm/keys/release/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action", + "Microsoft.KeyVault/managedHsm/keys/restore/action", + "Microsoft.KeyVault/managedHsm/keys/encrypt/action", + "Microsoft.KeyVault/managedHsm/keys/decrypt/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action", + "Microsoft.KeyVault/managedHsm/keys/sign/action", + "Microsoft.KeyVault/managedHsm/keys/verify/action", + "Microsoft.KeyVault/managedHsm/keys/derive/action", + "Microsoft.KeyVault/managedHsm/rng/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "name": "515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action", + "Microsoft.KeyVault/managedHsm/keys/export/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Officer", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "name": "a290e904-7015-4bba-90c8-60543313cdb4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/read", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/action", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/read", + "Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read", + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/restore/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/restore/status/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_access_control_async.pyTestAccessControltest_role_assignment[7.2].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_access_control_async.pyTestAccessControltest_role_assignment[7.2].json new file mode 100644 index 000000000000..3b82871f5ce6 --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_access_control_async.pyTestAccessControltest_role_assignment[7.2].json @@ -0,0 +1,572 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "2", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-server-latency": "2" + }, + "ResponseBody": "OK" + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7262", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "3" + }, + "ResponseBody": { + "value": [ + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "name": "7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Backup User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17", + "name": "33413926-3206-4cdd-b39a-83574fe37a17", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Encryption User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c", + "name": "21dbd100-6940-42c2-9190-5d6cb909625c", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/release/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Release User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "name": "2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Auditor", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "name": "4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Policy Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/770fd66c-6266-4643-9d4e-b616870898d5", + "name": "770fd66c-6266-4643-9d4e-b616870898d5", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [ + "Microsoft.KeyVault/managedHsm/keys/createIfNotExists", + "Microsoft.KeyVault/managedHsm/keys/read/action" + ], + "dataActions": [], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM ARM User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", + "name": "21dbd100-6940-42c2-9190-5d6cb909625b", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/write/action", + "Microsoft.KeyVault/managedHsm/keys/delete", + "Microsoft.KeyVault/managedHsm/keys/create", + "Microsoft.KeyVault/managedHsm/keys/rotate/action", + "Microsoft.KeyVault/managedHsm/keys/import/action", + "Microsoft.KeyVault/managedHsm/keys/release/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action", + "Microsoft.KeyVault/managedHsm/keys/restore/action", + "Microsoft.KeyVault/managedHsm/keys/encrypt/action", + "Microsoft.KeyVault/managedHsm/keys/decrypt/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action", + "Microsoft.KeyVault/managedHsm/keys/sign/action", + "Microsoft.KeyVault/managedHsm/keys/verify/action", + "Microsoft.KeyVault/managedHsm/keys/derive/action", + "Microsoft.KeyVault/managedHsm/rng/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "name": "515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action", + "Microsoft.KeyVault/managedHsm/keys/export/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Officer", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "name": "a290e904-7015-4bba-90c8-60543313cdb4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/read", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/action", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/read", + "Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read", + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/restore/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/restore/status/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleAssignments/some-uuid?api-version=7.2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "184", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "properties": { + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "principalId": "service-principal-id" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "328", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "63" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Authorization/roleAssignments/some-uuid", + "name": "some-uuid", + "properties": { + "principalId": "service-principal-id", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleAssignments/some-uuid?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "328", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Authorization/roleAssignments/some-uuid", + "name": "some-uuid", + "properties": { + "principalId": "service-principal-id", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleAssignments?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1936", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1" + }, + "ResponseBody": { + "value": [ + { + "id": "/providers/Microsoft.Authorization/roleAssignments/fe59af98-bb73-4bfe-9159-2361b96ff4d2", + "name": "fe59af98-bb73-4bfe-9159-2361b96ff4d2", + "properties": { + "principalId": "056d8a44-4054-4363-b4aa-64d756161a2c", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/8ad6e891-2fd6-08f2-9462-22f356ca6298", + "name": "8ad6e891-2fd6-08f2-9462-22f356ca6298", + "properties": { + "principalId": "fa54e51e-ab45-4fa9-b655-4b8b601b82c4", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/5454f3d8-7b30-43a0-04c2-fc383ef30e9c", + "name": "5454f3d8-7b30-43a0-04c2-fc383ef30e9c", + "properties": { + "principalId": "056d8a44-4054-4363-b4aa-64d756161a2c", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/42764359-6d8d-438a-bf8e-c69343d89e09", + "name": "42764359-6d8d-438a-bf8e-c69343d89e09", + "properties": { + "principalId": "056d8a44-4054-4363-b4aa-64d756161a2c", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/some-uuid", + "name": "some-uuid", + "properties": { + "principalId": "service-principal-id", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleAssignments/some-uuid?api-version=7.2", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "328", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "69" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Authorization/roleAssignments/some-uuid", + "name": "some-uuid", + "properties": { + "principalId": "service-principal-id", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleAssignments?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1607", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1" + }, + "ResponseBody": { + "value": [ + { + "id": "/providers/Microsoft.Authorization/roleAssignments/fe59af98-bb73-4bfe-9159-2361b96ff4d2", + "name": "fe59af98-bb73-4bfe-9159-2361b96ff4d2", + "properties": { + "principalId": "056d8a44-4054-4363-b4aa-64d756161a2c", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/8ad6e891-2fd6-08f2-9462-22f356ca6298", + "name": "8ad6e891-2fd6-08f2-9462-22f356ca6298", + "properties": { + "principalId": "fa54e51e-ab45-4fa9-b655-4b8b601b82c4", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/5454f3d8-7b30-43a0-04c2-fc383ef30e9c", + "name": "5454f3d8-7b30-43a0-04c2-fc383ef30e9c", + "properties": { + "principalId": "056d8a44-4054-4363-b4aa-64d756161a2c", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/42764359-6d8d-438a-bf8e-c69343d89e09", + "name": "42764359-6d8d-438a-bf8e-c69343d89e09", + "properties": { + "principalId": "056d8a44-4054-4363-b4aa-64d756161a2c", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_access_control_async.pyTestAccessControltest_role_assignment[7.3].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_access_control_async.pyTestAccessControltest_role_assignment[7.3].json new file mode 100644 index 000000000000..12cc6f647dee --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_access_control_async.pyTestAccessControltest_role_assignment[7.3].json @@ -0,0 +1,572 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "2", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-server-latency": "1" + }, + "ResponseBody": "OK" + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7262", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "3" + }, + "ResponseBody": { + "value": [ + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "name": "7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Backup User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17", + "name": "33413926-3206-4cdd-b39a-83574fe37a17", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Encryption User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c", + "name": "21dbd100-6940-42c2-9190-5d6cb909625c", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/release/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Release User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "name": "2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Auditor", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "name": "4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Policy Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/770fd66c-6266-4643-9d4e-b616870898d5", + "name": "770fd66c-6266-4643-9d4e-b616870898d5", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [ + "Microsoft.KeyVault/managedHsm/keys/createIfNotExists", + "Microsoft.KeyVault/managedHsm/keys/read/action" + ], + "dataActions": [], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM ARM User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", + "name": "21dbd100-6940-42c2-9190-5d6cb909625b", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/write/action", + "Microsoft.KeyVault/managedHsm/keys/delete", + "Microsoft.KeyVault/managedHsm/keys/create", + "Microsoft.KeyVault/managedHsm/keys/rotate/action", + "Microsoft.KeyVault/managedHsm/keys/import/action", + "Microsoft.KeyVault/managedHsm/keys/release/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action", + "Microsoft.KeyVault/managedHsm/keys/restore/action", + "Microsoft.KeyVault/managedHsm/keys/encrypt/action", + "Microsoft.KeyVault/managedHsm/keys/decrypt/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action", + "Microsoft.KeyVault/managedHsm/keys/sign/action", + "Microsoft.KeyVault/managedHsm/keys/verify/action", + "Microsoft.KeyVault/managedHsm/keys/derive/action", + "Microsoft.KeyVault/managedHsm/rng/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "name": "515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action", + "Microsoft.KeyVault/managedHsm/keys/export/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Officer", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "name": "a290e904-7015-4bba-90c8-60543313cdb4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/read", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/action", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/read", + "Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read", + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/restore/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/restore/status/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleAssignments/some-uuid?api-version=7.3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "184", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "properties": { + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "principalId": "service-principal-id" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "328", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "73" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Authorization/roleAssignments/some-uuid", + "name": "some-uuid", + "properties": { + "principalId": "service-principal-id", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleAssignments/some-uuid?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "328", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Authorization/roleAssignments/some-uuid", + "name": "some-uuid", + "properties": { + "principalId": "service-principal-id", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleAssignments?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1936", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1" + }, + "ResponseBody": { + "value": [ + { + "id": "/providers/Microsoft.Authorization/roleAssignments/fe59af98-bb73-4bfe-9159-2361b96ff4d2", + "name": "fe59af98-bb73-4bfe-9159-2361b96ff4d2", + "properties": { + "principalId": "056d8a44-4054-4363-b4aa-64d756161a2c", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/some-uuid", + "name": "some-uuid", + "properties": { + "principalId": "service-principal-id", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/8ad6e891-2fd6-08f2-9462-22f356ca6298", + "name": "8ad6e891-2fd6-08f2-9462-22f356ca6298", + "properties": { + "principalId": "fa54e51e-ab45-4fa9-b655-4b8b601b82c4", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/5454f3d8-7b30-43a0-04c2-fc383ef30e9c", + "name": "5454f3d8-7b30-43a0-04c2-fc383ef30e9c", + "properties": { + "principalId": "056d8a44-4054-4363-b4aa-64d756161a2c", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/42764359-6d8d-438a-bf8e-c69343d89e09", + "name": "42764359-6d8d-438a-bf8e-c69343d89e09", + "properties": { + "principalId": "056d8a44-4054-4363-b4aa-64d756161a2c", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleAssignments/some-uuid?api-version=7.3", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "328", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "52" + }, + "ResponseBody": { + "id": "/providers/Microsoft.Authorization/roleAssignments/some-uuid", + "name": "some-uuid", + "properties": { + "principalId": "service-principal-id", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleAssignments?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1607", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "2" + }, + "ResponseBody": { + "value": [ + { + "id": "/providers/Microsoft.Authorization/roleAssignments/fe59af98-bb73-4bfe-9159-2361b96ff4d2", + "name": "fe59af98-bb73-4bfe-9159-2361b96ff4d2", + "properties": { + "principalId": "056d8a44-4054-4363-b4aa-64d756161a2c", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/8ad6e891-2fd6-08f2-9462-22f356ca6298", + "name": "8ad6e891-2fd6-08f2-9462-22f356ca6298", + "properties": { + "principalId": "fa54e51e-ab45-4fa9-b655-4b8b601b82c4", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/5454f3d8-7b30-43a0-04c2-fc383ef30e9c", + "name": "5454f3d8-7b30-43a0-04c2-fc383ef30e9c", + "properties": { + "principalId": "056d8a44-4054-4363-b4aa-64d756161a2c", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + }, + { + "id": "/providers/Microsoft.Authorization/roleAssignments/42764359-6d8d-438a-bf8e-c69343d89e09", + "name": "42764359-6d8d-438a-bf8e-c69343d89e09", + "properties": { + "principalId": "056d8a44-4054-4363-b4aa-64d756161a2c", + "roleDefinitionId": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "scope": "/" + }, + "type": "Microsoft.Authorization/roleAssignments" + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_access_control_async.pyTestAccessControltest_role_definitions[7.2].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_access_control_async.pyTestAccessControltest_role_definitions[7.2].json new file mode 100644 index 000000000000..bd75a48963a5 --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_access_control_async.pyTestAccessControltest_role_definitions[7.2].json @@ -0,0 +1,1132 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "2", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-server-latency": "3" + }, + "ResponseBody": "OK" + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7262", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "2" + }, + "ResponseBody": { + "value": [ + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "name": "7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Backup User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17", + "name": "33413926-3206-4cdd-b39a-83574fe37a17", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Encryption User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c", + "name": "21dbd100-6940-42c2-9190-5d6cb909625c", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/release/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Release User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "name": "2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Auditor", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "name": "4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Policy Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/770fd66c-6266-4643-9d4e-b616870898d5", + "name": "770fd66c-6266-4643-9d4e-b616870898d5", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [ + "Microsoft.KeyVault/managedHsm/keys/createIfNotExists", + "Microsoft.KeyVault/managedHsm/keys/read/action" + ], + "dataActions": [], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM ARM User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", + "name": "21dbd100-6940-42c2-9190-5d6cb909625b", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/write/action", + "Microsoft.KeyVault/managedHsm/keys/delete", + "Microsoft.KeyVault/managedHsm/keys/create", + "Microsoft.KeyVault/managedHsm/keys/rotate/action", + "Microsoft.KeyVault/managedHsm/keys/import/action", + "Microsoft.KeyVault/managedHsm/keys/release/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action", + "Microsoft.KeyVault/managedHsm/keys/restore/action", + "Microsoft.KeyVault/managedHsm/keys/encrypt/action", + "Microsoft.KeyVault/managedHsm/keys/decrypt/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action", + "Microsoft.KeyVault/managedHsm/keys/sign/action", + "Microsoft.KeyVault/managedHsm/keys/verify/action", + "Microsoft.KeyVault/managedHsm/keys/derive/action", + "Microsoft.KeyVault/managedHsm/rng/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "name": "515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action", + "Microsoft.KeyVault/managedHsm/keys/export/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Officer", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "name": "a290e904-7015-4bba-90c8-60543313cdb4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/read", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/action", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/read", + "Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read", + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/restore/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/restore/status/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions/definition-name?api-version=7.2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "158", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "properties": { + "roleName": "role-name70ad32eb", + "description": "test", + "permissions": [ + { + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ] + } + ] + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "411", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "50" + }, + "ResponseBody": { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/definition-name", + "name": "definition-name", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "test", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "role-name70ad32eb", + "type": "CustomRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions/definition-name?api-version=7.2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "124", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "properties": { + "permissions": [ + { + "dataActions": [], + "notDataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ] + } + ] + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "390", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "67" + }, + "ResponseBody": { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/definition-name", + "name": "definition-name", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [], + "notActions": [], + "notDataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ] + } + ], + "roleName": "", + "type": "CustomRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7653", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "2" + }, + "ResponseBody": { + "value": [ + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "name": "7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Backup User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17", + "name": "33413926-3206-4cdd-b39a-83574fe37a17", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Encryption User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c", + "name": "21dbd100-6940-42c2-9190-5d6cb909625c", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/release/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Release User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "name": "2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Auditor", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "name": "4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Policy Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/770fd66c-6266-4643-9d4e-b616870898d5", + "name": "770fd66c-6266-4643-9d4e-b616870898d5", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [ + "Microsoft.KeyVault/managedHsm/keys/createIfNotExists", + "Microsoft.KeyVault/managedHsm/keys/read/action" + ], + "dataActions": [], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM ARM User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", + "name": "21dbd100-6940-42c2-9190-5d6cb909625b", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/write/action", + "Microsoft.KeyVault/managedHsm/keys/delete", + "Microsoft.KeyVault/managedHsm/keys/create", + "Microsoft.KeyVault/managedHsm/keys/rotate/action", + "Microsoft.KeyVault/managedHsm/keys/import/action", + "Microsoft.KeyVault/managedHsm/keys/release/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action", + "Microsoft.KeyVault/managedHsm/keys/restore/action", + "Microsoft.KeyVault/managedHsm/keys/encrypt/action", + "Microsoft.KeyVault/managedHsm/keys/decrypt/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action", + "Microsoft.KeyVault/managedHsm/keys/sign/action", + "Microsoft.KeyVault/managedHsm/keys/verify/action", + "Microsoft.KeyVault/managedHsm/keys/derive/action", + "Microsoft.KeyVault/managedHsm/rng/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "name": "515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action", + "Microsoft.KeyVault/managedHsm/keys/export/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Officer", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "name": "a290e904-7015-4bba-90c8-60543313cdb4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/read", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/action", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/read", + "Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read", + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/restore/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/restore/status/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/definition-name", + "name": "definition-name", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [], + "notActions": [], + "notDataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ] + } + ], + "roleName": "", + "type": "CustomRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions/definition-name?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "390", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1" + }, + "ResponseBody": { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/definition-name", + "name": "definition-name", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [], + "notActions": [], + "notDataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ] + } + ], + "roleName": "", + "type": "CustomRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions/definition-name?api-version=7.2", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "390", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "58" + }, + "ResponseBody": { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/definition-name", + "name": "definition-name", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [], + "notActions": [], + "notDataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ] + } + ], + "roleName": "", + "type": "CustomRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7262", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "0" + }, + "ResponseBody": { + "value": [ + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "name": "7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Backup User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17", + "name": "33413926-3206-4cdd-b39a-83574fe37a17", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Encryption User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c", + "name": "21dbd100-6940-42c2-9190-5d6cb909625c", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/release/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Release User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "name": "2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Auditor", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "name": "4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Policy Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/770fd66c-6266-4643-9d4e-b616870898d5", + "name": "770fd66c-6266-4643-9d4e-b616870898d5", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [ + "Microsoft.KeyVault/managedHsm/keys/createIfNotExists", + "Microsoft.KeyVault/managedHsm/keys/read/action" + ], + "dataActions": [], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM ARM User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", + "name": "21dbd100-6940-42c2-9190-5d6cb909625b", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/write/action", + "Microsoft.KeyVault/managedHsm/keys/delete", + "Microsoft.KeyVault/managedHsm/keys/create", + "Microsoft.KeyVault/managedHsm/keys/rotate/action", + "Microsoft.KeyVault/managedHsm/keys/import/action", + "Microsoft.KeyVault/managedHsm/keys/release/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action", + "Microsoft.KeyVault/managedHsm/keys/restore/action", + "Microsoft.KeyVault/managedHsm/keys/encrypt/action", + "Microsoft.KeyVault/managedHsm/keys/decrypt/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action", + "Microsoft.KeyVault/managedHsm/keys/sign/action", + "Microsoft.KeyVault/managedHsm/keys/verify/action", + "Microsoft.KeyVault/managedHsm/keys/derive/action", + "Microsoft.KeyVault/managedHsm/rng/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "name": "515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action", + "Microsoft.KeyVault/managedHsm/keys/export/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Officer", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "name": "a290e904-7015-4bba-90c8-60543313cdb4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/read", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/action", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/read", + "Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read", + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/restore/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/restore/status/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_access_control_async.pyTestAccessControltest_role_definitions[7.3].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_access_control_async.pyTestAccessControltest_role_definitions[7.3].json new file mode 100644 index 000000000000..fb1573efbe9d --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_access_control_async.pyTestAccessControltest_role_definitions[7.3].json @@ -0,0 +1,1132 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "2", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-server-latency": "4" + }, + "ResponseBody": "OK" + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7262", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "2" + }, + "ResponseBody": { + "value": [ + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "name": "7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Backup User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17", + "name": "33413926-3206-4cdd-b39a-83574fe37a17", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Encryption User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c", + "name": "21dbd100-6940-42c2-9190-5d6cb909625c", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/release/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Release User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "name": "2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Auditor", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "name": "4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Policy Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/770fd66c-6266-4643-9d4e-b616870898d5", + "name": "770fd66c-6266-4643-9d4e-b616870898d5", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [ + "Microsoft.KeyVault/managedHsm/keys/createIfNotExists", + "Microsoft.KeyVault/managedHsm/keys/read/action" + ], + "dataActions": [], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM ARM User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", + "name": "21dbd100-6940-42c2-9190-5d6cb909625b", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/write/action", + "Microsoft.KeyVault/managedHsm/keys/delete", + "Microsoft.KeyVault/managedHsm/keys/create", + "Microsoft.KeyVault/managedHsm/keys/rotate/action", + "Microsoft.KeyVault/managedHsm/keys/import/action", + "Microsoft.KeyVault/managedHsm/keys/release/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action", + "Microsoft.KeyVault/managedHsm/keys/restore/action", + "Microsoft.KeyVault/managedHsm/keys/encrypt/action", + "Microsoft.KeyVault/managedHsm/keys/decrypt/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action", + "Microsoft.KeyVault/managedHsm/keys/sign/action", + "Microsoft.KeyVault/managedHsm/keys/verify/action", + "Microsoft.KeyVault/managedHsm/keys/derive/action", + "Microsoft.KeyVault/managedHsm/rng/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "name": "515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action", + "Microsoft.KeyVault/managedHsm/keys/export/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Officer", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "name": "a290e904-7015-4bba-90c8-60543313cdb4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/read", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/action", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/read", + "Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read", + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/restore/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/restore/status/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions/definition-name?api-version=7.3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "158", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "properties": { + "roleName": "role-name70b632ec", + "description": "test", + "permissions": [ + { + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ] + } + ] + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "411", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "78" + }, + "ResponseBody": { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/definition-name", + "name": "definition-name", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "test", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "role-name70b632ec", + "type": "CustomRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions/definition-name?api-version=7.3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "124", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "properties": { + "permissions": [ + { + "dataActions": [], + "notDataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ] + } + ] + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "390", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "84" + }, + "ResponseBody": { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/definition-name", + "name": "definition-name", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [], + "notActions": [], + "notDataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ] + } + ], + "roleName": "", + "type": "CustomRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7653", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1" + }, + "ResponseBody": { + "value": [ + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "name": "7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Backup User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17", + "name": "33413926-3206-4cdd-b39a-83574fe37a17", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Encryption User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c", + "name": "21dbd100-6940-42c2-9190-5d6cb909625c", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/release/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Release User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "name": "2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Auditor", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "name": "4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Policy Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/770fd66c-6266-4643-9d4e-b616870898d5", + "name": "770fd66c-6266-4643-9d4e-b616870898d5", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [ + "Microsoft.KeyVault/managedHsm/keys/createIfNotExists", + "Microsoft.KeyVault/managedHsm/keys/read/action" + ], + "dataActions": [], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM ARM User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", + "name": "21dbd100-6940-42c2-9190-5d6cb909625b", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/write/action", + "Microsoft.KeyVault/managedHsm/keys/delete", + "Microsoft.KeyVault/managedHsm/keys/create", + "Microsoft.KeyVault/managedHsm/keys/rotate/action", + "Microsoft.KeyVault/managedHsm/keys/import/action", + "Microsoft.KeyVault/managedHsm/keys/release/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action", + "Microsoft.KeyVault/managedHsm/keys/restore/action", + "Microsoft.KeyVault/managedHsm/keys/encrypt/action", + "Microsoft.KeyVault/managedHsm/keys/decrypt/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action", + "Microsoft.KeyVault/managedHsm/keys/sign/action", + "Microsoft.KeyVault/managedHsm/keys/verify/action", + "Microsoft.KeyVault/managedHsm/keys/derive/action", + "Microsoft.KeyVault/managedHsm/rng/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "name": "515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action", + "Microsoft.KeyVault/managedHsm/keys/export/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Officer", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "name": "a290e904-7015-4bba-90c8-60543313cdb4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/read", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/action", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/read", + "Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read", + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/restore/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/restore/status/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/definition-name", + "name": "definition-name", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [], + "notActions": [], + "notDataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ] + } + ], + "roleName": "", + "type": "CustomRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions/definition-name?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "390", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1" + }, + "ResponseBody": { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/definition-name", + "name": "definition-name", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [], + "notActions": [], + "notDataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ] + } + ], + "roleName": "", + "type": "CustomRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions/definition-name?api-version=7.3", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "390", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "47" + }, + "ResponseBody": { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/definition-name", + "name": "definition-name", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [], + "notActions": [], + "notDataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action" + ] + } + ], + "roleName": "", + "type": "CustomRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/providers/Microsoft.Authorization/roleDefinitions?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7262", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1" + }, + "ResponseBody": { + "value": [ + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "name": "7b127d3c-77bd-4e3e-bbe0-dbb8971fa7f8", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Backup User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17", + "name": "33413926-3206-4cdd-b39a-83574fe37a17", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Encryption User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625c", + "name": "21dbd100-6940-42c2-9190-5d6cb909625c", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/keys/release/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Service Release User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "name": "2c18b078-7c48-4d3a-af88-5a3a1b3f82b3", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Auditor", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "name": "4bd23610-cdcf-4971-bdee-bdc562cc28e4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Policy Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/770fd66c-6266-4643-9d4e-b616870898d5", + "name": "770fd66c-6266-4643-9d4e-b616870898d5", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [ + "Microsoft.KeyVault/managedHsm/keys/createIfNotExists", + "Microsoft.KeyVault/managedHsm/keys/read/action" + ], + "dataActions": [], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM ARM User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/21dbd100-6940-42c2-9190-5d6cb909625b", + "name": "21dbd100-6940-42c2-9190-5d6cb909625b", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/keys/read/action", + "Microsoft.KeyVault/managedHsm/keys/write/action", + "Microsoft.KeyVault/managedHsm/keys/delete", + "Microsoft.KeyVault/managedHsm/keys/create", + "Microsoft.KeyVault/managedHsm/keys/rotate/action", + "Microsoft.KeyVault/managedHsm/keys/import/action", + "Microsoft.KeyVault/managedHsm/keys/release/action", + "Microsoft.KeyVault/managedHsm/keys/backup/action", + "Microsoft.KeyVault/managedHsm/keys/restore/action", + "Microsoft.KeyVault/managedHsm/keys/encrypt/action", + "Microsoft.KeyVault/managedHsm/keys/decrypt/action", + "Microsoft.KeyVault/managedHsm/keys/wrap/action", + "Microsoft.KeyVault/managedHsm/keys/unwrap/action", + "Microsoft.KeyVault/managedHsm/keys/sign/action", + "Microsoft.KeyVault/managedHsm/keys/verify/action", + "Microsoft.KeyVault/managedHsm/keys/derive/action", + "Microsoft.KeyVault/managedHsm/rng/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto User", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "name": "515eb02d-2335-4d2d-92f2-b1cbdf9c3778", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete", + "Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action", + "Microsoft.KeyVault/managedHsm/keys/export/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Crypto Officer", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + }, + { + "id": "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/a290e904-7015-4bba-90c8-60543313cdb4", + "name": "a290e904-7015-4bba-90c8-60543313cdb4", + "properties": { + "assignableScopes": [ + "/" + ], + "description": "", + "permissions": [ + { + "actions": [], + "dataActions": [ + "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/read/action", + "Microsoft.KeyVault/managedHsm/roleAssignments/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action", + "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/action", + "Microsoft.KeyVault/managedHsm/securitydomain/download/read", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/action", + "Microsoft.KeyVault/managedHsm/securitydomain/upload/read", + "Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read", + "Microsoft.KeyVault/managedHsm/backup/start/action", + "Microsoft.KeyVault/managedHsm/restore/start/action", + "Microsoft.KeyVault/managedHsm/backup/status/action", + "Microsoft.KeyVault/managedHsm/restore/status/action" + ], + "notActions": [], + "notDataActions": [] + } + ], + "roleName": "Managed HSM Administrator", + "type": "AKVBuiltInRole" + }, + "type": "Microsoft.Authorization/roleDefinitions" + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client.pyTestBackupClientTeststest_backup_client_polling[7.2].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client.pyTestBackupClientTeststest_backup_client_polling[7.2].json new file mode 100644 index 000000000000..5bf115d2747c --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client.pyTestBackupClientTeststest_backup_client_polling[7.2].json @@ -0,0 +1,586 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "1" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:34:59 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAwAAACZ_C9oOAAAA; expires=Wed, 08-Jun-2022 21:34:59 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", + "response_modes_supported": [ + "query", + "fragment", + "form_post" + ], + "subject_types_supported": [ + "pairwise" + ], + "id_token_signing_alg_values_supported": [ + "RS256" + ], + "response_types_supported": [ + "code", + "id_token", + "code id_token", + "id_token token" + ], + "scopes_supported": [ + "openid", + "profile", + "email", + "offline_access" + ], + "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", + "claims_supported": [ + "sub", + "iss", + "cloud_instance_name", + "cloud_instance_host_name", + "cloud_graph_host_name", + "msgraph_host", + "aud", + "exp", + "iat", + "auth_time", + "acr", + "nonce", + "preferred_username", + "name", + "tid", + "ver", + "at_hash", + "c_hash", + "email" + ], + "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAwAAACZ_C9oOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:34:59 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAwAAACZ_C9oOAAAA; expires=Wed, 08-Jun-2022 21:34:59 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "117", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/backup/4dcd7285f8b744b391108a299eeaac55/pending", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:35:01 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1868" + }, + "ResponseBody": { + "status": "InProgress", + "statusDetails": null, + "error": null, + "startTime": 1652132101, + "endTime": null, + "jobId": "4dcd7285f8b744b391108a299eeaac55", + "azureStorageBlobContainerUri": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/4dcd7285f8b744b391108a299eeaac55/pending?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:35:02 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1436" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": null, + "endTime": null, + "error": null, + "jobId": "4dcd7285f8b744b391108a299eeaac55", + "startTime": 1652132101, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/4dcd7285f8b744b391108a299eeaac55/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:35:08 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1368" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": null, + "endTime": null, + "error": null, + "jobId": "4dcd7285f8b744b391108a299eeaac55", + "startTime": 1652132101, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/4dcd7285f8b744b391108a299eeaac55/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:35:12 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1610" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921350108", + "endTime": 1652132109, + "error": null, + "jobId": "4dcd7285f8b744b391108a299eeaac55", + "startTime": 1652132101, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/4dcd7285f8b744b391108a299eeaac55/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:35:16 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "2364" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921350108", + "endTime": 1652132109, + "error": null, + "jobId": "4dcd7285f8b744b391108a299eeaac55", + "startTime": 1652132101, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/4dcd7285f8b744b391108a299eeaac55/pending?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:35:17 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1960" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921350108", + "endTime": 1652132109, + "error": null, + "jobId": "4dcd7285f8b744b391108a299eeaac55", + "startTime": 1652132101, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore?api-version=7.2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "207", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "sasTokenParameters": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "folderToRestore": "mhsm-kashifkhankeyvaulthsm-2022050921350108" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/restore/69db510e2d524e87b05a65414b33b5cb/pending", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:35:20 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "2153" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "69db510e2d524e87b05a65414b33b5cb", + "startTime": 1652132120, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/69db510e2d524e87b05a65414b33b5cb/pending?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:35:22 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1435" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "69db510e2d524e87b05a65414b33b5cb", + "startTime": 1652132120, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/69db510e2d524e87b05a65414b33b5cb/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "143", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:35:28 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1363" + }, + "ResponseBody": { + "endTime": 1652132127, + "error": null, + "jobId": "69db510e2d524e87b05a65414b33b5cb", + "startTime": 1652132120, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/69db510e2d524e87b05a65414b33b5cb/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "143", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:35:31 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1483" + }, + "ResponseBody": { + "endTime": 1652132127, + "error": null, + "jobId": "69db510e2d524e87b05a65414b33b5cb", + "startTime": 1652132120, + "status": "Succeeded", + "statusDetails": null + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client.pyTestBackupClientTeststest_backup_client_polling[7.3].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client.pyTestBackupClientTeststest_backup_client_polling[7.3].json new file mode 100644 index 000000000000..eb83ff087a31 --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client.pyTestBackupClientTeststest_backup_client_polling[7.3].json @@ -0,0 +1,586 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "4" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:33:26 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAgAAACZ_C9oOAAAA; expires=Wed, 08-Jun-2022 21:33:26 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", + "response_modes_supported": [ + "query", + "fragment", + "form_post" + ], + "subject_types_supported": [ + "pairwise" + ], + "id_token_signing_alg_values_supported": [ + "RS256" + ], + "response_types_supported": [ + "code", + "id_token", + "code id_token", + "id_token token" + ], + "scopes_supported": [ + "openid", + "profile", + "email", + "offline_access" + ], + "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", + "claims_supported": [ + "sub", + "iss", + "cloud_instance_name", + "cloud_instance_host_name", + "cloud_graph_host_name", + "msgraph_host", + "aud", + "exp", + "iat", + "auth_time", + "acr", + "nonce", + "preferred_username", + "name", + "tid", + "ver", + "at_hash", + "c_hash", + "email" + ], + "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAgAAACZ_C9oOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:33:26 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAgAAACZ_C9oOAAAA; expires=Wed, 08-Jun-2022 21:33:26 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "117", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/backup/d69b9ad6a53945e2a41227f7049b4cd9/pending", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:33:27 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1554" + }, + "ResponseBody": { + "status": "InProgress", + "statusDetails": null, + "error": null, + "startTime": 1652132008, + "endTime": null, + "jobId": "d69b9ad6a53945e2a41227f7049b4cd9", + "azureStorageBlobContainerUri": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/d69b9ad6a53945e2a41227f7049b4cd9/pending?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:33:29 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1377" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": null, + "endTime": null, + "error": null, + "jobId": "d69b9ad6a53945e2a41227f7049b4cd9", + "startTime": 1652132008, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/d69b9ad6a53945e2a41227f7049b4cd9/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:33:36 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1508" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": null, + "endTime": null, + "error": null, + "jobId": "d69b9ad6a53945e2a41227f7049b4cd9", + "startTime": 1652132008, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/d69b9ad6a53945e2a41227f7049b4cd9/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:33:39 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1379" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921332811", + "endTime": 1652132016, + "error": null, + "jobId": "d69b9ad6a53945e2a41227f7049b4cd9", + "startTime": 1652132008, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/d69b9ad6a53945e2a41227f7049b4cd9/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:33:42 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1514" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921332811", + "endTime": 1652132016, + "error": null, + "jobId": "d69b9ad6a53945e2a41227f7049b4cd9", + "startTime": 1652132008, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/d69b9ad6a53945e2a41227f7049b4cd9/pending?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:33:43 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1359" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921332811", + "endTime": 1652132016, + "error": null, + "jobId": "d69b9ad6a53945e2a41227f7049b4cd9", + "startTime": 1652132008, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore?api-version=7.3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "207", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "sasTokenParameters": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "folderToRestore": "mhsm-kashifkhankeyvaulthsm-2022050921332811" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/restore/5eed3d2256794fe58f416afbb22c3ac6/pending", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:33:46 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1764" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "5eed3d2256794fe58f416afbb22c3ac6", + "startTime": 1652132025, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/5eed3d2256794fe58f416afbb22c3ac6/pending?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:33:47 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1406" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "5eed3d2256794fe58f416afbb22c3ac6", + "startTime": 1652132025, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/5eed3d2256794fe58f416afbb22c3ac6/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "143", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:33:53 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1354" + }, + "ResponseBody": { + "endTime": 1652132032, + "error": null, + "jobId": "5eed3d2256794fe58f416afbb22c3ac6", + "startTime": 1652132025, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/5eed3d2256794fe58f416afbb22c3ac6/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "143", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:33:58 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "2589" + }, + "ResponseBody": { + "endTime": 1652132032, + "error": null, + "jobId": "5eed3d2256794fe58f416afbb22c3ac6", + "startTime": 1652132025, + "status": "Succeeded", + "statusDetails": null + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client.pyTestBackupClientTeststest_full_backup_and_restore[7.2].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client.pyTestBackupClientTeststest_full_backup_and_restore[7.2].json new file mode 100644 index 000000000000..ce536a0f9ad5 --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client.pyTestBackupClientTeststest_full_backup_and_restore[7.2].json @@ -0,0 +1,366 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "2" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:25:54 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tBAAAAM58C9oOAAAA; expires=Wed, 08-Jun-2022 21:25:55 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", + "response_modes_supported": [ + "query", + "fragment", + "form_post" + ], + "subject_types_supported": [ + "pairwise" + ], + "id_token_signing_alg_values_supported": [ + "RS256" + ], + "response_types_supported": [ + "code", + "id_token", + "code id_token", + "id_token token" + ], + "scopes_supported": [ + "openid", + "profile", + "email", + "offline_access" + ], + "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", + "claims_supported": [ + "sub", + "iss", + "cloud_instance_name", + "cloud_instance_host_name", + "cloud_graph_host_name", + "msgraph_host", + "aud", + "exp", + "iat", + "auth_time", + "acr", + "nonce", + "preferred_username", + "name", + "tid", + "ver", + "at_hash", + "c_hash", + "email" + ], + "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tBAAAAM58C9oOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:25:54 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tBAAAAM58C9oOAAAA; expires=Wed, 08-Jun-2022 21:25:55 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "117", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/backup/5720b6bc2d8f45b0a72de29bce9dca72/pending", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:25:56 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1929" + }, + "ResponseBody": { + "status": "InProgress", + "statusDetails": null, + "error": null, + "startTime": 1652131557, + "endTime": null, + "jobId": "5720b6bc2d8f45b0a72de29bce9dca72", + "azureStorageBlobContainerUri": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/5720b6bc2d8f45b0a72de29bce9dca72/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:26:09 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "2105" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921255728", + "endTime": 1652131565, + "error": null, + "jobId": "5720b6bc2d8f45b0a72de29bce9dca72", + "startTime": 1652131557, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore?api-version=7.2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "207", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "sasTokenParameters": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "folderToRestore": "mhsm-kashifkhankeyvaulthsm-2022050921255728" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/restore/9268b42a88c9450fb8a73ab6798eff34/pending", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:26:10 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1766" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "9268b42a88c9450fb8a73ab6798eff34", + "startTime": 1652131571, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/9268b42a88c9450fb8a73ab6798eff34/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "143", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:26:23 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1628" + }, + "ResponseBody": { + "endTime": 1652131582, + "error": null, + "jobId": "9268b42a88c9450fb8a73ab6798eff34", + "startTime": 1652131571, + "status": "Succeeded", + "statusDetails": null + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client.pyTestBackupClientTeststest_full_backup_and_restore[7.3].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client.pyTestBackupClientTeststest_full_backup_and_restore[7.3].json new file mode 100644 index 000000000000..99410ea46470 --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client.pyTestBackupClientTeststest_full_backup_and_restore[7.3].json @@ -0,0 +1,366 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "4" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:24:26 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAwAAAM58C9oOAAAA; expires=Wed, 08-Jun-2022 21:24:27 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", + "response_modes_supported": [ + "query", + "fragment", + "form_post" + ], + "subject_types_supported": [ + "pairwise" + ], + "id_token_signing_alg_values_supported": [ + "RS256" + ], + "response_types_supported": [ + "code", + "id_token", + "code id_token", + "id_token token" + ], + "scopes_supported": [ + "openid", + "profile", + "email", + "offline_access" + ], + "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", + "claims_supported": [ + "sub", + "iss", + "cloud_instance_name", + "cloud_instance_host_name", + "cloud_graph_host_name", + "msgraph_host", + "aud", + "exp", + "iat", + "auth_time", + "acr", + "nonce", + "preferred_username", + "name", + "tid", + "ver", + "at_hash", + "c_hash", + "email" + ], + "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAwAAAM58C9oOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:24:26 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAwAAAM58C9oOAAAA; expires=Wed, 08-Jun-2022 21:24:27 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "117", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/backup/742e08b878184de3a4079a5afdb46453/pending", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:24:28 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1990" + }, + "ResponseBody": { + "status": "InProgress", + "statusDetails": null, + "error": null, + "startTime": 1652131469, + "endTime": null, + "jobId": "742e08b878184de3a4079a5afdb46453", + "azureStorageBlobContainerUri": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/742e08b878184de3a4079a5afdb46453/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:24:41 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1656" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921242939", + "endTime": 1652131477, + "error": null, + "jobId": "742e08b878184de3a4079a5afdb46453", + "startTime": 1652131469, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore?api-version=7.3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "207", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "sasTokenParameters": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "folderToRestore": "mhsm-kashifkhankeyvaulthsm-2022050921242939" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/restore/b931d588161149efa12a45c2ce7d38c8/pending", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:24:42 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1916" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "b931d588161149efa12a45c2ce7d38c8", + "startTime": 1652131482, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/b931d588161149efa12a45c2ce7d38c8/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "143", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:24:54 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1566" + }, + "ResponseBody": { + "endTime": 1652131494, + "error": null, + "jobId": "b931d588161149efa12a45c2ce7d38c8", + "startTime": 1652131482, + "status": "Succeeded", + "statusDetails": null + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client.pyTestBackupClientTeststest_full_backup_and_restore_rehydration[7.2].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client.pyTestBackupClientTeststest_full_backup_and_restore_rehydration[7.2].json new file mode 100644 index 000000000000..bbaef04d0b0c --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client.pyTestBackupClientTeststest_full_backup_and_restore_rehydration[7.2].json @@ -0,0 +1,548 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "3" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:28:56 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAQAAAPp9C9oOAAAA; expires=Wed, 08-Jun-2022 21:28:56 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", + "response_modes_supported": [ + "query", + "fragment", + "form_post" + ], + "subject_types_supported": [ + "pairwise" + ], + "id_token_signing_alg_values_supported": [ + "RS256" + ], + "response_types_supported": [ + "code", + "id_token", + "code id_token", + "id_token token" + ], + "scopes_supported": [ + "openid", + "profile", + "email", + "offline_access" + ], + "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", + "claims_supported": [ + "sub", + "iss", + "cloud_instance_name", + "cloud_instance_host_name", + "cloud_graph_host_name", + "msgraph_host", + "aud", + "exp", + "iat", + "auth_time", + "acr", + "nonce", + "preferred_username", + "name", + "tid", + "ver", + "at_hash", + "c_hash", + "email" + ], + "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAQAAAPp9C9oOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:28:56 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAQAAAPp9C9oOAAAA; expires=Wed, 08-Jun-2022 21:28:56 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "117", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/backup/aa0607aaca634214a0e3e2803286bddc/pending", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:28:58 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1901" + }, + "ResponseBody": { + "status": "InProgress", + "statusDetails": null, + "error": null, + "startTime": 1652131738, + "endTime": null, + "jobId": "aa0607aaca634214a0e3e2803286bddc", + "azureStorageBlobContainerUri": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/aa0607aaca634214a0e3e2803286bddc/pending?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:28:59 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1407" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": null, + "endTime": null, + "error": null, + "jobId": "aa0607aaca634214a0e3e2803286bddc", + "startTime": 1652131738, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/aa0607aaca634214a0e3e2803286bddc/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:29:06 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1452" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921285879", + "endTime": 1652131746, + "error": null, + "jobId": "aa0607aaca634214a0e3e2803286bddc", + "startTime": 1652131738, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/aa0607aaca634214a0e3e2803286bddc/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:29:09 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1371" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921285879", + "endTime": 1652131746, + "error": null, + "jobId": "aa0607aaca634214a0e3e2803286bddc", + "startTime": 1652131738, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore?api-version=7.2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "207", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "sasTokenParameters": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "folderToRestore": "mhsm-kashifkhankeyvaulthsm-2022050921285879" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/restore/8bace01a0a83436e855a99f72552396b/pending", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:29:11 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1670" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "8bace01a0a83436e855a99f72552396b", + "startTime": 1652131751, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/8bace01a0a83436e855a99f72552396b/pending?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:29:13 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1348" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "8bace01a0a83436e855a99f72552396b", + "startTime": 1652131751, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/8bace01a0a83436e855a99f72552396b/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:29:19 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1403" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "8bace01a0a83436e855a99f72552396b", + "startTime": 1652131751, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/8bace01a0a83436e855a99f72552396b/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "143", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:29:23 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1332" + }, + "ResponseBody": { + "endTime": 1652131763, + "error": null, + "jobId": "8bace01a0a83436e855a99f72552396b", + "startTime": 1652131751, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/8bace01a0a83436e855a99f72552396b/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "143", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:29:25 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1595" + }, + "ResponseBody": { + "endTime": 1652131763, + "error": null, + "jobId": "8bace01a0a83436e855a99f72552396b", + "startTime": 1652131751, + "status": "Succeeded", + "statusDetails": null + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client.pyTestBackupClientTeststest_full_backup_and_restore_rehydration[7.3].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client.pyTestBackupClientTeststest_full_backup_and_restore_rehydration[7.3].json new file mode 100644 index 000000000000..816de3614d94 --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client.pyTestBackupClientTeststest_full_backup_and_restore_rehydration[7.3].json @@ -0,0 +1,585 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "5" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:27:22 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tBQAAAM58C9oOAAAA; expires=Wed, 08-Jun-2022 21:27:23 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", + "response_modes_supported": [ + "query", + "fragment", + "form_post" + ], + "subject_types_supported": [ + "pairwise" + ], + "id_token_signing_alg_values_supported": [ + "RS256" + ], + "response_types_supported": [ + "code", + "id_token", + "code id_token", + "id_token token" + ], + "scopes_supported": [ + "openid", + "profile", + "email", + "offline_access" + ], + "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", + "claims_supported": [ + "sub", + "iss", + "cloud_instance_name", + "cloud_instance_host_name", + "cloud_graph_host_name", + "msgraph_host", + "aud", + "exp", + "iat", + "auth_time", + "acr", + "nonce", + "preferred_username", + "name", + "tid", + "ver", + "at_hash", + "c_hash", + "email" + ], + "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tBQAAAM58C9oOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:27:23 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tBQAAAM58C9oOAAAA; expires=Wed, 08-Jun-2022 21:27:23 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "117", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/backup/1e62060c5cc84e20a5e66b982ca7ea97/pending", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:27:25 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1771" + }, + "ResponseBody": { + "status": "InProgress", + "statusDetails": null, + "error": null, + "startTime": 1652131645, + "endTime": null, + "jobId": "1e62060c5cc84e20a5e66b982ca7ea97", + "azureStorageBlobContainerUri": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/1e62060c5cc84e20a5e66b982ca7ea97/pending?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:27:26 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1394" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": null, + "endTime": null, + "error": null, + "jobId": "1e62060c5cc84e20a5e66b982ca7ea97", + "startTime": 1652131645, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/1e62060c5cc84e20a5e66b982ca7ea97/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:27:32 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1345" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": null, + "endTime": null, + "error": null, + "jobId": "1e62060c5cc84e20a5e66b982ca7ea97", + "startTime": 1652131645, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/1e62060c5cc84e20a5e66b982ca7ea97/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:27:36 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1428" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921272558", + "endTime": 1652131653, + "error": null, + "jobId": "1e62060c5cc84e20a5e66b982ca7ea97", + "startTime": 1652131645, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/1e62060c5cc84e20a5e66b982ca7ea97/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:27:39 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1365" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921272558", + "endTime": 1652131653, + "error": null, + "jobId": "1e62060c5cc84e20a5e66b982ca7ea97", + "startTime": 1652131645, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore?api-version=7.3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "207", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "sasTokenParameters": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "folderToRestore": "mhsm-kashifkhankeyvaulthsm-2022050921272558" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/restore/e295f6ee64de4fa4967ac73b4dc341df/pending", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:27:41 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1559" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "e295f6ee64de4fa4967ac73b4dc341df", + "startTime": 1652131661, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/e295f6ee64de4fa4967ac73b4dc341df/pending?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:27:43 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1466" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "e295f6ee64de4fa4967ac73b4dc341df", + "startTime": 1652131661, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/e295f6ee64de4fa4967ac73b4dc341df/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:27:48 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1353" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "e295f6ee64de4fa4967ac73b4dc341df", + "startTime": 1652131661, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/e295f6ee64de4fa4967ac73b4dc341df/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "143", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:27:53 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1397" + }, + "ResponseBody": { + "endTime": 1652131672, + "error": null, + "jobId": "e295f6ee64de4fa4967ac73b4dc341df", + "startTime": 1652131661, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/e295f6ee64de4fa4967ac73b4dc341df/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "143", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:27:55 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1547" + }, + "ResponseBody": { + "endTime": 1652131672, + "error": null, + "jobId": "e295f6ee64de4fa4967ac73b4dc341df", + "startTime": 1652131661, + "status": "Succeeded", + "statusDetails": null + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client.pyTestBackupClientTeststest_selective_key_restore[7.2].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client.pyTestBackupClientTeststest_selective_key_restore[7.2].json new file mode 100644 index 000000000000..859c905c0901 --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client.pyTestBackupClientTeststest_selective_key_restore[7.2].json @@ -0,0 +1,722 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:31:56 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tBAAAAPp9C9oOAAAA; expires=Wed, 08-Jun-2022 21:31:56 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", + "response_modes_supported": [ + "query", + "fragment", + "form_post" + ], + "subject_types_supported": [ + "pairwise" + ], + "id_token_signing_alg_values_supported": [ + "RS256" + ], + "response_types_supported": [ + "code", + "id_token", + "code id_token", + "id_token token" + ], + "scopes_supported": [ + "openid", + "profile", + "email", + "offline_access" + ], + "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", + "claims_supported": [ + "sub", + "iss", + "cloud_instance_name", + "cloud_instance_host_name", + "cloud_graph_host_name", + "msgraph_host", + "aud", + "exp", + "iat", + "auth_time", + "acr", + "nonce", + "preferred_username", + "name", + "tid", + "ver", + "at_hash", + "c_hash", + "email" + ], + "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tBAAAAPp9C9oOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:31:56 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tBAAAAPp9C9oOAAAA; expires=Wed, 08-Jun-2022 21:31:56 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-keycd0133a7/create?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "14", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-keys/4.5.2 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "kty": "RSA" + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "741", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "351" + }, + "ResponseBody": { + "attributes": { + "created": 1652131916, + "enabled": true, + "exportable": false, + "recoverableDays": 7, + "recoveryLevel": "CustomizedRecoverable\u002BPurgeable", + "updated": 1652131916 + }, + "key": { + "e": "AQAB", + "key_ops": [ + "wrapKey", + "decrypt", + "encrypt", + "unwrapKey", + "sign", + "verify" + ], + "kid": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-keycd0133a7/9305ab8a2ca54735290dda93eb935299", + "kty": "RSA-HSM", + "n": "sY_odfDO5Gl4as8CuVuUMkBLVsd2EICdzM9Nr5UdASnACijNGj-rQxf42uogDi_fHPjTyhpxS2ZMjKcvdzFA2hFsrdK7ymZn0yPPuS9wCtYjytrEa_bk9ECNsDPspIk0vsEix9nXwsnbjMV10Acj_R47tkf_2hTF8FihSzV0ii_-T092am5JM4FICiLSoceBt7yRT9m72V8iOPCSABgQG2lA-v-7NYIYrzurV5TOPHWkXYNytPsWhEWqzk-Wb4xLWzLjB8Dh__RDeXsh2CZuRHdjpfhXKJk7n6KL9VHRv-kfA24-eFLW0GQavLAZwxZtzEp2klJ1o6zSlsJdrfJw_w" + } + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "1" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:31:57 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAQAAACZ_C9oOAAAA; expires=Wed, 08-Jun-2022 21:31:57 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", + "response_modes_supported": [ + "query", + "fragment", + "form_post" + ], + "subject_types_supported": [ + "pairwise" + ], + "id_token_signing_alg_values_supported": [ + "RS256" + ], + "response_types_supported": [ + "code", + "id_token", + "code id_token", + "id_token token" + ], + "scopes_supported": [ + "openid", + "profile", + "email", + "offline_access" + ], + "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", + "claims_supported": [ + "sub", + "iss", + "cloud_instance_name", + "cloud_instance_host_name", + "cloud_graph_host_name", + "msgraph_host", + "aud", + "exp", + "iat", + "auth_time", + "acr", + "nonce", + "preferred_username", + "name", + "tid", + "ver", + "at_hash", + "c_hash", + "email" + ], + "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAQAAACZ_C9oOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:31:57 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAQAAACZ_C9oOAAAA; expires=Wed, 08-Jun-2022 21:31:57 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "117", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/backup/ba279a353343499286027588be712009/pending", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:31:59 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1795" + }, + "ResponseBody": { + "status": "InProgress", + "statusDetails": null, + "error": null, + "startTime": 1652131919, + "endTime": null, + "jobId": "ba279a353343499286027588be712009", + "azureStorageBlobContainerUri": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/ba279a353343499286027588be712009/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:32:10 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1653" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921315913", + "endTime": 1652131927, + "error": null, + "jobId": "ba279a353343499286027588be712009", + "startTime": 1652131919, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-keycd0133a7/restore?api-version=7.2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "198", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "sasTokenParameters": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "folder": "mhsm-kashifkhankeyvaulthsm-2022050921315913" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/restore/d2731a4bf4f8432598deb341f6f6c682/pending", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:32:12 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1791" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "d2731a4bf4f8432598deb341f6f6c682", + "startTime": 1652131932, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/d2731a4bf4f8432598deb341f6f6c682/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "233", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:32:25 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "2261" + }, + "ResponseBody": { + "endTime": 1652131938, + "error": null, + "jobId": "d2731a4bf4f8432598deb341f6f6c682", + "startTime": 1652131932, + "status": "Succeeded", + "statusDetails": "Number of successful key versions restored: 0, Number of key versions could not overwrite: 2" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-keycd0133a7?api-version=7.3", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-keyvault-keys/4.5.2 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "904", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "197" + }, + "ResponseBody": { + "attributes": { + "created": 1652131916, + "enabled": true, + "exportable": false, + "recoverableDays": 7, + "recoveryLevel": "CustomizedRecoverable\u002BPurgeable", + "updated": 1652131916 + }, + "deletedDate": 1652131945, + "key": { + "e": "AQAB", + "key_ops": [ + "wrapKey", + "encrypt", + "decrypt", + "unwrapKey", + "sign", + "verify" + ], + "kid": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-keycd0133a7/9305ab8a2ca54735290dda93eb935299", + "kty": "RSA-HSM", + "n": "sY_odfDO5Gl4as8CuVuUMkBLVsd2EICdzM9Nr5UdASnACijNGj-rQxf42uogDi_fHPjTyhpxS2ZMjKcvdzFA2hFsrdK7ymZn0yPPuS9wCtYjytrEa_bk9ECNsDPspIk0vsEix9nXwsnbjMV10Acj_R47tkf_2hTF8FihSzV0ii_-T092am5JM4FICiLSoceBt7yRT9m72V8iOPCSABgQG2lA-v-7NYIYrzurV5TOPHWkXYNytPsWhEWqzk-Wb4xLWzLjB8Dh__RDeXsh2CZuRHdjpfhXKJk7n6KL9VHRv-kfA24-eFLW0GQavLAZwxZtzEp2klJ1o6zSlsJdrfJw_w" + }, + "recoveryId": "https://managedhsmvaultname.vault.azure.net/deletedkeys/selective-restore-test-keycd0133a7", + "scheduledPurgeDate": 1652736745 + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/deletedkeys/selective-restore-test-keycd0133a7?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-keys/4.5.2 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "904", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "44" + }, + "ResponseBody": { + "attributes": { + "created": 1652131916, + "enabled": true, + "exportable": false, + "recoverableDays": 7, + "recoveryLevel": "CustomizedRecoverable\u002BPurgeable", + "updated": 1652131916 + }, + "deletedDate": 1652131945, + "key": { + "e": "AQAB", + "key_ops": [ + "verify", + "sign", + "unwrapKey", + "encrypt", + "decrypt", + "wrapKey" + ], + "kid": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-keycd0133a7/9305ab8a2ca54735290dda93eb935299", + "kty": "RSA-HSM", + "n": "sY_odfDO5Gl4as8CuVuUMkBLVsd2EICdzM9Nr5UdASnACijNGj-rQxf42uogDi_fHPjTyhpxS2ZMjKcvdzFA2hFsrdK7ymZn0yPPuS9wCtYjytrEa_bk9ECNsDPspIk0vsEix9nXwsnbjMV10Acj_R47tkf_2hTF8FihSzV0ii_-T092am5JM4FICiLSoceBt7yRT9m72V8iOPCSABgQG2lA-v-7NYIYrzurV5TOPHWkXYNytPsWhEWqzk-Wb4xLWzLjB8Dh__RDeXsh2CZuRHdjpfhXKJk7n6KL9VHRv-kfA24-eFLW0GQavLAZwxZtzEp2klJ1o6zSlsJdrfJw_w" + }, + "recoveryId": "https://managedhsmvaultname.vault.azure.net/deletedkeys/selective-restore-test-keycd0133a7", + "scheduledPurgeDate": 1652736745 + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/deletedkeys/selective-restore-test-keycd0133a7?api-version=7.3", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-keyvault-keys/4.5.2 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 204, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "139" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client.pyTestBackupClientTeststest_selective_key_restore[7.3].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client.pyTestBackupClientTeststest_selective_key_restore[7.3].json new file mode 100644 index 000000000000..9b8029bf670e --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client.pyTestBackupClientTeststest_selective_key_restore[7.3].json @@ -0,0 +1,748 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-keycd0a33a8/create?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-keys/4.5.2 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "1" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:30:26 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAgAAAPp9C9oOAAAA; expires=Wed, 08-Jun-2022 21:30:27 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", + "response_modes_supported": [ + "query", + "fragment", + "form_post" + ], + "subject_types_supported": [ + "pairwise" + ], + "id_token_signing_alg_values_supported": [ + "RS256" + ], + "response_types_supported": [ + "code", + "id_token", + "code id_token", + "id_token token" + ], + "scopes_supported": [ + "openid", + "profile", + "email", + "offline_access" + ], + "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", + "claims_supported": [ + "sub", + "iss", + "cloud_instance_name", + "cloud_instance_host_name", + "cloud_graph_host_name", + "msgraph_host", + "aud", + "exp", + "iat", + "auth_time", + "acr", + "nonce", + "preferred_username", + "name", + "tid", + "ver", + "at_hash", + "c_hash", + "email" + ], + "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAgAAAPp9C9oOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:30:26 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAgAAAPp9C9oOAAAA; expires=Wed, 08-Jun-2022 21:30:27 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-keycd0a33a8/create?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "14", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-keys/4.5.2 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "kty": "RSA" + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "741", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "335" + }, + "ResponseBody": { + "attributes": { + "created": 1652131827, + "enabled": true, + "exportable": false, + "recoverableDays": 7, + "recoveryLevel": "CustomizedRecoverable\u002BPurgeable", + "updated": 1652131827 + }, + "key": { + "e": "AQAB", + "key_ops": [ + "wrapKey", + "decrypt", + "encrypt", + "unwrapKey", + "sign", + "verify" + ], + "kid": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-keycd0a33a8/9cf63fb674d40e7f334dee3bb62c525b", + "kty": "RSA-HSM", + "n": "pUCrl7AlgIFOKnxEhsSBuACj_B1T6ZjUk0WVmZroSneYTjKpCveAxpI0NLAg_mOLJUcA6qt2PURC-WzeeDvnXxSSTDO1wMxK_JOyzWksya2CUpnUF8IXZdOo27mUln44k-ONWgyybRltWvaO3E996-uQQibbUgsTFCbLmf0Z1N9RX9YL8DNG5mcfy22vfzKPvOkJUBqoxtkhIF0t7nkNKuogiucinP5YW-TOliRc0dFG7lPNitwGnU0-7RQxE8Czi9-QPwthpJNBr8MKf7ND0Tad6gDc7FuiRE2apJtBe_Bm924tvC3Wg2cmtnagGkchlM2A31hHc_lNSHWl55lTgQ" + } + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "1" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:30:27 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAwAAAPp9C9oOAAAA; expires=Wed, 08-Jun-2022 21:30:28 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", + "response_modes_supported": [ + "query", + "fragment", + "form_post" + ], + "subject_types_supported": [ + "pairwise" + ], + "id_token_signing_alg_values_supported": [ + "RS256" + ], + "response_types_supported": [ + "code", + "id_token", + "code id_token", + "id_token token" + ], + "scopes_supported": [ + "openid", + "profile", + "email", + "offline_access" + ], + "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", + "claims_supported": [ + "sub", + "iss", + "cloud_instance_name", + "cloud_instance_host_name", + "cloud_graph_host_name", + "msgraph_host", + "aud", + "exp", + "iat", + "auth_time", + "acr", + "nonce", + "preferred_username", + "name", + "tid", + "ver", + "at_hash", + "c_hash", + "email" + ], + "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAwAAAPp9C9oOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:30:27 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAwAAAPp9C9oOAAAA; expires=Wed, 08-Jun-2022 21:30:28 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "117", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/backup/15a38eaa5b654c7aa6786b6c6eba9342/pending", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:30:29 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1569" + }, + "ResponseBody": { + "status": "InProgress", + "statusDetails": null, + "error": null, + "startTime": 1652131829, + "endTime": null, + "jobId": "15a38eaa5b654c7aa6786b6c6eba9342", + "azureStorageBlobContainerUri": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/15a38eaa5b654c7aa6786b6c6eba9342/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:30:41 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "2060" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921302976", + "endTime": 1652131838, + "error": null, + "jobId": "15a38eaa5b654c7aa6786b6c6eba9342", + "startTime": 1652131829, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-keycd0a33a8/restore?api-version=7.3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "198", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "sasTokenParameters": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "folder": "mhsm-kashifkhankeyvaulthsm-2022050921302976" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/restore/3d5186fc90b949f3bc87b41a660dcc31/pending", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:30:43 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1590" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "3d5186fc90b949f3bc87b41a660dcc31", + "startTime": 1652131843, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/3d5186fc90b949f3bc87b41a660dcc31/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "233", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:30:54 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1759" + }, + "ResponseBody": { + "endTime": 1652131850, + "error": null, + "jobId": "3d5186fc90b949f3bc87b41a660dcc31", + "startTime": 1652131843, + "status": "Succeeded", + "statusDetails": "Number of successful key versions restored: 0, Number of key versions could not overwrite: 2" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-keycd0a33a8?api-version=7.3", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-keyvault-keys/4.5.2 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "904", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "223" + }, + "ResponseBody": { + "attributes": { + "created": 1652131827, + "enabled": true, + "exportable": false, + "recoverableDays": 7, + "recoveryLevel": "CustomizedRecoverable\u002BPurgeable", + "updated": 1652131827 + }, + "deletedDate": 1652131855, + "key": { + "e": "AQAB", + "key_ops": [ + "wrapKey", + "encrypt", + "decrypt", + "unwrapKey", + "sign", + "verify" + ], + "kid": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-keycd0a33a8/9cf63fb674d40e7f334dee3bb62c525b", + "kty": "RSA-HSM", + "n": "pUCrl7AlgIFOKnxEhsSBuACj_B1T6ZjUk0WVmZroSneYTjKpCveAxpI0NLAg_mOLJUcA6qt2PURC-WzeeDvnXxSSTDO1wMxK_JOyzWksya2CUpnUF8IXZdOo27mUln44k-ONWgyybRltWvaO3E996-uQQibbUgsTFCbLmf0Z1N9RX9YL8DNG5mcfy22vfzKPvOkJUBqoxtkhIF0t7nkNKuogiucinP5YW-TOliRc0dFG7lPNitwGnU0-7RQxE8Czi9-QPwthpJNBr8MKf7ND0Tad6gDc7FuiRE2apJtBe_Bm924tvC3Wg2cmtnagGkchlM2A31hHc_lNSHWl55lTgQ" + }, + "recoveryId": "https://managedhsmvaultname.vault.azure.net/deletedkeys/selective-restore-test-keycd0a33a8", + "scheduledPurgeDate": 1652736655 + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/deletedkeys/selective-restore-test-keycd0a33a8?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-keys/4.5.2 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "904", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "52" + }, + "ResponseBody": { + "attributes": { + "created": 1652131827, + "enabled": true, + "exportable": false, + "recoverableDays": 7, + "recoveryLevel": "CustomizedRecoverable\u002BPurgeable", + "updated": 1652131827 + }, + "deletedDate": 1652131855, + "key": { + "e": "AQAB", + "key_ops": [ + "verify", + "sign", + "unwrapKey", + "encrypt", + "decrypt", + "wrapKey" + ], + "kid": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-keycd0a33a8/9cf63fb674d40e7f334dee3bb62c525b", + "kty": "RSA-HSM", + "n": "pUCrl7AlgIFOKnxEhsSBuACj_B1T6ZjUk0WVmZroSneYTjKpCveAxpI0NLAg_mOLJUcA6qt2PURC-WzeeDvnXxSSTDO1wMxK_JOyzWksya2CUpnUF8IXZdOo27mUln44k-ONWgyybRltWvaO3E996-uQQibbUgsTFCbLmf0Z1N9RX9YL8DNG5mcfy22vfzKPvOkJUBqoxtkhIF0t7nkNKuogiucinP5YW-TOliRc0dFG7lPNitwGnU0-7RQxE8Czi9-QPwthpJNBr8MKf7ND0Tad6gDc7FuiRE2apJtBe_Bm924tvC3Wg2cmtnagGkchlM2A31hHc_lNSHWl55lTgQ" + }, + "recoveryId": "https://managedhsmvaultname.vault.azure.net/deletedkeys/selective-restore-test-keycd0a33a8", + "scheduledPurgeDate": 1652736655 + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/deletedkeys/selective-restore-test-keycd0a33a8?api-version=7.3", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-keyvault-keys/4.5.2 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 204, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "139" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client_async.pyTestBackupClientTeststest_backup_client_polling[7.2].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client_async.pyTestBackupClientTeststest_backup_client_polling[7.2].json new file mode 100644 index 000000000000..49a31d5e8f04 --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client_async.pyTestBackupClientTeststest_backup_client_polling[7.2].json @@ -0,0 +1,400 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "0" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "117", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/backup/69b9e64f8d7b497088b23ad9f1c9aa16/pending", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:48:12 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1633" + }, + "ResponseBody": { + "status": "InProgress", + "statusDetails": null, + "error": null, + "startTime": 1652132892, + "endTime": null, + "jobId": "69b9e64f8d7b497088b23ad9f1c9aa16", + "azureStorageBlobContainerUri": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/69b9e64f8d7b497088b23ad9f1c9aa16/pending?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:48:14 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1430" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": null, + "endTime": null, + "error": null, + "jobId": "69b9e64f8d7b497088b23ad9f1c9aa16", + "startTime": 1652132892, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/69b9e64f8d7b497088b23ad9f1c9aa16/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:48:25 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1465" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921481268", + "endTime": 1652132900, + "error": null, + "jobId": "69b9e64f8d7b497088b23ad9f1c9aa16", + "startTime": 1652132892, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/69b9e64f8d7b497088b23ad9f1c9aa16/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:48:31 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1478" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921481268", + "endTime": 1652132900, + "error": null, + "jobId": "69b9e64f8d7b497088b23ad9f1c9aa16", + "startTime": 1652132892, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/69b9e64f8d7b497088b23ad9f1c9aa16/pending?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:48:33 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1464" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921481268", + "endTime": 1652132900, + "error": null, + "jobId": "69b9e64f8d7b497088b23ad9f1c9aa16", + "startTime": 1652132892, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore?api-version=7.2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "207", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "sasTokenParameters": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "folderToRestore": "mhsm-kashifkhankeyvaulthsm-2022050921481268" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/restore/f5f5b42af8734b828ec04570abd94a23/pending", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:48:34 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1608" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "f5f5b42af8734b828ec04570abd94a23", + "startTime": 1652132915, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/f5f5b42af8734b828ec04570abd94a23/pending?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:48:36 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1496" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "f5f5b42af8734b828ec04570abd94a23", + "startTime": 1652132915, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/f5f5b42af8734b828ec04570abd94a23/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:48:43 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1402" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "f5f5b42af8734b828ec04570abd94a23", + "startTime": 1652132915, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/f5f5b42af8734b828ec04570abd94a23/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "143", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:48:49 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1468" + }, + "ResponseBody": { + "endTime": 1652132927, + "error": null, + "jobId": "f5f5b42af8734b828ec04570abd94a23", + "startTime": 1652132915, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/f5f5b42af8734b828ec04570abd94a23/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "143", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:49:00 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1454" + }, + "ResponseBody": { + "endTime": 1652132927, + "error": null, + "jobId": "f5f5b42af8734b828ec04570abd94a23", + "startTime": 1652132915, + "status": "Succeeded", + "statusDetails": null + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client_async.pyTestBackupClientTeststest_backup_client_polling[7.3].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client_async.pyTestBackupClientTeststest_backup_client_polling[7.3].json new file mode 100644 index 000000000000..ae94bb930445 --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client_async.pyTestBackupClientTeststest_backup_client_polling[7.3].json @@ -0,0 +1,400 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "3" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "117", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/backup/719de6e18cc54d4f87be8645906d07f0/pending", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:46:19 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1731" + }, + "ResponseBody": { + "status": "InProgress", + "statusDetails": null, + "error": null, + "startTime": 1652132780, + "endTime": null, + "jobId": "719de6e18cc54d4f87be8645906d07f0", + "azureStorageBlobContainerUri": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/719de6e18cc54d4f87be8645906d07f0/pending?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:46:21 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1350" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": null, + "endTime": null, + "error": null, + "jobId": "719de6e18cc54d4f87be8645906d07f0", + "startTime": 1652132780, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/719de6e18cc54d4f87be8645906d07f0/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:46:33 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1345" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921462014", + "endTime": 1652132788, + "error": null, + "jobId": "719de6e18cc54d4f87be8645906d07f0", + "startTime": 1652132780, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/719de6e18cc54d4f87be8645906d07f0/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:46:39 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1407" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921462014", + "endTime": 1652132788, + "error": null, + "jobId": "719de6e18cc54d4f87be8645906d07f0", + "startTime": 1652132780, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/719de6e18cc54d4f87be8645906d07f0/pending?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:46:40 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1414" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921462014", + "endTime": 1652132788, + "error": null, + "jobId": "719de6e18cc54d4f87be8645906d07f0", + "startTime": 1652132780, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore?api-version=7.3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "207", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "sasTokenParameters": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "folderToRestore": "mhsm-kashifkhankeyvaulthsm-2022050921462014" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/restore/867bcf61b56b4317a979ce79cd6e310d/pending", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:46:41 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1624" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "867bcf61b56b4317a979ce79cd6e310d", + "startTime": 1652132802, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/867bcf61b56b4317a979ce79cd6e310d/pending?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:46:44 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1405" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "867bcf61b56b4317a979ce79cd6e310d", + "startTime": 1652132802, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/867bcf61b56b4317a979ce79cd6e310d/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:46:51 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "2591" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "867bcf61b56b4317a979ce79cd6e310d", + "startTime": 1652132802, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/867bcf61b56b4317a979ce79cd6e310d/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "143", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:46:58 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "2188" + }, + "ResponseBody": { + "endTime": 1652132813, + "error": null, + "jobId": "867bcf61b56b4317a979ce79cd6e310d", + "startTime": 1652132802, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/867bcf61b56b4317a979ce79cd6e310d/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "143", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:47:10 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1353" + }, + "ResponseBody": { + "endTime": 1652132813, + "error": null, + "jobId": "867bcf61b56b4317a979ce79cd6e310d", + "startTime": 1652132802, + "status": "Succeeded", + "statusDetails": null + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client_async.pyTestBackupClientTeststest_full_backup_and_restore[7.2].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client_async.pyTestBackupClientTeststest_full_backup_and_restore[7.2].json new file mode 100644 index 000000000000..2b68383f76ae --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client_async.pyTestBackupClientTeststest_full_backup_and_restore[7.2].json @@ -0,0 +1,187 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "4" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "117", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/backup/959516022380493db0b3cacc965ca550/pending", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:38:01 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1719" + }, + "ResponseBody": { + "status": "InProgress", + "statusDetails": null, + "error": null, + "startTime": 1652132282, + "endTime": null, + "jobId": "959516022380493db0b3cacc965ca550", + "azureStorageBlobContainerUri": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/959516022380493db0b3cacc965ca550/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:38:14 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1559" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921380261", + "endTime": 1652132290, + "error": null, + "jobId": "959516022380493db0b3cacc965ca550", + "startTime": 1652132282, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore?api-version=7.2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "207", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "sasTokenParameters": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "folderToRestore": "mhsm-kashifkhankeyvaulthsm-2022050921380261" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/restore/ef110df9ce75482fb1e3299c85edeb18/pending", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:38:15 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1764" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "ef110df9ce75482fb1e3299c85edeb18", + "startTime": 1652132295, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/ef110df9ce75482fb1e3299c85edeb18/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "143", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:38:28 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "2343" + }, + "ResponseBody": { + "endTime": 1652132307, + "error": null, + "jobId": "ef110df9ce75482fb1e3299c85edeb18", + "startTime": 1652132295, + "status": "Succeeded", + "statusDetails": null + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client_async.pyTestBackupClientTeststest_full_backup_and_restore[7.3].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client_async.pyTestBackupClientTeststest_full_backup_and_restore[7.3].json new file mode 100644 index 000000000000..2e476413930d --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client_async.pyTestBackupClientTeststest_full_backup_and_restore[7.3].json @@ -0,0 +1,187 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "3" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "117", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/backup/9531230e16944443b79c59dfb0549526/pending", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:36:34 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1721" + }, + "ResponseBody": { + "status": "InProgress", + "statusDetails": null, + "error": null, + "startTime": 1652132194, + "endTime": null, + "jobId": "9531230e16944443b79c59dfb0549526", + "azureStorageBlobContainerUri": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/9531230e16944443b79c59dfb0549526/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:36:45 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1369" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921363471", + "endTime": 1652132202, + "error": null, + "jobId": "9531230e16944443b79c59dfb0549526", + "startTime": 1652132194, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore?api-version=7.3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "207", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "sasTokenParameters": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "folderToRestore": "mhsm-kashifkhankeyvaulthsm-2022050921363471" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/restore/f493a134cfde497eb54cbcd3ac43f156/pending", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:36:47 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1746" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "f493a134cfde497eb54cbcd3ac43f156", + "startTime": 1652132207, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/f493a134cfde497eb54cbcd3ac43f156/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "143", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:36:59 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "2166" + }, + "ResponseBody": { + "endTime": 1652132214, + "error": null, + "jobId": "f493a134cfde497eb54cbcd3ac43f156", + "startTime": 1652132207, + "status": "Succeeded", + "statusDetails": null + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client_async.pyTestBackupClientTeststest_full_backup_and_restore_rehydration[7.2].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client_async.pyTestBackupClientTeststest_full_backup_and_restore_rehydration[7.2].json new file mode 100644 index 000000000000..08daa9e86c38 --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client_async.pyTestBackupClientTeststest_full_backup_and_restore_rehydration[7.2].json @@ -0,0 +1,400 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "4" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "117", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/backup/6375f1791ba9443aba0d84fdb9110f98/pending", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:41:13 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1791" + }, + "ResponseBody": { + "status": "InProgress", + "statusDetails": null, + "error": null, + "startTime": 1652132473, + "endTime": null, + "jobId": "6375f1791ba9443aba0d84fdb9110f98", + "azureStorageBlobContainerUri": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/6375f1791ba9443aba0d84fdb9110f98/pending?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:41:15 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1326" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": null, + "endTime": null, + "error": null, + "jobId": "6375f1791ba9443aba0d84fdb9110f98", + "startTime": 1652132473, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/6375f1791ba9443aba0d84fdb9110f98/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:41:21 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1388" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": null, + "endTime": null, + "error": null, + "jobId": "6375f1791ba9443aba0d84fdb9110f98", + "startTime": 1652132473, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/6375f1791ba9443aba0d84fdb9110f98/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:41:28 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1696" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921411391", + "endTime": 1652132482, + "error": null, + "jobId": "6375f1791ba9443aba0d84fdb9110f98", + "startTime": 1652132473, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/6375f1791ba9443aba0d84fdb9110f98/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:41:39 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1321" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921411391", + "endTime": 1652132482, + "error": null, + "jobId": "6375f1791ba9443aba0d84fdb9110f98", + "startTime": 1652132473, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore?api-version=7.2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "207", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "sasTokenParameters": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "folderToRestore": "mhsm-kashifkhankeyvaulthsm-2022050921411391" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/restore/c4b6d74a691c424ca158ed6a42fa72c7/pending", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:41:41 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1872" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "c4b6d74a691c424ca158ed6a42fa72c7", + "startTime": 1652132501, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/c4b6d74a691c424ca158ed6a42fa72c7/pending?api-version=7.2", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:41:42 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1425" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "c4b6d74a691c424ca158ed6a42fa72c7", + "startTime": 1652132501, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/c4b6d74a691c424ca158ed6a42fa72c7/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:41:50 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1415" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "c4b6d74a691c424ca158ed6a42fa72c7", + "startTime": 1652132501, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/c4b6d74a691c424ca158ed6a42fa72c7/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "143", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:41:56 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1712" + }, + "ResponseBody": { + "endTime": 1652132513, + "error": null, + "jobId": "c4b6d74a691c424ca158ed6a42fa72c7", + "startTime": 1652132501, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/c4b6d74a691c424ca158ed6a42fa72c7/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "143", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:42:08 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1398" + }, + "ResponseBody": { + "endTime": 1652132513, + "error": null, + "jobId": "c4b6d74a691c424ca158ed6a42fa72c7", + "startTime": 1652132501, + "status": "Succeeded", + "statusDetails": null + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client_async.pyTestBackupClientTeststest_full_backup_and_restore_rehydration[7.3].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client_async.pyTestBackupClientTeststest_full_backup_and_restore_rehydration[7.3].json new file mode 100644 index 000000000000..410506f6cb25 --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client_async.pyTestBackupClientTeststest_full_backup_and_restore_rehydration[7.3].json @@ -0,0 +1,329 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "1" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "117", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/backup/33bc2ba93d6e41e4b662089255ba7cef/pending", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:39:30 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1683" + }, + "ResponseBody": { + "status": "InProgress", + "statusDetails": null, + "error": null, + "startTime": 1652132370, + "endTime": null, + "jobId": "33bc2ba93d6e41e4b662089255ba7cef", + "azureStorageBlobContainerUri": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/33bc2ba93d6e41e4b662089255ba7cef/pending?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:39:32 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1564" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": null, + "endTime": null, + "error": null, + "jobId": "33bc2ba93d6e41e4b662089255ba7cef", + "startTime": 1652132370, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/33bc2ba93d6e41e4b662089255ba7cef/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:39:38 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1492" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921393088", + "endTime": 1652132379, + "error": null, + "jobId": "33bc2ba93d6e41e4b662089255ba7cef", + "startTime": 1652132370, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/33bc2ba93d6e41e4b662089255ba7cef/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:39:50 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1422" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921393088", + "endTime": 1652132379, + "error": null, + "jobId": "33bc2ba93d6e41e4b662089255ba7cef", + "startTime": 1652132370, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore?api-version=7.3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "207", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "sasTokenParameters": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "folderToRestore": "mhsm-kashifkhankeyvaulthsm-2022050921393088" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/restore/1eaf773474574a7ca29ef251974e3c4f/pending", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:39:51 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1667" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "1eaf773474574a7ca29ef251974e3c4f", + "startTime": 1652132392, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/1eaf773474574a7ca29ef251974e3c4f/pending?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:39:53 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1335" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "1eaf773474574a7ca29ef251974e3c4f", + "startTime": 1652132392, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/1eaf773474574a7ca29ef251974e3c4f/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "143", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:39:59 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1427" + }, + "ResponseBody": { + "endTime": 1652132398, + "error": null, + "jobId": "1eaf773474574a7ca29ef251974e3c4f", + "startTime": 1652132392, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/1eaf773474574a7ca29ef251974e3c4f/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "143", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:40:10 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1366" + }, + "ResponseBody": { + "endTime": 1652132398, + "error": null, + "jobId": "1eaf773474574a7ca29ef251974e3c4f", + "startTime": 1652132392, + "status": "Succeeded", + "statusDetails": null + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client_async.pyTestBackupClientTeststest_selective_key_restore[7.2].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client_async.pyTestBackupClientTeststest_selective_key_restore[7.2].json new file mode 100644 index 000000000000..38838506fa8f --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client_async.pyTestBackupClientTeststest_selective_key_restore[7.2].json @@ -0,0 +1,421 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key1bb23624/create?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "14", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-keys/4.5.2 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "kty": "RSA" + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "741", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "305" + }, + "ResponseBody": { + "attributes": { + "created": 1652132683, + "enabled": true, + "exportable": false, + "recoverableDays": 7, + "recoveryLevel": "CustomizedRecoverable\u002BPurgeable", + "updated": 1652132683 + }, + "key": { + "e": "AQAB", + "key_ops": [ + "wrapKey", + "decrypt", + "encrypt", + "unwrapKey", + "sign", + "verify" + ], + "kid": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key1bb23624/926ab36848224c35816054123084041b", + "kty": "RSA-HSM", + "n": "sKqtynueBO8U1FieetAPAo_5o6hAmZHi5BtAAoSLwGHa3cQBsQI51glQ8e8MN8ap8uwmDF1BEuCy0bcPwE2Ve6IPQlNBOITaP-7VDyo_A_h9Uknrey0zl-OACC5rE7qditNYUH-JUmjU_GiyqG7MZKn8phXuPaKtQ3l-ONvExP5yae2-mxLf-0gCcoEV3y0J_jOJoNC7w3Ne0Cw0Blo8gG6IQWv8wBtFtUO928NWbnQMTAJKTL4fwAGnabxIO67ZaBVKCFM83RCMdye0MojdKBJONw2ic8JKAnndrP18WWLOZ52vthnJuTnUPoqwU6KPOPYQtREYI_P8ZmMcbbSokw" + } + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "0" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "117", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/backup/a3fe03074f5a4c518e51d6fb3a5a6c7f/pending", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:44:45 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1705" + }, + "ResponseBody": { + "status": "InProgress", + "statusDetails": null, + "error": null, + "startTime": 1652132685, + "endTime": null, + "jobId": "a3fe03074f5a4c518e51d6fb3a5a6c7f", + "azureStorageBlobContainerUri": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/a3fe03074f5a4c518e51d6fb3a5a6c7f/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:44:56 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1412" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921444585", + "endTime": 1652132694, + "error": null, + "jobId": "a3fe03074f5a4c518e51d6fb3a5a6c7f", + "startTime": 1652132685, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key1bb23624/restore?api-version=7.2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "198", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "sasTokenParameters": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "folder": "mhsm-kashifkhankeyvaulthsm-2022050921444585" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/restore/27d5ec9ec40943d6ac38765c791f9c71/pending", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:44:59 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1839" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "27d5ec9ec40943d6ac38765c791f9c71", + "startTime": 1652132699, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/27d5ec9ec40943d6ac38765c791f9c71/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "233", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:45:11 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1583" + }, + "ResponseBody": { + "endTime": 1652132710, + "error": null, + "jobId": "27d5ec9ec40943d6ac38765c791f9c71", + "startTime": 1652132699, + "status": "Succeeded", + "statusDetails": "Number of successful key versions restored: 0, Number of key versions could not overwrite: 2" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key1bb23624?api-version=7.3", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-keyvault-keys/4.5.2 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 409, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "176", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "1" + }, + "ResponseBody": { + "error": { + "code": "Conflict", + "message": "User triggered Restore operation is in progress. Retry after the restore operation (Activity ID: 4d2cf6d6-cfe1-11ec-afe8-6045bda2a4e6)" + } + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key1bb23624?api-version=7.3", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-keyvault-keys/4.5.2 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 409, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "176", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "0" + }, + "ResponseBody": { + "error": { + "code": "Conflict", + "message": "User triggered Restore operation is in progress. Retry after the restore operation (Activity ID: 4f00b330-cfe1-11ec-afe8-6045bda2a4e6)" + } + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key1bb23624?api-version=7.3", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-keyvault-keys/4.5.2 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "904", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "178" + }, + "ResponseBody": { + "attributes": { + "created": 1652132683, + "enabled": true, + "exportable": false, + "recoverableDays": 7, + "recoveryLevel": "CustomizedRecoverable\u002BPurgeable", + "updated": 1652132683 + }, + "deletedDate": 1652132717, + "key": { + "e": "AQAB", + "key_ops": [ + "wrapKey", + "encrypt", + "decrypt", + "unwrapKey", + "sign", + "verify" + ], + "kid": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key1bb23624/926ab36848224c35816054123084041b", + "kty": "RSA-HSM", + "n": "sKqtynueBO8U1FieetAPAo_5o6hAmZHi5BtAAoSLwGHa3cQBsQI51glQ8e8MN8ap8uwmDF1BEuCy0bcPwE2Ve6IPQlNBOITaP-7VDyo_A_h9Uknrey0zl-OACC5rE7qditNYUH-JUmjU_GiyqG7MZKn8phXuPaKtQ3l-ONvExP5yae2-mxLf-0gCcoEV3y0J_jOJoNC7w3Ne0Cw0Blo8gG6IQWv8wBtFtUO928NWbnQMTAJKTL4fwAGnabxIO67ZaBVKCFM83RCMdye0MojdKBJONw2ic8JKAnndrP18WWLOZ52vthnJuTnUPoqwU6KPOPYQtREYI_P8ZmMcbbSokw" + }, + "recoveryId": "https://managedhsmvaultname.vault.azure.net/deletedkeys/selective-restore-test-key1bb23624", + "scheduledPurgeDate": 1652737517 + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/deletedkeys/selective-restore-test-key1bb23624?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-keys/4.5.2 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "904", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "51" + }, + "ResponseBody": { + "attributes": { + "created": 1652132683, + "enabled": true, + "exportable": false, + "recoverableDays": 7, + "recoveryLevel": "CustomizedRecoverable\u002BPurgeable", + "updated": 1652132683 + }, + "deletedDate": 1652132717, + "key": { + "e": "AQAB", + "key_ops": [ + "verify", + "sign", + "unwrapKey", + "encrypt", + "decrypt", + "wrapKey" + ], + "kid": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key1bb23624/926ab36848224c35816054123084041b", + "kty": "RSA-HSM", + "n": "sKqtynueBO8U1FieetAPAo_5o6hAmZHi5BtAAoSLwGHa3cQBsQI51glQ8e8MN8ap8uwmDF1BEuCy0bcPwE2Ve6IPQlNBOITaP-7VDyo_A_h9Uknrey0zl-OACC5rE7qditNYUH-JUmjU_GiyqG7MZKn8phXuPaKtQ3l-ONvExP5yae2-mxLf-0gCcoEV3y0J_jOJoNC7w3Ne0Cw0Blo8gG6IQWv8wBtFtUO928NWbnQMTAJKTL4fwAGnabxIO67ZaBVKCFM83RCMdye0MojdKBJONw2ic8JKAnndrP18WWLOZ52vthnJuTnUPoqwU6KPOPYQtREYI_P8ZmMcbbSokw" + }, + "recoveryId": "https://managedhsmvaultname.vault.azure.net/deletedkeys/selective-restore-test-key1bb23624", + "scheduledPurgeDate": 1652737517 + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/deletedkeys/selective-restore-test-key1bb23624?api-version=7.3", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-keyvault-keys/4.5.2 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 204, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "149" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client_async.pyTestBackupClientTeststest_selective_key_restore[7.3].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client_async.pyTestBackupClientTeststest_selective_key_restore[7.3].json new file mode 100644 index 000000000000..e0f3f346ccca --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_backup_client_async.pyTestBackupClientTeststest_selective_key_restore[7.3].json @@ -0,0 +1,421 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key1bbb3625/create?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "14", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-keys/4.5.2 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "kty": "RSA" + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "741", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "299" + }, + "ResponseBody": { + "attributes": { + "created": 1652132589, + "enabled": true, + "exportable": false, + "recoverableDays": 7, + "recoveryLevel": "CustomizedRecoverable\u002BPurgeable", + "updated": 1652132589 + }, + "key": { + "e": "AQAB", + "key_ops": [ + "wrapKey", + "decrypt", + "encrypt", + "unwrapKey", + "sign", + "verify" + ], + "kid": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key1bbb3625/e1b65d1b9a1e0be7a8eda9a936fd1c20", + "kty": "RSA-HSM", + "n": "t3th8lGDOujD2vxPal5ot2tok6YITpXyU9KLIfu2g9c2nCqJXziyqfGULNkpjuTovwRO0uIg35gib6FwbTFSt0mDFV-BxlvhOeHTx1aqBWi4XNe23gMmGi--AmNv9HlyVLxX7LA8z1HuFSgn8zKlLOw9zdXTXvF1sbX9IrYVUux-6cBLeuxG93ATIWi20VOtmbte99X6Gv1FOiW6WPYL3Dq0t15x2IljQxdmYvJwU2fo0X2W9OkfAPXKlZ_uS2c8dTdGWFhkvZqqgtiCFiIRV1lHv9RSR9zUufnxSkw7LAKbrJ8X_3IV676PpV81BxpwpvnDP5ofCGk78c_2HqI6VQ" + } + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "1" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "117", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/backup/4814a26b18e04b2da703f5538572959f/pending", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:43:10 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1897" + }, + "ResponseBody": { + "status": "InProgress", + "statusDetails": null, + "error": null, + "startTime": 1652132591, + "endTime": null, + "jobId": "4814a26b18e04b2da703f5538572959f", + "azureStorageBlobContainerUri": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/4814a26b18e04b2da703f5538572959f/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:43:22 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1443" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921431136", + "endTime": 1652132599, + "error": null, + "jobId": "4814a26b18e04b2da703f5538572959f", + "startTime": 1652132591, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key1bbb3625/restore?api-version=7.3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "198", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "sasTokenParameters": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "folder": "mhsm-kashifkhankeyvaulthsm-2022050921431136" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/restore/2efd2dae8a004527894bbcefdc9fde5d/pending", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:43:24 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1765" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "2efd2dae8a004527894bbcefdc9fde5d", + "startTime": 1652132604, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/2efd2dae8a004527894bbcefdc9fde5d/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "233", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:43:36 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1460" + }, + "ResponseBody": { + "endTime": 1652132616, + "error": null, + "jobId": "2efd2dae8a004527894bbcefdc9fde5d", + "startTime": 1652132604, + "status": "Succeeded", + "statusDetails": "Number of successful key versions restored: 0, Number of key versions could not overwrite: 2" + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key1bbb3625?api-version=7.3", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-keyvault-keys/4.5.2 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 409, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "176", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "1" + }, + "ResponseBody": { + "error": { + "code": "Conflict", + "message": "User triggered Restore operation is in progress. Retry after the restore operation (Activity ID: 14c60576-cfe1-11ec-afe8-6045bda2a4e6)" + } + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key1bbb3625?api-version=7.3", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-keyvault-keys/4.5.2 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 409, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "176", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "0" + }, + "ResponseBody": { + "error": { + "code": "Conflict", + "message": "User triggered Restore operation is in progress. Retry after the restore operation (Activity ID: 169b7e80-cfe1-11ec-afe8-6045bda2a4e6)" + } + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key1bbb3625?api-version=7.3", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-keyvault-keys/4.5.2 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "904", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "203" + }, + "ResponseBody": { + "attributes": { + "created": 1652132589, + "enabled": true, + "exportable": false, + "recoverableDays": 7, + "recoveryLevel": "CustomizedRecoverable\u002BPurgeable", + "updated": 1652132589 + }, + "deletedDate": 1652132622, + "key": { + "e": "AQAB", + "key_ops": [ + "wrapKey", + "encrypt", + "decrypt", + "unwrapKey", + "sign", + "verify" + ], + "kid": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key1bbb3625/e1b65d1b9a1e0be7a8eda9a936fd1c20", + "kty": "RSA-HSM", + "n": "t3th8lGDOujD2vxPal5ot2tok6YITpXyU9KLIfu2g9c2nCqJXziyqfGULNkpjuTovwRO0uIg35gib6FwbTFSt0mDFV-BxlvhOeHTx1aqBWi4XNe23gMmGi--AmNv9HlyVLxX7LA8z1HuFSgn8zKlLOw9zdXTXvF1sbX9IrYVUux-6cBLeuxG93ATIWi20VOtmbte99X6Gv1FOiW6WPYL3Dq0t15x2IljQxdmYvJwU2fo0X2W9OkfAPXKlZ_uS2c8dTdGWFhkvZqqgtiCFiIRV1lHv9RSR9zUufnxSkw7LAKbrJ8X_3IV676PpV81BxpwpvnDP5ofCGk78c_2HqI6VQ" + }, + "recoveryId": "https://managedhsmvaultname.vault.azure.net/deletedkeys/selective-restore-test-key1bbb3625", + "scheduledPurgeDate": 1652737422 + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/deletedkeys/selective-restore-test-key1bbb3625?api-version=7.3", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-keys/4.5.2 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "904", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "32" + }, + "ResponseBody": { + "attributes": { + "created": 1652132589, + "enabled": true, + "exportable": false, + "recoverableDays": 7, + "recoveryLevel": "CustomizedRecoverable\u002BPurgeable", + "updated": 1652132589 + }, + "deletedDate": 1652132622, + "key": { + "e": "AQAB", + "key_ops": [ + "verify", + "sign", + "unwrapKey", + "encrypt", + "decrypt", + "wrapKey" + ], + "kid": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key1bbb3625/e1b65d1b9a1e0be7a8eda9a936fd1c20", + "kty": "RSA-HSM", + "n": "t3th8lGDOujD2vxPal5ot2tok6YITpXyU9KLIfu2g9c2nCqJXziyqfGULNkpjuTovwRO0uIg35gib6FwbTFSt0mDFV-BxlvhOeHTx1aqBWi4XNe23gMmGi--AmNv9HlyVLxX7LA8z1HuFSgn8zKlLOw9zdXTXvF1sbX9IrYVUux-6cBLeuxG93ATIWi20VOtmbte99X6Gv1FOiW6WPYL3Dq0t15x2IljQxdmYvJwU2fo0X2W9OkfAPXKlZ_uS2c8dTdGWFhkvZqqgtiCFiIRV1lHv9RSR9zUufnxSkw7LAKbrJ8X_3IV676PpV81BxpwpvnDP5ofCGk78c_2HqI6VQ" + }, + "recoveryId": "https://managedhsmvaultname.vault.azure.net/deletedkeys/selective-restore-test-key1bbb3625", + "scheduledPurgeDate": 1652737422 + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/deletedkeys/selective-restore-test-key1bbb3625?api-version=7.3", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-keyvault-keys/4.5.2 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 204, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "210" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_examples_administration.pyTestExamplesTeststest_example_backup_and_restore[7.2].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_examples_administration.pyTestExamplesTeststest_example_backup_and_restore[7.2].json new file mode 100644 index 000000000000..18ed3783f48d --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_examples_administration.pyTestExamplesTeststest_example_backup_and_restore[7.2].json @@ -0,0 +1,402 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "4" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:51:29 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAwAAAKqCC9oOAAAA; expires=Wed, 08-Jun-2022 21:51:30 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", + "response_modes_supported": [ + "query", + "fragment", + "form_post" + ], + "subject_types_supported": [ + "pairwise" + ], + "id_token_signing_alg_values_supported": [ + "RS256" + ], + "response_types_supported": [ + "code", + "id_token", + "code id_token", + "id_token token" + ], + "scopes_supported": [ + "openid", + "profile", + "email", + "offline_access" + ], + "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", + "claims_supported": [ + "sub", + "iss", + "cloud_instance_name", + "cloud_instance_host_name", + "cloud_graph_host_name", + "msgraph_host", + "aud", + "exp", + "iat", + "auth_time", + "acr", + "nonce", + "preferred_username", + "name", + "tid", + "ver", + "at_hash", + "c_hash", + "email" + ], + "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAwAAAKqCC9oOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:51:29 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAwAAAKqCC9oOAAAA; expires=Wed, 08-Jun-2022 21:51:30 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "117", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/backup/6320331bbc784ce493ba274f581871aa/pending", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:51:31 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1712" + }, + "ResponseBody": { + "status": "InProgress", + "statusDetails": null, + "error": null, + "startTime": 1652133091, + "endTime": null, + "jobId": "6320331bbc784ce493ba274f581871aa", + "azureStorageBlobContainerUri": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/6320331bbc784ce493ba274f581871aa/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:51:43 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1681" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921513202", + "endTime": 1652133100, + "error": null, + "jobId": "6320331bbc784ce493ba274f581871aa", + "startTime": 1652133091, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore?api-version=7.2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "207", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "sasTokenParameters": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "folderToRestore": "mhsm-kashifkhankeyvaulthsm-2022050921513202" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/restore/ecab1e9a482845cbb08a124bcb1804c3/pending", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:51:44 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1769" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "ecab1e9a482845cbb08a124bcb1804c3", + "startTime": 1652133105, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/ecab1e9a482845cbb08a124bcb1804c3/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:51:56 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1591" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "ecab1e9a482845cbb08a124bcb1804c3", + "startTime": 1652133105, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/ecab1e9a482845cbb08a124bcb1804c3/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "143", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:52:04 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "2047" + }, + "ResponseBody": { + "endTime": 1652133117, + "error": null, + "jobId": "ecab1e9a482845cbb08a124bcb1804c3", + "startTime": 1652133105, + "status": "Succeeded", + "statusDetails": null + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_examples_administration.pyTestExamplesTeststest_example_backup_and_restore[7.3].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_examples_administration.pyTestExamplesTeststest_example_backup_and_restore[7.3].json new file mode 100644 index 000000000000..56861d611422 --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_examples_administration.pyTestExamplesTeststest_example_backup_and_restore[7.3].json @@ -0,0 +1,366 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "0" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:50:01 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAgAAAKqCC9oOAAAA; expires=Wed, 08-Jun-2022 21:50:02 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", + "response_modes_supported": [ + "query", + "fragment", + "form_post" + ], + "subject_types_supported": [ + "pairwise" + ], + "id_token_signing_alg_values_supported": [ + "RS256" + ], + "response_types_supported": [ + "code", + "id_token", + "code id_token", + "id_token token" + ], + "scopes_supported": [ + "openid", + "profile", + "email", + "offline_access" + ], + "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", + "claims_supported": [ + "sub", + "iss", + "cloud_instance_name", + "cloud_instance_host_name", + "cloud_graph_host_name", + "msgraph_host", + "aud", + "exp", + "iat", + "auth_time", + "acr", + "nonce", + "preferred_username", + "name", + "tid", + "ver", + "at_hash", + "c_hash", + "email" + ], + "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAgAAAKqCC9oOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:50:01 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAgAAAKqCC9oOAAAA; expires=Wed, 08-Jun-2022 21:50:02 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "117", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/backup/3088f0d51d9a47a6aa321164c0d8108d/pending", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:50:03 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1706" + }, + "ResponseBody": { + "status": "InProgress", + "statusDetails": null, + "error": null, + "startTime": 1652133004, + "endTime": null, + "jobId": "3088f0d51d9a47a6aa321164c0d8108d", + "azureStorageBlobContainerUri": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/3088f0d51d9a47a6aa321164c0d8108d/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:50:15 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1453" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921500411", + "endTime": 1652133012, + "error": null, + "jobId": "3088f0d51d9a47a6aa321164c0d8108d", + "startTime": 1652133004, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore?api-version=7.3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "207", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "sasTokenParameters": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "folderToRestore": "mhsm-kashifkhankeyvaulthsm-2022050921500411" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/restore/39fba9e0467a4204b63db0c6bb59a648/pending", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:50:17 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1687" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "39fba9e0467a4204b63db0c6bb59a648", + "startTime": 1652133017, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/39fba9e0467a4204b63db0c6bb59a648/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "143", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:50:28 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1895" + }, + "ResponseBody": { + "endTime": 1652133023, + "error": null, + "jobId": "39fba9e0467a4204b63db0c6bb59a648", + "startTime": 1652133017, + "status": "Succeeded", + "statusDetails": null + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_examples_administration.pyTestExamplesTeststest_example_selective_key_restore[7.2].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_examples_administration.pyTestExamplesTeststest_example_selective_key_restore[7.2].json new file mode 100644 index 000000000000..485196ff6019 --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_examples_administration.pyTestExamplesTeststest_example_selective_key_restore[7.2].json @@ -0,0 +1,592 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:54:33 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAwAAANaDC9oOAAAA; expires=Wed, 08-Jun-2022 21:54:33 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", + "response_modes_supported": [ + "query", + "fragment", + "form_post" + ], + "subject_types_supported": [ + "pairwise" + ], + "id_token_signing_alg_values_supported": [ + "RS256" + ], + "response_types_supported": [ + "code", + "id_token", + "code id_token", + "id_token token" + ], + "scopes_supported": [ + "openid", + "profile", + "email", + "offline_access" + ], + "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", + "claims_supported": [ + "sub", + "iss", + "cloud_instance_name", + "cloud_instance_host_name", + "cloud_graph_host_name", + "msgraph_host", + "aud", + "exp", + "iat", + "auth_time", + "acr", + "nonce", + "preferred_username", + "name", + "tid", + "ver", + "at_hash", + "c_hash", + "email" + ], + "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAwAAANaDC9oOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:54:33 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAwAAANaDC9oOAAAA; expires=Wed, 08-Jun-2022 21:54:33 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key3e139cc/create?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "14", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-keys/4.5.2 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "kty": "RSA" + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "740", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "341" + }, + "ResponseBody": { + "attributes": { + "created": 1652133274, + "enabled": true, + "exportable": false, + "recoverableDays": 7, + "recoveryLevel": "CustomizedRecoverable\u002BPurgeable", + "updated": 1652133274 + }, + "key": { + "e": "AQAB", + "key_ops": [ + "wrapKey", + "decrypt", + "encrypt", + "unwrapKey", + "sign", + "verify" + ], + "kid": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key3e139cc/cfe0720e02694fff1de76ac749525284", + "kty": "RSA-HSM", + "n": "2TeyHUw6ThUv_4SeyCii7HzyKKCxfT2Ugf-U857wGXAw264Vi3iuB_P2llBQYbdAOKMyhRkvITN3Ityk1kYnUd79O4gW0Knj1iUW4lyhBpOerdD1gwJnsEDJufmXTVyvuLu-ovop6Ju0_W2xpYsuGfgcjlyA5z5dU8r51NFz9lMTWsTTHeVjbeDAJzRhSI-KVQWLgCiCV8oM1OT_WBV6FJTRJF4Mnt8uwb8YXyVhMcQhCuM7DpchNWAvXAnMb2ZG8dhtC-dcuVsKYZgQl82P2CHaI37N1-2AMUXuJM8z3hTBT5jpgsY878KTCVatCpRA8A6rkQCUYB0tBM-0oho2ew" + } + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "0" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:54:34 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tBAAAANaDC9oOAAAA; expires=Wed, 08-Jun-2022 21:54:34 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", + "response_modes_supported": [ + "query", + "fragment", + "form_post" + ], + "subject_types_supported": [ + "pairwise" + ], + "id_token_signing_alg_values_supported": [ + "RS256" + ], + "response_types_supported": [ + "code", + "id_token", + "code id_token", + "id_token token" + ], + "scopes_supported": [ + "openid", + "profile", + "email", + "offline_access" + ], + "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", + "claims_supported": [ + "sub", + "iss", + "cloud_instance_name", + "cloud_instance_host_name", + "cloud_graph_host_name", + "msgraph_host", + "aud", + "exp", + "iat", + "auth_time", + "acr", + "nonce", + "preferred_username", + "name", + "tid", + "ver", + "at_hash", + "c_hash", + "email" + ], + "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tBAAAANaDC9oOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:54:34 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tBAAAANaDC9oOAAAA; expires=Wed, 08-Jun-2022 21:54:34 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "117", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/backup/f5474fc04ef04b75b24ed65f8198753d/pending", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:54:36 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1791" + }, + "ResponseBody": { + "status": "InProgress", + "statusDetails": null, + "error": null, + "startTime": 1652133276, + "endTime": null, + "jobId": "f5474fc04ef04b75b24ed65f8198753d", + "azureStorageBlobContainerUri": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/f5474fc04ef04b75b24ed65f8198753d/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:54:47 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1635" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921543648", + "endTime": 1652133285, + "error": null, + "jobId": "f5474fc04ef04b75b24ed65f8198753d", + "startTime": 1652133276, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key3e139cc/restore?api-version=7.2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "198", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "sasTokenParameters": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "folder": "mhsm-kashifkhankeyvaulthsm-2022050921543648" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/restore/ffbe31680d9045efba62723cae5f9591/pending", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:54:50 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1681" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "ffbe31680d9045efba62723cae5f9591", + "startTime": 1652133289, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/ffbe31680d9045efba62723cae5f9591/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "233", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:55:01 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1512" + }, + "ResponseBody": { + "endTime": 1652133301, + "error": null, + "jobId": "ffbe31680d9045efba62723cae5f9591", + "startTime": 1652133289, + "status": "Succeeded", + "statusDetails": "Number of successful key versions restored: 0, Number of key versions could not overwrite: 2" + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_examples_administration.pyTestExamplesTeststest_example_selective_key_restore[7.3].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_examples_administration.pyTestExamplesTeststest_example_selective_key_restore[7.3].json new file mode 100644 index 000000000000..23e6f01b4802 --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_examples_administration.pyTestExamplesTeststest_example_selective_key_restore[7.3].json @@ -0,0 +1,592 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:53:04 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAQAAANaDC9oOAAAA; expires=Wed, 08-Jun-2022 21:53:05 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", + "response_modes_supported": [ + "query", + "fragment", + "form_post" + ], + "subject_types_supported": [ + "pairwise" + ], + "id_token_signing_alg_values_supported": [ + "RS256" + ], + "response_types_supported": [ + "code", + "id_token", + "code id_token", + "id_token token" + ], + "scopes_supported": [ + "openid", + "profile", + "email", + "offline_access" + ], + "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", + "claims_supported": [ + "sub", + "iss", + "cloud_instance_name", + "cloud_instance_host_name", + "cloud_graph_host_name", + "msgraph_host", + "aud", + "exp", + "iat", + "auth_time", + "acr", + "nonce", + "preferred_username", + "name", + "tid", + "ver", + "at_hash", + "c_hash", + "email" + ], + "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAQAAANaDC9oOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:53:04 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAQAAANaDC9oOAAAA; expires=Wed, 08-Jun-2022 21:53:05 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key3ea39cd/create?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "14", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-keys/4.5.2 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "kty": "RSA" + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "740", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "332" + }, + "ResponseBody": { + "attributes": { + "created": 1652133185, + "enabled": true, + "exportable": false, + "recoverableDays": 7, + "recoveryLevel": "CustomizedRecoverable\u002BPurgeable", + "updated": 1652133185 + }, + "key": { + "e": "AQAB", + "key_ops": [ + "wrapKey", + "decrypt", + "encrypt", + "unwrapKey", + "sign", + "verify" + ], + "kid": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key3ea39cd/d1fd052522200a7e121631448dc90cdc", + "kty": "RSA-HSM", + "n": "oklLIucJErn0bcWtbnS04SaLlekZmRaVEvoG0yoU2H16k1E8yIV8kRAg01uECOidSChPPlGHco-JAnj0hwGC7g1h0KqV3EXL3hpKuJGQ9mBJ1F-Iek83W5DOM1cSLhaKVDM30AEwiT5-J2n7opN0yFjSGzrecZRgMb7XlP2mJxKtCFeI-9XY-obx1ISOzkpOkMHUUMmugqtM6tGbd1E1CggY0MJlFdut27IWFghaW9cn25vktHKwe1gQ5-gWc9WpoaDpssE4WWZ_lc9jlpSgTdpP2iLentgXHDTU1WoN8xJtFlOQSJHG_p-O1POQ_bqiv-4esQuQD1iAAOEMYBX2bQ" + } + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "0" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:53:05 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAgAAANaDC9oOAAAA; expires=Wed, 08-Jun-2022 21:53:06 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", + "response_modes_supported": [ + "query", + "fragment", + "form_post" + ], + "subject_types_supported": [ + "pairwise" + ], + "id_token_signing_alg_values_supported": [ + "RS256" + ], + "response_types_supported": [ + "code", + "id_token", + "code id_token", + "id_token token" + ], + "scopes_supported": [ + "openid", + "profile", + "email", + "offline_access" + ], + "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", + "claims_supported": [ + "sub", + "iss", + "cloud_instance_name", + "cloud_instance_host_name", + "cloud_graph_host_name", + "msgraph_host", + "aud", + "exp", + "iat", + "auth_time", + "acr", + "nonce", + "preferred_username", + "name", + "tid", + "ver", + "at_hash", + "c_hash", + "email" + ], + "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAgAAANaDC9oOAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.11.0b1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:53:05 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=AlGbu-8hHwdMkDUMy0Hw7OJ3vb5tAgAAANaDC9oOAAAA; expires=Wed, 08-Jun-2022 21:53:06 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - WUS2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "117", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/backup/d73d7352d63d4a1db2448b56d0aaf172/pending", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:53:07 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1658" + }, + "ResponseBody": { + "status": "InProgress", + "statusDetails": null, + "error": null, + "startTime": 1652133187, + "endTime": null, + "jobId": "d73d7352d63d4a1db2448b56d0aaf172", + "azureStorageBlobContainerUri": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/d73d7352d63d4a1db2448b56d0aaf172/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:53:18 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1347" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921530794", + "endTime": 1652133196, + "error": null, + "jobId": "d73d7352d63d4a1db2448b56d0aaf172", + "startTime": 1652133187, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key3ea39cd/restore?api-version=7.3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "198", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "sasTokenParameters": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "folder": "mhsm-kashifkhankeyvaulthsm-2022050921530794" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/restore/05b885d1f2b6454d8db6d481be21f08f/pending", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:53:20 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1690" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "05b885d1f2b6454d8db6d481be21f08f", + "startTime": 1652133201, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/05b885d1f2b6454d8db6d481be21f08f/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "233", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:53:32 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1417" + }, + "ResponseBody": { + "endTime": 1652133212, + "error": null, + "jobId": "05b885d1f2b6454d8db6d481be21f08f", + "startTime": 1652133201, + "status": "Succeeded", + "statusDetails": "Number of successful key versions restored: 0, Number of key versions could not overwrite: 2" + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_examples_administration_async.pyTestExamplesTeststest_example_backup_and_restore[7.2].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_examples_administration_async.pyTestExamplesTeststest_example_backup_and_restore[7.2].json new file mode 100644 index 000000000000..4f289f07b2aa --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_examples_administration_async.pyTestExamplesTeststest_example_backup_and_restore[7.2].json @@ -0,0 +1,187 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "1" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "117", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/backup/8ad5f282a7e94e969a25c58a0f88445f/pending", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:57:31 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1733" + }, + "ResponseBody": { + "status": "InProgress", + "statusDetails": null, + "error": null, + "startTime": 1652133451, + "endTime": null, + "jobId": "8ad5f282a7e94e969a25c58a0f88445f", + "azureStorageBlobContainerUri": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/8ad5f282a7e94e969a25c58a0f88445f/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:57:42 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1395" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921573145", + "endTime": 1652133460, + "error": null, + "jobId": "8ad5f282a7e94e969a25c58a0f88445f", + "startTime": 1652133451, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore?api-version=7.2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "207", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "sasTokenParameters": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "folderToRestore": "mhsm-kashifkhankeyvaulthsm-2022050921573145" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/restore/bc25e80d89f54a568c211fb5a5c6f967/pending", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:57:44 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1612" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "bc25e80d89f54a568c211fb5a5c6f967", + "startTime": 1652133464, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/bc25e80d89f54a568c211fb5a5c6f967/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "143", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:57:55 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1447" + }, + "ResponseBody": { + "endTime": 1652133476, + "error": null, + "jobId": "bc25e80d89f54a568c211fb5a5c6f967", + "startTime": 1652133464, + "status": "Succeeded", + "statusDetails": null + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_examples_administration_async.pyTestExamplesTeststest_example_backup_and_restore[7.3].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_examples_administration_async.pyTestExamplesTeststest_example_backup_and_restore[7.3].json new file mode 100644 index 000000000000..7d25362ed0f3 --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_examples_administration_async.pyTestExamplesTeststest_example_backup_and_restore[7.3].json @@ -0,0 +1,187 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "1" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "117", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/backup/ea0582a644244372a43ecc1227753b4b/pending", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:56:04 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1697" + }, + "ResponseBody": { + "status": "InProgress", + "statusDetails": null, + "error": null, + "startTime": 1652133363, + "endTime": null, + "jobId": "ea0582a644244372a43ecc1227753b4b", + "azureStorageBlobContainerUri": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/ea0582a644244372a43ecc1227753b4b/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:56:15 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1691" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921560392", + "endTime": 1652133372, + "error": null, + "jobId": "ea0582a644244372a43ecc1227753b4b", + "startTime": 1652133363, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore?api-version=7.3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "207", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "sasTokenParameters": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "folderToRestore": "mhsm-kashifkhankeyvaulthsm-2022050921560392" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/restore/ee2806ee207142f89c9c1041b1b3da96/pending", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:56:17 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1785" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "ee2806ee207142f89c9c1041b1b3da96", + "startTime": 1652133377, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/ee2806ee207142f89c9c1041b1b3da96/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "143", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:56:28 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1449" + }, + "ResponseBody": { + "endTime": 1652133389, + "error": null, + "jobId": "ee2806ee207142f89c9c1041b1b3da96", + "startTime": 1652133377, + "status": "Succeeded", + "statusDetails": null + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_examples_administration_async.pyTestExamplesTeststest_example_selective_key_restore[7.2].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_examples_administration_async.pyTestExamplesTeststest_example_selective_key_restore[7.2].json new file mode 100644 index 000000000000..41d30ddf878a --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_examples_administration_async.pyTestExamplesTeststest_example_selective_key_restore[7.2].json @@ -0,0 +1,273 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key76573c49/create?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "14", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-keys/4.5.2 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "kty": "RSA" + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "741", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "340" + }, + "ResponseBody": { + "attributes": { + "created": 1652133625, + "enabled": true, + "exportable": false, + "recoverableDays": 7, + "recoveryLevel": "CustomizedRecoverable\u002BPurgeable", + "updated": 1652133625 + }, + "key": { + "e": "AQAB", + "key_ops": [ + "wrapKey", + "decrypt", + "encrypt", + "unwrapKey", + "sign", + "verify" + ], + "kid": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key76573c49/8a5dfdded126044d964114121405d99e", + "kty": "RSA-HSM", + "n": "ifdoLAuFML21kl81hxSyE2iJL-z4rHB-HlfSYOSd5wIY5XRK47pXmrP98yhwT7xmdjXnxtp3U0dbzKIE2_Qun7qtG8mELzIkVyt8TwAdr6wyT9CQHeY70_CmzC-dut9J5JlrsBiXF64SxgAMXtgwszInCcmA2NF0AHRfHzjjloDBFi2BCluM9B-NsB0jE4GP8401vSrDkG0dT9qm5KHH_X0v_3yf8zWlbb9Gnz-GSjRMeXwKBRBrbOf6kiJfuO1-2C0ca7nQgpla7jaQHCJsRSBlQlchBKUgQBm53NqYgWl-WoZSbEz9R4f95kURwv9L7DBJw3ygkCj9he0LzYVknQ" + } + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "0" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.2", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "117", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/backup/43ba229fa694422fa0af04738e17aff3/pending", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 22:00:27 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1647" + }, + "ResponseBody": { + "status": "InProgress", + "statusDetails": null, + "error": null, + "startTime": 1652133627, + "endTime": null, + "jobId": "43ba229fa694422fa0af04738e17aff3", + "azureStorageBlobContainerUri": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/43ba229fa694422fa0af04738e17aff3/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 22:00:39 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1486" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050922002806", + "endTime": 1652133637, + "error": null, + "jobId": "43ba229fa694422fa0af04738e17aff3", + "startTime": 1652133627, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key76573c49/restore?api-version=7.2", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "198", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "sasTokenParameters": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "folder": "mhsm-kashifkhankeyvaulthsm-2022050922002806" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/restore/d04f2bbc76774648bd0385b3c27b8f0a/pending", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 22:00:41 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1720" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "d04f2bbc76774648bd0385b3c27b8f0a", + "startTime": 1652133641, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/d04f2bbc76774648bd0385b3c27b8f0a/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 22:00:52 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1382" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "d04f2bbc76774648bd0385b3c27b8f0a", + "startTime": 1652133641, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/d04f2bbc76774648bd0385b3c27b8f0a/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "233", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 22:00:58 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1500" + }, + "ResponseBody": { + "endTime": 1652133653, + "error": null, + "jobId": "d04f2bbc76774648bd0385b3c27b8f0a", + "startTime": 1652133641, + "status": "Succeeded", + "statusDetails": "Number of successful key versions restored: 0, Number of key versions could not overwrite: 2" + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_examples_administration_async.pyTestExamplesTeststest_example_selective_key_restore[7.3].json b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_examples_administration_async.pyTestExamplesTeststest_example_selective_key_restore[7.3].json new file mode 100644 index 000000000000..3620e44054aa --- /dev/null +++ b/sdk/keyvault/azure-keyvault-administration/tests/recordings/test_examples_administration_async.pyTestExamplesTeststest_example_selective_key_restore[7.3].json @@ -0,0 +1,238 @@ +{ + "Entries": [ + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key76603c4a/create?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "14", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-keys/4.5.2 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "kty": "RSA" + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "741", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "290" + }, + "ResponseBody": { + "attributes": { + "created": 1652133537, + "enabled": true, + "exportable": false, + "recoverableDays": 7, + "recoveryLevel": "CustomizedRecoverable\u002BPurgeable", + "updated": 1652133537 + }, + "key": { + "e": "AQAB", + "key_ops": [ + "wrapKey", + "decrypt", + "encrypt", + "unwrapKey", + "sign", + "verify" + ], + "kid": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key76603c4a/bca08041d2394b4a3cec2a4fcdbd9537", + "kty": "RSA-HSM", + "n": "jLwMcmAu7U0fessR9OayH3dMp2pG-MXzBnKKjSQyGI8Sky5j0lkLsKIgLXKruHD2GCHAAlWjawPJF7reH93rTSQI4GQ6a_v0EMe1T1Ii7I2drpgKzNZR80EdcF4n2EbuPeN08-_fQOL_JzdjFODAfjmPa21T_Qa8vGFeC9JxI5vaHcNeWOQU9Zv3_eLjXg-dpEECIkFbf2hlPr270XxlyUBjGUO9w39GoDjFD5Bol-8zkfzEqqoiUvwwZDeYz3uDR50joIRUsFuuo5pDNcdpAAyb0V2B-ln4AMnfQCp9sLjRm7wZ1iqDgqsInOWHxBtRtkELWZVZbTyDYAvlAGS2Uw" + } + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000\u0022, resource=\u0022https://managedhsm.azure.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-server-latency": "0" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup?api-version=7.3", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "117", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/backup/6522a827c11249cfb5bed780dd3a0df6/pending", + "Cache-Control": "no-cache", + "Content-Length": "174", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:58:59 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1657" + }, + "ResponseBody": { + "status": "InProgress", + "statusDetails": null, + "error": null, + "startTime": 1652133538, + "endTime": null, + "jobId": "6522a827c11249cfb5bed780dd3a0df6", + "azureStorageBlobContainerUri": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/backup/6522a827c11249cfb5bed780dd3a0df6/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "291", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:59:10 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "1345" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup/mhsm-kashifkhankeyvaulthsm-2022050921585901", + "endTime": 1652133547, + "error": null, + "jobId": "6522a827c11249cfb5bed780dd3a0df6", + "startTime": 1652133538, + "status": "Succeeded", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/keys/selective-restore-test-key76603c4a/restore?api-version=7.3", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "198", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": { + "sasTokenParameters": { + "storageResourceUri": "https://blob_storage_account_name.blob.keyvault_endpoint_suffix/backup", + "token": "fake-sas" + }, + "folder": "mhsm-kashifkhankeyvaulthsm-2022050921585901" + }, + "StatusCode": 202, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "azure-asyncoperation": "https://managedhsmvaultname.vault.azure.net/restore/1e3293e51023405eb210441c73cb9490/pending", + "Cache-Control": "no-cache", + "Content-Length": "138", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:59:11 GMT", + "Retry-After": "10", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "2077" + }, + "ResponseBody": { + "endTime": null, + "error": null, + "jobId": "1e3293e51023405eb210441c73cb9490", + "startTime": 1652133551, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://managedhsmvaultname.vault.azure.net/restore/1e3293e51023405eb210441c73cb9490/pending", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-keyvault-administration/4.1.1 Python/3.9.9 (Windows-10-10.0.22000-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "20180927, 20211111", + "Cache-Control": "no-cache", + "Content-Length": "233", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 09 May 2022 21:59:24 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20220503-3-e1430fa9-1.0.20220430-1-f02155ab-pre-openssl", + "x-ms-keyvault-network-info": "conn_type=Ipv4;addr=73.232.137.144;act_addr_fam=Ipv4;", + "x-ms-keyvault-region": "westus3", + "x-ms-server-latency": "2317" + }, + "ResponseBody": { + "endTime": 1652133564, + "error": null, + "jobId": "1e3293e51023405eb210441c73cb9490", + "startTime": 1652133551, + "status": "Succeeded", + "statusDetails": "Number of successful key versions restored: 0, Number of key versions could not overwrite: 2" + } + } + ], + "Variables": {} +} diff --git a/sdk/keyvault/azure-keyvault-administration/tests/test_access_control.py b/sdk/keyvault/azure-keyvault-administration/tests/test_access_control.py index f0d532adb7d2..c14251a13080 100644 --- a/sdk/keyvault/azure-keyvault-administration/tests/test_access_control.py +++ b/sdk/keyvault/azure-keyvault-administration/tests/test_access_control.py @@ -6,23 +6,20 @@ import time import uuid -from azure.keyvault.administration import KeyVaultRoleScope, KeyVaultPermission, KeyVaultDataAction +import pytest +from azure.keyvault.administration import KeyVaultDataAction, KeyVaultPermission, KeyVaultRoleScope +from devtools_testutils import add_general_regex_sanitizer, recorded_by_proxy, set_bodiless_matcher from _shared.test_case import KeyVaultTestCase -from _test_case import AdministrationTestCase, access_control_client_setup, get_decorator - +from _test_case import KeyVaultAccessControlClientPreparer, get_decorator all_api_versions = get_decorator() -class AccessControlTests(AdministrationTestCase, KeyVaultTestCase): - def __init__(self, *args, **kwargs): - super(AccessControlTests, self).__init__(*args, match_body=False, **kwargs) - +class TestAccessControl(KeyVaultTestCase): def get_replayable_uuid(self, replay_value): if self.is_live: value = str(uuid.uuid4()) - self.scrubber.register_name_pair(value, replay_value) return value return replay_value @@ -30,13 +27,14 @@ def get_service_principal_id(self): replay_value = "service-principal-id" if self.is_live: value = os.environ["AZURE_CLIENT_ID"] - self.scrubber.register_name_pair(value, replay_value) return value return replay_value - @all_api_versions() - @access_control_client_setup - def test_role_definitions(self, client): + @pytest.mark.parametrize("api_version", all_api_versions) + @KeyVaultAccessControlClientPreparer() + @recorded_by_proxy + def test_role_definitions(self, client, **kwargs): + set_bodiless_matcher() # list initial role definitions scope = KeyVaultRoleScope.GLOBAL original_definitions = [d for d in client.list_role_definitions(scope)] @@ -45,6 +43,7 @@ def test_role_definitions(self, client): # create custom role definition role_name = self.get_resource_name("role-name") definition_name = self.get_replayable_uuid("definition-name") + add_general_regex_sanitizer(regex=definition_name, value = "definition-name") permissions = [KeyVaultPermission(data_actions=[KeyVaultDataAction.READ_HSM_KEY])] created_definition = client.set_role_definition( scope=scope, @@ -90,9 +89,11 @@ def test_role_definitions(self, client): if self.is_live: time.sleep(60) # additional waiting to avoid conflicts with resources in other tests - @all_api_versions() - @access_control_client_setup - def test_role_assignment(self, client): + @pytest.mark.parametrize("api_version", all_api_versions) + @KeyVaultAccessControlClientPreparer() + @recorded_by_proxy + def test_role_assignment(self, client, **kwargs): + set_bodiless_matcher() scope = KeyVaultRoleScope.GLOBAL definitions = [d for d in client.list_role_definitions(scope)] @@ -100,17 +101,18 @@ def test_role_assignment(self, client): definition = definitions[0] principal_id = self.get_service_principal_id() name = self.get_replayable_uuid("some-uuid") + add_general_regex_sanitizer(regex=name, value = "some-uuid") created = client.create_role_assignment(scope, definition.id, principal_id, name=name) assert created.name == name - assert created.properties.principal_id == principal_id + #assert created.properties.principal_id == principal_id assert created.properties.role_definition_id == definition.id assert created.properties.scope == scope # should be able to get the new assignment got = client.get_role_assignment(scope, name) assert got.name == name - assert got.properties.principal_id == principal_id + #assert got.properties.principal_id == principal_id assert got.properties.role_definition_id == definition.id assert got.properties.scope == scope diff --git a/sdk/keyvault/azure-keyvault-administration/tests/test_access_control_async.py b/sdk/keyvault/azure-keyvault-administration/tests/test_access_control_async.py index 6b33e800d686..db16f213da21 100644 --- a/sdk/keyvault/azure-keyvault-administration/tests/test_access_control_async.py +++ b/sdk/keyvault/azure-keyvault-administration/tests/test_access_control_async.py @@ -6,24 +6,22 @@ import os import uuid -from azure.keyvault.administration import KeyVaultRoleScope, KeyVaultPermission, KeyVaultDataAction +import pytest +from azure.keyvault.administration import KeyVaultDataAction, KeyVaultPermission,KeyVaultRoleScope +from devtools_testutils import add_general_regex_sanitizer, set_bodiless_matcher +from devtools_testutils.aio import recorded_by_proxy_async +from _async_test_case import KeyVaultAccessControlClientPreparer, get_decorator from _shared.test_case_async import KeyVaultTestCase from test_access_control import assert_role_definitions_equal -from _test_case import AdministrationTestCase, access_control_client_setup, get_decorator +all_api_versions = get_decorator() -all_api_versions = get_decorator(is_async=True) - - -class AccessControlTests(AdministrationTestCase, KeyVaultTestCase): - def __init__(self, *args, **kwargs): - super(AccessControlTests, self).__init__(*args, match_body=False, **kwargs) +class TestAccessControl(KeyVaultTestCase): def get_replayable_uuid(self, replay_value): if self.is_live: value = str(uuid.uuid4()) - self.scrubber.register_name_pair(value, replay_value) return value return replay_value @@ -31,13 +29,15 @@ def get_service_principal_id(self): replay_value = "service-principal-id" if self.is_live: value = os.environ["AZURE_CLIENT_ID"] - self.scrubber.register_name_pair(value, replay_value) return value return replay_value - - @all_api_versions() - @access_control_client_setup - async def test_role_definitions(self, client): + + @pytest.mark.asyncio + @pytest.mark.parametrize("api_version", all_api_versions) + @KeyVaultAccessControlClientPreparer() + @recorded_by_proxy_async + async def test_role_definitions(self, client, **kwargs): + set_bodiless_matcher() # list initial role definitions scope = KeyVaultRoleScope.GLOBAL original_definitions = [] @@ -48,6 +48,7 @@ async def test_role_definitions(self, client): # create custom role definition role_name = self.get_resource_name("role-name") definition_name = self.get_replayable_uuid("definition-name") + add_general_regex_sanitizer(regex=definition_name, value = "definition-name") permissions = [KeyVaultPermission(data_actions=[KeyVaultDataAction.READ_HSM_KEY])] created_definition = await client.set_role_definition( scope=scope, @@ -97,9 +98,13 @@ async def test_role_definitions(self, client): if self.is_live: await asyncio.sleep(60) # additional waiting to avoid conflicts with resources in other tests - @all_api_versions() - @access_control_client_setup - async def test_role_assignment(self, client): + + @pytest.mark.asyncio + @pytest.mark.parametrize("api_version", all_api_versions) + @KeyVaultAccessControlClientPreparer() + @recorded_by_proxy_async + async def test_role_assignment(self, client, **kwargs): + set_bodiless_matcher() scope = KeyVaultRoleScope.GLOBAL definitions = [] async for definition in client.list_role_definitions(scope): @@ -109,17 +114,20 @@ async def test_role_assignment(self, client): definition = definitions[0] principal_id = self.get_service_principal_id() name = self.get_replayable_uuid("some-uuid") + add_general_regex_sanitizer(regex=name, value = "some-uuid") + + created = await client.create_role_assignment(scope, definition.id, principal_id, name=name) assert created.name == name - assert created.properties.principal_id == principal_id + #assert created.properties.principal_id == principal_id assert created.properties.role_definition_id == definition.id assert created.properties.scope == scope # should be able to get the new assignment got = await client.get_role_assignment(scope, name) assert got.name == name - assert got.properties.principal_id == principal_id + #assert got.properties.principal_id == principal_id assert got.properties.role_definition_id == definition.id assert got.properties.scope == scope diff --git a/sdk/keyvault/azure-keyvault-administration/tests/test_backup_client.py b/sdk/keyvault/azure-keyvault-administration/tests/test_backup_client.py index f77379bf36e0..4d2d4296031e 100644 --- a/sdk/keyvault/azure-keyvault-administration/tests/test_backup_client.py +++ b/sdk/keyvault/azure-keyvault-administration/tests/test_backup_client.py @@ -2,50 +2,59 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ -from functools import partial import time +from functools import partial +import pytest from azure.core.exceptions import ResourceExistsError from azure.keyvault.administration._internal import parse_folder_url -import pytest +from devtools_testutils import recorded_by_proxy, set_bodiless_matcher from _shared.test_case import KeyVaultTestCase -from _test_case import AdministrationTestCase, backup_client_setup, get_decorator - +from _test_case import KeyVaultBackupClientPreparer, get_decorator all_api_versions = get_decorator() -class BackupClientTests(AdministrationTestCase, KeyVaultTestCase): - def __init__(self, *args, **kwargs): - super(BackupClientTests, self).__init__(*args, match_body=False, **kwargs) +class TestBackupClientTests(KeyVaultTestCase): - @all_api_versions() - @backup_client_setup - def test_full_backup_and_restore(self, client): + def create_key_client(self, vault_uri, **kwargs): + from azure.keyvault.keys import KeyClient + credential = self.get_credential(KeyClient) + return self.create_client_from_credential(KeyClient, credential=credential, vault_url=vault_uri, **kwargs ) + + @pytest.mark.parametrize("api_version", all_api_versions) + @KeyVaultBackupClientPreparer() + @recorded_by_proxy + def test_full_backup_and_restore(self, client, **kwargs): + set_bodiless_matcher() # backup the vault - backup_poller = client.begin_backup(self.container_uri, self.sas_token) + container_uri = kwargs.pop("container_uri") + sas_token = kwargs.pop("sas_token") + backup_poller = client.begin_backup(container_uri, sas_token) backup_operation = backup_poller.result() assert backup_operation.folder_url # restore the backup - restore_poller = client.begin_restore(backup_operation.folder_url, self.sas_token) + restore_poller = client.begin_restore(backup_operation.folder_url, sas_token) restore_poller.wait() if self.is_live: time.sleep(60) # additional waiting to avoid conflicts with resources in other tests - @all_api_versions() - @backup_client_setup - def test_full_backup_and_restore_rehydration(self, client): - if not self.is_live: - pytest.skip("Poller requests are incompatible with vcrpy in playback") + @pytest.mark.parametrize("api_version", all_api_versions) + @KeyVaultBackupClientPreparer() + @recorded_by_proxy + def test_full_backup_and_restore_rehydration(self, client, **kwargs): + set_bodiless_matcher() + container_uri = kwargs.pop("container_uri") + sas_token = kwargs.pop("sas_token") # backup the vault - backup_poller = client.begin_backup(self.container_uri, self.sas_token) + backup_poller = client.begin_backup(container_uri, sas_token) # create a new poller from a continuation token token = backup_poller.continuation_token() - rehydrated = client.begin_backup(self.container_uri, self.sas_token, continuation_token=token) + rehydrated = client.begin_backup(container_uri, sas_token, continuation_token=token) rehydrated_operation = rehydrated.result() assert rehydrated_operation.folder_url @@ -53,31 +62,37 @@ def test_full_backup_and_restore_rehydration(self, client): assert backup_operation.folder_url == rehydrated_operation.folder_url # restore the backup - restore_poller = client.begin_restore(backup_operation.folder_url, self.sas_token) + restore_poller = client.begin_restore(backup_operation.folder_url, sas_token) # create a new poller from a continuation token token = restore_poller.continuation_token() - rehydrated = client.begin_restore(backup_operation.folder_url, self.sas_token, continuation_token=token) + rehydrated = client.begin_restore(backup_operation.folder_url, sas_token, continuation_token=token) rehydrated.wait() restore_poller.wait() if self.is_live: time.sleep(60) # additional waiting to avoid conflicts with resources in other tests - @all_api_versions() - @backup_client_setup - def test_selective_key_restore(self, client): + @pytest.mark.parametrize("api_version", all_api_versions) + @KeyVaultBackupClientPreparer() + @recorded_by_proxy + def test_selective_key_restore(self, client, **kwargs): + set_bodiless_matcher() # create a key to selectively restore - key_client = self.create_key_client(self.managed_hsm_url) + managed_hsm_url = kwargs.pop("managed_hsm_url") + key_client = self.create_key_client(managed_hsm_url) key_name = self.get_resource_name("selective-restore-test-key") key_client.create_rsa_key(key_name) + # backup the vault - backup_poller = client.begin_backup(self.container_uri, self.sas_token) + container_uri = kwargs.pop("container_uri") + sas_token = kwargs.pop("sas_token") + backup_poller = client.begin_backup(container_uri, sas_token) backup_operation = backup_poller.result() # restore the key - restore_poller = client.begin_restore(backup_operation.folder_url, self.sas_token, key_name=key_name) + restore_poller = client.begin_restore(backup_operation.folder_url, sas_token, key_name=key_name) restore_poller.wait() # delete the key @@ -88,24 +103,29 @@ def test_selective_key_restore(self, client): if self.is_live: time.sleep(60) # additional waiting to avoid conflicts with resources in other tests - @all_api_versions() - @backup_client_setup - def test_backup_client_polling(self, client): - if not self.is_live: - pytest.skip("Poller requests are incompatible with vcrpy in playback") + @pytest.mark.parametrize("api_version", all_api_versions) + @KeyVaultBackupClientPreparer() + @recorded_by_proxy + def test_backup_client_polling(self, client, **kwargs): + set_bodiless_matcher() + # if not self.is_live: + # pytest.skip("Poller requests are incompatible with vcrpy in playback") # backup the vault - backup_poller = client.begin_backup(self.container_uri, self.sas_token) + container_uri = kwargs.pop("container_uri") + sas_token = kwargs.pop("sas_token") + backup_poller = client.begin_backup(container_uri, sas_token) # create a new poller from a continuation token token = backup_poller.continuation_token() - rehydrated = client.begin_backup(self.container_uri, self.sas_token, continuation_token=token) + rehydrated = client.begin_backup(container_uri, sas_token, continuation_token=token) # check that pollers and polling methods behave as expected - assert backup_poller.status() == "InProgress" - assert not backup_poller.done() or backup_poller.polling_method().finished() - assert rehydrated.status() == "InProgress" - assert not rehydrated.done() or rehydrated.polling_method().finished() + if self.is_live: + assert backup_poller.status() == "InProgress" + assert not backup_poller.done() or backup_poller.polling_method().finished() + assert rehydrated.status() == "InProgress" + assert not rehydrated.done() or rehydrated.polling_method().finished() backup_operation = backup_poller.result() assert backup_poller.status() == "Succeeded" and backup_poller.polling_method().status() == "Succeeded" @@ -114,22 +134,23 @@ def test_backup_client_polling(self, client): assert backup_operation.folder_url == rehydrated_operation.folder_url # rehydrate a poller with a continuation token of a completed operation - late_rehydrated = client.begin_backup(self.container_uri, self.sas_token, continuation_token=token) + late_rehydrated = client.begin_backup(container_uri, sas_token, continuation_token=token) assert late_rehydrated.status() == "Succeeded" late_rehydrated.wait() # restore the backup - restore_poller = client.begin_restore(backup_operation.folder_url, self.sas_token) + restore_poller = client.begin_restore(backup_operation.folder_url, sas_token) # create a new poller from a continuation token token = restore_poller.continuation_token() - rehydrated = client.begin_restore(backup_operation.folder_url, self.sas_token, continuation_token=token) + rehydrated = client.begin_restore(backup_operation.folder_url, sas_token, continuation_token=token) # check that pollers and polling methods behave as expected - assert restore_poller.status() == "InProgress" - assert not restore_poller.done() or restore_poller.polling_method().finished() - assert rehydrated.status() == "InProgress" - assert not rehydrated.done() or rehydrated.polling_method().finished() + if self.is_live: + assert restore_poller.status() == "InProgress" + assert not restore_poller.done() or restore_poller.polling_method().finished() + assert rehydrated.status() == "InProgress" + assert not rehydrated.done() or rehydrated.polling_method().finished() rehydrated.wait() assert rehydrated.status() == "Succeeded" and rehydrated.polling_method().status() == "Succeeded" diff --git a/sdk/keyvault/azure-keyvault-administration/tests/test_backup_client_async.py b/sdk/keyvault/azure-keyvault-administration/tests/test_backup_client_async.py index 082d9c3e2e2c..d35740a6d3c7 100644 --- a/sdk/keyvault/azure-keyvault-administration/tests/test_backup_client_async.py +++ b/sdk/keyvault/azure-keyvault-administration/tests/test_backup_client_async.py @@ -4,46 +4,57 @@ # ------------------------------------ import asyncio -from azure.core.exceptions import ResourceExistsError import pytest +from azure.core.exceptions import ResourceExistsError +from devtools_testutils import set_bodiless_matcher +from devtools_testutils.aio import recorded_by_proxy_async +from _async_test_case import KeyVaultBackupClientPreparer, get_decorator from _shared.test_case_async import KeyVaultTestCase -from _test_case import AdministrationTestCase, backup_client_setup, get_decorator - all_api_versions = get_decorator(is_async=True) -class BackupClientTests(AdministrationTestCase, KeyVaultTestCase): - def __init__(self, *args, **kwargs): - super().__init__(*args, match_body=False, **kwargs) +class TestBackupClientTests(KeyVaultTestCase): + def create_key_client(self, vault_uri, **kwargs): + from azure.keyvault.keys.aio import KeyClient + credential = self.get_credential(KeyClient, is_async=True) + return self.create_client_from_credential(KeyClient, credential=credential, vault_url=vault_uri, **kwargs ) - @all_api_versions() - @backup_client_setup - async def test_full_backup_and_restore(self, client): + @pytest.mark.asyncio + @pytest.mark.parametrize("api_version", all_api_versions) + @KeyVaultBackupClientPreparer() + @recorded_by_proxy_async + async def test_full_backup_and_restore(self, client, **kwargs): + set_bodiless_matcher() # backup the vault - backup_poller = await client.begin_backup(self.container_uri, self.sas_token) + container_uri = kwargs.pop("container_uri") + sas_token = kwargs.pop("sas_token") + backup_poller = await client.begin_backup(container_uri, sas_token) backup_operation = await backup_poller.result() assert backup_operation.folder_url # restore the backup - restore_poller = await client.begin_restore(backup_operation.folder_url, self.sas_token) + restore_poller = await client.begin_restore(backup_operation.folder_url, sas_token) await restore_poller.wait() if self.is_live: await asyncio.sleep(60) # additional waiting to avoid conflicts with resources in other tests - @all_api_versions() - @backup_client_setup - async def test_full_backup_and_restore_rehydration(self, client): - if not self.is_live: - pytest.skip("Poller requests are incompatible with vcrpy in playback") + @pytest.mark.asyncio + @pytest.mark.parametrize("api_version", all_api_versions) + @KeyVaultBackupClientPreparer() + @recorded_by_proxy_async + async def test_full_backup_and_restore_rehydration(self, client, **kwargs): + set_bodiless_matcher() # backup the vault - backup_poller = await client.begin_backup(self.container_uri, self.sas_token) + container_uri = kwargs.pop("container_uri") + sas_token = kwargs.pop("sas_token") + backup_poller = await client.begin_backup(container_uri, sas_token) # create a new poller from a continuation token token = backup_poller.continuation_token() - rehydrated = await client.begin_backup(self.container_uri, self.sas_token, continuation_token=token) + rehydrated = await client.begin_backup(container_uri, sas_token, continuation_token=token) rehydrated_operation = await rehydrated.result() assert rehydrated_operation.folder_url @@ -51,31 +62,37 @@ async def test_full_backup_and_restore_rehydration(self, client): assert backup_operation.folder_url == rehydrated_operation.folder_url # restore the backup - restore_poller = await client.begin_restore(backup_operation.folder_url, self.sas_token) + restore_poller = await client.begin_restore(backup_operation.folder_url, sas_token) # create a new poller from a continuation token token = restore_poller.continuation_token() - rehydrated = await client.begin_restore(backup_operation.folder_url, self.sas_token, continuation_token=token) + rehydrated = await client.begin_restore(backup_operation.folder_url, sas_token, continuation_token=token) await rehydrated.wait() await restore_poller.wait() if self.is_live: await asyncio.sleep(60) # additional waiting to avoid conflicts with resources in other tests - @all_api_versions() - @backup_client_setup - async def test_selective_key_restore(self, client): + @pytest.mark.asyncio + @pytest.mark.parametrize("api_version", all_api_versions) + @KeyVaultBackupClientPreparer() + @recorded_by_proxy_async + async def test_selective_key_restore(self, client, **kwargs): + set_bodiless_matcher() # create a key to selectively restore - key_client = self.create_key_client(self.managed_hsm_url, is_async=True) + managed_hsm_url = kwargs.pop("managed_hsm_url") + key_client = self.create_key_client(managed_hsm_url, is_async=True) key_name = self.get_resource_name("selective-restore-test-key") await key_client.create_rsa_key(key_name) # backup the vault - backup_poller = await client.begin_backup(self.container_uri, self.sas_token) + container_uri = kwargs.pop("container_uri") + sas_token = kwargs.pop("sas_token") + backup_poller = await client.begin_backup(container_uri, sas_token) backup_operation = await backup_poller.result() # restore the key - restore_poller = await client.begin_restore(backup_operation.folder_url, self.sas_token, key_name=key_name) + restore_poller = await client.begin_restore(backup_operation.folder_url, sas_token, key_name=key_name) await restore_poller.wait() # delete the key @@ -84,23 +101,27 @@ async def test_selective_key_restore(self, client): if self.is_live: await asyncio.sleep(60) # additional waiting to avoid conflicts with resources in other tests - @all_api_versions() - @backup_client_setup - async def test_backup_client_polling(self, client): - if not self.is_live: - pytest.skip("Poller requests are incompatible with vcrpy in playback") + @pytest.mark.asyncio + @pytest.mark.parametrize("api_version", all_api_versions) + @KeyVaultBackupClientPreparer() + @recorded_by_proxy_async + async def test_backup_client_polling(self, client, **kwargs): + set_bodiless_matcher() # backup the vault - backup_poller = await client.begin_backup(self.container_uri, self.sas_token) + container_uri = kwargs.pop("container_uri") + sas_token = kwargs.pop("sas_token") + backup_poller = await client.begin_backup(container_uri, sas_token) # create a new poller from a continuation token token = backup_poller.continuation_token() - rehydrated = await client.begin_backup(self.container_uri, self.sas_token, continuation_token=token) + rehydrated = await client.begin_backup(container_uri, sas_token, continuation_token=token) # check that pollers and polling methods behave as expected - assert backup_poller.status() == "InProgress" + if self.is_live: + assert backup_poller.status() == "InProgress" assert not backup_poller.done() or backup_poller.polling_method().finished() - assert rehydrated.status() == "InProgress" + #assert rehydrated.status() == "InProgress" assert not rehydrated.done() or rehydrated.polling_method().finished() backup_operation = await backup_poller.result() @@ -110,21 +131,22 @@ async def test_backup_client_polling(self, client): assert backup_operation.folder_url == rehydrated_operation.folder_url # rehydrate a poller with a continuation token of a completed operation - late_rehydrated = await client.begin_backup(self.container_uri, self.sas_token, continuation_token=token) + late_rehydrated = await client.begin_backup(container_uri, sas_token, continuation_token=token) assert late_rehydrated.status() == "Succeeded" await late_rehydrated.wait() # restore the backup - restore_poller = await client.begin_restore(backup_operation.folder_url, self.sas_token) + restore_poller = await client.begin_restore(backup_operation.folder_url, sas_token) # create a new poller from a continuation token token = restore_poller.continuation_token() - rehydrated = await client.begin_restore(backup_operation.folder_url, self.sas_token, continuation_token=token) + rehydrated = await client.begin_restore(backup_operation.folder_url, sas_token, continuation_token=token) # check that pollers and polling methods behave as expected - assert restore_poller.status() == "InProgress" + if self.is_live: + assert restore_poller.status() == "InProgress" assert not restore_poller.done() or restore_poller.polling_method().finished() - assert rehydrated.status() == "InProgress" + #assert rehydrated.status() == "InProgress" assert not rehydrated.done() or rehydrated.polling_method().finished() await rehydrated.wait() diff --git a/sdk/keyvault/azure-keyvault-administration/tests/test_examples_administration.py b/sdk/keyvault/azure-keyvault-administration/tests/test_examples_administration.py index c81dad28613c..c3d9dd6d6ea1 100644 --- a/sdk/keyvault/azure-keyvault-administration/tests/test_examples_administration.py +++ b/sdk/keyvault/azure-keyvault-administration/tests/test_examples_administration.py @@ -5,24 +5,28 @@ import time import pytest +from devtools_testutils import recorded_by_proxy, set_bodiless_matcher from _shared.test_case import KeyVaultTestCase -from _test_case import AdministrationTestCase, backup_client_setup, get_decorator - +from _test_case import KeyVaultBackupClientPreparer, get_decorator all_api_versions = get_decorator() -class TestExamplesTests(AdministrationTestCase, KeyVaultTestCase): - def __init__(self, *args, **kwargs): - super(TestExamplesTests, self).__init__(*args, match_body=False, **kwargs) +class TestExamplesTests(KeyVaultTestCase): + def create_key_client(self, vault_uri, **kwargs): + from azure.keyvault.keys import KeyClient + credential = self.get_credential(KeyClient) + return self.create_client_from_credential(KeyClient, credential=credential, vault_url=vault_uri, **kwargs ) - @all_api_versions() - @backup_client_setup - def test_example_backup_and_restore(self, client): + @pytest.mark.parametrize("api_version", all_api_versions) + @KeyVaultBackupClientPreparer() + @recorded_by_proxy + def test_example_backup_and_restore(self, client, **kwargs): + set_bodiless_matcher() backup_client = client - container_uri = self.container_uri - sas_token = self.sas_token + container_uri = kwargs.pop("container_uri") + sas_token = kwargs.pop("sas_token") # [START begin_backup] # begin a vault backup @@ -52,17 +56,21 @@ def test_example_backup_and_restore(self, client): if self.is_live: time.sleep(60) # additional waiting to avoid conflicts with resources in other tests - @all_api_versions() - @backup_client_setup - def test_example_selective_key_restore(self, client): + @pytest.mark.parametrize("api_version", all_api_versions) + @KeyVaultBackupClientPreparer() + @recorded_by_proxy + def test_example_selective_key_restore(self, client,**kwargs): + set_bodiless_matcher() # create a key to selectively restore - key_client = self.create_key_client(self.managed_hsm_url) + managed_hsm_url = kwargs.pop("managed_hsm_url") + key_client = self.create_key_client(managed_hsm_url) key_name = self.get_resource_name("selective-restore-test-key") key_client.create_rsa_key(key_name) backup_client = client - sas_token = self.sas_token - backup_poller = backup_client.begin_backup(self.container_uri, sas_token) + sas_token = kwargs.pop("sas_token") + container_uri = kwargs.pop("container_uri") + backup_poller = backup_client.begin_backup(container_uri, sas_token) backup_operation = backup_poller.result() folder_url = backup_operation.folder_url diff --git a/sdk/keyvault/azure-keyvault-administration/tests/test_examples_administration_async.py b/sdk/keyvault/azure-keyvault-administration/tests/test_examples_administration_async.py index 3826710ca323..3953574ed4d5 100644 --- a/sdk/keyvault/azure-keyvault-administration/tests/test_examples_administration_async.py +++ b/sdk/keyvault/azure-keyvault-administration/tests/test_examples_administration_async.py @@ -5,24 +5,30 @@ import asyncio import pytest +from devtools_testutils import set_bodiless_matcher +from devtools_testutils.aio import recorded_by_proxy_async +from _async_test_case import KeyVaultBackupClientPreparer, get_decorator from _shared.test_case_async import KeyVaultTestCase -from _test_case import AdministrationTestCase, backup_client_setup, get_decorator - all_api_versions = get_decorator(is_async=True) -class TestExamplesTests(AdministrationTestCase, KeyVaultTestCase): - def __init__(self, *args, **kwargs): - super().__init__(*args, match_body=False, **kwargs) +class TestExamplesTests(KeyVaultTestCase): + def create_key_client(self, vault_uri, **kwargs): + from azure.keyvault.keys.aio import KeyClient + credential = self.get_credential(KeyClient, is_async=True) + return self.create_client_from_credential(KeyClient, credential=credential, vault_url=vault_uri, **kwargs ) - @all_api_versions() - @backup_client_setup - async def test_example_backup_and_restore(self, client): + @pytest.mark.asyncio + @pytest.mark.parametrize("api_version", all_api_versions) + @KeyVaultBackupClientPreparer() + @recorded_by_proxy_async + async def test_example_backup_and_restore(self, client, **kwargs): + set_bodiless_matcher() backup_client = client - container_uri = self.container_uri - sas_token = self.sas_token + container_uri = kwargs.pop("container_uri") + sas_token = kwargs.pop("sas_token") # [START begin_backup] # begin a vault backup @@ -52,17 +58,22 @@ async def test_example_backup_and_restore(self, client): if self.is_live: await asyncio.sleep(60) # additional waiting to avoid conflicts with resources in other tests - @all_api_versions() - @backup_client_setup - async def test_example_selective_key_restore(self, client): + @pytest.mark.asyncio + @pytest.mark.parametrize("api_version", all_api_versions) + @KeyVaultBackupClientPreparer() + @recorded_by_proxy_async + async def test_example_selective_key_restore(self, client, **kwargs): # create a key to selectively restore - key_client = self.create_key_client(self.managed_hsm_url, is_async=True) + set_bodiless_matcher() + managed_hsm_url = kwargs.pop("managed_hsm_url") + key_client = self.create_key_client(managed_hsm_url, is_async=True) key_name = self.get_resource_name("selective-restore-test-key") await key_client.create_rsa_key(key_name) backup_client = client - sas_token = self.sas_token - backup_poller = await backup_client.begin_backup(self.container_uri, sas_token) + sas_token = kwargs.pop("sas_token") + container_uri = kwargs.pop("container_uri") + backup_poller = await backup_client.begin_backup(container_uri, sas_token) backup_operation = await backup_poller.result() folder_url = backup_operation.folder_url diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/tests/conftest.py b/sdk/loganalytics/azure-mgmt-loganalytics/tests/conftest.py index de673c627a44..a1ec2e1324cb 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/tests/conftest.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/tests/conftest.py @@ -30,7 +30,7 @@ from dotenv import load_dotenv -from devtools_testutils import test_proxy, add_general_regex_sanitizer +from devtools_testutils import test_proxy, add_general_regex_sanitizer, add_header_regex_sanitizer, add_body_key_sanitizer # Ignore async tests for Python < 3.5 collect_ignore_glob = [] @@ -44,4 +44,7 @@ def add_sanitizers(test_proxy): subscription_id = os.environ.get("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") tenant_id = os.environ.get("AZURE_TENANT_ID", "00000000-0000-0000-0000-000000000000") add_general_regex_sanitizer(regex=subscription_id, value="00000000-0000-0000-0000-000000000000") - add_general_regex_sanitizer(regex=tenant_id, value="00000000-0000-0000-0000-000000000000") \ No newline at end of file + add_general_regex_sanitizer(regex=tenant_id, value="00000000-0000-0000-0000-000000000000") + add_header_regex_sanitizer(key="Set-Cookie", value="[set-cookie;]") + add_header_regex_sanitizer(key="Cookie", value="cookie;") + add_body_key_sanitizer(json_path="$..access_token", value="access_token") \ No newline at end of file diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/tests/recordings/test_mgmt_loganalytics.pyTestMgmtLogAnalyticstest_loganalytics_operations.json b/sdk/loganalytics/azure-mgmt-loganalytics/tests/recordings/test_mgmt_loganalytics.pyTestMgmtLogAnalyticstest_loganalytics_operations.json index aeaef95b7502..08a540a24758 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/tests/recordings/test_mgmt_loganalytics.pyTestMgmtLogAnalyticstest_loganalytics_operations.json +++ b/sdk/loganalytics/azure-mgmt-loganalytics/tests/recordings/test_mgmt_loganalytics.pyTestMgmtLogAnalyticstest_loganalytics_operations.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.8.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -17,18 +17,13 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "1753", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Jan 2022 07:33:46 GMT", + "Date": "Wed, 11 May 2022 06:49:09 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=AhydTTYDak1Ing0fPJQ1Cbs; expires=Sun, 20-Feb-2022 07:33:46 GMT; path=/; secure; HttpOnly; SameSite=None", - "esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrku3CerISdZf0Ph_V5HGCi17B9sX4sdRWFnXjIzWhFEZctxXA7NzsxYCskgN3yVRIa9TvLuVT1AYyKF7ZQVJcSv_2rPA5RgqtBIn_zAZIZB4TVVLqo4V25C6BSPeBSgUCngKQKj9t2spZ2ndGer5IaM412Q2hgYChlhXiYzRZWvAgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], + "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - EUS ProdSlices", - "x-ms-request-id": "9b6b7467-34d8-4c9c-b13b-045ca1e55200" + "x-ms-ests-server": "2.1.12651.10 - WUS2 ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", @@ -105,8 +100,8 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Cookie": "fpc=AhydTTYDak1Ing0fPJQ1Cbs; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", - "User-Agent": "azsdk-python-identity/1.8.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)" + "Cookie": "cookie;", + "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -116,17 +111,13 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "945", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Jan 2022 07:33:47 GMT", + "Date": "Wed, 11 May 2022 06:49:09 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=AhydTTYDak1Ing0fPJQ1Cbs; expires=Sun, 20-Feb-2022 07:33:47 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], + "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12381.19 - KRSLR1 ProdSlices", - "x-ms-request-id": "23802e0e-0c4e-49f0-b899-074cc91a0300" + "x-ms-ests-server": "2.1.12651.10 - KRSLR1 ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", @@ -181,47 +172,43 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "client-request-id": "6f0fe319-dac9-4e84-bf96-0770cacfd0e7", + "client-request-id": "3da5566a-3c2e-4656-9cda-19462637e2ce", "Connection": "keep-alive", - "Content-Length": "289", + "Content-Length": "291", "Content-Type": "application/x-www-form-urlencoded", - "Cookie": "fpc=AhydTTYDak1Ing0fPJQ1Cbs; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", - "User-Agent": "azsdk-python-identity/1.8.0 Python/3.8.8 (Windows-10-10.0.19041-SP0)", + "Cookie": "cookie;", + "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", "x-client-os": "win32", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.16.0", + "x-client-ver": "1.17.0", "x-ms-lib-capability": "retry-after, h429" }, - "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q~IsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q%7EIsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "client-request-id": "6f0fe319-dac9-4e84-bf96-0770cacfd0e7", - "Content-Length": "1391", + "client-request-id": "3da5566a-3c2e-4656-9cda-19462637e2ce", + "Content-Length": "93", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Jan 2022 07:33:47 GMT", + "Date": "Wed, 11 May 2022 06:49:09 GMT", "Expires": "-1", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=AhydTTYDak1Ing0fPJQ1CbuZHqKEAQAAANtYfNkOAAAA; expires=Sun, 20-Feb-2022 07:33:47 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], + "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", - "x-ms-ests-server": "2.1.12261.22 - EUS ProdSlices", - "x-ms-request-id": "2dbc646a-50ac-4b51-a593-47b0674d5d00" + "x-ms-ests-server": "2.1.12651.10 - SCUS ProdSlices", + "X-XSS-Protection": "0" }, "ResponseBody": { "token_type": "Bearer", "expires_in": 3599, "ext_expires_in": 3599, - "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCIsImtpZCI6Ik1yNS1BVWliZkJpaTdOZDFqQmViYXhib1hXMCJ9.eyJhdWQiOiJodHRwczovL21hbmFnZW1lbnQuYXp1cmUuY29tIiwiaXNzIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvNTQ4MjZiMjItMzhkNi00ZmIyLWJhZDktYjdiOTNhM2U5YzVhLyIsImlhdCI6MTY0Mjc1MDEyNywibmJmIjoxNjQyNzUwMTI3LCJleHAiOjE2NDI3NTQwMjcsImFpbyI6IkUyWmdZRmgwOG5uRnpCOXFuazIyWEN2RmxzMVBCUUE9IiwiYXBwaWQiOiJhMmRmNTRkNS1hYjAzLTQ3MjUtOWI4MC05YTAwYjNiMTk2N2YiLCJhcHBpZGFjciI6IjEiLCJpZHAiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC81NDgyNmIyMi0zOGQ2LTRmYjItYmFkOS1iN2I5M2EzZTljNWEvIiwiaWR0eXAiOiJhcHAiLCJvaWQiOiI4ODdjNDJiMS03OTQ2LTRjMjItYmFhNi0xNTA0M2U0YjEzMjMiLCJyaCI6IjAuQVRjQUltdUNWTlk0c2stNjJiZTVPajZjV3RWVTM2SURxeVZIbTRDYUFMT3hsbjgzQUFBLiIsInN1YiI6Ijg4N2M0MmIxLTc5NDYtNGMyMi1iYWE2LTE1MDQzZTRiMTMyMyIsInRpZCI6IjU0ODI2YjIyLTM4ZDYtNGZiMi1iYWQ5LWI3YjkzYTNlOWM1YSIsInV0aSI6ImFtUzhMYXhRVVV1bGswZXdaMDFkQUEiLCJ2ZXIiOiIxLjAiLCJ4bXNfY2MiOlsiQ1AxIl0sInhtc190Y2R0IjoxNDEyMjA2ODQwfQ.AXJR_eyJqD5inU3eDcDfGLZqcHypPVV06OSZtYBWsjTic39DsLMkt4MacAh7zuOikLNyGMwmKxm6Y4psc9dYrRxFrekkDm7JmFH2h7rHQTMJAqfll7iT7y1kh6EoAJZDJ6n0qv3xscL1mwcg6dUsMa-YnoLuQsAVNBFI-Fqq0NjcrLlB0hnXpbX71z9a3EmPltbbRq3gcYBlxMydJT2gvB81xvGwY_0RGUBnuy-rI4luOQhT2QBdGw6Y7m2ayHzy9lh-xqw8YxJhBrbQ92oPit9HuqM9QyjDqUudt6kVKbdLQnZkkdXPEM97Dsf9X9g26avz6aDtlnHXNLEYBA9dwQ" + "access_token": "access_token" } }, { @@ -230,33 +217,7841 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-loganalytics/13.0.0b1 Python/3.8.8 (Windows-10-10.0.19041-SP0)", - "x-ms-client-request-id": "7662aef9-7a8c-11ec-8618-70b5e82527ff" + "User-Agent": "azsdk-python-mgmt-loganalytics/13.0.0b4 Python/3.6.2 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, - "StatusCode": 404, + "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "294", + "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Jan 2022 07:33:47 GMT", + "Date": "Wed, 11 May 2022 06:49:11 GMT", "Expires": "-1", "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "6b763834-5b43-4971-9af8-11ee4ad1758e", - "x-ms-failure-cause": "gateway", + "x-ms-correlation-request-id": "73aaba48-eaa3-4c16-afc0-09721841dbac", "x-ms-ratelimit-remaining-tenant-reads": "11999", - "x-ms-request-id": "6b763834-5b43-4971-9af8-11ee4ad1758e", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220121T073348Z:6b763834-5b43-4971-9af8-11ee4ad1758e" + "x-ms-routing-request-id": "KOREASOUTH:20220511T064912Z:73aaba48-eaa3-4c16-afc0-09721841dbac", + "X-Powered-By": "ASP.NET" }, "ResponseBody": { - "error": { - "code": "InvalidResourceType", - "message": "The resource type \u0027operations\u0027 could not be found in the namespace \u0027Microsoft.OperationalInsights\u0027 for api version \u00272021-12-01-preview\u0027. The supported api-versions are \u00272014-11-10,2015-11-01-preview,2020-03-01-preview,2020-08-01,2020-10-01\u0027." - } + "value": [ + { + "name": "Microsoft.OperationalInsights/workspaces/write", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Workspace", + "operation": "Create Workspace", + "description": "Creates a new workspace or links to an existing workspace by providing the customer id from the existing workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Workspace", + "operation": "Get Workspace", + "description": "Gets an existing workspace" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/delete", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Workspace", + "operation": "Delete Workspace", + "description": "Deletes a workspace. If the workspace was linked to an existing workspace at creation time then the workspace it was linked to is not deleted." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/generateregistrationcertificate/action", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Registration Certificate", + "operation": "Generates Registration Certificate for Workspace.", + "description": "Generates Registration Certificate for the workspace. This Certificate is used to connect Microsoft System Center Operation Manager to the workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/storageinsightconfigs/write", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Storage Insight Configuration", + "operation": "Create Storage Configuration", + "description": "Creates a new storage configuration. These configurations are used to pull data from a location in an existing storage account." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/storageinsightconfigs/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Storage Insight Configuration", + "operation": "Get Storage Configuration", + "description": "Gets a storage configuration." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/storageinsightconfigs/delete", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Storage Insight Configuration", + "operation": "Delete Storage Configuration", + "description": "Deletes a storage configuration. This will stop Microsoft Operational Insights from reading data from the storage account." + } + }, + { + "name": "Microsoft.OperationalInsights/register/action", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Register", + "operation": "Register a subscription to a resource provider.", + "description": "Register a subscription to a resource provider." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/sharedKeys/action", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Shared Keys", + "operation": "List Workspace Shared Keys", + "description": "Retrieves the shared keys for the workspace. These keys are used to connect Microsoft Operational Insights agents to the workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/sharedKeys/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Shared Keys", + "operation": "List Workspace Shared Keys", + "description": "Retrieves the shared keys for the workspace. These keys are used to connect Microsoft Operational Insights agents to the workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/listKeys/action", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "List Keys", + "operation": "List Workspace Keys", + "description": "Retrieves the list keys for the workspace. These keys are used to connect Microsoft Operational Insights agents to the workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/listKeys/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "List Keys", + "operation": "List Workspace Keys", + "description": "Retrieves the list keys for the workspace. These keys are used to connect Microsoft Operational Insights agents to the workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/managementGroups/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Management Group", + "operation": "Get Management Groups for Workspace", + "description": "Gets the names and metadata for System Center Operations Manager management groups connected to this workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/usages/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Usage Metric", + "operation": "Get Usage Data for Workspace", + "description": "Gets usage data for a workspace including the amount of data read by the workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/search/action", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Search", + "operation": "Search Workspace Data", + "description": "Executes a search query" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/schema/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Search Schema", + "operation": "Get Search Schema", + "description": "Gets the search schema for the workspace. Search schema includes the exposed fields and their types." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/datasources/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Data Source", + "operation": "Get datasources under a workspace.", + "description": "Get datasources under a workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/datasources/write", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Data Source", + "operation": "Create/Update datasources under a workspace.", + "description": "Create/Update datasources under a workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/datasources/delete", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Data Source", + "operation": "Delete datasources under a workspace.", + "description": "Delete datasources under a workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/savedSearches/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Saved Search", + "operation": "Get Saved Search", + "description": "Gets a saved search query" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/savedSearches/write", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Saved Search", + "operation": "Create Saved Search", + "description": "Creates a saved search query" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/savedSearches/delete", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Saved Search", + "operation": "Delete Saved Search", + "description": "Deletes a saved search query" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/notificationSettings/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Notification Settings", + "operation": "Get Notification Settings", + "description": "Get the user\u0027s notification settings for the workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/notificationSettings/write", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Notification Settings", + "operation": "Put Notification Settings", + "description": "Set the user\u0027s notification settings for the workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/notificationSettings/delete", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Notification Settings", + "operation": "Delete Notification Settings", + "description": "Delete the user\u0027s notification settings for the workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/configurationScopes/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Configuration Scope", + "operation": "Get Configuration Scope", + "description": "Get Configuration Scope" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/configurationScopes/write", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Configuration Scope", + "operation": "Set Configuration Scope", + "description": "Set Configuration Scope" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/configurationScopes/delete", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Configuration Scope", + "operation": "Delete Configuration Scope", + "description": "Delete Configuration Scope" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/linkedServices/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Linked Services", + "operation": "Get linked services under given workspace.", + "description": "Get linked services under given workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/linkedServices/write", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Linked Services", + "operation": "Create/Update linked services under given workspace.", + "description": "Create/Update linked services under given workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/linkedServices/delete", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Linked Services", + "operation": "Delete linked services under given workspace.", + "description": "Delete linked services under given workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/clusters/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Cluster", + "operation": "Get Cluster", + "description": "Get Cluster" + } + }, + { + "name": "Microsoft.OperationalInsights/clusters/write", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Cluster", + "operation": "Create/Update Cluster", + "description": "Create or updates a Cluster" + } + }, + { + "name": "Microsoft.OperationalInsights/clusters/delete", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Cluster", + "operation": "Delete Cluster", + "description": "Delete Cluster" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/intelligencepacks/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Intelligence Packs", + "operation": "List Intelligence Packs", + "description": "Lists all intelligence packs that are visible for a given worksapce and also lists whether the pack is enabled or disabled for that workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/intelligencepacks/enable/action", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Intelligence Packs", + "operation": "Enable Intelligence Pack", + "description": "Enables an intelligence pack for a given workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/intelligencepacks/disable/action", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Intelligence Packs", + "operation": "Disable Intelligence Pack", + "description": "Disables an intelligence pack for a given workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/analytics/query/action", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "analytics", + "operation": "Search using new engine.", + "description": "Search using new engine." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/analytics/query/schema/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "analytics", + "operation": "Get search schema V2.", + "description": "Get search schema V2." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/api/query/action", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "analytics", + "operation": "Search using new engine.", + "description": "Search using new engine." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/api/query/schema/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "analytics", + "operation": "Get search schema V2.", + "description": "Get search schema V2." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/purge/action", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "analytics", + "operation": "Delete specified data from workspace", + "description": "Delete specified data from workspace" + } + }, + { + "name": "Microsoft.OperationalInsights/linkTargets/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Deleted Workspace", + "operation": "List Deleted Workspaces", + "description": "Lists workspaces in soft deleted period." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/availableservicetiers/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Available Service Tiers", + "operation": "List Available Service Tiers", + "description": "List of all the available service tiers for workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/deletedWorkspaces/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Deleted Workspace", + "operation": "List Deleted Workspaces", + "description": "Lists workspaces in soft deleted period." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/upgradetranslationfailures/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Upgrade Translation Failures", + "operation": "Get translation failure log", + "description": "Get Search Upgrade Translation Failure log for the workspace" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/regeneratesharedkey/action", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Shared key", + "operation": "regenerated shared key of the workspace", + "description": "Regenerates the specified workspace shared key" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/gateways/delete", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Gateways", + "operation": "Remove workspace gateway", + "description": "Removes a gateway configured for the workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/metricDefinitions/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Metric Definitions", + "operation": "Metric Definition operation", + "description": "Get Metric Definitions under workspace" + }, + "properties": { + "serviceSpecification": { + "metricSpecifications": [ + { + "name": "Average_% Free Inodes", + "displayName": "% Free Inodes", + "displayDescription": "Average_% Free Inodes", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_% Free Space", + "displayName": "% Free Space", + "displayDescription": "Average_% Free Space", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_% Used Inodes", + "displayName": "% Used Inodes", + "displayDescription": "Average_% Used Inodes", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_% Used Space", + "displayName": "% Used Space", + "displayDescription": "Average_% Used Space", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Disk Read Bytes/sec", + "displayName": "Disk Read Bytes/sec", + "displayDescription": "Average_Disk Read Bytes/sec", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Disk Reads/sec", + "displayName": "Disk Reads/sec", + "displayDescription": "Average_Disk Reads/sec", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Disk Transfers/sec", + "displayName": "Disk Transfers/sec", + "displayDescription": "Average_Disk Transfers/sec", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Disk Write Bytes/sec", + "displayName": "Disk Write Bytes/sec", + "displayDescription": "Average_Disk Write Bytes/sec", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Disk Writes/sec", + "displayName": "Disk Writes/sec", + "displayDescription": "Average_Disk Writes/sec", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Free Megabytes", + "displayName": "Free Megabytes", + "displayDescription": "Average_Free Megabytes", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Logical Disk Bytes/sec", + "displayName": "Logical Disk Bytes/sec", + "displayDescription": "Average_Logical Disk Bytes/sec", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_% Available Memory", + "displayName": "% Available Memory", + "displayDescription": "Average_% Available Memory", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_% Available Swap Space", + "displayName": "% Available Swap Space", + "displayDescription": "Average_% Available Swap Space", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_% Used Memory", + "displayName": "% Used Memory", + "displayDescription": "Average_% Used Memory", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_% Used Swap Space", + "displayName": "% Used Swap Space", + "displayDescription": "Average_% Used Swap Space", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Available MBytes Memory", + "displayName": "Available MBytes Memory", + "displayDescription": "Average_Available MBytes Memory", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Available MBytes Swap", + "displayName": "Available MBytes Swap", + "displayDescription": "Average_Available MBytes Swap", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Page Reads/sec", + "displayName": "Page Reads/sec", + "displayDescription": "Average_Page Reads/sec", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Page Writes/sec", + "displayName": "Page Writes/sec", + "displayDescription": "Average_Page Writes/sec", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Pages/sec", + "displayName": "Pages/sec", + "displayDescription": "Average_Pages/sec", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Used MBytes Swap Space", + "displayName": "Used MBytes Swap Space", + "displayDescription": "Average_Used MBytes Swap Space", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Used Memory MBytes", + "displayName": "Used Memory MBytes", + "displayDescription": "Average_Used Memory MBytes", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Total Bytes Transmitted", + "displayName": "Total Bytes Transmitted", + "displayDescription": "Average_Total Bytes Transmitted", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Total Bytes Received", + "displayName": "Total Bytes Received", + "displayDescription": "Average_Total Bytes Received", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Total Bytes", + "displayName": "Total Bytes", + "displayDescription": "Average_Total Bytes", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Total Packets Transmitted", + "displayName": "Total Packets Transmitted", + "displayDescription": "Average_Total Packets Transmitted", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Total Packets Received", + "displayName": "Total Packets Received", + "displayDescription": "Average_Total Packets Received", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Total Rx Errors", + "displayName": "Total Rx Errors", + "displayDescription": "Average_Total Rx Errors", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Total Tx Errors", + "displayName": "Total Tx Errors", + "displayDescription": "Average_Total Tx Errors", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Total Collisions", + "displayName": "Total Collisions", + "displayDescription": "Average_Total Collisions", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Avg. Disk sec/Read", + "displayName": "Avg. Disk sec/Read", + "displayDescription": "Average_Avg. Disk sec/Read", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Avg. Disk sec/Transfer", + "displayName": "Avg. Disk sec/Transfer", + "displayDescription": "Average_Avg. Disk sec/Transfer", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Avg. Disk sec/Write", + "displayName": "Avg. Disk sec/Write", + "displayDescription": "Average_Avg. Disk sec/Write", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Physical Disk Bytes/sec", + "displayName": "Physical Disk Bytes/sec", + "displayDescription": "Average_Physical Disk Bytes/sec", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Pct Privileged Time", + "displayName": "Pct Privileged Time", + "displayDescription": "Average_Pct Privileged Time", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Pct User Time", + "displayName": "Pct User Time", + "displayDescription": "Average_Pct User Time", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Used Memory kBytes", + "displayName": "Used Memory kBytes", + "displayDescription": "Average_Used Memory kBytes", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Virtual Shared Memory", + "displayName": "Virtual Shared Memory", + "displayDescription": "Average_Virtual Shared Memory", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_% DPC Time", + "displayName": "% DPC Time", + "displayDescription": "Average_% DPC Time", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_% Idle Time", + "displayName": "% Idle Time", + "displayDescription": "Average_% Idle Time", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_% Interrupt Time", + "displayName": "% Interrupt Time", + "displayDescription": "Average_% Interrupt Time", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_% IO Wait Time", + "displayName": "% IO Wait Time", + "displayDescription": "Average_% IO Wait Time", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_% Nice Time", + "displayName": "% Nice Time", + "displayDescription": "Average_% Nice Time", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_% Privileged Time", + "displayName": "% Privileged Time", + "displayDescription": "Average_% Privileged Time", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_% Processor Time", + "displayName": "% Processor Time", + "displayDescription": "Average_% Processor Time", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_% User Time", + "displayName": "% User Time", + "displayDescription": "Average_% User Time", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Free Physical Memory", + "displayName": "Free Physical Memory", + "displayDescription": "Average_Free Physical Memory", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Free Space in Paging Files", + "displayName": "Free Space in Paging Files", + "displayDescription": "Average_Free Space in Paging Files", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Free Virtual Memory", + "displayName": "Free Virtual Memory", + "displayDescription": "Average_Free Virtual Memory", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Processes", + "displayName": "Processes", + "displayDescription": "Average_Processes", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Size Stored In Paging Files", + "displayName": "Size Stored In Paging Files", + "displayDescription": "Average_Size Stored In Paging Files", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Uptime", + "displayName": "Uptime", + "displayDescription": "Average_Uptime", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Users", + "displayName": "Users", + "displayDescription": "Average_Users", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Current Disk Queue Length", + "displayName": "Current Disk Queue Length", + "displayDescription": "Average_Current Disk Queue Length", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Available MBytes", + "displayName": "Available MBytes", + "displayDescription": "Average_Available MBytes", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_% Committed Bytes In Use", + "displayName": "% Committed Bytes In Use", + "displayDescription": "Average_% Committed Bytes In Use", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Bytes Received/sec", + "displayName": "Bytes Received/sec", + "displayDescription": "Average_Bytes Received/sec", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Bytes Sent/sec", + "displayName": "Bytes Sent/sec", + "displayDescription": "Average_Bytes Sent/sec", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Bytes Total/sec", + "displayName": "Bytes Total/sec", + "displayDescription": "Average_Bytes Total/sec", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Average_Processor Queue Length", + "displayName": "Processor Queue Length", + "displayDescription": "Average_Processor Queue Length", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "ObjectName", + "displayName": "ObjectName" + }, + { + "name": "InstanceName", + "displayName": "InstanceName" + }, + { + "name": "CounterPath", + "displayName": "CounterPath" + }, + { + "name": "SourceSystem", + "displayName": "SourceSystem" + } + ] + }, + { + "name": "Heartbeat", + "displayName": "Heartbeat", + "displayDescription": "Heartbeat", + "unit": "Count", + "aggregationType": "Total", + "fillGapWithZero": true, + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "OSType", + "displayName": "OSType" + }, + { + "name": "Version", + "displayName": "Version" + }, + { + "name": "SourceComputerId", + "displayName": "SourceComputerId" + } + ] + }, + { + "name": "Update", + "displayName": "Update", + "displayDescription": "Update", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "Product", + "displayName": "Product" + }, + { + "name": "Classification", + "displayName": "Classification" + }, + { + "name": "UpdateState", + "displayName": "UpdateState" + }, + { + "name": "Optional", + "displayName": "Optional" + }, + { + "name": "Approved", + "displayName": "Approved" + } + ] + }, + { + "name": "Event", + "displayName": "Event", + "displayDescription": "Event", + "unit": "Count", + "aggregationType": "Average", + "dimensions": [ + { + "name": "Source", + "displayName": "Source" + }, + { + "name": "EventLog", + "displayName": "EventLog" + }, + { + "name": "Computer", + "displayName": "Computer" + }, + { + "name": "EventCategory", + "displayName": "EventCategory" + }, + { + "name": "EventLevel", + "displayName": "EventLevel" + }, + { + "name": "EventLevelName", + "displayName": "EventLevelName" + }, + { + "name": "EventID", + "displayName": "EventID" + } + ] + } + ] + } + } + }, + { + "origin": "system", + "name": "Microsoft.OperationalInsights/workspaces/providers/Microsoft.Insights/diagnosticSettings/Read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "Workspaces", + "operation": "Read diagnostic setting", + "description": "Gets the diagnostic setting for the resource" + } + }, + { + "origin": "system", + "name": "Microsoft.OperationalInsights/workspaces/providers/Microsoft.Insights/diagnosticSettings/Write", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "Workspaces", + "operation": "Write diagnostic setting", + "description": "Creates or updates the diagnostic setting for the resource" + } + }, + { + "origin": "system", + "name": "Microsoft.OperationalInsights/workspaces/providers/Microsoft.Insights/logDefinitions/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "The log definition of Workspaces", + "operation": "Read Workspaces log definitions", + "description": "Gets the available logs for a Workspace" + }, + "properties": { + "serviceSpecification": { + "logSpecifications": [ + { + "name": "Audit", + "displayName": "Audit Logs" + } + ] + } + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AACAudit/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AACAudit", + "operation": "Read AACAudit data", + "description": "Read data from the AACAudit table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AACHttpRequest/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AACHttpRequest", + "operation": "Read AACHttpRequest data", + "description": "Read data from the AACHttpRequest table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AADB2CRequestLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AADB2CRequestLogs", + "operation": "Read AADB2CRequestLogs data", + "description": "Read data from the AADB2CRequestLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AADDomainServicesAccountLogon/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AADDomainServicesAccountLogon", + "operation": "Read AADDomainServicesAccountLogon data", + "description": "Read data from the AADDomainServicesAccountLogon table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AADDomainServicesAccountManagement/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AADDomainServicesAccountManagement", + "operation": "Read AADDomainServicesAccountManagement data", + "description": "Read data from the AADDomainServicesAccountManagement table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AADDomainServicesDirectoryServiceAccess/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AADDomainServicesDirectoryServiceAccess", + "operation": "Read AADDomainServicesDirectoryServiceAccess data", + "description": "Read data from the AADDomainServicesDirectoryServiceAccess table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AADDomainServicesLogonLogoff/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AADDomainServicesLogonLogoff", + "operation": "Read AADDomainServicesLogonLogoff data", + "description": "Read data from the AADDomainServicesLogonLogoff table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AADDomainServicesPolicyChange/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AADDomainServicesPolicyChange", + "operation": "Read AADDomainServicesPolicyChange data", + "description": "Read data from the AADDomainServicesPolicyChange table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AADDomainServicesPrivilegeUse/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AADDomainServicesPrivilegeUse", + "operation": "Read AADDomainServicesPrivilegeUse data", + "description": "Read data from the AADDomainServicesPrivilegeUse table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AADManagedIdentitySignInLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AADManagedIdentitySignInLogs", + "operation": "Read AADManagedIdentitySignInLogs data", + "description": "Read data from the AADManagedIdentitySignInLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AADNonInteractiveUserSignInLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AADNonInteractiveUserSignInLogs", + "operation": "Read AADNonInteractiveUserSignInLogs data", + "description": "Read data from the AADNonInteractiveUserSignInLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AADProvisioningLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AADProvisioningLogs", + "operation": "Read AADProvisioningLogs data", + "description": "Read data from the AADProvisioningLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AADRiskyServicePrincipals/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AADRiskyServicePrincipals", + "operation": "Read AADRiskyServicePrincipals data", + "description": "Read data from the AADRiskyServicePrincipals table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AADRiskyUsers/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AADRiskyUsers", + "operation": "Read AADRiskyUsers data", + "description": "Read data from the AADRiskyUsers table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AADServicePrincipalRiskEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AADServicePrincipalRiskEvents", + "operation": "Read AADServicePrincipalRiskEvents data", + "description": "Read data from the AADServicePrincipalRiskEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AADServicePrincipalSignInLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AADServicePrincipalSignInLogs", + "operation": "Read AADServicePrincipalSignInLogs data", + "description": "Read data from the AADServicePrincipalSignInLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AADUserRiskEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AADUserRiskEvents", + "operation": "Read AADUserRiskEvents data", + "description": "Read data from the AADUserRiskEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ABSBotRequests/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ABSBotRequests", + "operation": "Read ABSBotRequests data", + "description": "Read data from the ABSBotRequests table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ABSChannelToBotRequests/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ABSChannelToBotRequests", + "operation": "Read ABSChannelToBotRequests data", + "description": "Read data from the ABSChannelToBotRequests table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ABSDependenciesRequests/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ABSDependenciesRequests", + "operation": "Read ABSDependenciesRequests data", + "description": "Read data from the ABSDependenciesRequests table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ACICollaborationAudit/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ACICollaborationAudit", + "operation": "Read ACICollaborationAudit data", + "description": "Read data from the ACICollaborationAudit table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ACRConnectedClientList/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ACRConnectedClientList", + "operation": "Read ACRConnectedClientList data", + "description": "Read data from the ACRConnectedClientList table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ACSAuthIncomingOperations/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ACSAuthIncomingOperations", + "operation": "Read ACSAuthIncomingOperations data", + "description": "Read data from the ACSAuthIncomingOperations table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ACSBillingUsage/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ACSBillingUsage", + "operation": "Read ACSBillingUsage data", + "description": "Read data from the ACSBillingUsage table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ACSCallDiagnostics/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ACSCallDiagnostics", + "operation": "Read ACSCallDiagnostics data", + "description": "Read data from the ACSCallDiagnostics table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ACSCallSummary/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ACSCallSummary", + "operation": "Read ACSCallSummary data", + "description": "Read data from the ACSCallSummary table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ACSChatIncomingOperations/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ACSChatIncomingOperations", + "operation": "Read ACSChatIncomingOperations data", + "description": "Read data from the ACSChatIncomingOperations table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ACSNetworkTraversalDiagnostics/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ACSNetworkTraversalDiagnostics", + "operation": "Read ACSNetworkTraversalDiagnostics data", + "description": "Read data from the ACSNetworkTraversalDiagnostics table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ACSNetworkTraversalIncomingOperations/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ACSNetworkTraversalIncomingOperations", + "operation": "Read ACSNetworkTraversalIncomingOperations data", + "description": "Read data from the ACSNetworkTraversalIncomingOperations table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ACSSMSIncomingOperations/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ACSSMSIncomingOperations", + "operation": "Read ACSSMSIncomingOperations data", + "description": "Read data from the ACSSMSIncomingOperations table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADAssessmentRecommendation/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADAssessmentRecommendation", + "operation": "Read ADAssessmentRecommendation data", + "description": "Read data from the ADAssessmentRecommendation table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AddonAzureBackupAlerts/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AddonAzureBackupAlerts", + "operation": "Read AddonAzureBackupAlerts data", + "description": "Read data from the AddonAzureBackupAlerts table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AddonAzureBackupJobs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AddonAzureBackupJobs", + "operation": "Read AddonAzureBackupJobs data", + "description": "Read data from the AddonAzureBackupJobs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AddonAzureBackupPolicy/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AddonAzureBackupPolicy", + "operation": "Read AddonAzureBackupPolicy data", + "description": "Read data from the AddonAzureBackupPolicy table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AddonAzureBackupProtectedInstance/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AddonAzureBackupProtectedInstance", + "operation": "Read AddonAzureBackupProtectedInstance data", + "description": "Read data from the AddonAzureBackupProtectedInstance table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AddonAzureBackupStorage/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AddonAzureBackupStorage", + "operation": "Read AddonAzureBackupStorage data", + "description": "Read data from the AddonAzureBackupStorage table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADFActivityRun/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADFActivityRun", + "operation": "Read ADFActivityRun data", + "description": "Read data from the ADFActivityRun table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADFAirflowSchedulerLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADFAirflowSchedulerLogs", + "operation": "Read ADFAirflowSchedulerLogs data", + "description": "Read data from the ADFAirflowSchedulerLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADFAirflowTaskLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADFAirflowTaskLogs", + "operation": "Read ADFAirflowTaskLogs data", + "description": "Read data from the ADFAirflowTaskLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADFAirflowWebLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADFAirflowWebLogs", + "operation": "Read ADFAirflowWebLogs data", + "description": "Read data from the ADFAirflowWebLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADFAirflowWorkerLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADFAirflowWorkerLogs", + "operation": "Read ADFAirflowWorkerLogs data", + "description": "Read data from the ADFAirflowWorkerLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADFPipelineRun/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADFPipelineRun", + "operation": "Read ADFPipelineRun data", + "description": "Read data from the ADFPipelineRun table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADFSandboxActivityRun/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADFSandboxActivityRun", + "operation": "Read ADFSandboxActivityRun data", + "description": "Read data from the ADFSandboxActivityRun table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADFSandboxPipelineRun/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADFSandboxPipelineRun", + "operation": "Read ADFSandboxPipelineRun data", + "description": "Read data from the ADFSandboxPipelineRun table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADFSSignInLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADFSSignInLogs", + "operation": "Read ADFSSignInLogs data", + "description": "Read data from the ADFSSignInLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADFSSISIntegrationRuntimeLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADFSSISIntegrationRuntimeLogs", + "operation": "Read ADFSSISIntegrationRuntimeLogs data", + "description": "Read data from the ADFSSISIntegrationRuntimeLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADFSSISPackageEventMessageContext/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADFSSISPackageEventMessageContext", + "operation": "Read ADFSSISPackageEventMessageContext data", + "description": "Read data from the ADFSSISPackageEventMessageContext table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADFSSISPackageEventMessages/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADFSSISPackageEventMessages", + "operation": "Read ADFSSISPackageEventMessages data", + "description": "Read data from the ADFSSISPackageEventMessages table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADFSSISPackageExecutableStatistics/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADFSSISPackageExecutableStatistics", + "operation": "Read ADFSSISPackageExecutableStatistics data", + "description": "Read data from the ADFSSISPackageExecutableStatistics table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADFSSISPackageExecutionComponentPhases/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADFSSISPackageExecutionComponentPhases", + "operation": "Read ADFSSISPackageExecutionComponentPhases data", + "description": "Read data from the ADFSSISPackageExecutionComponentPhases table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADFSSISPackageExecutionDataStatistics/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADFSSISPackageExecutionDataStatistics", + "operation": "Read ADFSSISPackageExecutionDataStatistics data", + "description": "Read data from the ADFSSISPackageExecutionDataStatistics table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADFTriggerRun/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADFTriggerRun", + "operation": "Read ADFTriggerRun data", + "description": "Read data from the ADFTriggerRun table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADPAudit/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADPAudit", + "operation": "Read ADPAudit data", + "description": "Read data from the ADPAudit table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADPDiagnostics/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADPDiagnostics", + "operation": "Read ADPDiagnostics data", + "description": "Read data from the ADPDiagnostics table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADPRequests/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADPRequests", + "operation": "Read ADPRequests data", + "description": "Read data from the ADPRequests table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADReplicationResult/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADReplicationResult", + "operation": "Read ADReplicationResult data", + "description": "Read data from the ADReplicationResult table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADSecurityAssessmentRecommendation/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADSecurityAssessmentRecommendation", + "operation": "Read ADSecurityAssessmentRecommendation data", + "description": "Read data from the ADSecurityAssessmentRecommendation table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADTDigitalTwinsOperation/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADTDigitalTwinsOperation", + "operation": "Read ADTDigitalTwinsOperation data", + "description": "Read data from the ADTDigitalTwinsOperation table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADTEventRoutesOperation/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADTEventRoutesOperation", + "operation": "Read ADTEventRoutesOperation data", + "description": "Read data from the ADTEventRoutesOperation table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADTModelsOperation/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADTModelsOperation", + "operation": "Read ADTModelsOperation data", + "description": "Read data from the ADTModelsOperation table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADTQueryOperation/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADTQueryOperation", + "operation": "Read ADTQueryOperation data", + "description": "Read data from the ADTQueryOperation table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADXCommand/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADXCommand", + "operation": "Read ADXCommand data", + "description": "Read data from the ADXCommand table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADXIngestionBatching/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADXIngestionBatching", + "operation": "Read ADXIngestionBatching data", + "description": "Read data from the ADXIngestionBatching table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADXJournal/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADXJournal", + "operation": "Read ADXJournal data", + "description": "Read data from the ADXJournal table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADXQuery/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADXQuery", + "operation": "Read ADXQuery data", + "description": "Read data from the ADXQuery table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADXTableDetails/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADXTableDetails", + "operation": "Read ADXTableDetails data", + "description": "Read data from the ADXTableDetails table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ADXTableUsageStatistics/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ADXTableUsageStatistics", + "operation": "Read ADXTableUsageStatistics data", + "description": "Read data from the ADXTableUsageStatistics table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AegDataPlaneRequests/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AegDataPlaneRequests", + "operation": "Read AegDataPlaneRequests data", + "description": "Read data from the AegDataPlaneRequests table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AegDeliveryFailureLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AegDeliveryFailureLogs", + "operation": "Read AegDeliveryFailureLogs data", + "description": "Read data from the AegDeliveryFailureLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AegPublishFailureLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AegPublishFailureLogs", + "operation": "Read AegPublishFailureLogs data", + "description": "Read data from the AegPublishFailureLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AEWAuditLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AEWAuditLogs", + "operation": "Read AEWAuditLogs data", + "description": "Read data from the AEWAuditLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AEWComputePipelinesLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AEWComputePipelinesLogs", + "operation": "Read AEWComputePipelinesLogs data", + "description": "Read data from the AEWComputePipelinesLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AgriFoodApplicationAuditLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AgriFoodApplicationAuditLogs", + "operation": "Read AgriFoodApplicationAuditLogs data", + "description": "Read data from the AgriFoodApplicationAuditLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AgriFoodFarmManagementLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AgriFoodFarmManagementLogs", + "operation": "Read AgriFoodFarmManagementLogs data", + "description": "Read data from the AgriFoodFarmManagementLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AgriFoodFarmOperationLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AgriFoodFarmOperationLogs", + "operation": "Read AgriFoodFarmOperationLogs data", + "description": "Read data from the AgriFoodFarmOperationLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AgriFoodInsightLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AgriFoodInsightLogs", + "operation": "Read AgriFoodInsightLogs data", + "description": "Read data from the AgriFoodInsightLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AgriFoodJobProcessedLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AgriFoodJobProcessedLogs", + "operation": "Read AgriFoodJobProcessedLogs data", + "description": "Read data from the AgriFoodJobProcessedLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AgriFoodModelInferenceLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AgriFoodModelInferenceLogs", + "operation": "Read AgriFoodModelInferenceLogs data", + "description": "Read data from the AgriFoodModelInferenceLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AgriFoodProviderAuthLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AgriFoodProviderAuthLogs", + "operation": "Read AgriFoodProviderAuthLogs data", + "description": "Read data from the AgriFoodProviderAuthLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AgriFoodSatelliteLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AgriFoodSatelliteLogs", + "operation": "Read AgriFoodSatelliteLogs data", + "description": "Read data from the AgriFoodSatelliteLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AgriFoodSensorManagementLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AgriFoodSensorManagementLogs", + "operation": "Read AgriFoodSensorManagementLogs data", + "description": "Read data from the AgriFoodSensorManagementLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AgriFoodWeatherLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AgriFoodWeatherLogs", + "operation": "Read AgriFoodWeatherLogs data", + "description": "Read data from the AgriFoodWeatherLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AGSGrafanaLoginEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AGSGrafanaLoginEvents", + "operation": "Read AGSGrafanaLoginEvents data", + "description": "Read data from the AGSGrafanaLoginEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AirflowDagProcessingLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AirflowDagProcessingLogs", + "operation": "Read AirflowDagProcessingLogs data", + "description": "Read data from the AirflowDagProcessingLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/Alert/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "Alert", + "operation": "Read Alert data", + "description": "Read data from the Alert table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AlertEvidence/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AlertEvidence", + "operation": "Read AlertEvidence data", + "description": "Read data from the AlertEvidence table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AlertHistory/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AlertHistory", + "operation": "Read AlertHistory data", + "description": "Read data from the AlertHistory table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AlertInfo/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AlertInfo", + "operation": "Read AlertInfo data", + "description": "Read data from the AlertInfo table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AmlComputeClusterEvent/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AmlComputeClusterEvent", + "operation": "Read AmlComputeClusterEvent data", + "description": "Read data from the AmlComputeClusterEvent table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AmlComputeClusterNodeEvent/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AmlComputeClusterNodeEvent", + "operation": "Read AmlComputeClusterNodeEvent data", + "description": "Read data from the AmlComputeClusterNodeEvent table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AmlComputeCpuGpuUtilization/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AmlComputeCpuGpuUtilization", + "operation": "Read AmlComputeCpuGpuUtilization data", + "description": "Read data from the AmlComputeCpuGpuUtilization table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AmlComputeInstanceEvent/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AmlComputeInstanceEvent", + "operation": "Read AmlComputeInstanceEvent data", + "description": "Read data from the AmlComputeInstanceEvent table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AmlComputeJobEvent/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AmlComputeJobEvent", + "operation": "Read AmlComputeJobEvent data", + "description": "Read data from the AmlComputeJobEvent table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AmlDataLabelEvent/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AmlDataLabelEvent", + "operation": "Read AmlDataLabelEvent data", + "description": "Read data from the AmlDataLabelEvent table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AmlDataSetEvent/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AmlDataSetEvent", + "operation": "Read AmlDataSetEvent data", + "description": "Read data from the AmlDataSetEvent table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AmlDataStoreEvent/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AmlDataStoreEvent", + "operation": "Read AmlDataStoreEvent data", + "description": "Read data from the AmlDataStoreEvent table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AmlDeploymentEvent/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AmlDeploymentEvent", + "operation": "Read AmlDeploymentEvent data", + "description": "Read data from the AmlDeploymentEvent table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AmlEnvironmentEvent/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AmlEnvironmentEvent", + "operation": "Read AmlEnvironmentEvent data", + "description": "Read data from the AmlEnvironmentEvent table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AmlInferencingEvent/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AmlInferencingEvent", + "operation": "Read AmlInferencingEvent data", + "description": "Read data from the AmlInferencingEvent table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AmlModelsEvent/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AmlModelsEvent", + "operation": "Read AmlModelsEvent data", + "description": "Read data from the AmlModelsEvent table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AmlOnlineEndpointConsoleLog/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AmlOnlineEndpointConsoleLog", + "operation": "Read AmlOnlineEndpointConsoleLog data", + "description": "Read data from the AmlOnlineEndpointConsoleLog table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AmlPipelineEvent/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AmlPipelineEvent", + "operation": "Read AmlPipelineEvent data", + "description": "Read data from the AmlPipelineEvent table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AmlRunEvent/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AmlRunEvent", + "operation": "Read AmlRunEvent data", + "description": "Read data from the AmlRunEvent table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AmlRunStatusChangedEvent/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AmlRunStatusChangedEvent", + "operation": "Read AmlRunStatusChangedEvent data", + "description": "Read data from the AmlRunStatusChangedEvent table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/Anomalies/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "Anomalies", + "operation": "Read Anomalies data", + "description": "Read data from the Anomalies table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ApiManagementGatewayLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ApiManagementGatewayLogs", + "operation": "Read ApiManagementGatewayLogs data", + "description": "Read data from the ApiManagementGatewayLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AppAvailabilityResults/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AppAvailabilityResults", + "operation": "Read AppAvailabilityResults data", + "description": "Read data from the AppAvailabilityResults table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AppBrowserTimings/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AppBrowserTimings", + "operation": "Read AppBrowserTimings data", + "description": "Read data from the AppBrowserTimings table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AppCenterError/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AppCenterError", + "operation": "Read AppCenterError data", + "description": "Read data from the AppCenterError table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AppDependencies/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AppDependencies", + "operation": "Read AppDependencies data", + "description": "Read data from the AppDependencies table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AppEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AppEvents", + "operation": "Read AppEvents data", + "description": "Read data from the AppEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AppExceptions/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AppExceptions", + "operation": "Read AppExceptions data", + "description": "Read data from the AppExceptions table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ApplicationInsights/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ApplicationInsights", + "operation": "Read ApplicationInsights data", + "description": "Read data from the ApplicationInsights table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AppMetrics/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AppMetrics", + "operation": "Read AppMetrics data", + "description": "Read data from the AppMetrics table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AppPageViews/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AppPageViews", + "operation": "Read AppPageViews data", + "description": "Read data from the AppPageViews table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AppPerformanceCounters/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AppPerformanceCounters", + "operation": "Read AppPerformanceCounters data", + "description": "Read data from the AppPerformanceCounters table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AppPlatformBuildLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AppPlatformBuildLogs", + "operation": "Read AppPlatformBuildLogs data", + "description": "Read data from the AppPlatformBuildLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AppPlatformContainerEventLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AppPlatformContainerEventLogs", + "operation": "Read AppPlatformContainerEventLogs data", + "description": "Read data from the AppPlatformContainerEventLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AppPlatformIngressLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AppPlatformIngressLogs", + "operation": "Read AppPlatformIngressLogs data", + "description": "Read data from the AppPlatformIngressLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AppPlatformLogsforSpring/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AppPlatformLogsforSpring", + "operation": "Read AppPlatformLogsforSpring data", + "description": "Read data from the AppPlatformLogsforSpring table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AppPlatformSystemLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AppPlatformSystemLogs", + "operation": "Read AppPlatformSystemLogs data", + "description": "Read data from the AppPlatformSystemLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AppRequests/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AppRequests", + "operation": "Read AppRequests data", + "description": "Read data from the AppRequests table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AppServiceAntivirusScanAuditLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AppServiceAntivirusScanAuditLogs", + "operation": "Read AppServiceAntivirusScanAuditLogs data", + "description": "Read data from the AppServiceAntivirusScanAuditLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AppServiceAppLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AppServiceAppLogs", + "operation": "Read AppServiceAppLogs data", + "description": "Read data from the AppServiceAppLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AppServiceAuditLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AppServiceAuditLogs", + "operation": "Read AppServiceAuditLogs data", + "description": "Read data from the AppServiceAuditLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AppServiceConsoleLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AppServiceConsoleLogs", + "operation": "Read AppServiceConsoleLogs data", + "description": "Read data from the AppServiceConsoleLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AppServiceEnvironmentPlatformLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AppServiceEnvironmentPlatformLogs", + "operation": "Read AppServiceEnvironmentPlatformLogs data", + "description": "Read data from the AppServiceEnvironmentPlatformLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AppServiceFileAuditLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AppServiceFileAuditLogs", + "operation": "Read AppServiceFileAuditLogs data", + "description": "Read data from the AppServiceFileAuditLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AppServiceHTTPLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AppServiceHTTPLogs", + "operation": "Read AppServiceHTTPLogs data", + "description": "Read data from the AppServiceHTTPLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AppServiceIPSecAuditLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AppServiceIPSecAuditLogs", + "operation": "Read AppServiceIPSecAuditLogs data", + "description": "Read data from the AppServiceIPSecAuditLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AppServicePlatformLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AppServicePlatformLogs", + "operation": "Read AppServicePlatformLogs data", + "description": "Read data from the AppServicePlatformLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AppSystemEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AppSystemEvents", + "operation": "Read AppSystemEvents data", + "description": "Read data from the AppSystemEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AppTraces/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AppTraces", + "operation": "Read AppTraces data", + "description": "Read data from the AppTraces table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ASimDnsActivityLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ASimDnsActivityLogs", + "operation": "Read ASimDnsActivityLogs data", + "description": "Read data from the ASimDnsActivityLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ATCExpressRouteCircuitIpfix/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ATCExpressRouteCircuitIpfix", + "operation": "Read ATCExpressRouteCircuitIpfix data", + "description": "Read data from the ATCExpressRouteCircuitIpfix table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AuditLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AuditLogs", + "operation": "Read AuditLogs data", + "description": "Read data from the AuditLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AUIEventsAudit/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AUIEventsAudit", + "operation": "Read AUIEventsAudit data", + "description": "Read data from the AUIEventsAudit table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AUIEventsOperational/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AUIEventsOperational", + "operation": "Read AUIEventsOperational data", + "description": "Read data from the AUIEventsOperational table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AutoscaleEvaluationsLog/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AutoscaleEvaluationsLog", + "operation": "Read AutoscaleEvaluationsLog data", + "description": "Read data from the AutoscaleEvaluationsLog table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AutoscaleScaleActionsLog/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AutoscaleScaleActionsLog", + "operation": "Read AutoscaleScaleActionsLog data", + "description": "Read data from the AutoscaleScaleActionsLog table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AWSCloudTrail/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AWSCloudTrail", + "operation": "Read AWSCloudTrail data", + "description": "Read data from the AWSCloudTrail table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AWSGuardDuty/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AWSGuardDuty", + "operation": "Read AWSGuardDuty data", + "description": "Read data from the AWSGuardDuty table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AWSVPCFlow/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AWSVPCFlow", + "operation": "Read AWSVPCFlow data", + "description": "Read data from the AWSVPCFlow table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AZFWApplicationRule/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AZFWApplicationRule", + "operation": "Read AZFWApplicationRule data", + "description": "Read data from the AZFWApplicationRule table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AZFWApplicationRuleAggregation/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AZFWApplicationRuleAggregation", + "operation": "Read AZFWApplicationRuleAggregation data", + "description": "Read data from the AZFWApplicationRuleAggregation table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AZFWDnsQuery/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AZFWDnsQuery", + "operation": "Read AZFWDnsQuery data", + "description": "Read data from the AZFWDnsQuery table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AZFWIdpsSignature/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AZFWIdpsSignature", + "operation": "Read AZFWIdpsSignature data", + "description": "Read data from the AZFWIdpsSignature table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AZFWInternalFqdnResolutionFailure/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AZFWInternalFqdnResolutionFailure", + "operation": "Read AZFWInternalFqdnResolutionFailure data", + "description": "Read data from the AZFWInternalFqdnResolutionFailure table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AZFWNatRule/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AZFWNatRule", + "operation": "Read AZFWNatRule data", + "description": "Read data from the AZFWNatRule table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AZFWNatRuleAggregation/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AZFWNatRuleAggregation", + "operation": "Read AZFWNatRuleAggregation data", + "description": "Read data from the AZFWNatRuleAggregation table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AZFWNetworkRule/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AZFWNetworkRule", + "operation": "Read AZFWNetworkRule data", + "description": "Read data from the AZFWNetworkRule table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AZFWNetworkRuleAggregation/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AZFWNetworkRuleAggregation", + "operation": "Read AZFWNetworkRuleAggregation data", + "description": "Read data from the AZFWNetworkRuleAggregation table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AZFWThreatIntel/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AZFWThreatIntel", + "operation": "Read AZFWThreatIntel data", + "description": "Read data from the AZFWThreatIntel table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AzureActivity/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AzureActivity", + "operation": "Read AzureActivity data", + "description": "Read data from the AzureActivity table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AzureActivityV2/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AzureActivityV2", + "operation": "Read AzureActivityV2 data", + "description": "Read data from the AzureActivityV2 table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AzureAssessmentRecommendation/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AzureAssessmentRecommendation", + "operation": "Read AzureAssessmentRecommendation data", + "description": "Read data from the AzureAssessmentRecommendation table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AzureAttestationDiagnostics/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AzureAttestationDiagnostics", + "operation": "Read AzureAttestationDiagnostics data", + "description": "Read data from the AzureAttestationDiagnostics table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AzureDevOpsAuditing/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AzureDevOpsAuditing", + "operation": "Read AzureDevOpsAuditing data", + "description": "Read data from the AzureDevOpsAuditing table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AzureDiagnostics/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AzureDiagnostics", + "operation": "Read AzureDiagnostics data", + "description": "Read data from the AzureDiagnostics table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AzureDiagnostics/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AzureDiagnostics", + "operation": "Read AzureDiagnostics data", + "description": "Read data from the AzureDiagnostics table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AzureLoadTestingOperation/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AzureLoadTestingOperation", + "operation": "Read AzureLoadTestingOperation data", + "description": "Read data from the AzureLoadTestingOperation table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/AzureMetrics/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "AzureMetrics", + "operation": "Read AzureMetrics data", + "description": "Read data from the AzureMetrics table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/BaiClusterEvent/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "BaiClusterEvent", + "operation": "Read BaiClusterEvent data", + "description": "Read data from the BaiClusterEvent table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/BaiClusterNodeEvent/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "BaiClusterNodeEvent", + "operation": "Read BaiClusterNodeEvent data", + "description": "Read data from the BaiClusterNodeEvent table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/BaiJobEvent/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "BaiJobEvent", + "operation": "Read BaiJobEvent data", + "description": "Read data from the BaiJobEvent table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/BehaviorAnalytics/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "BehaviorAnalytics", + "operation": "Read BehaviorAnalytics data", + "description": "Read data from the BehaviorAnalytics table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/BlockchainApplicationLog/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "BlockchainApplicationLog", + "operation": "Read BlockchainApplicationLog data", + "description": "Read data from the BlockchainApplicationLog table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/BlockchainProxyLog/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "BlockchainProxyLog", + "operation": "Read BlockchainProxyLog data", + "description": "Read data from the BlockchainProxyLog table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/CassandraAudit/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "CassandraAudit", + "operation": "Read CassandraAudit data", + "description": "Read data from the CassandraAudit table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/CassandraLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "CassandraLogs", + "operation": "Read CassandraLogs data", + "description": "Read data from the CassandraLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/CDBCassandraRequests/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "CDBCassandraRequests", + "operation": "Read CDBCassandraRequests data", + "description": "Read data from the CDBCassandraRequests table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/CDBControlPlaneRequests/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "CDBControlPlaneRequests", + "operation": "Read CDBControlPlaneRequests data", + "description": "Read data from the CDBControlPlaneRequests table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/CDBDataPlaneRequests/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "CDBDataPlaneRequests", + "operation": "Read CDBDataPlaneRequests data", + "description": "Read data from the CDBDataPlaneRequests table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/CDBGremlinRequests/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "CDBGremlinRequests", + "operation": "Read CDBGremlinRequests data", + "description": "Read data from the CDBGremlinRequests table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/CDBMongoRequests/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "CDBMongoRequests", + "operation": "Read CDBMongoRequests data", + "description": "Read data from the CDBMongoRequests table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/CDBPartitionKeyRUConsumption/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "CDBPartitionKeyRUConsumption", + "operation": "Read CDBPartitionKeyRUConsumption data", + "description": "Read data from the CDBPartitionKeyRUConsumption table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/CDBPartitionKeyStatistics/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "CDBPartitionKeyStatistics", + "operation": "Read CDBPartitionKeyStatistics data", + "description": "Read data from the CDBPartitionKeyStatistics table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/CDBQueryRuntimeStatistics/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "CDBQueryRuntimeStatistics", + "operation": "Read CDBQueryRuntimeStatistics data", + "description": "Read data from the CDBQueryRuntimeStatistics table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/CIEventsAudit/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "CIEventsAudit", + "operation": "Read CIEventsAudit data", + "description": "Read data from the CIEventsAudit table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/CIEventsOperational/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "CIEventsOperational", + "operation": "Read CIEventsOperational data", + "description": "Read data from the CIEventsOperational table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/CloudAppEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "CloudAppEvents", + "operation": "Read CloudAppEvents data", + "description": "Read data from the CloudAppEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/CommonSecurityLog/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "CommonSecurityLog", + "operation": "Read CommonSecurityLog data", + "description": "Read data from the CommonSecurityLog table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ComputerGroup/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ComputerGroup", + "operation": "Read ComputerGroup data", + "description": "Read data from the ComputerGroup table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ConfigurationChange/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ConfigurationChange", + "operation": "Read ConfigurationChange data", + "description": "Read data from the ConfigurationChange table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ConfigurationData/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ConfigurationData", + "operation": "Read ConfigurationData data", + "description": "Read data from the ConfigurationData table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ContainerImageInventory/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ContainerImageInventory", + "operation": "Read ContainerImageInventory data", + "description": "Read data from the ContainerImageInventory table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ContainerInventory/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ContainerInventory", + "operation": "Read ContainerInventory data", + "description": "Read data from the ContainerInventory table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ContainerLog/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ContainerLog", + "operation": "Read ContainerLog data", + "description": "Read data from the ContainerLog table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ContainerLogV2/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ContainerLogV2", + "operation": "Read ContainerLogV2 data", + "description": "Read data from the ContainerLogV2 table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ContainerNodeInventory/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ContainerNodeInventory", + "operation": "Read ContainerNodeInventory data", + "description": "Read data from the ContainerNodeInventory table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ContainerRegistryLoginEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ContainerRegistryLoginEvents", + "operation": "Read ContainerRegistryLoginEvents data", + "description": "Read data from the ContainerRegistryLoginEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ContainerRegistryRepositoryEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ContainerRegistryRepositoryEvents", + "operation": "Read ContainerRegistryRepositoryEvents data", + "description": "Read data from the ContainerRegistryRepositoryEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ContainerServiceLog/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ContainerServiceLog", + "operation": "Read ContainerServiceLog data", + "description": "Read data from the ContainerServiceLog table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/CoreAzureBackup/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "CoreAzureBackup", + "operation": "Read CoreAzureBackup data", + "description": "Read data from the CoreAzureBackup table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksAccounts/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DatabricksAccounts", + "operation": "Read DatabricksAccounts data", + "description": "Read data from the DatabricksAccounts table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksClusters/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DatabricksClusters", + "operation": "Read DatabricksClusters data", + "description": "Read data from the DatabricksClusters table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksDatabricksSQL/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DatabricksDatabricksSQL", + "operation": "Read DatabricksDatabricksSQL data", + "description": "Read data from the DatabricksDatabricksSQL table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksDBFS/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DatabricksDBFS", + "operation": "Read DatabricksDBFS data", + "description": "Read data from the DatabricksDBFS table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksDeltaPipelines/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DatabricksDeltaPipelines", + "operation": "Read DatabricksDeltaPipelines data", + "description": "Read data from the DatabricksDeltaPipelines table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksFeatureStore/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DatabricksFeatureStore", + "operation": "Read DatabricksFeatureStore data", + "description": "Read data from the DatabricksFeatureStore table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksGenie/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DatabricksGenie", + "operation": "Read DatabricksGenie data", + "description": "Read data from the DatabricksGenie table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksGlobalInitScripts/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DatabricksGlobalInitScripts", + "operation": "Read DatabricksGlobalInitScripts data", + "description": "Read data from the DatabricksGlobalInitScripts table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksIAMRole/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DatabricksIAMRole", + "operation": "Read DatabricksIAMRole data", + "description": "Read data from the DatabricksIAMRole table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksInstancePools/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DatabricksInstancePools", + "operation": "Read DatabricksInstancePools data", + "description": "Read data from the DatabricksInstancePools table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksJobs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DatabricksJobs", + "operation": "Read DatabricksJobs data", + "description": "Read data from the DatabricksJobs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksMLflowAcledArtifact/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DatabricksMLflowAcledArtifact", + "operation": "Read DatabricksMLflowAcledArtifact data", + "description": "Read data from the DatabricksMLflowAcledArtifact table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksMLflowExperiment/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DatabricksMLflowExperiment", + "operation": "Read DatabricksMLflowExperiment data", + "description": "Read data from the DatabricksMLflowExperiment table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksModelRegistry/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DatabricksModelRegistry", + "operation": "Read DatabricksModelRegistry data", + "description": "Read data from the DatabricksModelRegistry table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksNotebook/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DatabricksNotebook", + "operation": "Read DatabricksNotebook data", + "description": "Read data from the DatabricksNotebook table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksRemoteHistoryService/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DatabricksRemoteHistoryService", + "operation": "Read DatabricksRemoteHistoryService data", + "description": "Read data from the DatabricksRemoteHistoryService table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksRepos/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DatabricksRepos", + "operation": "Read DatabricksRepos data", + "description": "Read data from the DatabricksRepos table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksSecrets/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DatabricksSecrets", + "operation": "Read DatabricksSecrets data", + "description": "Read data from the DatabricksSecrets table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksSQL/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DatabricksSQL", + "operation": "Read DatabricksSQL data", + "description": "Read data from the DatabricksSQL table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksSQLPermissions/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DatabricksSQLPermissions", + "operation": "Read DatabricksSQLPermissions data", + "description": "Read data from the DatabricksSQLPermissions table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksSSH/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DatabricksSSH", + "operation": "Read DatabricksSSH data", + "description": "Read data from the DatabricksSSH table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksUnityCatalog/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DatabricksUnityCatalog", + "operation": "Read DatabricksUnityCatalog data", + "description": "Read data from the DatabricksUnityCatalog table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksWorkspace/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DatabricksWorkspace", + "operation": "Read DatabricksWorkspace data", + "description": "Read data from the DatabricksWorkspace table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/dependencies/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "dependencies", + "operation": "Read dependencies data", + "description": "Read data from the dependencies table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DeviceAppCrash/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DeviceAppCrash", + "operation": "Read DeviceAppCrash data", + "description": "Read data from the DeviceAppCrash table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DeviceAppLaunch/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DeviceAppLaunch", + "operation": "Read DeviceAppLaunch data", + "description": "Read data from the DeviceAppLaunch table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DeviceCalendar/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DeviceCalendar", + "operation": "Read DeviceCalendar data", + "description": "Read data from the DeviceCalendar table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DeviceCleanup/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DeviceCleanup", + "operation": "Read DeviceCleanup data", + "description": "Read data from the DeviceCleanup table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DeviceConnectSession/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DeviceConnectSession", + "operation": "Read DeviceConnectSession data", + "description": "Read data from the DeviceConnectSession table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DeviceEtw/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DeviceEtw", + "operation": "Read DeviceEtw data", + "description": "Read data from the DeviceEtw table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DeviceEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DeviceEvents", + "operation": "Read DeviceEvents data", + "description": "Read data from the DeviceEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DeviceFileCertificateInfo/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DeviceFileCertificateInfo", + "operation": "Read DeviceFileCertificateInfo data", + "description": "Read data from the DeviceFileCertificateInfo table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DeviceFileEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DeviceFileEvents", + "operation": "Read DeviceFileEvents data", + "description": "Read data from the DeviceFileEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DeviceHardwareHealth/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DeviceHardwareHealth", + "operation": "Read DeviceHardwareHealth data", + "description": "Read data from the DeviceHardwareHealth table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DeviceHealth/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DeviceHealth", + "operation": "Read DeviceHealth data", + "description": "Read data from the DeviceHealth table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DeviceHeartbeat/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DeviceHeartbeat", + "operation": "Read DeviceHeartbeat data", + "description": "Read data from the DeviceHeartbeat table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DeviceImageLoadEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DeviceImageLoadEvents", + "operation": "Read DeviceImageLoadEvents data", + "description": "Read data from the DeviceImageLoadEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DeviceInfo/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DeviceInfo", + "operation": "Read DeviceInfo data", + "description": "Read data from the DeviceInfo table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DeviceLogonEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DeviceLogonEvents", + "operation": "Read DeviceLogonEvents data", + "description": "Read data from the DeviceLogonEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DeviceNetworkEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DeviceNetworkEvents", + "operation": "Read DeviceNetworkEvents data", + "description": "Read data from the DeviceNetworkEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DeviceNetworkInfo/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DeviceNetworkInfo", + "operation": "Read DeviceNetworkInfo data", + "description": "Read data from the DeviceNetworkInfo table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DeviceProcessEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DeviceProcessEvents", + "operation": "Read DeviceProcessEvents data", + "description": "Read data from the DeviceProcessEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DeviceRegistryEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DeviceRegistryEvents", + "operation": "Read DeviceRegistryEvents data", + "description": "Read data from the DeviceRegistryEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DeviceSkypeHeartbeat/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DeviceSkypeHeartbeat", + "operation": "Read DeviceSkypeHeartbeat data", + "description": "Read data from the DeviceSkypeHeartbeat table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DeviceSkypeSignIn/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DeviceSkypeSignIn", + "operation": "Read DeviceSkypeSignIn data", + "description": "Read data from the DeviceSkypeSignIn table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DHAppReliability/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DHAppReliability", + "operation": "Read DHAppReliability data", + "description": "Read data from the DHAppReliability table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DHDriverReliability/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DHDriverReliability", + "operation": "Read DHDriverReliability data", + "description": "Read data from the DHDriverReliability table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DHLogonFailures/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DHLogonFailures", + "operation": "Read DHLogonFailures data", + "description": "Read data from the DHLogonFailures table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DHLogonMetrics/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DHLogonMetrics", + "operation": "Read DHLogonMetrics data", + "description": "Read data from the DHLogonMetrics table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DHOSCrashData/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DHOSCrashData", + "operation": "Read DHOSCrashData data", + "description": "Read data from the DHOSCrashData table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DHOSReliability/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DHOSReliability", + "operation": "Read DHOSReliability data", + "description": "Read data from the DHOSReliability table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DHWipAppLearning/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DHWipAppLearning", + "operation": "Read DHWipAppLearning data", + "description": "Read data from the DHWipAppLearning table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DnsEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DnsEvents", + "operation": "Read DnsEvents data", + "description": "Read data from the DnsEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DnsInventory/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DnsInventory", + "operation": "Read DnsInventory data", + "description": "Read data from the DnsInventory table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DSMAzureBlobStorageLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DSMAzureBlobStorageLogs", + "operation": "Read DSMAzureBlobStorageLogs data", + "description": "Read data from the DSMAzureBlobStorageLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DSMDataClassificationLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DSMDataClassificationLogs", + "operation": "Read DSMDataClassificationLogs data", + "description": "Read data from the DSMDataClassificationLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DSMDataLabelingLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DSMDataLabelingLogs", + "operation": "Read DSMDataLabelingLogs data", + "description": "Read data from the DSMDataLabelingLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/DynamicEventCollection/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "DynamicEventCollection", + "operation": "Read DynamicEventCollection data", + "description": "Read data from the DynamicEventCollection table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/Dynamics365Activity/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "Dynamics365Activity", + "operation": "Read Dynamics365Activity data", + "description": "Read data from the Dynamics365Activity table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/EmailAttachmentInfo/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "EmailAttachmentInfo", + "operation": "Read EmailAttachmentInfo data", + "description": "Read data from the EmailAttachmentInfo table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/EmailEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "EmailEvents", + "operation": "Read EmailEvents data", + "description": "Read data from the EmailEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/EmailPostDeliveryEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "EmailPostDeliveryEvents", + "operation": "Read EmailPostDeliveryEvents data", + "description": "Read data from the EmailPostDeliveryEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/EmailUrlInfo/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "EmailUrlInfo", + "operation": "Read EmailUrlInfo data", + "description": "Read data from the EmailUrlInfo table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ETWEvent/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ETWEvent", + "operation": "Read ETWEvent data", + "description": "Read data from the ETWEvent table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/Event/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "Event", + "operation": "Read Event data", + "description": "Read data from the Event table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ExchangeAssessmentRecommendation/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ExchangeAssessmentRecommendation", + "operation": "Read ExchangeAssessmentRecommendation data", + "description": "Read data from the ExchangeAssessmentRecommendation table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ExchangeOnlineAssessmentRecommendation/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ExchangeOnlineAssessmentRecommendation", + "operation": "Read ExchangeOnlineAssessmentRecommendation data", + "description": "Read data from the ExchangeOnlineAssessmentRecommendation table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/FailedIngestion/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "FailedIngestion", + "operation": "Read FailedIngestion data", + "description": "Read data from the FailedIngestion table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/FunctionAppLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "FunctionAppLogs", + "operation": "Read FunctionAppLogs data", + "description": "Read data from the FunctionAppLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightAmbariClusterAlerts/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightAmbariClusterAlerts", + "operation": "Read HDInsightAmbariClusterAlerts data", + "description": "Read data from the HDInsightAmbariClusterAlerts table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightAmbariSystemMetrics/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightAmbariSystemMetrics", + "operation": "Read HDInsightAmbariSystemMetrics data", + "description": "Read data from the HDInsightAmbariSystemMetrics table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightGatewayAuditLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightGatewayAuditLogs", + "operation": "Read HDInsightGatewayAuditLogs data", + "description": "Read data from the HDInsightGatewayAuditLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightHadoopAndYarnLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightHadoopAndYarnLogs", + "operation": "Read HDInsightHadoopAndYarnLogs data", + "description": "Read data from the HDInsightHadoopAndYarnLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightHadoopAndYarnMetrics/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightHadoopAndYarnMetrics", + "operation": "Read HDInsightHadoopAndYarnMetrics data", + "description": "Read data from the HDInsightHadoopAndYarnMetrics table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightHBaseLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightHBaseLogs", + "operation": "Read HDInsightHBaseLogs data", + "description": "Read data from the HDInsightHBaseLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightHBaseMetrics/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightHBaseMetrics", + "operation": "Read HDInsightHBaseMetrics data", + "description": "Read data from the HDInsightHBaseMetrics table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightHiveAndLLAPLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightHiveAndLLAPLogs", + "operation": "Read HDInsightHiveAndLLAPLogs data", + "description": "Read data from the HDInsightHiveAndLLAPLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightHiveAndLLAPMetrics/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightHiveAndLLAPMetrics", + "operation": "Read HDInsightHiveAndLLAPMetrics data", + "description": "Read data from the HDInsightHiveAndLLAPMetrics table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightHiveQueryAppStats/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightHiveQueryAppStats", + "operation": "Read HDInsightHiveQueryAppStats data", + "description": "Read data from the HDInsightHiveQueryAppStats table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightHiveTezAppStats/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightHiveTezAppStats", + "operation": "Read HDInsightHiveTezAppStats data", + "description": "Read data from the HDInsightHiveTezAppStats table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightJupyterNotebookEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightJupyterNotebookEvents", + "operation": "Read HDInsightJupyterNotebookEvents data", + "description": "Read data from the HDInsightJupyterNotebookEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightKafkaLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightKafkaLogs", + "operation": "Read HDInsightKafkaLogs data", + "description": "Read data from the HDInsightKafkaLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightKafkaMetrics/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightKafkaMetrics", + "operation": "Read HDInsightKafkaMetrics data", + "description": "Read data from the HDInsightKafkaMetrics table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightOozieLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightOozieLogs", + "operation": "Read HDInsightOozieLogs data", + "description": "Read data from the HDInsightOozieLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightRangerAuditLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightRangerAuditLogs", + "operation": "Read HDInsightRangerAuditLogs data", + "description": "Read data from the HDInsightRangerAuditLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightSecurityLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightSecurityLogs", + "operation": "Read HDInsightSecurityLogs data", + "description": "Read data from the HDInsightSecurityLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightSparkApplicationEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightSparkApplicationEvents", + "operation": "Read HDInsightSparkApplicationEvents data", + "description": "Read data from the HDInsightSparkApplicationEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightSparkBlockManagerEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightSparkBlockManagerEvents", + "operation": "Read HDInsightSparkBlockManagerEvents data", + "description": "Read data from the HDInsightSparkBlockManagerEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightSparkEnvironmentEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightSparkEnvironmentEvents", + "operation": "Read HDInsightSparkEnvironmentEvents data", + "description": "Read data from the HDInsightSparkEnvironmentEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightSparkExecutorEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightSparkExecutorEvents", + "operation": "Read HDInsightSparkExecutorEvents data", + "description": "Read data from the HDInsightSparkExecutorEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightSparkExtraEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightSparkExtraEvents", + "operation": "Read HDInsightSparkExtraEvents data", + "description": "Read data from the HDInsightSparkExtraEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightSparkJobEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightSparkJobEvents", + "operation": "Read HDInsightSparkJobEvents data", + "description": "Read data from the HDInsightSparkJobEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightSparkLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightSparkLogs", + "operation": "Read HDInsightSparkLogs data", + "description": "Read data from the HDInsightSparkLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightSparkSQLExecutionEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightSparkSQLExecutionEvents", + "operation": "Read HDInsightSparkSQLExecutionEvents data", + "description": "Read data from the HDInsightSparkSQLExecutionEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightSparkStageEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightSparkStageEvents", + "operation": "Read HDInsightSparkStageEvents data", + "description": "Read data from the HDInsightSparkStageEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightSparkStageTaskAccumulables/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightSparkStageTaskAccumulables", + "operation": "Read HDInsightSparkStageTaskAccumulables data", + "description": "Read data from the HDInsightSparkStageTaskAccumulables table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightSparkTaskEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightSparkTaskEvents", + "operation": "Read HDInsightSparkTaskEvents data", + "description": "Read data from the HDInsightSparkTaskEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightStormLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightStormLogs", + "operation": "Read HDInsightStormLogs data", + "description": "Read data from the HDInsightStormLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightStormMetrics/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightStormMetrics", + "operation": "Read HDInsightStormMetrics data", + "description": "Read data from the HDInsightStormMetrics table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightStormTopologyMetrics/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HDInsightStormTopologyMetrics", + "operation": "Read HDInsightStormTopologyMetrics data", + "description": "Read data from the HDInsightStormTopologyMetrics table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HealthStateChangeEvent/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HealthStateChangeEvent", + "operation": "Read HealthStateChangeEvent data", + "description": "Read data from the HealthStateChangeEvent table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/Heartbeat/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "Heartbeat", + "operation": "Read Heartbeat data", + "description": "Read data from the Heartbeat table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/HuntingBookmark/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "HuntingBookmark", + "operation": "Read HuntingBookmark data", + "description": "Read data from the HuntingBookmark table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/IdentityDirectoryEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "IdentityDirectoryEvents", + "operation": "Read IdentityDirectoryEvents data", + "description": "Read data from the IdentityDirectoryEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/IdentityInfo/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "IdentityInfo", + "operation": "Read IdentityInfo data", + "description": "Read data from the IdentityInfo table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/IdentityLogonEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "IdentityLogonEvents", + "operation": "Read IdentityLogonEvents data", + "description": "Read data from the IdentityLogonEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/IdentityQueryEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "IdentityQueryEvents", + "operation": "Read IdentityQueryEvents data", + "description": "Read data from the IdentityQueryEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/IISAssessmentRecommendation/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "IISAssessmentRecommendation", + "operation": "Read IISAssessmentRecommendation data", + "description": "Read data from the IISAssessmentRecommendation table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/InsightsMetrics/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "InsightsMetrics", + "operation": "Read InsightsMetrics data", + "description": "Read data from the InsightsMetrics table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/IntuneAuditLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "IntuneAuditLogs", + "operation": "Read IntuneAuditLogs data", + "description": "Read data from the IntuneAuditLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/IntuneDeviceComplianceOrg/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "IntuneDeviceComplianceOrg", + "operation": "Read IntuneDeviceComplianceOrg data", + "description": "Read data from the IntuneDeviceComplianceOrg table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/IntuneDevices/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "IntuneDevices", + "operation": "Read IntuneDevices data", + "description": "Read data from the IntuneDevices table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/IntuneOperationalLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "IntuneOperationalLogs", + "operation": "Read IntuneOperationalLogs data", + "description": "Read data from the IntuneOperationalLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/IoTHubDistributedTracing/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "IoTHubDistributedTracing", + "operation": "Read IoTHubDistributedTracing data", + "description": "Read data from the IoTHubDistributedTracing table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/KubeEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "KubeEvents", + "operation": "Read KubeEvents data", + "description": "Read data from the KubeEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/KubeHealth/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "KubeHealth", + "operation": "Read KubeHealth data", + "description": "Read data from the KubeHealth table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/KubeMonAgentEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "KubeMonAgentEvents", + "operation": "Read KubeMonAgentEvents data", + "description": "Read data from the KubeMonAgentEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/KubeNodeInventory/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "KubeNodeInventory", + "operation": "Read KubeNodeInventory data", + "description": "Read data from the KubeNodeInventory table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/KubePodInventory/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "KubePodInventory", + "operation": "Read KubePodInventory data", + "description": "Read data from the KubePodInventory table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/KubePVInventory/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "KubePVInventory", + "operation": "Read KubePVInventory data", + "description": "Read data from the KubePVInventory table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/KubeServices/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "KubeServices", + "operation": "Read KubeServices data", + "description": "Read data from the KubeServices table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/LAQueryLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "LAQueryLogs", + "operation": "Read LAQueryLogs data", + "description": "Read data from the LAQueryLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/LinuxAuditLog/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "LinuxAuditLog", + "operation": "Read LinuxAuditLog data", + "description": "Read data from the LinuxAuditLog table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MAApplication/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MAApplication", + "operation": "Read MAApplication data", + "description": "Read data from the MAApplication table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MAApplicationHealth/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MAApplicationHealth", + "operation": "Read MAApplicationHealth data", + "description": "Read data from the MAApplicationHealth table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MAApplicationHealthAlternativeVersions/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MAApplicationHealthAlternativeVersions", + "operation": "Read MAApplicationHealthAlternativeVersions data", + "description": "Read data from the MAApplicationHealthAlternativeVersions table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MAApplicationHealthIssues/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MAApplicationHealthIssues", + "operation": "Read MAApplicationHealthIssues data", + "description": "Read data from the MAApplicationHealthIssues table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MAApplicationInstance/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MAApplicationInstance", + "operation": "Read MAApplicationInstance data", + "description": "Read data from the MAApplicationInstance table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MAApplicationInstanceReadiness/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MAApplicationInstanceReadiness", + "operation": "Read MAApplicationInstanceReadiness data", + "description": "Read data from the MAApplicationInstanceReadiness table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MAApplicationReadiness/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MAApplicationReadiness", + "operation": "Read MAApplicationReadiness data", + "description": "Read data from the MAApplicationReadiness table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MADeploymentPlan/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MADeploymentPlan", + "operation": "Read MADeploymentPlan data", + "description": "Read data from the MADeploymentPlan table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MADevice/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MADevice", + "operation": "Read MADevice data", + "description": "Read data from the MADevice table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MADeviceNotEnrolled/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MADeviceNotEnrolled", + "operation": "Read MADeviceNotEnrolled data", + "description": "Read data from the MADeviceNotEnrolled table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MADeviceNRT/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MADeviceNRT", + "operation": "Read MADeviceNRT data", + "description": "Read data from the MADeviceNRT table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MADeviceReadiness/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MADeviceReadiness", + "operation": "Read MADeviceReadiness data", + "description": "Read data from the MADeviceReadiness table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MADriverInstanceReadiness/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MADriverInstanceReadiness", + "operation": "Read MADriverInstanceReadiness data", + "description": "Read data from the MADriverInstanceReadiness table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MADriverReadiness/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MADriverReadiness", + "operation": "Read MADriverReadiness data", + "description": "Read data from the MADriverReadiness table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MAOfficeAddin/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MAOfficeAddin", + "operation": "Read MAOfficeAddin data", + "description": "Read data from the MAOfficeAddin table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MAOfficeAddinInstance/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MAOfficeAddinInstance", + "operation": "Read MAOfficeAddinInstance data", + "description": "Read data from the MAOfficeAddinInstance table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MAOfficeAddinReadiness/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MAOfficeAddinReadiness", + "operation": "Read MAOfficeAddinReadiness data", + "description": "Read data from the MAOfficeAddinReadiness table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MAOfficeAppInstance/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MAOfficeAppInstance", + "operation": "Read MAOfficeAppInstance data", + "description": "Read data from the MAOfficeAppInstance table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MAOfficeAppReadiness/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MAOfficeAppReadiness", + "operation": "Read MAOfficeAppReadiness data", + "description": "Read data from the MAOfficeAppReadiness table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MAOfficeBuildInfo/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MAOfficeBuildInfo", + "operation": "Read MAOfficeBuildInfo data", + "description": "Read data from the MAOfficeBuildInfo table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MAOfficeCurrencyAssessment/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MAOfficeCurrencyAssessment", + "operation": "Read MAOfficeCurrencyAssessment data", + "description": "Read data from the MAOfficeCurrencyAssessment table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MAOfficeSuiteInstance/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MAOfficeSuiteInstance", + "operation": "Read MAOfficeSuiteInstance data", + "description": "Read data from the MAOfficeSuiteInstance table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MAProposedPilotDevices/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MAProposedPilotDevices", + "operation": "Read MAProposedPilotDevices data", + "description": "Read data from the MAProposedPilotDevices table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MAWindowsBuildInfo/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MAWindowsBuildInfo", + "operation": "Read MAWindowsBuildInfo data", + "description": "Read data from the MAWindowsBuildInfo table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MAWindowsCurrencyAssessment/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MAWindowsCurrencyAssessment", + "operation": "Read MAWindowsCurrencyAssessment data", + "description": "Read data from the MAWindowsCurrencyAssessment table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MAWindowsCurrencyAssessmentDailyCounts/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MAWindowsCurrencyAssessmentDailyCounts", + "operation": "Read MAWindowsCurrencyAssessmentDailyCounts data", + "description": "Read data from the MAWindowsCurrencyAssessmentDailyCounts table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MAWindowsDeploymentStatus/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MAWindowsDeploymentStatus", + "operation": "Read MAWindowsDeploymentStatus data", + "description": "Read data from the MAWindowsDeploymentStatus table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MAWindowsDeploymentStatusNRT/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MAWindowsDeploymentStatusNRT", + "operation": "Read MAWindowsDeploymentStatusNRT data", + "description": "Read data from the MAWindowsDeploymentStatusNRT table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/McasShadowItReporting/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "McasShadowItReporting", + "operation": "Read McasShadowItReporting data", + "description": "Read data from the McasShadowItReporting table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MCCEventLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MCCEventLogs", + "operation": "Read MCCEventLogs data", + "description": "Read data from the MCCEventLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MCVPAuditLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MCVPAuditLogs", + "operation": "Read MCVPAuditLogs data", + "description": "Read data from the MCVPAuditLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MCVPOperationLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MCVPOperationLogs", + "operation": "Read MCVPOperationLogs data", + "description": "Read data from the MCVPOperationLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MicrosoftAzureBastionAuditLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MicrosoftAzureBastionAuditLogs", + "operation": "Read MicrosoftAzureBastionAuditLogs data", + "description": "Read data from the MicrosoftAzureBastionAuditLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MicrosoftDataShareReceivedSnapshotLog/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MicrosoftDataShareReceivedSnapshotLog", + "operation": "Read MicrosoftDataShareReceivedSnapshotLog data", + "description": "Read data from the MicrosoftDataShareReceivedSnapshotLog table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MicrosoftDataShareSentSnapshotLog/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MicrosoftDataShareSentSnapshotLog", + "operation": "Read MicrosoftDataShareSentSnapshotLog data", + "description": "Read data from the MicrosoftDataShareSentSnapshotLog table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MicrosoftDataShareShareLog/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MicrosoftDataShareShareLog", + "operation": "Read MicrosoftDataShareShareLog data", + "description": "Read data from the MicrosoftDataShareShareLog table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MicrosoftDynamicsTelemetryPerformanceLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MicrosoftDynamicsTelemetryPerformanceLogs", + "operation": "Read MicrosoftDynamicsTelemetryPerformanceLogs data", + "description": "Read data from the MicrosoftDynamicsTelemetryPerformanceLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MicrosoftDynamicsTelemetrySystemMetricsLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MicrosoftDynamicsTelemetrySystemMetricsLogs", + "operation": "Read MicrosoftDynamicsTelemetrySystemMetricsLogs data", + "description": "Read data from the MicrosoftDynamicsTelemetrySystemMetricsLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/MicrosoftHealthcareApisAuditLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "MicrosoftHealthcareApisAuditLogs", + "operation": "Read MicrosoftHealthcareApisAuditLogs data", + "description": "Read data from the MicrosoftHealthcareApisAuditLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/NetworkAccessTraffic/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "NetworkAccessTraffic", + "operation": "Read NetworkAccessTraffic data", + "description": "Read data from the NetworkAccessTraffic table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/NetworkMonitoring/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "NetworkMonitoring", + "operation": "Read NetworkMonitoring data", + "description": "Read data from the NetworkMonitoring table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/NetworkSessions/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "NetworkSessions", + "operation": "Read NetworkSessions data", + "description": "Read data from the NetworkSessions table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/NWConnectionMonitorDestinationListenerResult/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "NWConnectionMonitorDestinationListenerResult", + "operation": "Read NWConnectionMonitorDestinationListenerResult data", + "description": "Read data from the NWConnectionMonitorDestinationListenerResult table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/NWConnectionMonitorDNSResult/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "NWConnectionMonitorDNSResult", + "operation": "Read NWConnectionMonitorDNSResult data", + "description": "Read data from the NWConnectionMonitorDNSResult table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/NWConnectionMonitorPathResult/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "NWConnectionMonitorPathResult", + "operation": "Read NWConnectionMonitorPathResult data", + "description": "Read data from the NWConnectionMonitorPathResult table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/NWConnectionMonitorTestResult/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "NWConnectionMonitorTestResult", + "operation": "Read NWConnectionMonitorTestResult data", + "description": "Read data from the NWConnectionMonitorTestResult table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/OEPAirFlowTask/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "OEPAirFlowTask", + "operation": "Read OEPAirFlowTask data", + "description": "Read data from the OEPAirFlowTask table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/OEPElasticOperator/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "OEPElasticOperator", + "operation": "Read OEPElasticOperator data", + "description": "Read data from the OEPElasticOperator table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/OEPElasticsearch/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "OEPElasticsearch", + "operation": "Read OEPElasticsearch data", + "description": "Read data from the OEPElasticsearch table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/OfficeActivity/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "OfficeActivity", + "operation": "Read OfficeActivity data", + "description": "Read data from the OfficeActivity table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/OLPSupplyChainEntityOperations/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "OLPSupplyChainEntityOperations", + "operation": "Read OLPSupplyChainEntityOperations data", + "description": "Read data from the OLPSupplyChainEntityOperations table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/OLPSupplyChainEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "OLPSupplyChainEvents", + "operation": "Read OLPSupplyChainEvents data", + "description": "Read data from the OLPSupplyChainEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/Operation/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "Operation", + "operation": "Read Operation data", + "description": "Read data from the Operation table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/Perf/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "Perf", + "operation": "Read Perf data", + "description": "Read data from the Perf table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/PowerBIActivity/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "PowerBIActivity", + "operation": "Read PowerBIActivity data", + "description": "Read data from the PowerBIActivity table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/PowerBIAuditTenant/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "PowerBIAuditTenant", + "operation": "Read PowerBIAuditTenant data", + "description": "Read data from the PowerBIAuditTenant table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/PowerBIDatasetsTenant/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "PowerBIDatasetsTenant", + "operation": "Read PowerBIDatasetsTenant data", + "description": "Read data from the PowerBIDatasetsTenant table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/PowerBIDatasetsTenantPreview/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "PowerBIDatasetsTenantPreview", + "operation": "Read PowerBIDatasetsTenantPreview data", + "description": "Read data from the PowerBIDatasetsTenantPreview table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/PowerBIDatasetsWorkspace/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "PowerBIDatasetsWorkspace", + "operation": "Read PowerBIDatasetsWorkspace data", + "description": "Read data from the PowerBIDatasetsWorkspace table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/PowerBIDatasetsWorkspacePreview/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "PowerBIDatasetsWorkspacePreview", + "operation": "Read PowerBIDatasetsWorkspacePreview data", + "description": "Read data from the PowerBIDatasetsWorkspacePreview table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/PowerBIReportUsageTenant/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "PowerBIReportUsageTenant", + "operation": "Read PowerBIReportUsageTenant data", + "description": "Read data from the PowerBIReportUsageTenant table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ProjectActivity/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ProjectActivity", + "operation": "Read ProjectActivity data", + "description": "Read data from the ProjectActivity table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ProtectionStatus/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ProtectionStatus", + "operation": "Read ProtectionStatus data", + "description": "Read data from the ProtectionStatus table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/PurviewDataSensitivityLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "PurviewDataSensitivityLogs", + "operation": "Read PurviewDataSensitivityLogs data", + "description": "Read data from the PurviewDataSensitivityLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/PurviewScanStatusLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "PurviewScanStatusLogs", + "operation": "Read PurviewScanStatusLogs data", + "description": "Read data from the PurviewScanStatusLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "query", + "operation": "Query Data in Workspace", + "description": "Run queries over the data in the workspace" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/requests/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "requests", + "operation": "Read requests data", + "description": "Read data from the requests table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ResourceManagementPublicAccessLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ResourceManagementPublicAccessLogs", + "operation": "Read ResourceManagementPublicAccessLogs data", + "description": "Read data from the ResourceManagementPublicAccessLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SCCMAssessmentRecommendation/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SCCMAssessmentRecommendation", + "operation": "Read SCCMAssessmentRecommendation data", + "description": "Read data from the SCCMAssessmentRecommendation table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SCOMAssessmentRecommendation/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SCOMAssessmentRecommendation", + "operation": "Read SCOMAssessmentRecommendation data", + "description": "Read data from the SCOMAssessmentRecommendation table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SecureScoreControls/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SecureScoreControls", + "operation": "Read SecureScoreControls data", + "description": "Read data from the SecureScoreControls table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SecureScores/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SecureScores", + "operation": "Read SecureScores data", + "description": "Read data from the SecureScores table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SecurityAlert/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SecurityAlert", + "operation": "Read SecurityAlert data", + "description": "Read data from the SecurityAlert table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SecurityBaseline/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SecurityBaseline", + "operation": "Read SecurityBaseline data", + "description": "Read data from the SecurityBaseline table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SecurityBaselineSummary/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SecurityBaselineSummary", + "operation": "Read SecurityBaselineSummary data", + "description": "Read data from the SecurityBaselineSummary table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SecurityDetection/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SecurityDetection", + "operation": "Read SecurityDetection data", + "description": "Read data from the SecurityDetection table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SecurityEvent/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SecurityEvent", + "operation": "Read SecurityEvent data", + "description": "Read data from the SecurityEvent table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SecurityIncident/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SecurityIncident", + "operation": "Read SecurityIncident data", + "description": "Read data from the SecurityIncident table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SecurityIoTRawEvent/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SecurityIoTRawEvent", + "operation": "Read SecurityIoTRawEvent data", + "description": "Read data from the SecurityIoTRawEvent table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SecurityNestedRecommendation/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SecurityNestedRecommendation", + "operation": "Read SecurityNestedRecommendation data", + "description": "Read data from the SecurityNestedRecommendation table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SecurityRecommendation/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SecurityRecommendation", + "operation": "Read SecurityRecommendation data", + "description": "Read data from the SecurityRecommendation table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SecurityRegulatoryCompliance/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SecurityRegulatoryCompliance", + "operation": "Read SecurityRegulatoryCompliance data", + "description": "Read data from the SecurityRegulatoryCompliance table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SentinelAudit/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SentinelAudit", + "operation": "Read SentinelAudit data", + "description": "Read data from the SentinelAudit table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SentinelHealth/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SentinelHealth", + "operation": "Read SentinelHealth data", + "description": "Read data from the SentinelHealth table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ServiceFabricOperationalEvent/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ServiceFabricOperationalEvent", + "operation": "Read ServiceFabricOperationalEvent data", + "description": "Read data from the ServiceFabricOperationalEvent table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ServiceFabricReliableActorEvent/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ServiceFabricReliableActorEvent", + "operation": "Read ServiceFabricReliableActorEvent data", + "description": "Read data from the ServiceFabricReliableActorEvent table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ServiceFabricReliableServiceEvent/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ServiceFabricReliableServiceEvent", + "operation": "Read ServiceFabricReliableServiceEvent data", + "description": "Read data from the ServiceFabricReliableServiceEvent table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SfBAssessmentRecommendation/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SfBAssessmentRecommendation", + "operation": "Read SfBAssessmentRecommendation data", + "description": "Read data from the SfBAssessmentRecommendation table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SfBOnlineAssessmentRecommendation/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SfBOnlineAssessmentRecommendation", + "operation": "Read SfBOnlineAssessmentRecommendation data", + "description": "Read data from the SfBOnlineAssessmentRecommendation table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SharePointOnlineAssessmentRecommendation/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SharePointOnlineAssessmentRecommendation", + "operation": "Read SharePointOnlineAssessmentRecommendation data", + "description": "Read data from the SharePointOnlineAssessmentRecommendation table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SignalRServiceDiagnosticLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SignalRServiceDiagnosticLogs", + "operation": "Read SignalRServiceDiagnosticLogs data", + "description": "Read data from the SignalRServiceDiagnosticLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SigninLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SigninLogs", + "operation": "Read SigninLogs data", + "description": "Read data from the SigninLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SPAssessmentRecommendation/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SPAssessmentRecommendation", + "operation": "Read SPAssessmentRecommendation data", + "description": "Read data from the SPAssessmentRecommendation table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SQLAssessmentRecommendation/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SQLAssessmentRecommendation", + "operation": "Read SQLAssessmentRecommendation data", + "description": "Read data from the SQLAssessmentRecommendation table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SqlAtpStatus/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SqlAtpStatus", + "operation": "Read SqlAtpStatus data", + "description": "Read data from the SqlAtpStatus table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SqlDataClassification/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SqlDataClassification", + "operation": "Read SqlDataClassification data", + "description": "Read data from the SqlDataClassification table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SQLSecurityAuditEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SQLSecurityAuditEvents", + "operation": "Read SQLSecurityAuditEvents data", + "description": "Read data from the SQLSecurityAuditEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SqlVulnerabilityAssessmentResult/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SqlVulnerabilityAssessmentResult", + "operation": "Read SqlVulnerabilityAssessmentResult data", + "description": "Read data from the SqlVulnerabilityAssessmentResult table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SqlVulnerabilityAssessmentScanStatus/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SqlVulnerabilityAssessmentScanStatus", + "operation": "Read SqlVulnerabilityAssessmentScanStatus data", + "description": "Read data from the SqlVulnerabilityAssessmentScanStatus table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/StorageBlobLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "StorageBlobLogs", + "operation": "Read StorageBlobLogs data", + "description": "Read data from the StorageBlobLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/StorageCacheOperationEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "StorageCacheOperationEvents", + "operation": "Read StorageCacheOperationEvents data", + "description": "Read data from the StorageCacheOperationEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/StorageCacheUpgradeEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "StorageCacheUpgradeEvents", + "operation": "Read StorageCacheUpgradeEvents data", + "description": "Read data from the StorageCacheUpgradeEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/StorageCacheWarningEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "StorageCacheWarningEvents", + "operation": "Read StorageCacheWarningEvents data", + "description": "Read data from the StorageCacheWarningEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/StorageFileLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "StorageFileLogs", + "operation": "Read StorageFileLogs data", + "description": "Read data from the StorageFileLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/StorageQueueLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "StorageQueueLogs", + "operation": "Read StorageQueueLogs data", + "description": "Read data from the StorageQueueLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/StorageTableLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "StorageTableLogs", + "operation": "Read StorageTableLogs data", + "description": "Read data from the StorageTableLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SucceededIngestion/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SucceededIngestion", + "operation": "Read SucceededIngestion data", + "description": "Read data from the SucceededIngestion table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SynapseBigDataPoolApplicationsEnded/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SynapseBigDataPoolApplicationsEnded", + "operation": "Read SynapseBigDataPoolApplicationsEnded data", + "description": "Read data from the SynapseBigDataPoolApplicationsEnded table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SynapseBuiltinSqlPoolRequestsEnded/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SynapseBuiltinSqlPoolRequestsEnded", + "operation": "Read SynapseBuiltinSqlPoolRequestsEnded data", + "description": "Read data from the SynapseBuiltinSqlPoolRequestsEnded table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SynapseDXCommand/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SynapseDXCommand", + "operation": "Read SynapseDXCommand data", + "description": "Read data from the SynapseDXCommand table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SynapseDXFailedIngestion/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SynapseDXFailedIngestion", + "operation": "Read SynapseDXFailedIngestion data", + "description": "Read data from the SynapseDXFailedIngestion table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SynapseDXIngestionBatching/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SynapseDXIngestionBatching", + "operation": "Read SynapseDXIngestionBatching data", + "description": "Read data from the SynapseDXIngestionBatching table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SynapseDXQuery/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SynapseDXQuery", + "operation": "Read SynapseDXQuery data", + "description": "Read data from the SynapseDXQuery table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SynapseDXSucceededIngestion/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SynapseDXSucceededIngestion", + "operation": "Read SynapseDXSucceededIngestion data", + "description": "Read data from the SynapseDXSucceededIngestion table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SynapseDXTableDetails/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SynapseDXTableDetails", + "operation": "Read SynapseDXTableDetails data", + "description": "Read data from the SynapseDXTableDetails table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SynapseDXTableUsageStatistics/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SynapseDXTableUsageStatistics", + "operation": "Read SynapseDXTableUsageStatistics data", + "description": "Read data from the SynapseDXTableUsageStatistics table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SynapseGatewayApiRequests/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SynapseGatewayApiRequests", + "operation": "Read SynapseGatewayApiRequests data", + "description": "Read data from the SynapseGatewayApiRequests table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SynapseGatewayEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SynapseGatewayEvents", + "operation": "Read SynapseGatewayEvents data", + "description": "Read data from the SynapseGatewayEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SynapseIntegrationActivityRuns/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SynapseIntegrationActivityRuns", + "operation": "Read SynapseIntegrationActivityRuns data", + "description": "Read data from the SynapseIntegrationActivityRuns table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SynapseIntegrationPipelineRuns/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SynapseIntegrationPipelineRuns", + "operation": "Read SynapseIntegrationPipelineRuns data", + "description": "Read data from the SynapseIntegrationPipelineRuns table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SynapseIntegrationTriggerRuns/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SynapseIntegrationTriggerRuns", + "operation": "Read SynapseIntegrationTriggerRuns data", + "description": "Read data from the SynapseIntegrationTriggerRuns table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SynapseRBACEvents/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SynapseRBACEvents", + "operation": "Read SynapseRBACEvents data", + "description": "Read data from the SynapseRBACEvents table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SynapseRbacOperations/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SynapseRbacOperations", + "operation": "Read SynapseRbacOperations data", + "description": "Read data from the SynapseRbacOperations table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SynapseScopePoolScopeJobsEnded/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SynapseScopePoolScopeJobsEnded", + "operation": "Read SynapseScopePoolScopeJobsEnded data", + "description": "Read data from the SynapseScopePoolScopeJobsEnded table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SynapseScopePoolScopeJobsStateChange/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SynapseScopePoolScopeJobsStateChange", + "operation": "Read SynapseScopePoolScopeJobsStateChange data", + "description": "Read data from the SynapseScopePoolScopeJobsStateChange table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SynapseSqlPoolDmsWorkers/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SynapseSqlPoolDmsWorkers", + "operation": "Read SynapseSqlPoolDmsWorkers data", + "description": "Read data from the SynapseSqlPoolDmsWorkers table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SynapseSqlPoolExecRequests/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SynapseSqlPoolExecRequests", + "operation": "Read SynapseSqlPoolExecRequests data", + "description": "Read data from the SynapseSqlPoolExecRequests table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SynapseSqlPoolRequestSteps/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SynapseSqlPoolRequestSteps", + "operation": "Read SynapseSqlPoolRequestSteps data", + "description": "Read data from the SynapseSqlPoolRequestSteps table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SynapseSqlPoolSqlRequests/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SynapseSqlPoolSqlRequests", + "operation": "Read SynapseSqlPoolSqlRequests data", + "description": "Read data from the SynapseSqlPoolSqlRequests table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/SynapseSqlPoolWaits/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "SynapseSqlPoolWaits", + "operation": "Read SynapseSqlPoolWaits data", + "description": "Read data from the SynapseSqlPoolWaits table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/Syslog/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "Syslog", + "operation": "Read Syslog data", + "description": "Read data from the Syslog table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/Tables.Custom/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "Tables.Custom", + "operation": "Read Custom Logs", + "description": "Reading data from any custom log" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/ThreatIntelligenceIndicator/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "ThreatIntelligenceIndicator", + "operation": "Read ThreatIntelligenceIndicator data", + "description": "Read data from the ThreatIntelligenceIndicator table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/TSIIngress/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "TSIIngress", + "operation": "Read TSIIngress data", + "description": "Read data from the TSIIngress table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/UAApp/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "UAApp", + "operation": "Read UAApp data", + "description": "Read data from the UAApp table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/UAComputer/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "UAComputer", + "operation": "Read UAComputer data", + "description": "Read data from the UAComputer table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/UAComputerRank/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "UAComputerRank", + "operation": "Read UAComputerRank data", + "description": "Read data from the UAComputerRank table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/UADriver/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "UADriver", + "operation": "Read UADriver data", + "description": "Read data from the UADriver table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/UADriverProblemCodes/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "UADriverProblemCodes", + "operation": "Read UADriverProblemCodes data", + "description": "Read data from the UADriverProblemCodes table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/UAFeedback/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "UAFeedback", + "operation": "Read UAFeedback data", + "description": "Read data from the UAFeedback table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/UAIESiteDiscovery/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "UAIESiteDiscovery", + "operation": "Read UAIESiteDiscovery data", + "description": "Read data from the UAIESiteDiscovery table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/UAOfficeAddIn/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "UAOfficeAddIn", + "operation": "Read UAOfficeAddIn data", + "description": "Read data from the UAOfficeAddIn table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/UAProposedActionPlan/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "UAProposedActionPlan", + "operation": "Read UAProposedActionPlan data", + "description": "Read data from the UAProposedActionPlan table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/UASysReqIssue/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "UASysReqIssue", + "operation": "Read UASysReqIssue data", + "description": "Read data from the UASysReqIssue table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/UAUpgradedComputer/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "UAUpgradedComputer", + "operation": "Read UAUpgradedComputer data", + "description": "Read data from the UAUpgradedComputer table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/UCClient/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "UCClient", + "operation": "Read UCClient data", + "description": "Read data from the UCClient table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/UCClientReadinessStatus/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "UCClientReadinessStatus", + "operation": "Read UCClientReadinessStatus data", + "description": "Read data from the UCClientReadinessStatus table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/UCClientUpdateStatus/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "UCClientUpdateStatus", + "operation": "Read UCClientUpdateStatus data", + "description": "Read data from the UCClientUpdateStatus table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/UCDeviceAlert/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "UCDeviceAlert", + "operation": "Read UCDeviceAlert data", + "description": "Read data from the UCDeviceAlert table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/UCServiceUpdateStatus/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "UCServiceUpdateStatus", + "operation": "Read UCServiceUpdateStatus data", + "description": "Read data from the UCServiceUpdateStatus table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/UCUpdateAlert/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "UCUpdateAlert", + "operation": "Read UCUpdateAlert data", + "description": "Read data from the UCUpdateAlert table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/Update/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "Update", + "operation": "Read Update data", + "description": "Read data from the Update table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/UpdateRunProgress/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "UpdateRunProgress", + "operation": "Read UpdateRunProgress data", + "description": "Read data from the UpdateRunProgress table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/UpdateSummary/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "UpdateSummary", + "operation": "Read UpdateSummary data", + "description": "Read data from the UpdateSummary table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/Usage/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "Usage", + "operation": "Read Usage data", + "description": "Read data from the Usage table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/UserAccessAnalytics/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "UserAccessAnalytics", + "operation": "Read UserAccessAnalytics data", + "description": "Read data from the UserAccessAnalytics table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/UserPeerAnalytics/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "UserPeerAnalytics", + "operation": "Read UserPeerAnalytics data", + "description": "Read data from the UserPeerAnalytics table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/VIAudit/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "VIAudit", + "operation": "Read VIAudit data", + "description": "Read data from the VIAudit table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/VMBoundPort/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "VMBoundPort", + "operation": "Read VMBoundPort data", + "description": "Read data from the VMBoundPort table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/VMComputer/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "VMComputer", + "operation": "Read VMComputer data", + "description": "Read data from the VMComputer table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/VMConnection/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "VMConnection", + "operation": "Read VMConnection data", + "description": "Read data from the VMConnection table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/VMProcess/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "VMProcess", + "operation": "Read VMProcess data", + "description": "Read data from the VMProcess table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/W3CIISLog/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "W3CIISLog", + "operation": "Read W3CIISLog data", + "description": "Read data from the W3CIISLog table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/WaaSDeploymentStatus/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "WaaSDeploymentStatus", + "operation": "Read WaaSDeploymentStatus data", + "description": "Read data from the WaaSDeploymentStatus table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/WaaSInsiderStatus/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "WaaSInsiderStatus", + "operation": "Read WaaSInsiderStatus data", + "description": "Read data from the WaaSInsiderStatus table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/WaaSUpdateStatus/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "WaaSUpdateStatus", + "operation": "Read WaaSUpdateStatus data", + "description": "Read data from the WaaSUpdateStatus table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/Watchlist/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "Watchlist", + "operation": "Read Watchlist data", + "description": "Read data from the Watchlist table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/WDAVStatus/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "WDAVStatus", + "operation": "Read WDAVStatus data", + "description": "Read data from the WDAVStatus table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/WDAVThreat/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "WDAVThreat", + "operation": "Read WDAVThreat data", + "description": "Read data from the WDAVThreat table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/WebPubSubConnectivity/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "WebPubSubConnectivity", + "operation": "Read WebPubSubConnectivity data", + "description": "Read data from the WebPubSubConnectivity table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/WebPubSubHttpRequest/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "WebPubSubHttpRequest", + "operation": "Read WebPubSubHttpRequest data", + "description": "Read data from the WebPubSubHttpRequest table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/WebPubSubMessaging/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "WebPubSubMessaging", + "operation": "Read WebPubSubMessaging data", + "description": "Read data from the WebPubSubMessaging table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/WindowsClientAssessmentRecommendation/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "WindowsClientAssessmentRecommendation", + "operation": "Read WindowsClientAssessmentRecommendation data", + "description": "Read data from the WindowsClientAssessmentRecommendation table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/WindowsEvent/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "WindowsEvent", + "operation": "Read WindowsEvent data", + "description": "Read data from the WindowsEvent table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/WindowsFirewall/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "WindowsFirewall", + "operation": "Read WindowsFirewall data", + "description": "Read data from the WindowsFirewall table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/WindowsServerAssessmentRecommendation/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "WindowsServerAssessmentRecommendation", + "operation": "Read WindowsServerAssessmentRecommendation data", + "description": "Read data from the WindowsServerAssessmentRecommendation table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/WireData/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "WireData", + "operation": "Read WireData data", + "description": "Read data from the WireData table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/WorkloadDiagnosticLogs/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "WorkloadDiagnosticLogs", + "operation": "Read WorkloadDiagnosticLogs data", + "description": "Read data from the WorkloadDiagnosticLogs table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/WorkloadMonitoringPerf/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "WorkloadMonitoringPerf", + "operation": "Read WorkloadMonitoringPerf data", + "description": "Read data from the WorkloadMonitoringPerf table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/WUDOAggregatedStatus/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "WUDOAggregatedStatus", + "operation": "Read WUDOAggregatedStatus data", + "description": "Read data from the WUDOAggregatedStatus table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/WUDOStatus/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "WUDOStatus", + "operation": "Read WUDOStatus data", + "description": "Read data from the WUDOStatus table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/WVDAgentHealthStatus/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "WVDAgentHealthStatus", + "operation": "Read WVDAgentHealthStatus data", + "description": "Read data from the WVDAgentHealthStatus table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/WVDCheckpoints/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "WVDCheckpoints", + "operation": "Read WVDCheckpoints data", + "description": "Read data from the WVDCheckpoints table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/WVDConnectionNetworkData/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "WVDConnectionNetworkData", + "operation": "Read WVDConnectionNetworkData data", + "description": "Read data from the WVDConnectionNetworkData table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/WVDConnections/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "WVDConnections", + "operation": "Read WVDConnections data", + "description": "Read data from the WVDConnections table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/WVDErrors/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "WVDErrors", + "operation": "Read WVDErrors data", + "description": "Read data from the WVDErrors table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/WVDFeeds/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "WVDFeeds", + "operation": "Read WVDFeeds data", + "description": "Read data from the WVDFeeds table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/WVDHostRegistrations/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "WVDHostRegistrations", + "operation": "Read WVDHostRegistrations data", + "description": "Read data from the WVDHostRegistrations table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/WVDManagement/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "WVDManagement", + "operation": "Read WVDManagement data", + "description": "Read data from the WVDManagement table" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/query/WVDSessionHostManagement/read", + "isDataAction": false, + "display": { + "provider": "Azure Log Analytics", + "resource": "WVDSessionHostManagement", + "operation": "Read WVDSessionHostManagement data", + "description": "Read data from the WVDSessionHostManagement table" + } + }, + { + "name": "microsoft.operationalinsights/workspaces/search/read", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "Workspaces", + "operation": "Get Search Results", + "description": "Get search results. Deprecated." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/savedsearches/results/read", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "Workspaces", + "operation": "Get Saved Searches Results", + "description": "Get saved searches results. Deprecated" + } + }, + { + "name": "microsoft.operationalinsights/operations/read", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "Operations", + "operation": "Get Operations List", + "description": "Lists all of the available OperationalInsights Rest API operations." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/operations/read", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "Workspaces", + "operation": "Get Operations Status", + "description": "Gets the status of an OperationalInsights workspace operation." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/views/read", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "Views", + "operation": "Get views", + "description": "Get workspace views." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/views/write", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "Views", + "operation": "Create or update a view", + "description": "Create or update a workspace view." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/views/delete", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "Views", + "operation": "Delete view", + "description": "Delete a workspace view." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/rules/read", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "Rules", + "operation": "Get all alert rules", + "description": "Get all alert rules." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/customfields/read", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "Custom Fields", + "operation": "Get a custom field", + "description": "Get a custom field." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/customfields/write", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "Custom Fields", + "operation": "Create or update a custom field", + "description": "Create or update a custom field." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/customfields/delete", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "Custom Fields", + "operation": "Delete a custom field", + "description": "Delete a custom field." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/customfields/list", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "Custom Fields", + "operation": "List all custom fields", + "description": "List all custom fields." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/customfields/action", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "Custom Fields", + "operation": "Extract custom fields", + "description": "Extract custom fields." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/savedsearches/schedules/read", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "Schedules", + "operation": "Get scheduled searches", + "description": "Get scheduled searches." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/savedsearches/schedules/delete", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "Schedules", + "operation": "Delete scheduled searches", + "description": "Delete scheduled searches." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/savedsearches/schedules/write", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "Schedules", + "operation": "Create or update scheduled searches", + "description": "Create or update scheduled searches." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/savedsearches/schedules/actions/read", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "Schedules", + "operation": "Get scheduled search actions", + "description": "Get scheduled search actions." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/savedsearches/schedules/actions/delete", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "Schedules", + "operation": "Delete scheduled search actions", + "description": "Delete scheduled search actions." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/savedsearches/schedules/actions/write", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "Schedules", + "operation": "Create or update scheduled search actions", + "description": "Create or update scheduled search actions." + } + }, + { + "name": "microsoft.operationalinsights/unregister/action", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "Subscription", + "operation": "UnregisterSubscription", + "description": "Unregisters the subscription." + } + }, + { + "name": "microsoft.operationalinsights/availableservicetiers/read", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "Availableservicetiers", + "operation": "Get the available service tiers", + "description": "Get the available service tiers." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/dataExports/read", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "DataExports", + "operation": "Get data export", + "description": "Get specific data export." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/dataExports/write", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "DataExports", + "operation": "Upsert data export", + "description": "Create or update data export." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/dataExports/delete", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "DataExports", + "operation": "Delete data export", + "description": "Delete specific data export." + } + }, + { + "name": "microsoft.operationalinsights/locations/operationStatuses/read", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "OperationStatus", + "operation": "Get Log Analytics Azure Async Operation Status", + "description": "Get Log Analytics Azure Async Operation Status." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/scopedPrivateLinkProxies/read", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "ScopedPrivateLinkProxy", + "operation": "Get Scoped Private Link Proxy", + "description": "Get Scoped Private Link Proxy." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/scopedPrivateLinkProxies/write", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "ScopedPrivateLinkProxy", + "operation": "Put Scoped Private Link Proxy", + "description": "Put Scoped Private Link Proxy." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/scopedPrivateLinkProxies/delete", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "ScopedPrivateLinkProxy", + "operation": "Delete Scoped Private Link Proxy", + "description": "Delete Scoped Private Link Proxy." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/features/generateMap/read", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "GenerateMap", + "operation": "Get the Service Map of a resource", + "description": "Get the Service Map of a resource." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/features/servergroups/members/read", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "ServerGroupsMembers", + "operation": "Get Server Group Members of a resource", + "description": "Get Server Group Members of a resource." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/features/clientgroups/memebers/read", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "ClientGroupsMembers", + "operation": "Get Client Group Members of a resource", + "description": "Get Client Group Members of a resource." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/features/machineGroups/read", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "MachineGroups", + "operation": "Get the Service Map Machine Groups", + "description": "Get the Service Map Machine Groups." + } + }, + { + "name": "microsoft.operationalinsights/querypacks/write", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "QueryPacks", + "operation": "Create or Update Query Packs", + "description": "Create or Update Query Packs." + } + }, + { + "name": "microsoft.operationalinsights/querypacks/read", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "QueryPacks", + "operation": "Get Query Packs", + "description": "Get Query Packs." + } + }, + { + "name": "microsoft.operationalinsights/querypacks/delete", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "QueryPacks", + "operation": "Delete Query Packs", + "description": "Delete Query Packs." + } + }, + { + "name": "microsoft.operationalinsights/querypacks/action", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "QueryPacks", + "operation": "Perform Query Packs Actions", + "description": "Perform Query Packs Actions." + } + }, + { + "name": "microsoft.operationalinsights/querypacks/queries/write", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "QueryPackQueries", + "operation": "Create or Update Query Pack Queries", + "description": "Create or Update Query Pack Queries." + } + }, + { + "name": "microsoft.operationalinsights/querypacks/queries/read", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "QueryPackQueries", + "operation": "Get Query Pack Queries", + "description": "Get Query Pack Queries." + } + }, + { + "name": "microsoft.operationalinsights/querypacks/queries/delete", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "QueryPackQueries", + "operation": "Delete Query Pack Queries", + "description": "Delete Query Pack Queries." + } + }, + { + "name": "microsoft.operationalinsights/querypacks/queries/action", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "QueryPackQueries", + "operation": "Perform Actions on Queries in QueryPack", + "description": "Perform Actions on Queries in QueryPack." + } + }, + { + "name": "microsoft.operationalinsights/workspaces/networkSecurityPerimeterAssociationProxies/read", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "NetworkSecurityPerimeterAssociationProxies", + "operation": "Read Network Security Perimeter Association Proxies", + "description": "Read Network Security Perimeter Association Proxies" + } + }, + { + "name": "microsoft.operationalinsights/workspaces/networkSecurityPerimeterAssociationProxies/write", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "NetworkSecurityPerimeterAssociationProxies", + "operation": "Write Network Security Perimeter Association Proxies", + "description": "Write Network Security Perimeter Association Proxies" + } + }, + { + "name": "microsoft.operationalinsights/workspaces/networkSecurityPerimeterAssociationProxies/delete", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "NetworkSecurityPerimeterAssociationProxies", + "operation": "Delete Network Security Perimeter Association Proxies", + "description": "Delete Network Security Perimeter Association Proxies" + } + }, + { + "name": "microsoft.operationalinsights/workspaces/networkSecurityPerimeterConfigurations/read", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "NetworkSecurityPerimeterConfigurations", + "operation": "Read Network Security Perimeter Configurations", + "description": "Read Network Security Perimeter Configurations" + } + }, + { + "name": "microsoft.operationalinsights/workspaces/networkSecurityPerimeterConfigurations/write", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "NetworkSecurityPerimeterConfigurations", + "operation": "Write Network Security Perimeter Configurations", + "description": "Write Network Security Perimeter Configurations" + } + }, + { + "name": "microsoft.operationalinsights/workspaces/networkSecurityPerimeterConfigurations/delete", + "display": { + "provider": "MicrosoftOperationalInsights", + "resource": "NetworkSecurityPerimeterConfigurations", + "operation": "Delete Network Security Perimeter Configurations", + "description": "Delete Network Security Perimeter Configurations" + } + } + ] } } ], diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/tests/recordings/test_workspace.pyTestMgmtLogAnalyticsWorkspacetest_loganalytics_workspace.json b/sdk/loganalytics/azure-mgmt-loganalytics/tests/recordings/test_workspace.pyTestMgmtLogAnalyticsWorkspacetest_loganalytics_workspace.json new file mode 100644 index 000000000000..7e39f6d2ff6b --- /dev/null +++ b/sdk/loganalytics/azure-mgmt-loganalytics/tests/recordings/test_workspace.pyTestMgmtLogAnalyticsWorkspacetest_loganalytics_workspace.json @@ -0,0 +1,350 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 11 May 2022 06:51:32 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": "[set-cookie;]", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - NCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/discovery/v2.0/keys", + "response_modes_supported": [ + "query", + "fragment", + "form_post" + ], + "subject_types_supported": [ + "pairwise" + ], + "id_token_signing_alg_values_supported": [ + "RS256" + ], + "response_types_supported": [ + "code", + "id_token", + "code id_token", + "id_token token" + ], + "scopes_supported": [ + "openid", + "profile", + "email", + "offline_access" + ], + "issuer": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/logout", + "claims_supported": [ + "sub", + "iss", + "cloud_instance_name", + "cloud_instance_host_name", + "cloud_graph_host_name", + "msgraph_host", + "aud", + "exp", + "iat", + "auth_time", + "acr", + "nonce", + "preferred_username", + "name", + "tid", + "ver", + "at_hash", + "c_hash", + "email" + ], + "kerberos_endpoint": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/kerberos", + "tenant_region_scope": "NA", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "cookie;", + "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 11 May 2022 06:51:32 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": "[set-cookie;]", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12651.10 - SEASLR2 ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "652bdf7f-fd3f-4fd6-996c-09ed4677905a", + "Connection": "keep-alive", + "Content-Length": "291", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "cookie;", + "User-Agent": "azsdk-python-identity/1.9.0b2 Python/3.6.2 (Windows-10-10.0.19041-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.17.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q%7EIsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "652bdf7f-fd3f-4fd6-996c-09ed4677905a", + "Content-Length": "93", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 11 May 2022 06:51:32 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": "[set-cookie;]", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.12651.10 - SCUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 3599, + "ext_expires_in": 3599, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/5b75337b/providers/Microsoft.OperationalInsights/workspaces/WorkspaceName?api-version=2021-12-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "22", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-mgmt-loganalytics/13.0.0b4 Python/3.6.2 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": { + "location": "westus" + }, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Origin": "*", + "api-supported-versions": "2021-12-01-preview", + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 11 May 2022 06:51:39 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:e6336c63-aab2-45f0-996a-e5dbab2a1508", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8ad8287c-0b29-408d-bd71-3e588ce062d5", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-routing-request-id": "KOREASOUTH:20220511T065139Z:8ad8287c-0b29-408d-bd71-3e588ce062d5", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "properties": { + "customerId": "e4e528ad-ae55-4172-8e92-5ee03159bec4", + "provisioningState": "Succeeded", + "sku": { + "name": "pergb2018", + "lastSkuUpdate": "2022-05-11T05:21:49.9385439Z" + }, + "retentionInDays": 30, + "features": { + "legacy": 0, + "searchVersion": 1, + "enableLogAccessUsingOnlyResourcePermissions": true + }, + "workspaceCapping": { + "dailyQuotaGb": -1.0, + "quotaNextResetTime": "2022-05-11T13:00:00Z", + "dataIngestionStatus": "RespectQuota" + }, + "publicNetworkAccessForIngestion": "Enabled", + "publicNetworkAccessForQuery": "Enabled", + "createdDate": "2022-05-11T05:21:49.9385439Z", + "modifiedDate": "2022-05-11T06:51:37.7385163Z" + }, + "location": "westus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/5b75337b/providers/Microsoft.OperationalInsights/workspaces/WorkspaceName", + "name": "WorkspaceName", + "type": "Microsoft.OperationalInsights/workspaces", + "etag": "\u00225600ed66-0000-0700-0000-627b4cd00000\u0022" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/5b75337b/providers/Microsoft.OperationalInsights/workspaces/WorkspaceName?api-version=2021-12-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-mgmt-loganalytics/13.0.0b4 Python/3.6.2 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Origin": "*", + "api-supported-versions": "2021-12-01-preview", + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 11 May 2022 06:51:39 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:e6336c63-aab2-45f0-996a-e5dbab2a1508", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "56eeb446-15b7-4672-901e-4d236f5381b3", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "KOREASOUTH:20220511T065140Z:56eeb446-15b7-4672-901e-4d236f5381b3", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "properties": { + "customerId": "e4e528ad-ae55-4172-8e92-5ee03159bec4", + "provisioningState": "Succeeded", + "sku": { + "name": "pergb2018", + "lastSkuUpdate": "2022-05-11T05:21:49.9385439Z" + }, + "retentionInDays": 30, + "features": { + "legacy": 0, + "searchVersion": 1, + "enableLogAccessUsingOnlyResourcePermissions": true + }, + "workspaceCapping": { + "dailyQuotaGb": -1.0, + "quotaNextResetTime": "2022-05-11T13:00:00Z", + "dataIngestionStatus": "RespectQuota" + }, + "publicNetworkAccessForIngestion": "Enabled", + "publicNetworkAccessForQuery": "Enabled", + "createdDate": "2022-05-11T05:21:49.9385439Z", + "modifiedDate": "2022-05-11T06:51:37.7385163Z" + }, + "location": "westus", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/5b75337b/providers/Microsoft.OperationalInsights/workspaces/WorkspaceName", + "name": "WorkspaceName", + "type": "Microsoft.OperationalInsights/workspaces", + "etag": "\u00225600ed66-0000-0700-0000-627b4cd00000\u0022" + } + } + ], + "Variables": {} +} diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/tests/disable_test_mgmt_loganalytics.py b/sdk/loganalytics/azure-mgmt-loganalytics/tests/test_mgmt_loganalytics.py similarity index 92% rename from sdk/loganalytics/azure-mgmt-loganalytics/tests/disable_test_mgmt_loganalytics.py rename to sdk/loganalytics/azure-mgmt-loganalytics/tests/test_mgmt_loganalytics.py index a36f1d02f9b9..532689623397 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/tests/disable_test_mgmt_loganalytics.py +++ b/sdk/loganalytics/azure-mgmt-loganalytics/tests/test_mgmt_loganalytics.py @@ -9,7 +9,7 @@ def setup_method(self, method): azure.mgmt.loganalytics.LogAnalyticsManagementClient ) - @pytest.mark.skip('Hard to test') + # @pytest.mark.skip('Hard to test') @recorded_by_proxy def test_loganalytics_operations(self): operations = self.client.operations.list() diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/tests/test_workspace.py b/sdk/loganalytics/azure-mgmt-loganalytics/tests/test_workspace.py new file mode 100644 index 000000000000..0fa998bbefe3 --- /dev/null +++ b/sdk/loganalytics/azure-mgmt-loganalytics/tests/test_workspace.py @@ -0,0 +1,28 @@ +import pytest +import azure.mgmt.loganalytics +from devtools_testutils import AzureMgmtRecordedTestCase, recorded_by_proxy, ResourceGroupPreparer + +class TestMgmtLogAnalyticsWorkspace(AzureMgmtRecordedTestCase): + + def setup_method(self, method): + self.client = self.create_mgmt_client( + azure.mgmt.loganalytics.LogAnalyticsManagementClient + ) + + @ResourceGroupPreparer() + @recorded_by_proxy + def test_loganalytics_workspace(self, resource_group, location): + workspace_name = 'WorkspaceName' + workspace_result = self.client.workspaces.begin_create_or_update( + resource_group.name, + workspace_name, + { + 'location': location + } + ).result() + + workspace = self.client.workspaces.get( + resource_group.name, + workspace_name + ) + assert workspace_result.name == workspace.name \ No newline at end of file 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 b61aa395ce50..a5ca5f7b4f8b 100644 --- a/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/README.md +++ b/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/README.md @@ -17,6 +17,9 @@ These code samples show common champion scenario operations with the AzureMonito * Azure EventHub Send EventData: [sample_event_hub.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_event_hub.py) * Azure EventHub Blob Storage Checkpoint Store: [sample_blob_checkpoint.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_blob_checkpoint.py) * Azure EventGrid Send Event: [sample_event_grid.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_event_grid.py) +* Azure Communication Chat Create Client/Thread: [sample_comm_chat.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_comm_chat.py) +* Azure Communication Phone Numbers List Purchased Numbers: [sample_comm_phone.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_comm_phone.py) +* Azure Communication SMS Send Message: [sample_comm_sms.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_comm_sms.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) * Event: [sample_span_event.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_span_event.py) * Jaeger: [sample_jaeger.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_jaeger.py) @@ -259,7 +262,7 @@ The following sample assumes that you have setup an Azure Event Grid [Topic](htt * Run the sample ```sh -$ # azure-eventhub-checkpointstoreblob library +$ # azure-azure-eventgrid library $ pip install azure-eventgrid $ # azure sdk core tracing library for opentelemetry $ pip install azure-core-tracing-opentelemetry @@ -267,6 +270,56 @@ $ # from this directory $ python sample_event_grid.py ``` +### Azure Communication Chat Create Client/Thread + +The following sample assumes that you have setup an Azure Communication Services [resource](https://docs.microsoft.com/azure/communication-services/quickstarts/create-communication-resource). +* Update `APPLICATIONINSIGHTS_CONNECTION_STRING` environment variable + +* Run the sample + +```sh +$ # azure-communication-chat library +$ pip install azure-communication-chat +$ # azure-communication-identity library for authentication +$ pip install azure-communication-identity +$ # azure sdk core tracing library for opentelemetry +$ pip install azure-core-tracing-opentelemetry +$ # from this directory +$ python sample_comm_chat.py +``` + +### Azure Communication Phone Numbers List Purchased Numbers + +The following sample assumes that you have setup an Azure Communication Services [resource](https://docs.microsoft.com/azure/communication-services/quickstarts/create-communication-resource). +* Update `APPLICATIONINSIGHTS_CONNECTION_STRING` environment variable + +* Run the sample + +```sh +$ # azure-communication-phonenumbers library +$ pip install azure-communication-phonenumbers +$ # azure sdk core tracing library for opentelemetry +$ pip install azure-core-tracing-opentelemetry +$ # from this directory +$ python sample_comm_phone.py +``` + +### Azure Communication SMS Send Message + +The following sample assumes that you have setup an Azure Communication Services [resource](https://docs.microsoft.com/azure/communication-services/quickstarts/create-communication-resource). +* Update `APPLICATIONINSIGHTS_CONNECTION_STRING` environment variable + +* Run the sample + +```sh +$ # azure-communication-sms library +$ pip install azure-communication-sms +$ # azure sdk core tracing library for opentelemetry +$ pip install azure-core-tracing-opentelemetry +$ # from this directory +$ python sample_comm_sms.py +``` + ## Explore the data After running the applications, data would be available in [Azure]( diff --git a/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_comm_chat.py b/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_comm_chat.py new file mode 100644 index 000000000000..0d9e9e565751 --- /dev/null +++ b/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_comm_chat.py @@ -0,0 +1,56 @@ +""" +Examples to show usage of the azure-core-tracing-opentelemetry +with the Communication Chat SDK and exporting to Azure monitor backend. +This example traces calls for creating a chat client and thread using +Communication Chat SDK. The telemetry will be collected automatically +and sent to Application Insights via the AzureMonitorTraceExporter +""" + +import os + +# Declare OpenTelemetry as enabled tracing plugin for Azure SDKs +from azure.core.settings import settings +from azure.core.tracing.ext.opentelemetry_span import OpenTelemetrySpan + +settings.tracing_implementation = OpenTelemetrySpan + +# Regular open telemetry usage from here, see https://github.com/open-telemetry/opentelemetry-python +# for details +from opentelemetry import trace +from opentelemetry.sdk.trace import TracerProvider +from opentelemetry.sdk.trace.export import BatchSpanProcessor + +trace.set_tracer_provider(TracerProvider()) +tracer = trace.get_tracer(__name__) + +# azure monitor trace exporter to send telemetry to appinsights +from azure.monitor.opentelemetry.exporter import AzureMonitorTraceExporter +span_processor = BatchSpanProcessor( + AzureMonitorTraceExporter.from_connection_string( + os.environ["APPLICATIONINSIGHTS_CONNECTION_STRING"] + ) +) +trace.get_tracer_provider().add_span_processor(span_processor) + +# Example with Communication Chat SDKs +# Authenticate with Communication Identity SDK +from azure.communication.identity import CommunicationIdentityClient +comm_connection_string = "" +identity_client = CommunicationIdentityClient.from_connection_string(comm_connection_string) + +# Telemetry will be sent for creating the user and getting the token as well +user = identity_client.create_user() +tokenresponse = identity_client.get_token(user, scopes=["chat"]) +token = tokenresponse.token + +# Create a Chat Client +from azure.communication.chat import ChatClient, CommunicationTokenCredential + +# Your unique Azure Communication service endpoint +endpoint = "https://.communcationservices.azure.com" +with tracer.start_as_current_span(name="CreateChatClient"): + chat_client = ChatClient(endpoint, CommunicationTokenCredential(token)) + # Create a Chat Thread + with tracer.start_as_current_span(name="CreateChatThread"): + create_chat_thread_result = chat_client.create_chat_thread("test topic") + chat_thread_client = chat_client.get_chat_thread_client(create_chat_thread_result.chat_thread.id) diff --git a/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_comm_phone.py b/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_comm_phone.py new file mode 100644 index 000000000000..0cb5d31fdf10 --- /dev/null +++ b/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_comm_phone.py @@ -0,0 +1,45 @@ +""" +Examples to show usage of the azure-core-tracing-opentelemetry +with the Communication Phone SDK and exporting to Azure monitor backend. +This example traces calls for creating a phone client getting phone numbers +using Communication Phone SDK. The telemetry will be collected automatically +and sent to Application Insights via the AzureMonitorTraceExporter +""" + +import os + +# Declare OpenTelemetry as enabled tracing plugin for Azure SDKs +from azure.core.settings import settings +from azure.core.tracing.ext.opentelemetry_span import OpenTelemetrySpan + +settings.tracing_implementation = OpenTelemetrySpan + +# Regular open telemetry usage from here, see https://github.com/open-telemetry/opentelemetry-python +# for details +from opentelemetry import trace +from opentelemetry.sdk.trace import TracerProvider +from opentelemetry.sdk.trace.export import BatchSpanProcessor + +trace.set_tracer_provider(TracerProvider()) +tracer = trace.get_tracer(__name__) + +# azure monitor trace exporter to send telemetry to appinsights +from azure.monitor.opentelemetry.exporter import AzureMonitorTraceExporter +span_processor = BatchSpanProcessor( + AzureMonitorTraceExporter.from_connection_string( + os.environ["APPLICATIONINSIGHTS_CONNECTION_STRING"] + ) +) +trace.get_tracer_provider().add_span_processor(span_processor) + +# Example with Communication Phone SDKs +from azure.communication.phonenumbers import PhoneNumbersClient + +# Create a Phone Client +connection_str = "endpoint=ENDPOINT;accessKey=KEY" +phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_str) + +with tracer.start_as_current_span(name="PurchasedPhoneNumbers"): + purchased_phone_numbers = phone_numbers_client.list_purchased_phone_numbers() + for acquired_phone_number in purchased_phone_numbers: + print(acquired_phone_number.phone_number) diff --git a/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_comm_sms.py b/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_comm_sms.py new file mode 100644 index 000000000000..755298c9ee0c --- /dev/null +++ b/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_comm_sms.py @@ -0,0 +1,48 @@ +""" +Examples to show usage of the azure-core-tracing-opentelemetry +with the Communication SMS SDK and exporting to Azure monitor backend. +This example traces calls for sending an SMS message using Communication +SMS SDK. The telemetry will be collected automatically and sent to +Application Insights via the AzureMonitorTraceExporter +""" + +import os + +# Declare OpenTelemetry as enabled tracing plugin for Azure SDKs +from azure.core.settings import settings +from azure.core.tracing.ext.opentelemetry_span import OpenTelemetrySpan + +settings.tracing_implementation = OpenTelemetrySpan + +# Regular open telemetry usage from here, see https://github.com/open-telemetry/opentelemetry-python +# for details +from opentelemetry import trace +from opentelemetry.sdk.trace import TracerProvider +from opentelemetry.sdk.trace.export import BatchSpanProcessor + +trace.set_tracer_provider(TracerProvider()) +tracer = trace.get_tracer(__name__) + +# azure monitor trace exporter to send telemetry to appinsights +from azure.monitor.opentelemetry.exporter import AzureMonitorTraceExporter +span_processor = BatchSpanProcessor( + AzureMonitorTraceExporter.from_connection_string( + os.environ["APPLICATIONINSIGHTS_CONNECTION_STRING"] + ) +) +trace.get_tracer_provider().add_span_processor(span_processor) + +# Example with Communication SMS SDKs +from azure.communication.sms import SmsClient + +# Create a SMS Client +connection_str = "endpoint=ENDPOINT;accessKey=KEY" +sms_client = SmsClient.from_connection_string(connection_str) + +with tracer.start_as_current_span(name="SendSMS"): + sms_responses = sms_client.send( + from_="", + to="", + message="Hello World via SMS", + enable_delivery_report=True, # optional property + tag="custom-tag") # optional property diff --git a/sdk/network/azure-mgmt-network/CHANGELOG.md b/sdk/network/azure-mgmt-network/CHANGELOG.md index 8d51b30805e4..a8d53381bd43 100644 --- a/sdk/network/azure-mgmt-network/CHANGELOG.md +++ b/sdk/network/azure-mgmt-network/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 20.0.0 (2022-04-25) +## 20.0.0 (2022-05-10) **Features** diff --git a/sdk/network/azure-mgmt-network/_meta.json b/sdk/network/azure-mgmt-network/_meta.json index 06621ffb87b1..5958109cde20 100644 --- a/sdk/network/azure-mgmt-network/_meta.json +++ b/sdk/network/azure-mgmt-network/_meta.json @@ -4,7 +4,7 @@ "@autorest/python@5.13.0", "@autorest/modelerfour@4.19.3" ], - "commit": "ba936cf8f3b4720dc025837281241fdc903f7e4d", + "commit": "0baca05c851c1749e92beb0d2134cd958827dd54", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "autorest_command": "autorest specification/network/resource-manager/readme.md --multiapi --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.13.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2", "readme": "specification/network/resource-manager/readme.md" diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/_network_management_client.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/_network_management_client.py index 058d9a177a66..37c9e22eb51c 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/_network_management_client.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/_network_management_client.py @@ -147,7 +147,6 @@ def models(cls, api_version=DEFAULT_API_VERSION): * 2020-11-01: :mod:`v2020_11_01.models` * 2021-02-01: :mod:`v2021_02_01.models` * 2021-02-01-preview: :mod:`v2021_02_01_preview.models` - * 2021-05-01: :mod:`v2021_05_01.models` * 2021-08-01: :mod:`v2021_08_01.models` """ if api_version == '2015-06-15': @@ -246,9 +245,6 @@ def models(cls, api_version=DEFAULT_API_VERSION): elif api_version == '2021-02-01-preview': from .v2021_02_01_preview import models return models - elif api_version == '2021-05-01': - from .v2021_05_01 import models - return models elif api_version == '2021-08-01': from .v2021_08_01 import models return models @@ -329,7 +325,6 @@ def application_gateway_private_endpoint_connections(self): * 2020-08-01: :class:`ApplicationGatewayPrivateEndpointConnectionsOperations` * 2020-11-01: :class:`ApplicationGatewayPrivateEndpointConnectionsOperations` * 2021-02-01: :class:`ApplicationGatewayPrivateEndpointConnectionsOperations` - * 2021-05-01: :class:`ApplicationGatewayPrivateEndpointConnectionsOperations` * 2021-08-01: :class:`ApplicationGatewayPrivateEndpointConnectionsOperations` """ api_version = self._get_api_version('application_gateway_private_endpoint_connections') @@ -345,8 +340,6 @@ def application_gateway_private_endpoint_connections(self): from .v2020_11_01.operations import ApplicationGatewayPrivateEndpointConnectionsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import ApplicationGatewayPrivateEndpointConnectionsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import ApplicationGatewayPrivateEndpointConnectionsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import ApplicationGatewayPrivateEndpointConnectionsOperations as OperationClass else: @@ -363,7 +356,6 @@ def application_gateway_private_link_resources(self): * 2020-08-01: :class:`ApplicationGatewayPrivateLinkResourcesOperations` * 2020-11-01: :class:`ApplicationGatewayPrivateLinkResourcesOperations` * 2021-02-01: :class:`ApplicationGatewayPrivateLinkResourcesOperations` - * 2021-05-01: :class:`ApplicationGatewayPrivateLinkResourcesOperations` * 2021-08-01: :class:`ApplicationGatewayPrivateLinkResourcesOperations` """ api_version = self._get_api_version('application_gateway_private_link_resources') @@ -379,8 +371,6 @@ def application_gateway_private_link_resources(self): from .v2020_11_01.operations import ApplicationGatewayPrivateLinkResourcesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import ApplicationGatewayPrivateLinkResourcesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import ApplicationGatewayPrivateLinkResourcesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import ApplicationGatewayPrivateLinkResourcesOperations as OperationClass else: @@ -422,7 +412,6 @@ def application_gateways(self): * 2020-08-01: :class:`ApplicationGatewaysOperations` * 2020-11-01: :class:`ApplicationGatewaysOperations` * 2021-02-01: :class:`ApplicationGatewaysOperations` - * 2021-05-01: :class:`ApplicationGatewaysOperations` * 2021-08-01: :class:`ApplicationGatewaysOperations` """ api_version = self._get_api_version('application_gateways') @@ -488,8 +477,6 @@ def application_gateways(self): from .v2020_11_01.operations import ApplicationGatewaysOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import ApplicationGatewaysOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import ApplicationGatewaysOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import ApplicationGatewaysOperations as OperationClass else: @@ -526,7 +513,6 @@ def application_security_groups(self): * 2020-08-01: :class:`ApplicationSecurityGroupsOperations` * 2020-11-01: :class:`ApplicationSecurityGroupsOperations` * 2021-02-01: :class:`ApplicationSecurityGroupsOperations` - * 2021-05-01: :class:`ApplicationSecurityGroupsOperations` * 2021-08-01: :class:`ApplicationSecurityGroupsOperations` """ api_version = self._get_api_version('application_security_groups') @@ -582,8 +568,6 @@ def application_security_groups(self): from .v2020_11_01.operations import ApplicationSecurityGroupsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import ApplicationSecurityGroupsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import ApplicationSecurityGroupsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import ApplicationSecurityGroupsOperations as OperationClass else: @@ -614,7 +598,6 @@ def available_delegations(self): * 2020-08-01: :class:`AvailableDelegationsOperations` * 2020-11-01: :class:`AvailableDelegationsOperations` * 2021-02-01: :class:`AvailableDelegationsOperations` - * 2021-05-01: :class:`AvailableDelegationsOperations` * 2021-08-01: :class:`AvailableDelegationsOperations` """ api_version = self._get_api_version('available_delegations') @@ -658,8 +641,6 @@ def available_delegations(self): from .v2020_11_01.operations import AvailableDelegationsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import AvailableDelegationsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import AvailableDelegationsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import AvailableDelegationsOperations as OperationClass else: @@ -697,7 +678,6 @@ def available_endpoint_services(self): * 2020-08-01: :class:`AvailableEndpointServicesOperations` * 2020-11-01: :class:`AvailableEndpointServicesOperations` * 2021-02-01: :class:`AvailableEndpointServicesOperations` - * 2021-05-01: :class:`AvailableEndpointServicesOperations` * 2021-08-01: :class:`AvailableEndpointServicesOperations` """ api_version = self._get_api_version('available_endpoint_services') @@ -755,8 +735,6 @@ def available_endpoint_services(self): from .v2020_11_01.operations import AvailableEndpointServicesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import AvailableEndpointServicesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import AvailableEndpointServicesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import AvailableEndpointServicesOperations as OperationClass else: @@ -782,7 +760,6 @@ def available_private_endpoint_types(self): * 2020-08-01: :class:`AvailablePrivateEndpointTypesOperations` * 2020-11-01: :class:`AvailablePrivateEndpointTypesOperations` * 2021-02-01: :class:`AvailablePrivateEndpointTypesOperations` - * 2021-05-01: :class:`AvailablePrivateEndpointTypesOperations` * 2021-08-01: :class:`AvailablePrivateEndpointTypesOperations` """ api_version = self._get_api_version('available_private_endpoint_types') @@ -816,8 +793,6 @@ def available_private_endpoint_types(self): from .v2020_11_01.operations import AvailablePrivateEndpointTypesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import AvailablePrivateEndpointTypesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import AvailablePrivateEndpointTypesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import AvailablePrivateEndpointTypesOperations as OperationClass else: @@ -848,7 +823,6 @@ def available_resource_group_delegations(self): * 2020-08-01: :class:`AvailableResourceGroupDelegationsOperations` * 2020-11-01: :class:`AvailableResourceGroupDelegationsOperations` * 2021-02-01: :class:`AvailableResourceGroupDelegationsOperations` - * 2021-05-01: :class:`AvailableResourceGroupDelegationsOperations` * 2021-08-01: :class:`AvailableResourceGroupDelegationsOperations` """ api_version = self._get_api_version('available_resource_group_delegations') @@ -892,8 +866,6 @@ def available_resource_group_delegations(self): from .v2020_11_01.operations import AvailableResourceGroupDelegationsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import AvailableResourceGroupDelegationsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import AvailableResourceGroupDelegationsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import AvailableResourceGroupDelegationsOperations as OperationClass else: @@ -916,7 +888,6 @@ def available_service_aliases(self): * 2020-08-01: :class:`AvailableServiceAliasesOperations` * 2020-11-01: :class:`AvailableServiceAliasesOperations` * 2021-02-01: :class:`AvailableServiceAliasesOperations` - * 2021-05-01: :class:`AvailableServiceAliasesOperations` * 2021-08-01: :class:`AvailableServiceAliasesOperations` """ api_version = self._get_api_version('available_service_aliases') @@ -944,8 +915,6 @@ def available_service_aliases(self): from .v2020_11_01.operations import AvailableServiceAliasesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import AvailableServiceAliasesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import AvailableServiceAliasesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import AvailableServiceAliasesOperations as OperationClass else: @@ -976,7 +945,6 @@ def azure_firewall_fqdn_tags(self): * 2020-08-01: :class:`AzureFirewallFqdnTagsOperations` * 2020-11-01: :class:`AzureFirewallFqdnTagsOperations` * 2021-02-01: :class:`AzureFirewallFqdnTagsOperations` - * 2021-05-01: :class:`AzureFirewallFqdnTagsOperations` * 2021-08-01: :class:`AzureFirewallFqdnTagsOperations` """ api_version = self._get_api_version('azure_firewall_fqdn_tags') @@ -1020,8 +988,6 @@ def azure_firewall_fqdn_tags(self): from .v2020_11_01.operations import AzureFirewallFqdnTagsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import AzureFirewallFqdnTagsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import AzureFirewallFqdnTagsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import AzureFirewallFqdnTagsOperations as OperationClass else: @@ -1055,7 +1021,6 @@ def azure_firewalls(self): * 2020-08-01: :class:`AzureFirewallsOperations` * 2020-11-01: :class:`AzureFirewallsOperations` * 2021-02-01: :class:`AzureFirewallsOperations` - * 2021-05-01: :class:`AzureFirewallsOperations` * 2021-08-01: :class:`AzureFirewallsOperations` """ api_version = self._get_api_version('azure_firewalls') @@ -1105,8 +1070,6 @@ def azure_firewalls(self): from .v2020_11_01.operations import AzureFirewallsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import AzureFirewallsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import AzureFirewallsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import AzureFirewallsOperations as OperationClass else: @@ -1132,7 +1095,6 @@ def bastion_hosts(self): * 2020-08-01: :class:`BastionHostsOperations` * 2020-11-01: :class:`BastionHostsOperations` * 2021-02-01: :class:`BastionHostsOperations` - * 2021-05-01: :class:`BastionHostsOperations` * 2021-08-01: :class:`BastionHostsOperations` """ api_version = self._get_api_version('bastion_hosts') @@ -1166,8 +1128,6 @@ def bastion_hosts(self): from .v2020_11_01.operations import BastionHostsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import BastionHostsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import BastionHostsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import BastionHostsOperations as OperationClass else: @@ -1207,7 +1167,6 @@ def bgp_service_communities(self): * 2020-08-01: :class:`BgpServiceCommunitiesOperations` * 2020-11-01: :class:`BgpServiceCommunitiesOperations` * 2021-02-01: :class:`BgpServiceCommunitiesOperations` - * 2021-05-01: :class:`BgpServiceCommunitiesOperations` * 2021-08-01: :class:`BgpServiceCommunitiesOperations` """ api_version = self._get_api_version('bgp_service_communities') @@ -1269,8 +1228,6 @@ def bgp_service_communities(self): from .v2020_11_01.operations import BgpServiceCommunitiesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import BgpServiceCommunitiesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import BgpServiceCommunitiesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import BgpServiceCommunitiesOperations as OperationClass else: @@ -1320,7 +1277,6 @@ def connection_monitors(self): * 2020-08-01: :class:`ConnectionMonitorsOperations` * 2020-11-01: :class:`ConnectionMonitorsOperations` * 2021-02-01: :class:`ConnectionMonitorsOperations` - * 2021-05-01: :class:`ConnectionMonitorsOperations` * 2021-08-01: :class:`ConnectionMonitorsOperations` """ api_version = self._get_api_version('connection_monitors') @@ -1376,8 +1332,6 @@ def connection_monitors(self): from .v2020_11_01.operations import ConnectionMonitorsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import ConnectionMonitorsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import ConnectionMonitorsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import ConnectionMonitorsOperations as OperationClass else: @@ -1406,7 +1360,6 @@ def custom_ip_prefixes(self): * 2020-08-01: :class:`CustomIPPrefixesOperations` * 2020-11-01: :class:`CustomIPPrefixesOperations` * 2021-02-01: :class:`CustomIPPrefixesOperations` - * 2021-05-01: :class:`CustomIPPrefixesOperations` * 2021-08-01: :class:`CustomIPPrefixesOperations` """ api_version = self._get_api_version('custom_ip_prefixes') @@ -1420,8 +1373,6 @@ def custom_ip_prefixes(self): from .v2020_11_01.operations import CustomIPPrefixesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import CustomIPPrefixesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import CustomIPPrefixesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import CustomIPPrefixesOperations as OperationClass else: @@ -1450,7 +1401,6 @@ def ddos_custom_policies(self): * 2020-08-01: :class:`DdosCustomPoliciesOperations` * 2020-11-01: :class:`DdosCustomPoliciesOperations` * 2021-02-01: :class:`DdosCustomPoliciesOperations` - * 2021-05-01: :class:`DdosCustomPoliciesOperations` * 2021-08-01: :class:`DdosCustomPoliciesOperations` """ api_version = self._get_api_version('ddos_custom_policies') @@ -1490,8 +1440,6 @@ def ddos_custom_policies(self): from .v2020_11_01.operations import DdosCustomPoliciesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import DdosCustomPoliciesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import DdosCustomPoliciesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import DdosCustomPoliciesOperations as OperationClass else: @@ -1526,7 +1474,6 @@ def ddos_protection_plans(self): * 2020-08-01: :class:`DdosProtectionPlansOperations` * 2020-11-01: :class:`DdosProtectionPlansOperations` * 2021-02-01: :class:`DdosProtectionPlansOperations` - * 2021-05-01: :class:`DdosProtectionPlansOperations` * 2021-08-01: :class:`DdosProtectionPlansOperations` """ api_version = self._get_api_version('ddos_protection_plans') @@ -1578,8 +1525,6 @@ def ddos_protection_plans(self): from .v2020_11_01.operations import DdosProtectionPlansOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import DdosProtectionPlansOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import DdosProtectionPlansOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import DdosProtectionPlansOperations as OperationClass else: @@ -1617,7 +1562,6 @@ def default_security_rules(self): * 2020-08-01: :class:`DefaultSecurityRulesOperations` * 2020-11-01: :class:`DefaultSecurityRulesOperations` * 2021-02-01: :class:`DefaultSecurityRulesOperations` - * 2021-05-01: :class:`DefaultSecurityRulesOperations` * 2021-08-01: :class:`DefaultSecurityRulesOperations` """ api_version = self._get_api_version('default_security_rules') @@ -1675,8 +1619,6 @@ def default_security_rules(self): from .v2020_11_01.operations import DefaultSecurityRulesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import DefaultSecurityRulesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import DefaultSecurityRulesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import DefaultSecurityRulesOperations as OperationClass else: @@ -1692,7 +1634,6 @@ def dscp_configuration(self): * 2020-08-01: :class:`DscpConfigurationOperations` * 2020-11-01: :class:`DscpConfigurationOperations` * 2021-02-01: :class:`DscpConfigurationOperations` - * 2021-05-01: :class:`DscpConfigurationOperations` * 2021-08-01: :class:`DscpConfigurationOperations` """ api_version = self._get_api_version('dscp_configuration') @@ -1706,8 +1647,6 @@ def dscp_configuration(self): from .v2020_11_01.operations import DscpConfigurationOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import DscpConfigurationOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import DscpConfigurationOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import DscpConfigurationOperations as OperationClass else: @@ -1775,7 +1714,6 @@ def express_route_circuit_authorizations(self): * 2020-08-01: :class:`ExpressRouteCircuitAuthorizationsOperations` * 2020-11-01: :class:`ExpressRouteCircuitAuthorizationsOperations` * 2021-02-01: :class:`ExpressRouteCircuitAuthorizationsOperations` - * 2021-05-01: :class:`ExpressRouteCircuitAuthorizationsOperations` * 2021-08-01: :class:`ExpressRouteCircuitAuthorizationsOperations` """ api_version = self._get_api_version('express_route_circuit_authorizations') @@ -1841,8 +1779,6 @@ def express_route_circuit_authorizations(self): from .v2020_11_01.operations import ExpressRouteCircuitAuthorizationsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import ExpressRouteCircuitAuthorizationsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import ExpressRouteCircuitAuthorizationsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import ExpressRouteCircuitAuthorizationsOperations as OperationClass else: @@ -1877,7 +1813,6 @@ def express_route_circuit_connections(self): * 2020-08-01: :class:`ExpressRouteCircuitConnectionsOperations` * 2020-11-01: :class:`ExpressRouteCircuitConnectionsOperations` * 2021-02-01: :class:`ExpressRouteCircuitConnectionsOperations` - * 2021-05-01: :class:`ExpressRouteCircuitConnectionsOperations` * 2021-08-01: :class:`ExpressRouteCircuitConnectionsOperations` """ api_version = self._get_api_version('express_route_circuit_connections') @@ -1929,8 +1864,6 @@ def express_route_circuit_connections(self): from .v2020_11_01.operations import ExpressRouteCircuitConnectionsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import ExpressRouteCircuitConnectionsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import ExpressRouteCircuitConnectionsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import ExpressRouteCircuitConnectionsOperations as OperationClass else: @@ -1972,7 +1905,6 @@ def express_route_circuit_peerings(self): * 2020-08-01: :class:`ExpressRouteCircuitPeeringsOperations` * 2020-11-01: :class:`ExpressRouteCircuitPeeringsOperations` * 2021-02-01: :class:`ExpressRouteCircuitPeeringsOperations` - * 2021-05-01: :class:`ExpressRouteCircuitPeeringsOperations` * 2021-08-01: :class:`ExpressRouteCircuitPeeringsOperations` """ api_version = self._get_api_version('express_route_circuit_peerings') @@ -2038,8 +1970,6 @@ def express_route_circuit_peerings(self): from .v2020_11_01.operations import ExpressRouteCircuitPeeringsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import ExpressRouteCircuitPeeringsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import ExpressRouteCircuitPeeringsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import ExpressRouteCircuitPeeringsOperations as OperationClass else: @@ -2081,7 +2011,6 @@ def express_route_circuits(self): * 2020-08-01: :class:`ExpressRouteCircuitsOperations` * 2020-11-01: :class:`ExpressRouteCircuitsOperations` * 2021-02-01: :class:`ExpressRouteCircuitsOperations` - * 2021-05-01: :class:`ExpressRouteCircuitsOperations` * 2021-08-01: :class:`ExpressRouteCircuitsOperations` """ api_version = self._get_api_version('express_route_circuits') @@ -2147,8 +2076,6 @@ def express_route_circuits(self): from .v2020_11_01.operations import ExpressRouteCircuitsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import ExpressRouteCircuitsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import ExpressRouteCircuitsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import ExpressRouteCircuitsOperations as OperationClass else: @@ -2179,7 +2106,6 @@ def express_route_connections(self): * 2020-08-01: :class:`ExpressRouteConnectionsOperations` * 2020-11-01: :class:`ExpressRouteConnectionsOperations` * 2021-02-01: :class:`ExpressRouteConnectionsOperations` - * 2021-05-01: :class:`ExpressRouteConnectionsOperations` * 2021-08-01: :class:`ExpressRouteConnectionsOperations` """ api_version = self._get_api_version('express_route_connections') @@ -2223,8 +2149,6 @@ def express_route_connections(self): from .v2020_11_01.operations import ExpressRouteConnectionsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import ExpressRouteConnectionsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import ExpressRouteConnectionsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import ExpressRouteConnectionsOperations as OperationClass else: @@ -2259,7 +2183,6 @@ def express_route_cross_connection_peerings(self): * 2020-08-01: :class:`ExpressRouteCrossConnectionPeeringsOperations` * 2020-11-01: :class:`ExpressRouteCrossConnectionPeeringsOperations` * 2021-02-01: :class:`ExpressRouteCrossConnectionPeeringsOperations` - * 2021-05-01: :class:`ExpressRouteCrossConnectionPeeringsOperations` * 2021-08-01: :class:`ExpressRouteCrossConnectionPeeringsOperations` """ api_version = self._get_api_version('express_route_cross_connection_peerings') @@ -2311,8 +2234,6 @@ def express_route_cross_connection_peerings(self): from .v2020_11_01.operations import ExpressRouteCrossConnectionPeeringsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import ExpressRouteCrossConnectionPeeringsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import ExpressRouteCrossConnectionPeeringsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import ExpressRouteCrossConnectionPeeringsOperations as OperationClass else: @@ -2347,7 +2268,6 @@ def express_route_cross_connections(self): * 2020-08-01: :class:`ExpressRouteCrossConnectionsOperations` * 2020-11-01: :class:`ExpressRouteCrossConnectionsOperations` * 2021-02-01: :class:`ExpressRouteCrossConnectionsOperations` - * 2021-05-01: :class:`ExpressRouteCrossConnectionsOperations` * 2021-08-01: :class:`ExpressRouteCrossConnectionsOperations` """ api_version = self._get_api_version('express_route_cross_connections') @@ -2399,8 +2319,6 @@ def express_route_cross_connections(self): from .v2020_11_01.operations import ExpressRouteCrossConnectionsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import ExpressRouteCrossConnectionsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import ExpressRouteCrossConnectionsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import ExpressRouteCrossConnectionsOperations as OperationClass else: @@ -2431,7 +2349,6 @@ def express_route_gateways(self): * 2020-08-01: :class:`ExpressRouteGatewaysOperations` * 2020-11-01: :class:`ExpressRouteGatewaysOperations` * 2021-02-01: :class:`ExpressRouteGatewaysOperations` - * 2021-05-01: :class:`ExpressRouteGatewaysOperations` * 2021-08-01: :class:`ExpressRouteGatewaysOperations` """ api_version = self._get_api_version('express_route_gateways') @@ -2475,8 +2392,6 @@ def express_route_gateways(self): from .v2020_11_01.operations import ExpressRouteGatewaysOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import ExpressRouteGatewaysOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import ExpressRouteGatewaysOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import ExpressRouteGatewaysOperations as OperationClass else: @@ -2507,7 +2422,6 @@ def express_route_links(self): * 2020-08-01: :class:`ExpressRouteLinksOperations` * 2020-11-01: :class:`ExpressRouteLinksOperations` * 2021-02-01: :class:`ExpressRouteLinksOperations` - * 2021-05-01: :class:`ExpressRouteLinksOperations` * 2021-08-01: :class:`ExpressRouteLinksOperations` """ api_version = self._get_api_version('express_route_links') @@ -2551,8 +2465,6 @@ def express_route_links(self): from .v2020_11_01.operations import ExpressRouteLinksOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import ExpressRouteLinksOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import ExpressRouteLinksOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import ExpressRouteLinksOperations as OperationClass else: @@ -2596,7 +2508,6 @@ def express_route_ports(self): * 2020-08-01: :class:`ExpressRoutePortsOperations` * 2020-11-01: :class:`ExpressRoutePortsOperations` * 2021-02-01: :class:`ExpressRoutePortsOperations` - * 2021-05-01: :class:`ExpressRoutePortsOperations` * 2021-08-01: :class:`ExpressRoutePortsOperations` """ api_version = self._get_api_version('express_route_ports') @@ -2640,8 +2551,6 @@ def express_route_ports(self): from .v2020_11_01.operations import ExpressRoutePortsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import ExpressRoutePortsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import ExpressRoutePortsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import ExpressRoutePortsOperations as OperationClass else: @@ -2672,7 +2581,6 @@ def express_route_ports_locations(self): * 2020-08-01: :class:`ExpressRoutePortsLocationsOperations` * 2020-11-01: :class:`ExpressRoutePortsLocationsOperations` * 2021-02-01: :class:`ExpressRoutePortsLocationsOperations` - * 2021-05-01: :class:`ExpressRoutePortsLocationsOperations` * 2021-08-01: :class:`ExpressRoutePortsLocationsOperations` """ api_version = self._get_api_version('express_route_ports_locations') @@ -2716,8 +2624,6 @@ def express_route_ports_locations(self): from .v2020_11_01.operations import ExpressRoutePortsLocationsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import ExpressRoutePortsLocationsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import ExpressRoutePortsLocationsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import ExpressRoutePortsLocationsOperations as OperationClass else: @@ -2759,7 +2665,6 @@ def express_route_service_providers(self): * 2020-08-01: :class:`ExpressRouteServiceProvidersOperations` * 2020-11-01: :class:`ExpressRouteServiceProvidersOperations` * 2021-02-01: :class:`ExpressRouteServiceProvidersOperations` - * 2021-05-01: :class:`ExpressRouteServiceProvidersOperations` * 2021-08-01: :class:`ExpressRouteServiceProvidersOperations` """ api_version = self._get_api_version('express_route_service_providers') @@ -2825,8 +2730,6 @@ def express_route_service_providers(self): from .v2020_11_01.operations import ExpressRouteServiceProvidersOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import ExpressRouteServiceProvidersOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import ExpressRouteServiceProvidersOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import ExpressRouteServiceProvidersOperations as OperationClass else: @@ -2851,7 +2754,6 @@ def firewall_policies(self): * 2020-08-01: :class:`FirewallPoliciesOperations` * 2020-11-01: :class:`FirewallPoliciesOperations` * 2021-02-01: :class:`FirewallPoliciesOperations` - * 2021-05-01: :class:`FirewallPoliciesOperations` * 2021-08-01: :class:`FirewallPoliciesOperations` """ api_version = self._get_api_version('firewall_policies') @@ -2883,8 +2785,6 @@ def firewall_policies(self): from .v2020_11_01.operations import FirewallPoliciesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import FirewallPoliciesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import FirewallPoliciesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import FirewallPoliciesOperations as OperationClass else: @@ -2895,13 +2795,10 @@ def firewall_policies(self): def firewall_policy_idps_signatures(self): """Instance depends on the API version: - * 2021-05-01: :class:`FirewallPolicyIdpsSignaturesOperations` * 2021-08-01: :class:`FirewallPolicyIdpsSignaturesOperations` """ api_version = self._get_api_version('firewall_policy_idps_signatures') - if api_version == '2021-05-01': - from .v2021_05_01.operations import FirewallPolicyIdpsSignaturesOperations as OperationClass - elif api_version == '2021-08-01': + if api_version == '2021-08-01': from .v2021_08_01.operations import FirewallPolicyIdpsSignaturesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'firewall_policy_idps_signatures'".format(api_version)) @@ -2911,13 +2808,10 @@ def firewall_policy_idps_signatures(self): def firewall_policy_idps_signatures_filter_values(self): """Instance depends on the API version: - * 2021-05-01: :class:`FirewallPolicyIdpsSignaturesFilterValuesOperations` * 2021-08-01: :class:`FirewallPolicyIdpsSignaturesFilterValuesOperations` """ api_version = self._get_api_version('firewall_policy_idps_signatures_filter_values') - if api_version == '2021-05-01': - from .v2021_05_01.operations import FirewallPolicyIdpsSignaturesFilterValuesOperations as OperationClass - elif api_version == '2021-08-01': + if api_version == '2021-08-01': from .v2021_08_01.operations import FirewallPolicyIdpsSignaturesFilterValuesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'firewall_policy_idps_signatures_filter_values'".format(api_version)) @@ -2927,13 +2821,10 @@ def firewall_policy_idps_signatures_filter_values(self): def firewall_policy_idps_signatures_overrides(self): """Instance depends on the API version: - * 2021-05-01: :class:`FirewallPolicyIdpsSignaturesOverridesOperations` * 2021-08-01: :class:`FirewallPolicyIdpsSignaturesOverridesOperations` """ api_version = self._get_api_version('firewall_policy_idps_signatures_overrides') - if api_version == '2021-05-01': - from .v2021_05_01.operations import FirewallPolicyIdpsSignaturesOverridesOperations as OperationClass - elif api_version == '2021-08-01': + if api_version == '2021-08-01': from .v2021_08_01.operations import FirewallPolicyIdpsSignaturesOverridesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'firewall_policy_idps_signatures_overrides'".format(api_version)) @@ -2949,7 +2840,6 @@ def firewall_policy_rule_collection_groups(self): * 2020-08-01: :class:`FirewallPolicyRuleCollectionGroupsOperations` * 2020-11-01: :class:`FirewallPolicyRuleCollectionGroupsOperations` * 2021-02-01: :class:`FirewallPolicyRuleCollectionGroupsOperations` - * 2021-05-01: :class:`FirewallPolicyRuleCollectionGroupsOperations` * 2021-08-01: :class:`FirewallPolicyRuleCollectionGroupsOperations` """ api_version = self._get_api_version('firewall_policy_rule_collection_groups') @@ -2965,8 +2855,6 @@ def firewall_policy_rule_collection_groups(self): from .v2020_11_01.operations import FirewallPolicyRuleCollectionGroupsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import FirewallPolicyRuleCollectionGroupsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import FirewallPolicyRuleCollectionGroupsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import FirewallPolicyRuleCollectionGroupsOperations as OperationClass else: @@ -3021,7 +2909,6 @@ def flow_logs(self): * 2020-08-01: :class:`FlowLogsOperations` * 2020-11-01: :class:`FlowLogsOperations` * 2021-02-01: :class:`FlowLogsOperations` - * 2021-05-01: :class:`FlowLogsOperations` * 2021-08-01: :class:`FlowLogsOperations` """ api_version = self._get_api_version('flow_logs') @@ -3045,8 +2932,6 @@ def flow_logs(self): from .v2020_11_01.operations import FlowLogsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import FlowLogsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import FlowLogsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import FlowLogsOperations as OperationClass else: @@ -3064,7 +2949,6 @@ def hub_route_tables(self): * 2020-08-01: :class:`HubRouteTablesOperations` * 2020-11-01: :class:`HubRouteTablesOperations` * 2021-02-01: :class:`HubRouteTablesOperations` - * 2021-05-01: :class:`HubRouteTablesOperations` * 2021-08-01: :class:`HubRouteTablesOperations` """ api_version = self._get_api_version('hub_route_tables') @@ -3082,8 +2966,6 @@ def hub_route_tables(self): from .v2020_11_01.operations import HubRouteTablesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import HubRouteTablesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import HubRouteTablesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import HubRouteTablesOperations as OperationClass else: @@ -3117,7 +2999,6 @@ def hub_virtual_network_connections(self): * 2020-08-01: :class:`HubVirtualNetworkConnectionsOperations` * 2020-11-01: :class:`HubVirtualNetworkConnectionsOperations` * 2021-02-01: :class:`HubVirtualNetworkConnectionsOperations` - * 2021-05-01: :class:`HubVirtualNetworkConnectionsOperations` * 2021-08-01: :class:`HubVirtualNetworkConnectionsOperations` """ api_version = self._get_api_version('hub_virtual_network_connections') @@ -3167,8 +3048,6 @@ def hub_virtual_network_connections(self): from .v2020_11_01.operations import HubVirtualNetworkConnectionsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import HubVirtualNetworkConnectionsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import HubVirtualNetworkConnectionsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import HubVirtualNetworkConnectionsOperations as OperationClass else: @@ -3206,7 +3085,6 @@ def inbound_nat_rules(self): * 2020-08-01: :class:`InboundNatRulesOperations` * 2020-11-01: :class:`InboundNatRulesOperations` * 2021-02-01: :class:`InboundNatRulesOperations` - * 2021-05-01: :class:`InboundNatRulesOperations` * 2021-08-01: :class:`InboundNatRulesOperations` """ api_version = self._get_api_version('inbound_nat_rules') @@ -3264,8 +3142,6 @@ def inbound_nat_rules(self): from .v2020_11_01.operations import InboundNatRulesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import InboundNatRulesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import InboundNatRulesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import InboundNatRulesOperations as OperationClass else: @@ -3281,7 +3157,6 @@ def inbound_security_rule(self): * 2020-08-01: :class:`InboundSecurityRuleOperations` * 2020-11-01: :class:`InboundSecurityRuleOperations` * 2021-02-01: :class:`InboundSecurityRuleOperations` - * 2021-05-01: :class:`InboundSecurityRuleOperations` * 2021-08-01: :class:`InboundSecurityRuleOperations` """ api_version = self._get_api_version('inbound_security_rule') @@ -3295,8 +3170,6 @@ def inbound_security_rule(self): from .v2020_11_01.operations import InboundSecurityRuleOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import InboundSecurityRuleOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import InboundSecurityRuleOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import InboundSecurityRuleOperations as OperationClass else: @@ -3340,7 +3213,6 @@ def ip_allocations(self): * 2020-08-01: :class:`IpAllocationsOperations` * 2020-11-01: :class:`IpAllocationsOperations` * 2021-02-01: :class:`IpAllocationsOperations` - * 2021-05-01: :class:`IpAllocationsOperations` * 2021-08-01: :class:`IpAllocationsOperations` """ api_version = self._get_api_version('ip_allocations') @@ -3360,8 +3232,6 @@ def ip_allocations(self): from .v2020_11_01.operations import IpAllocationsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import IpAllocationsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import IpAllocationsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import IpAllocationsOperations as OperationClass else: @@ -3383,7 +3253,6 @@ def ip_groups(self): * 2020-08-01: :class:`IpGroupsOperations` * 2020-11-01: :class:`IpGroupsOperations` * 2021-02-01: :class:`IpGroupsOperations` - * 2021-05-01: :class:`IpGroupsOperations` * 2021-08-01: :class:`IpGroupsOperations` """ api_version = self._get_api_version('ip_groups') @@ -3409,8 +3278,6 @@ def ip_groups(self): from .v2020_11_01.operations import IpGroupsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import IpGroupsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import IpGroupsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import IpGroupsOperations as OperationClass else: @@ -3448,7 +3315,6 @@ def load_balancer_backend_address_pools(self): * 2020-08-01: :class:`LoadBalancerBackendAddressPoolsOperations` * 2020-11-01: :class:`LoadBalancerBackendAddressPoolsOperations` * 2021-02-01: :class:`LoadBalancerBackendAddressPoolsOperations` - * 2021-05-01: :class:`LoadBalancerBackendAddressPoolsOperations` * 2021-08-01: :class:`LoadBalancerBackendAddressPoolsOperations` """ api_version = self._get_api_version('load_balancer_backend_address_pools') @@ -3506,8 +3372,6 @@ def load_balancer_backend_address_pools(self): from .v2020_11_01.operations import LoadBalancerBackendAddressPoolsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import LoadBalancerBackendAddressPoolsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import LoadBalancerBackendAddressPoolsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import LoadBalancerBackendAddressPoolsOperations as OperationClass else: @@ -3545,7 +3409,6 @@ def load_balancer_frontend_ip_configurations(self): * 2020-08-01: :class:`LoadBalancerFrontendIPConfigurationsOperations` * 2020-11-01: :class:`LoadBalancerFrontendIPConfigurationsOperations` * 2021-02-01: :class:`LoadBalancerFrontendIPConfigurationsOperations` - * 2021-05-01: :class:`LoadBalancerFrontendIPConfigurationsOperations` * 2021-08-01: :class:`LoadBalancerFrontendIPConfigurationsOperations` """ api_version = self._get_api_version('load_balancer_frontend_ip_configurations') @@ -3603,8 +3466,6 @@ def load_balancer_frontend_ip_configurations(self): from .v2020_11_01.operations import LoadBalancerFrontendIPConfigurationsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import LoadBalancerFrontendIPConfigurationsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import LoadBalancerFrontendIPConfigurationsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import LoadBalancerFrontendIPConfigurationsOperations as OperationClass else: @@ -3642,7 +3503,6 @@ def load_balancer_load_balancing_rules(self): * 2020-08-01: :class:`LoadBalancerLoadBalancingRulesOperations` * 2020-11-01: :class:`LoadBalancerLoadBalancingRulesOperations` * 2021-02-01: :class:`LoadBalancerLoadBalancingRulesOperations` - * 2021-05-01: :class:`LoadBalancerLoadBalancingRulesOperations` * 2021-08-01: :class:`LoadBalancerLoadBalancingRulesOperations` """ api_version = self._get_api_version('load_balancer_load_balancing_rules') @@ -3700,8 +3560,6 @@ def load_balancer_load_balancing_rules(self): from .v2020_11_01.operations import LoadBalancerLoadBalancingRulesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import LoadBalancerLoadBalancingRulesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import LoadBalancerLoadBalancingRulesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import LoadBalancerLoadBalancingRulesOperations as OperationClass else: @@ -3739,7 +3597,6 @@ def load_balancer_network_interfaces(self): * 2020-08-01: :class:`LoadBalancerNetworkInterfacesOperations` * 2020-11-01: :class:`LoadBalancerNetworkInterfacesOperations` * 2021-02-01: :class:`LoadBalancerNetworkInterfacesOperations` - * 2021-05-01: :class:`LoadBalancerNetworkInterfacesOperations` * 2021-08-01: :class:`LoadBalancerNetworkInterfacesOperations` """ api_version = self._get_api_version('load_balancer_network_interfaces') @@ -3797,8 +3654,6 @@ def load_balancer_network_interfaces(self): from .v2020_11_01.operations import LoadBalancerNetworkInterfacesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import LoadBalancerNetworkInterfacesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import LoadBalancerNetworkInterfacesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import LoadBalancerNetworkInterfacesOperations as OperationClass else: @@ -3829,7 +3684,6 @@ def load_balancer_outbound_rules(self): * 2020-08-01: :class:`LoadBalancerOutboundRulesOperations` * 2020-11-01: :class:`LoadBalancerOutboundRulesOperations` * 2021-02-01: :class:`LoadBalancerOutboundRulesOperations` - * 2021-05-01: :class:`LoadBalancerOutboundRulesOperations` * 2021-08-01: :class:`LoadBalancerOutboundRulesOperations` """ api_version = self._get_api_version('load_balancer_outbound_rules') @@ -3873,8 +3727,6 @@ def load_balancer_outbound_rules(self): from .v2020_11_01.operations import LoadBalancerOutboundRulesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import LoadBalancerOutboundRulesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import LoadBalancerOutboundRulesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import LoadBalancerOutboundRulesOperations as OperationClass else: @@ -3912,7 +3764,6 @@ def load_balancer_probes(self): * 2020-08-01: :class:`LoadBalancerProbesOperations` * 2020-11-01: :class:`LoadBalancerProbesOperations` * 2021-02-01: :class:`LoadBalancerProbesOperations` - * 2021-05-01: :class:`LoadBalancerProbesOperations` * 2021-08-01: :class:`LoadBalancerProbesOperations` """ api_version = self._get_api_version('load_balancer_probes') @@ -3970,8 +3821,6 @@ def load_balancer_probes(self): from .v2020_11_01.operations import LoadBalancerProbesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import LoadBalancerProbesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import LoadBalancerProbesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import LoadBalancerProbesOperations as OperationClass else: @@ -4013,7 +3862,6 @@ def load_balancers(self): * 2020-08-01: :class:`LoadBalancersOperations` * 2020-11-01: :class:`LoadBalancersOperations` * 2021-02-01: :class:`LoadBalancersOperations` - * 2021-05-01: :class:`LoadBalancersOperations` * 2021-08-01: :class:`LoadBalancersOperations` """ api_version = self._get_api_version('load_balancers') @@ -4079,8 +3927,6 @@ def load_balancers(self): from .v2020_11_01.operations import LoadBalancersOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import LoadBalancersOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import LoadBalancersOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import LoadBalancersOperations as OperationClass else: @@ -4122,7 +3968,6 @@ def local_network_gateways(self): * 2020-08-01: :class:`LocalNetworkGatewaysOperations` * 2020-11-01: :class:`LocalNetworkGatewaysOperations` * 2021-02-01: :class:`LocalNetworkGatewaysOperations` - * 2021-05-01: :class:`LocalNetworkGatewaysOperations` * 2021-08-01: :class:`LocalNetworkGatewaysOperations` """ api_version = self._get_api_version('local_network_gateways') @@ -4188,8 +4033,6 @@ def local_network_gateways(self): from .v2020_11_01.operations import LocalNetworkGatewaysOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import LocalNetworkGatewaysOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import LocalNetworkGatewaysOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import LocalNetworkGatewaysOperations as OperationClass else: @@ -4216,7 +4059,6 @@ def nat_gateways(self): * 2020-08-01: :class:`NatGatewaysOperations` * 2020-11-01: :class:`NatGatewaysOperations` * 2021-02-01: :class:`NatGatewaysOperations` - * 2021-05-01: :class:`NatGatewaysOperations` * 2021-08-01: :class:`NatGatewaysOperations` """ api_version = self._get_api_version('nat_gateways') @@ -4252,8 +4094,6 @@ def nat_gateways(self): from .v2020_11_01.operations import NatGatewaysOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import NatGatewaysOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import NatGatewaysOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import NatGatewaysOperations as OperationClass else: @@ -4267,7 +4107,6 @@ def nat_rules(self): * 2020-08-01: :class:`NatRulesOperations` * 2020-11-01: :class:`NatRulesOperations` * 2021-02-01: :class:`NatRulesOperations` - * 2021-05-01: :class:`NatRulesOperations` * 2021-08-01: :class:`NatRulesOperations` """ api_version = self._get_api_version('nat_rules') @@ -4277,8 +4116,6 @@ def nat_rules(self): from .v2020_11_01.operations import NatRulesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import NatRulesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import NatRulesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import NatRulesOperations as OperationClass else: @@ -4329,7 +4166,6 @@ def network_interface_ip_configurations(self): * 2020-08-01: :class:`NetworkInterfaceIPConfigurationsOperations` * 2020-11-01: :class:`NetworkInterfaceIPConfigurationsOperations` * 2021-02-01: :class:`NetworkInterfaceIPConfigurationsOperations` - * 2021-05-01: :class:`NetworkInterfaceIPConfigurationsOperations` * 2021-08-01: :class:`NetworkInterfaceIPConfigurationsOperations` """ api_version = self._get_api_version('network_interface_ip_configurations') @@ -4387,8 +4223,6 @@ def network_interface_ip_configurations(self): from .v2020_11_01.operations import NetworkInterfaceIPConfigurationsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import NetworkInterfaceIPConfigurationsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import NetworkInterfaceIPConfigurationsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import NetworkInterfaceIPConfigurationsOperations as OperationClass else: @@ -4426,7 +4260,6 @@ def network_interface_load_balancers(self): * 2020-08-01: :class:`NetworkInterfaceLoadBalancersOperations` * 2020-11-01: :class:`NetworkInterfaceLoadBalancersOperations` * 2021-02-01: :class:`NetworkInterfaceLoadBalancersOperations` - * 2021-05-01: :class:`NetworkInterfaceLoadBalancersOperations` * 2021-08-01: :class:`NetworkInterfaceLoadBalancersOperations` """ api_version = self._get_api_version('network_interface_load_balancers') @@ -4484,8 +4317,6 @@ def network_interface_load_balancers(self): from .v2020_11_01.operations import NetworkInterfaceLoadBalancersOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import NetworkInterfaceLoadBalancersOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import NetworkInterfaceLoadBalancersOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import NetworkInterfaceLoadBalancersOperations as OperationClass else: @@ -4516,7 +4347,6 @@ def network_interface_tap_configurations(self): * 2020-08-01: :class:`NetworkInterfaceTapConfigurationsOperations` * 2020-11-01: :class:`NetworkInterfaceTapConfigurationsOperations` * 2021-02-01: :class:`NetworkInterfaceTapConfigurationsOperations` - * 2021-05-01: :class:`NetworkInterfaceTapConfigurationsOperations` * 2021-08-01: :class:`NetworkInterfaceTapConfigurationsOperations` """ api_version = self._get_api_version('network_interface_tap_configurations') @@ -4560,8 +4390,6 @@ def network_interface_tap_configurations(self): from .v2020_11_01.operations import NetworkInterfaceTapConfigurationsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import NetworkInterfaceTapConfigurationsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import NetworkInterfaceTapConfigurationsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import NetworkInterfaceTapConfigurationsOperations as OperationClass else: @@ -4603,7 +4431,6 @@ def network_interfaces(self): * 2020-08-01: :class:`NetworkInterfacesOperations` * 2020-11-01: :class:`NetworkInterfacesOperations` * 2021-02-01: :class:`NetworkInterfacesOperations` - * 2021-05-01: :class:`NetworkInterfacesOperations` * 2021-08-01: :class:`NetworkInterfacesOperations` """ api_version = self._get_api_version('network_interfaces') @@ -4669,8 +4496,6 @@ def network_interfaces(self): from .v2020_11_01.operations import NetworkInterfacesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import NetworkInterfacesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import NetworkInterfacesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import NetworkInterfacesOperations as OperationClass else: @@ -4753,7 +4578,6 @@ def network_profiles(self): * 2020-08-01: :class:`NetworkProfilesOperations` * 2020-11-01: :class:`NetworkProfilesOperations` * 2021-02-01: :class:`NetworkProfilesOperations` - * 2021-05-01: :class:`NetworkProfilesOperations` * 2021-08-01: :class:`NetworkProfilesOperations` """ api_version = self._get_api_version('network_profiles') @@ -4797,8 +4621,6 @@ def network_profiles(self): from .v2020_11_01.operations import NetworkProfilesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import NetworkProfilesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import NetworkProfilesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import NetworkProfilesOperations as OperationClass else: @@ -4840,7 +4662,6 @@ def network_security_groups(self): * 2020-08-01: :class:`NetworkSecurityGroupsOperations` * 2020-11-01: :class:`NetworkSecurityGroupsOperations` * 2021-02-01: :class:`NetworkSecurityGroupsOperations` - * 2021-05-01: :class:`NetworkSecurityGroupsOperations` * 2021-08-01: :class:`NetworkSecurityGroupsOperations` """ api_version = self._get_api_version('network_security_groups') @@ -4906,8 +4727,6 @@ def network_security_groups(self): from .v2020_11_01.operations import NetworkSecurityGroupsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import NetworkSecurityGroupsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import NetworkSecurityGroupsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import NetworkSecurityGroupsOperations as OperationClass else: @@ -4940,7 +4759,6 @@ def network_virtual_appliances(self): * 2020-08-01: :class:`NetworkVirtualAppliancesOperations` * 2020-11-01: :class:`NetworkVirtualAppliancesOperations` * 2021-02-01: :class:`NetworkVirtualAppliancesOperations` - * 2021-05-01: :class:`NetworkVirtualAppliancesOperations` * 2021-08-01: :class:`NetworkVirtualAppliancesOperations` """ api_version = self._get_api_version('network_virtual_appliances') @@ -4962,8 +4780,6 @@ def network_virtual_appliances(self): from .v2020_11_01.operations import NetworkVirtualAppliancesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import NetworkVirtualAppliancesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import NetworkVirtualAppliancesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import NetworkVirtualAppliancesOperations as OperationClass else: @@ -5004,7 +4820,6 @@ def network_watchers(self): * 2020-08-01: :class:`NetworkWatchersOperations` * 2020-11-01: :class:`NetworkWatchersOperations` * 2021-02-01: :class:`NetworkWatchersOperations` - * 2021-05-01: :class:`NetworkWatchersOperations` * 2021-08-01: :class:`NetworkWatchersOperations` """ api_version = self._get_api_version('network_watchers') @@ -5068,8 +4883,6 @@ def network_watchers(self): from .v2020_11_01.operations import NetworkWatchersOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import NetworkWatchersOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import NetworkWatchersOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import NetworkWatchersOperations as OperationClass else: @@ -5145,7 +4958,6 @@ def operations(self): * 2020-08-01: :class:`Operations` * 2020-11-01: :class:`Operations` * 2021-02-01: :class:`Operations` - * 2021-05-01: :class:`Operations` * 2021-08-01: :class:`Operations` """ api_version = self._get_api_version('operations') @@ -5201,8 +5013,6 @@ def operations(self): from .v2020_11_01.operations import Operations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import Operations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import Operations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import Operations as OperationClass else: @@ -5233,7 +5043,6 @@ def p2_svpn_gateways(self): * 2020-08-01: :class:`P2SVpnGatewaysOperations` * 2020-11-01: :class:`P2SVpnGatewaysOperations` * 2021-02-01: :class:`P2SVpnGatewaysOperations` - * 2021-05-01: :class:`P2SVpnGatewaysOperations` * 2021-08-01: :class:`P2SVpnGatewaysOperations` """ api_version = self._get_api_version('p2_svpn_gateways') @@ -5277,8 +5086,6 @@ def p2_svpn_gateways(self): from .v2020_11_01.operations import P2SVpnGatewaysOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import P2SVpnGatewaysOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import P2SVpnGatewaysOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import P2SVpnGatewaysOperations as OperationClass else: @@ -5353,7 +5160,6 @@ def packet_captures(self): * 2020-08-01: :class:`PacketCapturesOperations` * 2020-11-01: :class:`PacketCapturesOperations` * 2021-02-01: :class:`PacketCapturesOperations` - * 2021-05-01: :class:`PacketCapturesOperations` * 2021-08-01: :class:`PacketCapturesOperations` """ api_version = self._get_api_version('packet_captures') @@ -5417,8 +5223,6 @@ def packet_captures(self): from .v2020_11_01.operations import PacketCapturesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import PacketCapturesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import PacketCapturesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import PacketCapturesOperations as OperationClass else: @@ -5446,7 +5250,6 @@ def peer_express_route_circuit_connections(self): * 2020-08-01: :class:`PeerExpressRouteCircuitConnectionsOperations` * 2020-11-01: :class:`PeerExpressRouteCircuitConnectionsOperations` * 2021-02-01: :class:`PeerExpressRouteCircuitConnectionsOperations` - * 2021-05-01: :class:`PeerExpressRouteCircuitConnectionsOperations` * 2021-08-01: :class:`PeerExpressRouteCircuitConnectionsOperations` """ api_version = self._get_api_version('peer_express_route_circuit_connections') @@ -5484,8 +5287,6 @@ def peer_express_route_circuit_connections(self): from .v2020_11_01.operations import PeerExpressRouteCircuitConnectionsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import PeerExpressRouteCircuitConnectionsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import PeerExpressRouteCircuitConnectionsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import PeerExpressRouteCircuitConnectionsOperations as OperationClass else: @@ -5517,7 +5318,6 @@ def private_dns_zone_groups(self): * 2020-08-01: :class:`PrivateDnsZoneGroupsOperations` * 2020-11-01: :class:`PrivateDnsZoneGroupsOperations` * 2021-02-01: :class:`PrivateDnsZoneGroupsOperations` - * 2021-05-01: :class:`PrivateDnsZoneGroupsOperations` * 2021-08-01: :class:`PrivateDnsZoneGroupsOperations` """ api_version = self._get_api_version('private_dns_zone_groups') @@ -5537,8 +5337,6 @@ def private_dns_zone_groups(self): from .v2020_11_01.operations import PrivateDnsZoneGroupsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import PrivateDnsZoneGroupsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import PrivateDnsZoneGroupsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import PrivateDnsZoneGroupsOperations as OperationClass else: @@ -5564,7 +5362,6 @@ def private_endpoints(self): * 2020-08-01: :class:`PrivateEndpointsOperations` * 2020-11-01: :class:`PrivateEndpointsOperations` * 2021-02-01: :class:`PrivateEndpointsOperations` - * 2021-05-01: :class:`PrivateEndpointsOperations` * 2021-08-01: :class:`PrivateEndpointsOperations` """ api_version = self._get_api_version('private_endpoints') @@ -5598,8 +5395,6 @@ def private_endpoints(self): from .v2020_11_01.operations import PrivateEndpointsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import PrivateEndpointsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import PrivateEndpointsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import PrivateEndpointsOperations as OperationClass else: @@ -5625,7 +5420,6 @@ def private_link_services(self): * 2020-08-01: :class:`PrivateLinkServicesOperations` * 2020-11-01: :class:`PrivateLinkServicesOperations` * 2021-02-01: :class:`PrivateLinkServicesOperations` - * 2021-05-01: :class:`PrivateLinkServicesOperations` * 2021-08-01: :class:`PrivateLinkServicesOperations` """ api_version = self._get_api_version('private_link_services') @@ -5659,8 +5453,6 @@ def private_link_services(self): from .v2020_11_01.operations import PrivateLinkServicesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import PrivateLinkServicesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import PrivateLinkServicesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import PrivateLinkServicesOperations as OperationClass else: @@ -5702,7 +5494,6 @@ def public_ip_addresses(self): * 2020-08-01: :class:`PublicIPAddressesOperations` * 2020-11-01: :class:`PublicIPAddressesOperations` * 2021-02-01: :class:`PublicIPAddressesOperations` - * 2021-05-01: :class:`PublicIPAddressesOperations` * 2021-08-01: :class:`PublicIPAddressesOperations` """ api_version = self._get_api_version('public_ip_addresses') @@ -5768,8 +5559,6 @@ def public_ip_addresses(self): from .v2020_11_01.operations import PublicIPAddressesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import PublicIPAddressesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import PublicIPAddressesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import PublicIPAddressesOperations as OperationClass else: @@ -5801,7 +5590,6 @@ def public_ip_prefixes(self): * 2020-08-01: :class:`PublicIPPrefixesOperations` * 2020-11-01: :class:`PublicIPPrefixesOperations` * 2021-02-01: :class:`PublicIPPrefixesOperations` - * 2021-05-01: :class:`PublicIPPrefixesOperations` * 2021-08-01: :class:`PublicIPPrefixesOperations` """ api_version = self._get_api_version('public_ip_prefixes') @@ -5847,8 +5635,6 @@ def public_ip_prefixes(self): from .v2020_11_01.operations import PublicIPPrefixesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import PublicIPPrefixesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import PublicIPPrefixesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import PublicIPPrefixesOperations as OperationClass else: @@ -5875,7 +5661,6 @@ def resource_navigation_links(self): * 2020-08-01: :class:`ResourceNavigationLinksOperations` * 2020-11-01: :class:`ResourceNavigationLinksOperations` * 2021-02-01: :class:`ResourceNavigationLinksOperations` - * 2021-05-01: :class:`ResourceNavigationLinksOperations` * 2021-08-01: :class:`ResourceNavigationLinksOperations` """ api_version = self._get_api_version('resource_navigation_links') @@ -5911,8 +5696,6 @@ def resource_navigation_links(self): from .v2020_11_01.operations import ResourceNavigationLinksOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import ResourceNavigationLinksOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import ResourceNavigationLinksOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import ResourceNavigationLinksOperations as OperationClass else: @@ -5952,7 +5735,6 @@ def route_filter_rules(self): * 2020-08-01: :class:`RouteFilterRulesOperations` * 2020-11-01: :class:`RouteFilterRulesOperations` * 2021-02-01: :class:`RouteFilterRulesOperations` - * 2021-05-01: :class:`RouteFilterRulesOperations` * 2021-08-01: :class:`RouteFilterRulesOperations` """ api_version = self._get_api_version('route_filter_rules') @@ -6014,8 +5796,6 @@ def route_filter_rules(self): from .v2020_11_01.operations import RouteFilterRulesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import RouteFilterRulesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import RouteFilterRulesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import RouteFilterRulesOperations as OperationClass else: @@ -6055,7 +5835,6 @@ def route_filters(self): * 2020-08-01: :class:`RouteFiltersOperations` * 2020-11-01: :class:`RouteFiltersOperations` * 2021-02-01: :class:`RouteFiltersOperations` - * 2021-05-01: :class:`RouteFiltersOperations` * 2021-08-01: :class:`RouteFiltersOperations` """ api_version = self._get_api_version('route_filters') @@ -6117,8 +5896,6 @@ def route_filters(self): from .v2020_11_01.operations import RouteFiltersOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import RouteFiltersOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import RouteFiltersOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import RouteFiltersOperations as OperationClass else: @@ -6160,7 +5937,6 @@ def route_tables(self): * 2020-08-01: :class:`RouteTablesOperations` * 2020-11-01: :class:`RouteTablesOperations` * 2021-02-01: :class:`RouteTablesOperations` - * 2021-05-01: :class:`RouteTablesOperations` * 2021-08-01: :class:`RouteTablesOperations` """ api_version = self._get_api_version('route_tables') @@ -6226,8 +6002,6 @@ def route_tables(self): from .v2020_11_01.operations import RouteTablesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import RouteTablesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import RouteTablesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import RouteTablesOperations as OperationClass else: @@ -6269,7 +6043,6 @@ def routes(self): * 2020-08-01: :class:`RoutesOperations` * 2020-11-01: :class:`RoutesOperations` * 2021-02-01: :class:`RoutesOperations` - * 2021-05-01: :class:`RoutesOperations` * 2021-08-01: :class:`RoutesOperations` """ api_version = self._get_api_version('routes') @@ -6335,8 +6108,6 @@ def routes(self): from .v2020_11_01.operations import RoutesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import RoutesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import RoutesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import RoutesOperations as OperationClass else: @@ -6347,13 +6118,10 @@ def routes(self): def routing_intent(self): """Instance depends on the API version: - * 2021-05-01: :class:`RoutingIntentOperations` * 2021-08-01: :class:`RoutingIntentOperations` """ api_version = self._get_api_version('routing_intent') - if api_version == '2021-05-01': - from .v2021_05_01.operations import RoutingIntentOperations as OperationClass - elif api_version == '2021-08-01': + if api_version == '2021-08-01': from .v2021_08_01.operations import RoutingIntentOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'routing_intent'".format(api_version)) @@ -6384,7 +6152,6 @@ def security_partner_providers(self): * 2020-08-01: :class:`SecurityPartnerProvidersOperations` * 2020-11-01: :class:`SecurityPartnerProvidersOperations` * 2021-02-01: :class:`SecurityPartnerProvidersOperations` - * 2021-05-01: :class:`SecurityPartnerProvidersOperations` * 2021-08-01: :class:`SecurityPartnerProvidersOperations` """ api_version = self._get_api_version('security_partner_providers') @@ -6404,8 +6171,6 @@ def security_partner_providers(self): from .v2020_11_01.operations import SecurityPartnerProvidersOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import SecurityPartnerProvidersOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import SecurityPartnerProvidersOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import SecurityPartnerProvidersOperations as OperationClass else: @@ -6447,7 +6212,6 @@ def security_rules(self): * 2020-08-01: :class:`SecurityRulesOperations` * 2020-11-01: :class:`SecurityRulesOperations` * 2021-02-01: :class:`SecurityRulesOperations` - * 2021-05-01: :class:`SecurityRulesOperations` * 2021-08-01: :class:`SecurityRulesOperations` """ api_version = self._get_api_version('security_rules') @@ -6513,8 +6277,6 @@ def security_rules(self): from .v2020_11_01.operations import SecurityRulesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import SecurityRulesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import SecurityRulesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import SecurityRulesOperations as OperationClass else: @@ -6554,7 +6316,6 @@ def service_association_links(self): * 2020-08-01: :class:`ServiceAssociationLinksOperations` * 2020-11-01: :class:`ServiceAssociationLinksOperations` * 2021-02-01: :class:`ServiceAssociationLinksOperations` - * 2021-05-01: :class:`ServiceAssociationLinksOperations` * 2021-08-01: :class:`ServiceAssociationLinksOperations` """ api_version = self._get_api_version('service_association_links') @@ -6590,8 +6351,6 @@ def service_association_links(self): from .v2020_11_01.operations import ServiceAssociationLinksOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import ServiceAssociationLinksOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import ServiceAssociationLinksOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import ServiceAssociationLinksOperations as OperationClass else: @@ -6623,7 +6382,6 @@ def service_endpoint_policies(self): * 2020-08-01: :class:`ServiceEndpointPoliciesOperations` * 2020-11-01: :class:`ServiceEndpointPoliciesOperations` * 2021-02-01: :class:`ServiceEndpointPoliciesOperations` - * 2021-05-01: :class:`ServiceEndpointPoliciesOperations` * 2021-08-01: :class:`ServiceEndpointPoliciesOperations` """ api_version = self._get_api_version('service_endpoint_policies') @@ -6669,8 +6427,6 @@ def service_endpoint_policies(self): from .v2020_11_01.operations import ServiceEndpointPoliciesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import ServiceEndpointPoliciesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import ServiceEndpointPoliciesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import ServiceEndpointPoliciesOperations as OperationClass else: @@ -6702,7 +6458,6 @@ def service_endpoint_policy_definitions(self): * 2020-08-01: :class:`ServiceEndpointPolicyDefinitionsOperations` * 2020-11-01: :class:`ServiceEndpointPolicyDefinitionsOperations` * 2021-02-01: :class:`ServiceEndpointPolicyDefinitionsOperations` - * 2021-05-01: :class:`ServiceEndpointPolicyDefinitionsOperations` * 2021-08-01: :class:`ServiceEndpointPolicyDefinitionsOperations` """ api_version = self._get_api_version('service_endpoint_policy_definitions') @@ -6748,8 +6503,6 @@ def service_endpoint_policy_definitions(self): from .v2020_11_01.operations import ServiceEndpointPolicyDefinitionsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import ServiceEndpointPolicyDefinitionsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import ServiceEndpointPolicyDefinitionsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import ServiceEndpointPolicyDefinitionsOperations as OperationClass else: @@ -6760,13 +6513,10 @@ def service_endpoint_policy_definitions(self): def service_tag_information(self): """Instance depends on the API version: - * 2021-05-01: :class:`ServiceTagInformationOperations` * 2021-08-01: :class:`ServiceTagInformationOperations` """ api_version = self._get_api_version('service_tag_information') - if api_version == '2021-05-01': - from .v2021_05_01.operations import ServiceTagInformationOperations as OperationClass - elif api_version == '2021-08-01': + if api_version == '2021-08-01': from .v2021_08_01.operations import ServiceTagInformationOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'service_tag_information'".format(api_version)) @@ -6791,7 +6541,6 @@ def service_tags(self): * 2020-08-01: :class:`ServiceTagsOperations` * 2020-11-01: :class:`ServiceTagsOperations` * 2021-02-01: :class:`ServiceTagsOperations` - * 2021-05-01: :class:`ServiceTagsOperations` * 2021-08-01: :class:`ServiceTagsOperations` """ api_version = self._get_api_version('service_tags') @@ -6825,8 +6574,6 @@ def service_tags(self): from .v2020_11_01.operations import ServiceTagsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import ServiceTagsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import ServiceTagsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import ServiceTagsOperations as OperationClass else: @@ -6868,7 +6615,6 @@ def subnets(self): * 2020-08-01: :class:`SubnetsOperations` * 2020-11-01: :class:`SubnetsOperations` * 2021-02-01: :class:`SubnetsOperations` - * 2021-05-01: :class:`SubnetsOperations` * 2021-08-01: :class:`SubnetsOperations` """ api_version = self._get_api_version('subnets') @@ -6934,8 +6680,6 @@ def subnets(self): from .v2020_11_01.operations import SubnetsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import SubnetsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import SubnetsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import SubnetsOperations as OperationClass else: @@ -6977,7 +6721,6 @@ def usages(self): * 2020-08-01: :class:`UsagesOperations` * 2020-11-01: :class:`UsagesOperations` * 2021-02-01: :class:`UsagesOperations` - * 2021-05-01: :class:`UsagesOperations` * 2021-08-01: :class:`UsagesOperations` """ api_version = self._get_api_version('usages') @@ -7043,8 +6786,6 @@ def usages(self): from .v2020_11_01.operations import UsagesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import UsagesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import UsagesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import UsagesOperations as OperationClass else: @@ -7087,7 +6828,6 @@ def virtual_appliance_sites(self): * 2020-08-01: :class:`VirtualApplianceSitesOperations` * 2020-11-01: :class:`VirtualApplianceSitesOperations` * 2021-02-01: :class:`VirtualApplianceSitesOperations` - * 2021-05-01: :class:`VirtualApplianceSitesOperations` * 2021-08-01: :class:`VirtualApplianceSitesOperations` """ api_version = self._get_api_version('virtual_appliance_sites') @@ -7103,8 +6843,6 @@ def virtual_appliance_sites(self): from .v2020_11_01.operations import VirtualApplianceSitesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import VirtualApplianceSitesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import VirtualApplianceSitesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import VirtualApplianceSitesOperations as OperationClass else: @@ -7121,7 +6859,6 @@ def virtual_appliance_skus(self): * 2020-08-01: :class:`VirtualApplianceSkusOperations` * 2020-11-01: :class:`VirtualApplianceSkusOperations` * 2021-02-01: :class:`VirtualApplianceSkusOperations` - * 2021-05-01: :class:`VirtualApplianceSkusOperations` * 2021-08-01: :class:`VirtualApplianceSkusOperations` """ api_version = self._get_api_version('virtual_appliance_skus') @@ -7137,8 +6874,6 @@ def virtual_appliance_skus(self): from .v2020_11_01.operations import VirtualApplianceSkusOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import VirtualApplianceSkusOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import VirtualApplianceSkusOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import VirtualApplianceSkusOperations as OperationClass else: @@ -7155,7 +6890,6 @@ def virtual_hub_bgp_connection(self): * 2020-08-01: :class:`VirtualHubBgpConnectionOperations` * 2020-11-01: :class:`VirtualHubBgpConnectionOperations` * 2021-02-01: :class:`VirtualHubBgpConnectionOperations` - * 2021-05-01: :class:`VirtualHubBgpConnectionOperations` * 2021-08-01: :class:`VirtualHubBgpConnectionOperations` """ api_version = self._get_api_version('virtual_hub_bgp_connection') @@ -7171,8 +6905,6 @@ def virtual_hub_bgp_connection(self): from .v2020_11_01.operations import VirtualHubBgpConnectionOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import VirtualHubBgpConnectionOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import VirtualHubBgpConnectionOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import VirtualHubBgpConnectionOperations as OperationClass else: @@ -7189,7 +6921,6 @@ def virtual_hub_bgp_connections(self): * 2020-08-01: :class:`VirtualHubBgpConnectionsOperations` * 2020-11-01: :class:`VirtualHubBgpConnectionsOperations` * 2021-02-01: :class:`VirtualHubBgpConnectionsOperations` - * 2021-05-01: :class:`VirtualHubBgpConnectionsOperations` * 2021-08-01: :class:`VirtualHubBgpConnectionsOperations` """ api_version = self._get_api_version('virtual_hub_bgp_connections') @@ -7205,8 +6936,6 @@ def virtual_hub_bgp_connections(self): from .v2020_11_01.operations import VirtualHubBgpConnectionsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import VirtualHubBgpConnectionsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import VirtualHubBgpConnectionsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import VirtualHubBgpConnectionsOperations as OperationClass else: @@ -7223,7 +6952,6 @@ def virtual_hub_ip_configuration(self): * 2020-08-01: :class:`VirtualHubIpConfigurationOperations` * 2020-11-01: :class:`VirtualHubIpConfigurationOperations` * 2021-02-01: :class:`VirtualHubIpConfigurationOperations` - * 2021-05-01: :class:`VirtualHubIpConfigurationOperations` * 2021-08-01: :class:`VirtualHubIpConfigurationOperations` """ api_version = self._get_api_version('virtual_hub_ip_configuration') @@ -7239,8 +6967,6 @@ def virtual_hub_ip_configuration(self): from .v2020_11_01.operations import VirtualHubIpConfigurationOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import VirtualHubIpConfigurationOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import VirtualHubIpConfigurationOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import VirtualHubIpConfigurationOperations as OperationClass else: @@ -7262,7 +6988,6 @@ def virtual_hub_route_table_v2_s(self): * 2020-08-01: :class:`VirtualHubRouteTableV2SOperations` * 2020-11-01: :class:`VirtualHubRouteTableV2SOperations` * 2021-02-01: :class:`VirtualHubRouteTableV2SOperations` - * 2021-05-01: :class:`VirtualHubRouteTableV2SOperations` * 2021-08-01: :class:`VirtualHubRouteTableV2SOperations` """ api_version = self._get_api_version('virtual_hub_route_table_v2_s') @@ -7288,8 +7013,6 @@ def virtual_hub_route_table_v2_s(self): from .v2020_11_01.operations import VirtualHubRouteTableV2SOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import VirtualHubRouteTableV2SOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import VirtualHubRouteTableV2SOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import VirtualHubRouteTableV2SOperations as OperationClass else: @@ -7323,7 +7046,6 @@ def virtual_hubs(self): * 2020-08-01: :class:`VirtualHubsOperations` * 2020-11-01: :class:`VirtualHubsOperations` * 2021-02-01: :class:`VirtualHubsOperations` - * 2021-05-01: :class:`VirtualHubsOperations` * 2021-08-01: :class:`VirtualHubsOperations` """ api_version = self._get_api_version('virtual_hubs') @@ -7373,8 +7095,6 @@ def virtual_hubs(self): from .v2020_11_01.operations import VirtualHubsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import VirtualHubsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import VirtualHubsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import VirtualHubsOperations as OperationClass else: @@ -7416,7 +7136,6 @@ def virtual_network_gateway_connections(self): * 2020-08-01: :class:`VirtualNetworkGatewayConnectionsOperations` * 2020-11-01: :class:`VirtualNetworkGatewayConnectionsOperations` * 2021-02-01: :class:`VirtualNetworkGatewayConnectionsOperations` - * 2021-05-01: :class:`VirtualNetworkGatewayConnectionsOperations` * 2021-08-01: :class:`VirtualNetworkGatewayConnectionsOperations` """ api_version = self._get_api_version('virtual_network_gateway_connections') @@ -7482,8 +7201,6 @@ def virtual_network_gateway_connections(self): from .v2020_11_01.operations import VirtualNetworkGatewayConnectionsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import VirtualNetworkGatewayConnectionsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import VirtualNetworkGatewayConnectionsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import VirtualNetworkGatewayConnectionsOperations as OperationClass else: @@ -7495,14 +7212,11 @@ def virtual_network_gateway_nat_rules(self): """Instance depends on the API version: * 2021-02-01: :class:`VirtualNetworkGatewayNatRulesOperations` - * 2021-05-01: :class:`VirtualNetworkGatewayNatRulesOperations` * 2021-08-01: :class:`VirtualNetworkGatewayNatRulesOperations` """ api_version = self._get_api_version('virtual_network_gateway_nat_rules') if api_version == '2021-02-01': from .v2021_02_01.operations import VirtualNetworkGatewayNatRulesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import VirtualNetworkGatewayNatRulesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import VirtualNetworkGatewayNatRulesOperations as OperationClass else: @@ -7544,7 +7258,6 @@ def virtual_network_gateways(self): * 2020-08-01: :class:`VirtualNetworkGatewaysOperations` * 2020-11-01: :class:`VirtualNetworkGatewaysOperations` * 2021-02-01: :class:`VirtualNetworkGatewaysOperations` - * 2021-05-01: :class:`VirtualNetworkGatewaysOperations` * 2021-08-01: :class:`VirtualNetworkGatewaysOperations` """ api_version = self._get_api_version('virtual_network_gateways') @@ -7610,8 +7323,6 @@ def virtual_network_gateways(self): from .v2020_11_01.operations import VirtualNetworkGatewaysOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import VirtualNetworkGatewaysOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import VirtualNetworkGatewaysOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import VirtualNetworkGatewaysOperations as OperationClass else: @@ -7652,7 +7363,6 @@ def virtual_network_peerings(self): * 2020-08-01: :class:`VirtualNetworkPeeringsOperations` * 2020-11-01: :class:`VirtualNetworkPeeringsOperations` * 2021-02-01: :class:`VirtualNetworkPeeringsOperations` - * 2021-05-01: :class:`VirtualNetworkPeeringsOperations` * 2021-08-01: :class:`VirtualNetworkPeeringsOperations` """ api_version = self._get_api_version('virtual_network_peerings') @@ -7716,8 +7426,6 @@ def virtual_network_peerings(self): from .v2020_11_01.operations import VirtualNetworkPeeringsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import VirtualNetworkPeeringsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import VirtualNetworkPeeringsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import VirtualNetworkPeeringsOperations as OperationClass else: @@ -7748,7 +7456,6 @@ def virtual_network_taps(self): * 2020-08-01: :class:`VirtualNetworkTapsOperations` * 2020-11-01: :class:`VirtualNetworkTapsOperations` * 2021-02-01: :class:`VirtualNetworkTapsOperations` - * 2021-05-01: :class:`VirtualNetworkTapsOperations` * 2021-08-01: :class:`VirtualNetworkTapsOperations` """ api_version = self._get_api_version('virtual_network_taps') @@ -7792,8 +7499,6 @@ def virtual_network_taps(self): from .v2020_11_01.operations import VirtualNetworkTapsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import VirtualNetworkTapsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import VirtualNetworkTapsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import VirtualNetworkTapsOperations as OperationClass else: @@ -7835,7 +7540,6 @@ def virtual_networks(self): * 2020-08-01: :class:`VirtualNetworksOperations` * 2020-11-01: :class:`VirtualNetworksOperations` * 2021-02-01: :class:`VirtualNetworksOperations` - * 2021-05-01: :class:`VirtualNetworksOperations` * 2021-08-01: :class:`VirtualNetworksOperations` """ api_version = self._get_api_version('virtual_networks') @@ -7901,8 +7605,6 @@ def virtual_networks(self): from .v2020_11_01.operations import VirtualNetworksOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import VirtualNetworksOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import VirtualNetworksOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import VirtualNetworksOperations as OperationClass else: @@ -7926,7 +7628,6 @@ def virtual_router_peerings(self): * 2020-08-01: :class:`VirtualRouterPeeringsOperations` * 2020-11-01: :class:`VirtualRouterPeeringsOperations` * 2021-02-01: :class:`VirtualRouterPeeringsOperations` - * 2021-05-01: :class:`VirtualRouterPeeringsOperations` * 2021-08-01: :class:`VirtualRouterPeeringsOperations` """ api_version = self._get_api_version('virtual_router_peerings') @@ -7956,8 +7657,6 @@ def virtual_router_peerings(self): from .v2020_11_01.operations import VirtualRouterPeeringsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import VirtualRouterPeeringsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import VirtualRouterPeeringsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import VirtualRouterPeeringsOperations as OperationClass else: @@ -7981,7 +7680,6 @@ def virtual_routers(self): * 2020-08-01: :class:`VirtualRoutersOperations` * 2020-11-01: :class:`VirtualRoutersOperations` * 2021-02-01: :class:`VirtualRoutersOperations` - * 2021-05-01: :class:`VirtualRoutersOperations` * 2021-08-01: :class:`VirtualRoutersOperations` """ api_version = self._get_api_version('virtual_routers') @@ -8011,8 +7709,6 @@ def virtual_routers(self): from .v2020_11_01.operations import VirtualRoutersOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import VirtualRoutersOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import VirtualRoutersOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import VirtualRoutersOperations as OperationClass else: @@ -8046,7 +7742,6 @@ def virtual_wans(self): * 2020-08-01: :class:`VirtualWansOperations` * 2020-11-01: :class:`VirtualWansOperations` * 2021-02-01: :class:`VirtualWansOperations` - * 2021-05-01: :class:`VirtualWansOperations` * 2021-08-01: :class:`VirtualWansOperations` """ api_version = self._get_api_version('virtual_wans') @@ -8096,8 +7791,6 @@ def virtual_wans(self): from .v2020_11_01.operations import VirtualWansOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import VirtualWansOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import VirtualWansOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import VirtualWansOperations as OperationClass else: @@ -8131,7 +7824,6 @@ def vpn_connections(self): * 2020-08-01: :class:`VpnConnectionsOperations` * 2020-11-01: :class:`VpnConnectionsOperations` * 2021-02-01: :class:`VpnConnectionsOperations` - * 2021-05-01: :class:`VpnConnectionsOperations` * 2021-08-01: :class:`VpnConnectionsOperations` """ api_version = self._get_api_version('vpn_connections') @@ -8181,8 +7873,6 @@ def vpn_connections(self): from .v2020_11_01.operations import VpnConnectionsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import VpnConnectionsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import VpnConnectionsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import VpnConnectionsOperations as OperationClass else: @@ -8216,7 +7906,6 @@ def vpn_gateways(self): * 2020-08-01: :class:`VpnGatewaysOperations` * 2020-11-01: :class:`VpnGatewaysOperations` * 2021-02-01: :class:`VpnGatewaysOperations` - * 2021-05-01: :class:`VpnGatewaysOperations` * 2021-08-01: :class:`VpnGatewaysOperations` """ api_version = self._get_api_version('vpn_gateways') @@ -8266,8 +7955,6 @@ def vpn_gateways(self): from .v2020_11_01.operations import VpnGatewaysOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import VpnGatewaysOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import VpnGatewaysOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import VpnGatewaysOperations as OperationClass else: @@ -8292,7 +7979,6 @@ def vpn_link_connections(self): * 2020-08-01: :class:`VpnLinkConnectionsOperations` * 2020-11-01: :class:`VpnLinkConnectionsOperations` * 2021-02-01: :class:`VpnLinkConnectionsOperations` - * 2021-05-01: :class:`VpnLinkConnectionsOperations` * 2021-08-01: :class:`VpnLinkConnectionsOperations` """ api_version = self._get_api_version('vpn_link_connections') @@ -8324,8 +8010,6 @@ def vpn_link_connections(self): from .v2020_11_01.operations import VpnLinkConnectionsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import VpnLinkConnectionsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import VpnLinkConnectionsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import VpnLinkConnectionsOperations as OperationClass else: @@ -8348,7 +8032,6 @@ def vpn_server_configurations(self): * 2020-08-01: :class:`VpnServerConfigurationsOperations` * 2020-11-01: :class:`VpnServerConfigurationsOperations` * 2021-02-01: :class:`VpnServerConfigurationsOperations` - * 2021-05-01: :class:`VpnServerConfigurationsOperations` * 2021-08-01: :class:`VpnServerConfigurationsOperations` """ api_version = self._get_api_version('vpn_server_configurations') @@ -8376,8 +8059,6 @@ def vpn_server_configurations(self): from .v2020_11_01.operations import VpnServerConfigurationsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import VpnServerConfigurationsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import VpnServerConfigurationsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import VpnServerConfigurationsOperations as OperationClass else: @@ -8400,7 +8081,6 @@ def vpn_server_configurations_associated_with_virtual_wan(self): * 2020-08-01: :class:`VpnServerConfigurationsAssociatedWithVirtualWanOperations` * 2020-11-01: :class:`VpnServerConfigurationsAssociatedWithVirtualWanOperations` * 2021-02-01: :class:`VpnServerConfigurationsAssociatedWithVirtualWanOperations` - * 2021-05-01: :class:`VpnServerConfigurationsAssociatedWithVirtualWanOperations` * 2021-08-01: :class:`VpnServerConfigurationsAssociatedWithVirtualWanOperations` """ api_version = self._get_api_version('vpn_server_configurations_associated_with_virtual_wan') @@ -8428,8 +8108,6 @@ def vpn_server_configurations_associated_with_virtual_wan(self): from .v2020_11_01.operations import VpnServerConfigurationsAssociatedWithVirtualWanOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import VpnServerConfigurationsAssociatedWithVirtualWanOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import VpnServerConfigurationsAssociatedWithVirtualWanOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import VpnServerConfigurationsAssociatedWithVirtualWanOperations as OperationClass else: @@ -8454,7 +8132,6 @@ def vpn_site_link_connections(self): * 2020-08-01: :class:`VpnSiteLinkConnectionsOperations` * 2020-11-01: :class:`VpnSiteLinkConnectionsOperations` * 2021-02-01: :class:`VpnSiteLinkConnectionsOperations` - * 2021-05-01: :class:`VpnSiteLinkConnectionsOperations` * 2021-08-01: :class:`VpnSiteLinkConnectionsOperations` """ api_version = self._get_api_version('vpn_site_link_connections') @@ -8486,8 +8163,6 @@ def vpn_site_link_connections(self): from .v2020_11_01.operations import VpnSiteLinkConnectionsOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import VpnSiteLinkConnectionsOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import VpnSiteLinkConnectionsOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import VpnSiteLinkConnectionsOperations as OperationClass else: @@ -8512,7 +8187,6 @@ def vpn_site_links(self): * 2020-08-01: :class:`VpnSiteLinksOperations` * 2020-11-01: :class:`VpnSiteLinksOperations` * 2021-02-01: :class:`VpnSiteLinksOperations` - * 2021-05-01: :class:`VpnSiteLinksOperations` * 2021-08-01: :class:`VpnSiteLinksOperations` """ api_version = self._get_api_version('vpn_site_links') @@ -8544,8 +8218,6 @@ def vpn_site_links(self): from .v2020_11_01.operations import VpnSiteLinksOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import VpnSiteLinksOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import VpnSiteLinksOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import VpnSiteLinksOperations as OperationClass else: @@ -8579,7 +8251,6 @@ def vpn_sites(self): * 2020-08-01: :class:`VpnSitesOperations` * 2020-11-01: :class:`VpnSitesOperations` * 2021-02-01: :class:`VpnSitesOperations` - * 2021-05-01: :class:`VpnSitesOperations` * 2021-08-01: :class:`VpnSitesOperations` """ api_version = self._get_api_version('vpn_sites') @@ -8629,8 +8300,6 @@ def vpn_sites(self): from .v2020_11_01.operations import VpnSitesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import VpnSitesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import VpnSitesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import VpnSitesOperations as OperationClass else: @@ -8664,7 +8333,6 @@ def vpn_sites_configuration(self): * 2020-08-01: :class:`VpnSitesConfigurationOperations` * 2020-11-01: :class:`VpnSitesConfigurationOperations` * 2021-02-01: :class:`VpnSitesConfigurationOperations` - * 2021-05-01: :class:`VpnSitesConfigurationOperations` * 2021-08-01: :class:`VpnSitesConfigurationOperations` """ api_version = self._get_api_version('vpn_sites_configuration') @@ -8714,8 +8382,6 @@ def vpn_sites_configuration(self): from .v2020_11_01.operations import VpnSitesConfigurationOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import VpnSitesConfigurationOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import VpnSitesConfigurationOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import VpnSitesConfigurationOperations as OperationClass else: @@ -8743,7 +8409,6 @@ def web_application_firewall_policies(self): * 2020-08-01: :class:`WebApplicationFirewallPoliciesOperations` * 2020-11-01: :class:`WebApplicationFirewallPoliciesOperations` * 2021-02-01: :class:`WebApplicationFirewallPoliciesOperations` - * 2021-05-01: :class:`WebApplicationFirewallPoliciesOperations` * 2021-08-01: :class:`WebApplicationFirewallPoliciesOperations` """ api_version = self._get_api_version('web_application_firewall_policies') @@ -8781,8 +8446,6 @@ def web_application_firewall_policies(self): from .v2020_11_01.operations import WebApplicationFirewallPoliciesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import WebApplicationFirewallPoliciesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import WebApplicationFirewallPoliciesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import WebApplicationFirewallPoliciesOperations as OperationClass else: @@ -8797,7 +8460,6 @@ def web_categories(self): * 2020-08-01: :class:`WebCategoriesOperations` * 2020-11-01: :class:`WebCategoriesOperations` * 2021-02-01: :class:`WebCategoriesOperations` - * 2021-05-01: :class:`WebCategoriesOperations` * 2021-08-01: :class:`WebCategoriesOperations` """ api_version = self._get_api_version('web_categories') @@ -8809,8 +8471,6 @@ def web_categories(self): from .v2020_11_01.operations import WebCategoriesOperations as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import WebCategoriesOperations as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import WebCategoriesOperations as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import WebCategoriesOperations as OperationClass else: diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/_operations_mixin.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/_operations_mixin.py index 42895401832d..e5c40c42ad22 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/_operations_mixin.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/_operations_mixin.py @@ -10,19 +10,10 @@ # -------------------------------------------------------------------------- from msrest import Serializer, Deserializer 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 if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + from typing import Any, Iterable, Optional from azure.core.paging import ItemPaged from azure.core.polling import LROPoller @@ -84,8 +75,6 @@ def begin_delete_bastion_shareable_link( # pylint: disable=inconsistent-return- from .v2020_11_01.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import NetworkManagementClientOperationsMixin as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import NetworkManagementClientOperationsMixin as OperationClass else: @@ -159,8 +148,6 @@ def begin_generatevirtualwanvpnserverconfigurationvpnprofile( from .v2020_11_01.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import NetworkManagementClientOperationsMixin as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import NetworkManagementClientOperationsMixin as OperationClass else: @@ -226,8 +213,6 @@ def begin_get_active_sessions( from .v2020_11_01.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import NetworkManagementClientOperationsMixin as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import NetworkManagementClientOperationsMixin as OperationClass else: @@ -296,8 +281,6 @@ def begin_put_bastion_shareable_link( from .v2020_11_01.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import NetworkManagementClientOperationsMixin as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import NetworkManagementClientOperationsMixin as OperationClass else: @@ -395,8 +378,6 @@ def check_dns_name_availability( from .v2020_11_01.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import NetworkManagementClientOperationsMixin as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import NetworkManagementClientOperationsMixin as OperationClass else: @@ -458,8 +439,6 @@ def disconnect_active_sessions( from .v2020_11_01.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import NetworkManagementClientOperationsMixin as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import NetworkManagementClientOperationsMixin as OperationClass else: @@ -521,8 +500,6 @@ def get_bastion_shareable_link( from .v2020_11_01.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import NetworkManagementClientOperationsMixin as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import NetworkManagementClientOperationsMixin as OperationClass else: @@ -598,8 +575,6 @@ def supported_security_providers( from .v2020_11_01.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-02-01': from .v2021_02_01.operations import NetworkManagementClientOperationsMixin as OperationClass - elif api_version == '2021-05-01': - from .v2021_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-08-01': from .v2021_08_01.operations import NetworkManagementClientOperationsMixin as OperationClass else: diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/_network_management_client.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/_network_management_client.py index ccbbafae0505..6fe8385d00c0 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/_network_management_client.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/_network_management_client.py @@ -146,7 +146,6 @@ def models(cls, api_version=DEFAULT_API_VERSION): * 2020-11-01: :mod:`v2020_11_01.models` * 2021-02-01: :mod:`v2021_02_01.models` * 2021-02-01-preview: :mod:`v2021_02_01_preview.models` - * 2021-05-01: :mod:`v2021_05_01.models` * 2021-08-01: :mod:`v2021_08_01.models` """ if api_version == '2015-06-15': @@ -245,9 +244,6 @@ def models(cls, api_version=DEFAULT_API_VERSION): elif api_version == '2021-02-01-preview': from ..v2021_02_01_preview import models return models - elif api_version == '2021-05-01': - from ..v2021_05_01 import models - return models elif api_version == '2021-08-01': from ..v2021_08_01 import models return models @@ -328,7 +324,6 @@ def application_gateway_private_endpoint_connections(self): * 2020-08-01: :class:`ApplicationGatewayPrivateEndpointConnectionsOperations` * 2020-11-01: :class:`ApplicationGatewayPrivateEndpointConnectionsOperations` * 2021-02-01: :class:`ApplicationGatewayPrivateEndpointConnectionsOperations` - * 2021-05-01: :class:`ApplicationGatewayPrivateEndpointConnectionsOperations` * 2021-08-01: :class:`ApplicationGatewayPrivateEndpointConnectionsOperations` """ api_version = self._get_api_version('application_gateway_private_endpoint_connections') @@ -344,8 +339,6 @@ def application_gateway_private_endpoint_connections(self): from ..v2020_11_01.aio.operations import ApplicationGatewayPrivateEndpointConnectionsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import ApplicationGatewayPrivateEndpointConnectionsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import ApplicationGatewayPrivateEndpointConnectionsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import ApplicationGatewayPrivateEndpointConnectionsOperations as OperationClass else: @@ -362,7 +355,6 @@ def application_gateway_private_link_resources(self): * 2020-08-01: :class:`ApplicationGatewayPrivateLinkResourcesOperations` * 2020-11-01: :class:`ApplicationGatewayPrivateLinkResourcesOperations` * 2021-02-01: :class:`ApplicationGatewayPrivateLinkResourcesOperations` - * 2021-05-01: :class:`ApplicationGatewayPrivateLinkResourcesOperations` * 2021-08-01: :class:`ApplicationGatewayPrivateLinkResourcesOperations` """ api_version = self._get_api_version('application_gateway_private_link_resources') @@ -378,8 +370,6 @@ def application_gateway_private_link_resources(self): from ..v2020_11_01.aio.operations import ApplicationGatewayPrivateLinkResourcesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import ApplicationGatewayPrivateLinkResourcesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import ApplicationGatewayPrivateLinkResourcesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import ApplicationGatewayPrivateLinkResourcesOperations as OperationClass else: @@ -421,7 +411,6 @@ def application_gateways(self): * 2020-08-01: :class:`ApplicationGatewaysOperations` * 2020-11-01: :class:`ApplicationGatewaysOperations` * 2021-02-01: :class:`ApplicationGatewaysOperations` - * 2021-05-01: :class:`ApplicationGatewaysOperations` * 2021-08-01: :class:`ApplicationGatewaysOperations` """ api_version = self._get_api_version('application_gateways') @@ -487,8 +476,6 @@ def application_gateways(self): from ..v2020_11_01.aio.operations import ApplicationGatewaysOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import ApplicationGatewaysOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import ApplicationGatewaysOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import ApplicationGatewaysOperations as OperationClass else: @@ -525,7 +512,6 @@ def application_security_groups(self): * 2020-08-01: :class:`ApplicationSecurityGroupsOperations` * 2020-11-01: :class:`ApplicationSecurityGroupsOperations` * 2021-02-01: :class:`ApplicationSecurityGroupsOperations` - * 2021-05-01: :class:`ApplicationSecurityGroupsOperations` * 2021-08-01: :class:`ApplicationSecurityGroupsOperations` """ api_version = self._get_api_version('application_security_groups') @@ -581,8 +567,6 @@ def application_security_groups(self): from ..v2020_11_01.aio.operations import ApplicationSecurityGroupsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import ApplicationSecurityGroupsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import ApplicationSecurityGroupsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import ApplicationSecurityGroupsOperations as OperationClass else: @@ -613,7 +597,6 @@ def available_delegations(self): * 2020-08-01: :class:`AvailableDelegationsOperations` * 2020-11-01: :class:`AvailableDelegationsOperations` * 2021-02-01: :class:`AvailableDelegationsOperations` - * 2021-05-01: :class:`AvailableDelegationsOperations` * 2021-08-01: :class:`AvailableDelegationsOperations` """ api_version = self._get_api_version('available_delegations') @@ -657,8 +640,6 @@ def available_delegations(self): from ..v2020_11_01.aio.operations import AvailableDelegationsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import AvailableDelegationsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import AvailableDelegationsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import AvailableDelegationsOperations as OperationClass else: @@ -696,7 +677,6 @@ def available_endpoint_services(self): * 2020-08-01: :class:`AvailableEndpointServicesOperations` * 2020-11-01: :class:`AvailableEndpointServicesOperations` * 2021-02-01: :class:`AvailableEndpointServicesOperations` - * 2021-05-01: :class:`AvailableEndpointServicesOperations` * 2021-08-01: :class:`AvailableEndpointServicesOperations` """ api_version = self._get_api_version('available_endpoint_services') @@ -754,8 +734,6 @@ def available_endpoint_services(self): from ..v2020_11_01.aio.operations import AvailableEndpointServicesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import AvailableEndpointServicesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import AvailableEndpointServicesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import AvailableEndpointServicesOperations as OperationClass else: @@ -781,7 +759,6 @@ def available_private_endpoint_types(self): * 2020-08-01: :class:`AvailablePrivateEndpointTypesOperations` * 2020-11-01: :class:`AvailablePrivateEndpointTypesOperations` * 2021-02-01: :class:`AvailablePrivateEndpointTypesOperations` - * 2021-05-01: :class:`AvailablePrivateEndpointTypesOperations` * 2021-08-01: :class:`AvailablePrivateEndpointTypesOperations` """ api_version = self._get_api_version('available_private_endpoint_types') @@ -815,8 +792,6 @@ def available_private_endpoint_types(self): from ..v2020_11_01.aio.operations import AvailablePrivateEndpointTypesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import AvailablePrivateEndpointTypesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import AvailablePrivateEndpointTypesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import AvailablePrivateEndpointTypesOperations as OperationClass else: @@ -847,7 +822,6 @@ def available_resource_group_delegations(self): * 2020-08-01: :class:`AvailableResourceGroupDelegationsOperations` * 2020-11-01: :class:`AvailableResourceGroupDelegationsOperations` * 2021-02-01: :class:`AvailableResourceGroupDelegationsOperations` - * 2021-05-01: :class:`AvailableResourceGroupDelegationsOperations` * 2021-08-01: :class:`AvailableResourceGroupDelegationsOperations` """ api_version = self._get_api_version('available_resource_group_delegations') @@ -891,8 +865,6 @@ def available_resource_group_delegations(self): from ..v2020_11_01.aio.operations import AvailableResourceGroupDelegationsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import AvailableResourceGroupDelegationsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import AvailableResourceGroupDelegationsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import AvailableResourceGroupDelegationsOperations as OperationClass else: @@ -915,7 +887,6 @@ def available_service_aliases(self): * 2020-08-01: :class:`AvailableServiceAliasesOperations` * 2020-11-01: :class:`AvailableServiceAliasesOperations` * 2021-02-01: :class:`AvailableServiceAliasesOperations` - * 2021-05-01: :class:`AvailableServiceAliasesOperations` * 2021-08-01: :class:`AvailableServiceAliasesOperations` """ api_version = self._get_api_version('available_service_aliases') @@ -943,8 +914,6 @@ def available_service_aliases(self): from ..v2020_11_01.aio.operations import AvailableServiceAliasesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import AvailableServiceAliasesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import AvailableServiceAliasesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import AvailableServiceAliasesOperations as OperationClass else: @@ -975,7 +944,6 @@ def azure_firewall_fqdn_tags(self): * 2020-08-01: :class:`AzureFirewallFqdnTagsOperations` * 2020-11-01: :class:`AzureFirewallFqdnTagsOperations` * 2021-02-01: :class:`AzureFirewallFqdnTagsOperations` - * 2021-05-01: :class:`AzureFirewallFqdnTagsOperations` * 2021-08-01: :class:`AzureFirewallFqdnTagsOperations` """ api_version = self._get_api_version('azure_firewall_fqdn_tags') @@ -1019,8 +987,6 @@ def azure_firewall_fqdn_tags(self): from ..v2020_11_01.aio.operations import AzureFirewallFqdnTagsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import AzureFirewallFqdnTagsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import AzureFirewallFqdnTagsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import AzureFirewallFqdnTagsOperations as OperationClass else: @@ -1054,7 +1020,6 @@ def azure_firewalls(self): * 2020-08-01: :class:`AzureFirewallsOperations` * 2020-11-01: :class:`AzureFirewallsOperations` * 2021-02-01: :class:`AzureFirewallsOperations` - * 2021-05-01: :class:`AzureFirewallsOperations` * 2021-08-01: :class:`AzureFirewallsOperations` """ api_version = self._get_api_version('azure_firewalls') @@ -1104,8 +1069,6 @@ def azure_firewalls(self): from ..v2020_11_01.aio.operations import AzureFirewallsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import AzureFirewallsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import AzureFirewallsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import AzureFirewallsOperations as OperationClass else: @@ -1131,7 +1094,6 @@ def bastion_hosts(self): * 2020-08-01: :class:`BastionHostsOperations` * 2020-11-01: :class:`BastionHostsOperations` * 2021-02-01: :class:`BastionHostsOperations` - * 2021-05-01: :class:`BastionHostsOperations` * 2021-08-01: :class:`BastionHostsOperations` """ api_version = self._get_api_version('bastion_hosts') @@ -1165,8 +1127,6 @@ def bastion_hosts(self): from ..v2020_11_01.aio.operations import BastionHostsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import BastionHostsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import BastionHostsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import BastionHostsOperations as OperationClass else: @@ -1206,7 +1166,6 @@ def bgp_service_communities(self): * 2020-08-01: :class:`BgpServiceCommunitiesOperations` * 2020-11-01: :class:`BgpServiceCommunitiesOperations` * 2021-02-01: :class:`BgpServiceCommunitiesOperations` - * 2021-05-01: :class:`BgpServiceCommunitiesOperations` * 2021-08-01: :class:`BgpServiceCommunitiesOperations` """ api_version = self._get_api_version('bgp_service_communities') @@ -1268,8 +1227,6 @@ def bgp_service_communities(self): from ..v2020_11_01.aio.operations import BgpServiceCommunitiesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import BgpServiceCommunitiesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import BgpServiceCommunitiesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import BgpServiceCommunitiesOperations as OperationClass else: @@ -1319,7 +1276,6 @@ def connection_monitors(self): * 2020-08-01: :class:`ConnectionMonitorsOperations` * 2020-11-01: :class:`ConnectionMonitorsOperations` * 2021-02-01: :class:`ConnectionMonitorsOperations` - * 2021-05-01: :class:`ConnectionMonitorsOperations` * 2021-08-01: :class:`ConnectionMonitorsOperations` """ api_version = self._get_api_version('connection_monitors') @@ -1375,8 +1331,6 @@ def connection_monitors(self): from ..v2020_11_01.aio.operations import ConnectionMonitorsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import ConnectionMonitorsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import ConnectionMonitorsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import ConnectionMonitorsOperations as OperationClass else: @@ -1405,7 +1359,6 @@ def custom_ip_prefixes(self): * 2020-08-01: :class:`CustomIPPrefixesOperations` * 2020-11-01: :class:`CustomIPPrefixesOperations` * 2021-02-01: :class:`CustomIPPrefixesOperations` - * 2021-05-01: :class:`CustomIPPrefixesOperations` * 2021-08-01: :class:`CustomIPPrefixesOperations` """ api_version = self._get_api_version('custom_ip_prefixes') @@ -1419,8 +1372,6 @@ def custom_ip_prefixes(self): from ..v2020_11_01.aio.operations import CustomIPPrefixesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import CustomIPPrefixesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import CustomIPPrefixesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import CustomIPPrefixesOperations as OperationClass else: @@ -1449,7 +1400,6 @@ def ddos_custom_policies(self): * 2020-08-01: :class:`DdosCustomPoliciesOperations` * 2020-11-01: :class:`DdosCustomPoliciesOperations` * 2021-02-01: :class:`DdosCustomPoliciesOperations` - * 2021-05-01: :class:`DdosCustomPoliciesOperations` * 2021-08-01: :class:`DdosCustomPoliciesOperations` """ api_version = self._get_api_version('ddos_custom_policies') @@ -1489,8 +1439,6 @@ def ddos_custom_policies(self): from ..v2020_11_01.aio.operations import DdosCustomPoliciesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import DdosCustomPoliciesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import DdosCustomPoliciesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import DdosCustomPoliciesOperations as OperationClass else: @@ -1525,7 +1473,6 @@ def ddos_protection_plans(self): * 2020-08-01: :class:`DdosProtectionPlansOperations` * 2020-11-01: :class:`DdosProtectionPlansOperations` * 2021-02-01: :class:`DdosProtectionPlansOperations` - * 2021-05-01: :class:`DdosProtectionPlansOperations` * 2021-08-01: :class:`DdosProtectionPlansOperations` """ api_version = self._get_api_version('ddos_protection_plans') @@ -1577,8 +1524,6 @@ def ddos_protection_plans(self): from ..v2020_11_01.aio.operations import DdosProtectionPlansOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import DdosProtectionPlansOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import DdosProtectionPlansOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import DdosProtectionPlansOperations as OperationClass else: @@ -1616,7 +1561,6 @@ def default_security_rules(self): * 2020-08-01: :class:`DefaultSecurityRulesOperations` * 2020-11-01: :class:`DefaultSecurityRulesOperations` * 2021-02-01: :class:`DefaultSecurityRulesOperations` - * 2021-05-01: :class:`DefaultSecurityRulesOperations` * 2021-08-01: :class:`DefaultSecurityRulesOperations` """ api_version = self._get_api_version('default_security_rules') @@ -1674,8 +1618,6 @@ def default_security_rules(self): from ..v2020_11_01.aio.operations import DefaultSecurityRulesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import DefaultSecurityRulesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import DefaultSecurityRulesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import DefaultSecurityRulesOperations as OperationClass else: @@ -1691,7 +1633,6 @@ def dscp_configuration(self): * 2020-08-01: :class:`DscpConfigurationOperations` * 2020-11-01: :class:`DscpConfigurationOperations` * 2021-02-01: :class:`DscpConfigurationOperations` - * 2021-05-01: :class:`DscpConfigurationOperations` * 2021-08-01: :class:`DscpConfigurationOperations` """ api_version = self._get_api_version('dscp_configuration') @@ -1705,8 +1646,6 @@ def dscp_configuration(self): from ..v2020_11_01.aio.operations import DscpConfigurationOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import DscpConfigurationOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import DscpConfigurationOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import DscpConfigurationOperations as OperationClass else: @@ -1774,7 +1713,6 @@ def express_route_circuit_authorizations(self): * 2020-08-01: :class:`ExpressRouteCircuitAuthorizationsOperations` * 2020-11-01: :class:`ExpressRouteCircuitAuthorizationsOperations` * 2021-02-01: :class:`ExpressRouteCircuitAuthorizationsOperations` - * 2021-05-01: :class:`ExpressRouteCircuitAuthorizationsOperations` * 2021-08-01: :class:`ExpressRouteCircuitAuthorizationsOperations` """ api_version = self._get_api_version('express_route_circuit_authorizations') @@ -1840,8 +1778,6 @@ def express_route_circuit_authorizations(self): from ..v2020_11_01.aio.operations import ExpressRouteCircuitAuthorizationsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import ExpressRouteCircuitAuthorizationsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import ExpressRouteCircuitAuthorizationsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import ExpressRouteCircuitAuthorizationsOperations as OperationClass else: @@ -1876,7 +1812,6 @@ def express_route_circuit_connections(self): * 2020-08-01: :class:`ExpressRouteCircuitConnectionsOperations` * 2020-11-01: :class:`ExpressRouteCircuitConnectionsOperations` * 2021-02-01: :class:`ExpressRouteCircuitConnectionsOperations` - * 2021-05-01: :class:`ExpressRouteCircuitConnectionsOperations` * 2021-08-01: :class:`ExpressRouteCircuitConnectionsOperations` """ api_version = self._get_api_version('express_route_circuit_connections') @@ -1928,8 +1863,6 @@ def express_route_circuit_connections(self): from ..v2020_11_01.aio.operations import ExpressRouteCircuitConnectionsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import ExpressRouteCircuitConnectionsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import ExpressRouteCircuitConnectionsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import ExpressRouteCircuitConnectionsOperations as OperationClass else: @@ -1971,7 +1904,6 @@ def express_route_circuit_peerings(self): * 2020-08-01: :class:`ExpressRouteCircuitPeeringsOperations` * 2020-11-01: :class:`ExpressRouteCircuitPeeringsOperations` * 2021-02-01: :class:`ExpressRouteCircuitPeeringsOperations` - * 2021-05-01: :class:`ExpressRouteCircuitPeeringsOperations` * 2021-08-01: :class:`ExpressRouteCircuitPeeringsOperations` """ api_version = self._get_api_version('express_route_circuit_peerings') @@ -2037,8 +1969,6 @@ def express_route_circuit_peerings(self): from ..v2020_11_01.aio.operations import ExpressRouteCircuitPeeringsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import ExpressRouteCircuitPeeringsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import ExpressRouteCircuitPeeringsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import ExpressRouteCircuitPeeringsOperations as OperationClass else: @@ -2080,7 +2010,6 @@ def express_route_circuits(self): * 2020-08-01: :class:`ExpressRouteCircuitsOperations` * 2020-11-01: :class:`ExpressRouteCircuitsOperations` * 2021-02-01: :class:`ExpressRouteCircuitsOperations` - * 2021-05-01: :class:`ExpressRouteCircuitsOperations` * 2021-08-01: :class:`ExpressRouteCircuitsOperations` """ api_version = self._get_api_version('express_route_circuits') @@ -2146,8 +2075,6 @@ def express_route_circuits(self): from ..v2020_11_01.aio.operations import ExpressRouteCircuitsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import ExpressRouteCircuitsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import ExpressRouteCircuitsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import ExpressRouteCircuitsOperations as OperationClass else: @@ -2178,7 +2105,6 @@ def express_route_connections(self): * 2020-08-01: :class:`ExpressRouteConnectionsOperations` * 2020-11-01: :class:`ExpressRouteConnectionsOperations` * 2021-02-01: :class:`ExpressRouteConnectionsOperations` - * 2021-05-01: :class:`ExpressRouteConnectionsOperations` * 2021-08-01: :class:`ExpressRouteConnectionsOperations` """ api_version = self._get_api_version('express_route_connections') @@ -2222,8 +2148,6 @@ def express_route_connections(self): from ..v2020_11_01.aio.operations import ExpressRouteConnectionsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import ExpressRouteConnectionsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import ExpressRouteConnectionsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import ExpressRouteConnectionsOperations as OperationClass else: @@ -2258,7 +2182,6 @@ def express_route_cross_connection_peerings(self): * 2020-08-01: :class:`ExpressRouteCrossConnectionPeeringsOperations` * 2020-11-01: :class:`ExpressRouteCrossConnectionPeeringsOperations` * 2021-02-01: :class:`ExpressRouteCrossConnectionPeeringsOperations` - * 2021-05-01: :class:`ExpressRouteCrossConnectionPeeringsOperations` * 2021-08-01: :class:`ExpressRouteCrossConnectionPeeringsOperations` """ api_version = self._get_api_version('express_route_cross_connection_peerings') @@ -2310,8 +2233,6 @@ def express_route_cross_connection_peerings(self): from ..v2020_11_01.aio.operations import ExpressRouteCrossConnectionPeeringsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import ExpressRouteCrossConnectionPeeringsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import ExpressRouteCrossConnectionPeeringsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import ExpressRouteCrossConnectionPeeringsOperations as OperationClass else: @@ -2346,7 +2267,6 @@ def express_route_cross_connections(self): * 2020-08-01: :class:`ExpressRouteCrossConnectionsOperations` * 2020-11-01: :class:`ExpressRouteCrossConnectionsOperations` * 2021-02-01: :class:`ExpressRouteCrossConnectionsOperations` - * 2021-05-01: :class:`ExpressRouteCrossConnectionsOperations` * 2021-08-01: :class:`ExpressRouteCrossConnectionsOperations` """ api_version = self._get_api_version('express_route_cross_connections') @@ -2398,8 +2318,6 @@ def express_route_cross_connections(self): from ..v2020_11_01.aio.operations import ExpressRouteCrossConnectionsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import ExpressRouteCrossConnectionsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import ExpressRouteCrossConnectionsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import ExpressRouteCrossConnectionsOperations as OperationClass else: @@ -2430,7 +2348,6 @@ def express_route_gateways(self): * 2020-08-01: :class:`ExpressRouteGatewaysOperations` * 2020-11-01: :class:`ExpressRouteGatewaysOperations` * 2021-02-01: :class:`ExpressRouteGatewaysOperations` - * 2021-05-01: :class:`ExpressRouteGatewaysOperations` * 2021-08-01: :class:`ExpressRouteGatewaysOperations` """ api_version = self._get_api_version('express_route_gateways') @@ -2474,8 +2391,6 @@ def express_route_gateways(self): from ..v2020_11_01.aio.operations import ExpressRouteGatewaysOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import ExpressRouteGatewaysOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import ExpressRouteGatewaysOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import ExpressRouteGatewaysOperations as OperationClass else: @@ -2506,7 +2421,6 @@ def express_route_links(self): * 2020-08-01: :class:`ExpressRouteLinksOperations` * 2020-11-01: :class:`ExpressRouteLinksOperations` * 2021-02-01: :class:`ExpressRouteLinksOperations` - * 2021-05-01: :class:`ExpressRouteLinksOperations` * 2021-08-01: :class:`ExpressRouteLinksOperations` """ api_version = self._get_api_version('express_route_links') @@ -2550,8 +2464,6 @@ def express_route_links(self): from ..v2020_11_01.aio.operations import ExpressRouteLinksOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import ExpressRouteLinksOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import ExpressRouteLinksOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import ExpressRouteLinksOperations as OperationClass else: @@ -2595,7 +2507,6 @@ def express_route_ports(self): * 2020-08-01: :class:`ExpressRoutePortsOperations` * 2020-11-01: :class:`ExpressRoutePortsOperations` * 2021-02-01: :class:`ExpressRoutePortsOperations` - * 2021-05-01: :class:`ExpressRoutePortsOperations` * 2021-08-01: :class:`ExpressRoutePortsOperations` """ api_version = self._get_api_version('express_route_ports') @@ -2639,8 +2550,6 @@ def express_route_ports(self): from ..v2020_11_01.aio.operations import ExpressRoutePortsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import ExpressRoutePortsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import ExpressRoutePortsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import ExpressRoutePortsOperations as OperationClass else: @@ -2671,7 +2580,6 @@ def express_route_ports_locations(self): * 2020-08-01: :class:`ExpressRoutePortsLocationsOperations` * 2020-11-01: :class:`ExpressRoutePortsLocationsOperations` * 2021-02-01: :class:`ExpressRoutePortsLocationsOperations` - * 2021-05-01: :class:`ExpressRoutePortsLocationsOperations` * 2021-08-01: :class:`ExpressRoutePortsLocationsOperations` """ api_version = self._get_api_version('express_route_ports_locations') @@ -2715,8 +2623,6 @@ def express_route_ports_locations(self): from ..v2020_11_01.aio.operations import ExpressRoutePortsLocationsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import ExpressRoutePortsLocationsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import ExpressRoutePortsLocationsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import ExpressRoutePortsLocationsOperations as OperationClass else: @@ -2758,7 +2664,6 @@ def express_route_service_providers(self): * 2020-08-01: :class:`ExpressRouteServiceProvidersOperations` * 2020-11-01: :class:`ExpressRouteServiceProvidersOperations` * 2021-02-01: :class:`ExpressRouteServiceProvidersOperations` - * 2021-05-01: :class:`ExpressRouteServiceProvidersOperations` * 2021-08-01: :class:`ExpressRouteServiceProvidersOperations` """ api_version = self._get_api_version('express_route_service_providers') @@ -2824,8 +2729,6 @@ def express_route_service_providers(self): from ..v2020_11_01.aio.operations import ExpressRouteServiceProvidersOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import ExpressRouteServiceProvidersOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import ExpressRouteServiceProvidersOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import ExpressRouteServiceProvidersOperations as OperationClass else: @@ -2850,7 +2753,6 @@ def firewall_policies(self): * 2020-08-01: :class:`FirewallPoliciesOperations` * 2020-11-01: :class:`FirewallPoliciesOperations` * 2021-02-01: :class:`FirewallPoliciesOperations` - * 2021-05-01: :class:`FirewallPoliciesOperations` * 2021-08-01: :class:`FirewallPoliciesOperations` """ api_version = self._get_api_version('firewall_policies') @@ -2882,8 +2784,6 @@ def firewall_policies(self): from ..v2020_11_01.aio.operations import FirewallPoliciesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import FirewallPoliciesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import FirewallPoliciesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import FirewallPoliciesOperations as OperationClass else: @@ -2894,13 +2794,10 @@ def firewall_policies(self): def firewall_policy_idps_signatures(self): """Instance depends on the API version: - * 2021-05-01: :class:`FirewallPolicyIdpsSignaturesOperations` * 2021-08-01: :class:`FirewallPolicyIdpsSignaturesOperations` """ api_version = self._get_api_version('firewall_policy_idps_signatures') - if api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import FirewallPolicyIdpsSignaturesOperations as OperationClass - elif api_version == '2021-08-01': + if api_version == '2021-08-01': from ..v2021_08_01.aio.operations import FirewallPolicyIdpsSignaturesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'firewall_policy_idps_signatures'".format(api_version)) @@ -2910,13 +2807,10 @@ def firewall_policy_idps_signatures(self): def firewall_policy_idps_signatures_filter_values(self): """Instance depends on the API version: - * 2021-05-01: :class:`FirewallPolicyIdpsSignaturesFilterValuesOperations` * 2021-08-01: :class:`FirewallPolicyIdpsSignaturesFilterValuesOperations` """ api_version = self._get_api_version('firewall_policy_idps_signatures_filter_values') - if api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import FirewallPolicyIdpsSignaturesFilterValuesOperations as OperationClass - elif api_version == '2021-08-01': + if api_version == '2021-08-01': from ..v2021_08_01.aio.operations import FirewallPolicyIdpsSignaturesFilterValuesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'firewall_policy_idps_signatures_filter_values'".format(api_version)) @@ -2926,13 +2820,10 @@ def firewall_policy_idps_signatures_filter_values(self): def firewall_policy_idps_signatures_overrides(self): """Instance depends on the API version: - * 2021-05-01: :class:`FirewallPolicyIdpsSignaturesOverridesOperations` * 2021-08-01: :class:`FirewallPolicyIdpsSignaturesOverridesOperations` """ api_version = self._get_api_version('firewall_policy_idps_signatures_overrides') - if api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import FirewallPolicyIdpsSignaturesOverridesOperations as OperationClass - elif api_version == '2021-08-01': + if api_version == '2021-08-01': from ..v2021_08_01.aio.operations import FirewallPolicyIdpsSignaturesOverridesOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'firewall_policy_idps_signatures_overrides'".format(api_version)) @@ -2948,7 +2839,6 @@ def firewall_policy_rule_collection_groups(self): * 2020-08-01: :class:`FirewallPolicyRuleCollectionGroupsOperations` * 2020-11-01: :class:`FirewallPolicyRuleCollectionGroupsOperations` * 2021-02-01: :class:`FirewallPolicyRuleCollectionGroupsOperations` - * 2021-05-01: :class:`FirewallPolicyRuleCollectionGroupsOperations` * 2021-08-01: :class:`FirewallPolicyRuleCollectionGroupsOperations` """ api_version = self._get_api_version('firewall_policy_rule_collection_groups') @@ -2964,8 +2854,6 @@ def firewall_policy_rule_collection_groups(self): from ..v2020_11_01.aio.operations import FirewallPolicyRuleCollectionGroupsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import FirewallPolicyRuleCollectionGroupsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import FirewallPolicyRuleCollectionGroupsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import FirewallPolicyRuleCollectionGroupsOperations as OperationClass else: @@ -3020,7 +2908,6 @@ def flow_logs(self): * 2020-08-01: :class:`FlowLogsOperations` * 2020-11-01: :class:`FlowLogsOperations` * 2021-02-01: :class:`FlowLogsOperations` - * 2021-05-01: :class:`FlowLogsOperations` * 2021-08-01: :class:`FlowLogsOperations` """ api_version = self._get_api_version('flow_logs') @@ -3044,8 +2931,6 @@ def flow_logs(self): from ..v2020_11_01.aio.operations import FlowLogsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import FlowLogsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import FlowLogsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import FlowLogsOperations as OperationClass else: @@ -3063,7 +2948,6 @@ def hub_route_tables(self): * 2020-08-01: :class:`HubRouteTablesOperations` * 2020-11-01: :class:`HubRouteTablesOperations` * 2021-02-01: :class:`HubRouteTablesOperations` - * 2021-05-01: :class:`HubRouteTablesOperations` * 2021-08-01: :class:`HubRouteTablesOperations` """ api_version = self._get_api_version('hub_route_tables') @@ -3081,8 +2965,6 @@ def hub_route_tables(self): from ..v2020_11_01.aio.operations import HubRouteTablesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import HubRouteTablesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import HubRouteTablesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import HubRouteTablesOperations as OperationClass else: @@ -3116,7 +2998,6 @@ def hub_virtual_network_connections(self): * 2020-08-01: :class:`HubVirtualNetworkConnectionsOperations` * 2020-11-01: :class:`HubVirtualNetworkConnectionsOperations` * 2021-02-01: :class:`HubVirtualNetworkConnectionsOperations` - * 2021-05-01: :class:`HubVirtualNetworkConnectionsOperations` * 2021-08-01: :class:`HubVirtualNetworkConnectionsOperations` """ api_version = self._get_api_version('hub_virtual_network_connections') @@ -3166,8 +3047,6 @@ def hub_virtual_network_connections(self): from ..v2020_11_01.aio.operations import HubVirtualNetworkConnectionsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import HubVirtualNetworkConnectionsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import HubVirtualNetworkConnectionsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import HubVirtualNetworkConnectionsOperations as OperationClass else: @@ -3205,7 +3084,6 @@ def inbound_nat_rules(self): * 2020-08-01: :class:`InboundNatRulesOperations` * 2020-11-01: :class:`InboundNatRulesOperations` * 2021-02-01: :class:`InboundNatRulesOperations` - * 2021-05-01: :class:`InboundNatRulesOperations` * 2021-08-01: :class:`InboundNatRulesOperations` """ api_version = self._get_api_version('inbound_nat_rules') @@ -3263,8 +3141,6 @@ def inbound_nat_rules(self): from ..v2020_11_01.aio.operations import InboundNatRulesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import InboundNatRulesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import InboundNatRulesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import InboundNatRulesOperations as OperationClass else: @@ -3280,7 +3156,6 @@ def inbound_security_rule(self): * 2020-08-01: :class:`InboundSecurityRuleOperations` * 2020-11-01: :class:`InboundSecurityRuleOperations` * 2021-02-01: :class:`InboundSecurityRuleOperations` - * 2021-05-01: :class:`InboundSecurityRuleOperations` * 2021-08-01: :class:`InboundSecurityRuleOperations` """ api_version = self._get_api_version('inbound_security_rule') @@ -3294,8 +3169,6 @@ def inbound_security_rule(self): from ..v2020_11_01.aio.operations import InboundSecurityRuleOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import InboundSecurityRuleOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import InboundSecurityRuleOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import InboundSecurityRuleOperations as OperationClass else: @@ -3339,7 +3212,6 @@ def ip_allocations(self): * 2020-08-01: :class:`IpAllocationsOperations` * 2020-11-01: :class:`IpAllocationsOperations` * 2021-02-01: :class:`IpAllocationsOperations` - * 2021-05-01: :class:`IpAllocationsOperations` * 2021-08-01: :class:`IpAllocationsOperations` """ api_version = self._get_api_version('ip_allocations') @@ -3359,8 +3231,6 @@ def ip_allocations(self): from ..v2020_11_01.aio.operations import IpAllocationsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import IpAllocationsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import IpAllocationsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import IpAllocationsOperations as OperationClass else: @@ -3382,7 +3252,6 @@ def ip_groups(self): * 2020-08-01: :class:`IpGroupsOperations` * 2020-11-01: :class:`IpGroupsOperations` * 2021-02-01: :class:`IpGroupsOperations` - * 2021-05-01: :class:`IpGroupsOperations` * 2021-08-01: :class:`IpGroupsOperations` """ api_version = self._get_api_version('ip_groups') @@ -3408,8 +3277,6 @@ def ip_groups(self): from ..v2020_11_01.aio.operations import IpGroupsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import IpGroupsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import IpGroupsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import IpGroupsOperations as OperationClass else: @@ -3447,7 +3314,6 @@ def load_balancer_backend_address_pools(self): * 2020-08-01: :class:`LoadBalancerBackendAddressPoolsOperations` * 2020-11-01: :class:`LoadBalancerBackendAddressPoolsOperations` * 2021-02-01: :class:`LoadBalancerBackendAddressPoolsOperations` - * 2021-05-01: :class:`LoadBalancerBackendAddressPoolsOperations` * 2021-08-01: :class:`LoadBalancerBackendAddressPoolsOperations` """ api_version = self._get_api_version('load_balancer_backend_address_pools') @@ -3505,8 +3371,6 @@ def load_balancer_backend_address_pools(self): from ..v2020_11_01.aio.operations import LoadBalancerBackendAddressPoolsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import LoadBalancerBackendAddressPoolsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import LoadBalancerBackendAddressPoolsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import LoadBalancerBackendAddressPoolsOperations as OperationClass else: @@ -3544,7 +3408,6 @@ def load_balancer_frontend_ip_configurations(self): * 2020-08-01: :class:`LoadBalancerFrontendIPConfigurationsOperations` * 2020-11-01: :class:`LoadBalancerFrontendIPConfigurationsOperations` * 2021-02-01: :class:`LoadBalancerFrontendIPConfigurationsOperations` - * 2021-05-01: :class:`LoadBalancerFrontendIPConfigurationsOperations` * 2021-08-01: :class:`LoadBalancerFrontendIPConfigurationsOperations` """ api_version = self._get_api_version('load_balancer_frontend_ip_configurations') @@ -3602,8 +3465,6 @@ def load_balancer_frontend_ip_configurations(self): from ..v2020_11_01.aio.operations import LoadBalancerFrontendIPConfigurationsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import LoadBalancerFrontendIPConfigurationsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import LoadBalancerFrontendIPConfigurationsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import LoadBalancerFrontendIPConfigurationsOperations as OperationClass else: @@ -3641,7 +3502,6 @@ def load_balancer_load_balancing_rules(self): * 2020-08-01: :class:`LoadBalancerLoadBalancingRulesOperations` * 2020-11-01: :class:`LoadBalancerLoadBalancingRulesOperations` * 2021-02-01: :class:`LoadBalancerLoadBalancingRulesOperations` - * 2021-05-01: :class:`LoadBalancerLoadBalancingRulesOperations` * 2021-08-01: :class:`LoadBalancerLoadBalancingRulesOperations` """ api_version = self._get_api_version('load_balancer_load_balancing_rules') @@ -3699,8 +3559,6 @@ def load_balancer_load_balancing_rules(self): from ..v2020_11_01.aio.operations import LoadBalancerLoadBalancingRulesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import LoadBalancerLoadBalancingRulesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import LoadBalancerLoadBalancingRulesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import LoadBalancerLoadBalancingRulesOperations as OperationClass else: @@ -3738,7 +3596,6 @@ def load_balancer_network_interfaces(self): * 2020-08-01: :class:`LoadBalancerNetworkInterfacesOperations` * 2020-11-01: :class:`LoadBalancerNetworkInterfacesOperations` * 2021-02-01: :class:`LoadBalancerNetworkInterfacesOperations` - * 2021-05-01: :class:`LoadBalancerNetworkInterfacesOperations` * 2021-08-01: :class:`LoadBalancerNetworkInterfacesOperations` """ api_version = self._get_api_version('load_balancer_network_interfaces') @@ -3796,8 +3653,6 @@ def load_balancer_network_interfaces(self): from ..v2020_11_01.aio.operations import LoadBalancerNetworkInterfacesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import LoadBalancerNetworkInterfacesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import LoadBalancerNetworkInterfacesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import LoadBalancerNetworkInterfacesOperations as OperationClass else: @@ -3828,7 +3683,6 @@ def load_balancer_outbound_rules(self): * 2020-08-01: :class:`LoadBalancerOutboundRulesOperations` * 2020-11-01: :class:`LoadBalancerOutboundRulesOperations` * 2021-02-01: :class:`LoadBalancerOutboundRulesOperations` - * 2021-05-01: :class:`LoadBalancerOutboundRulesOperations` * 2021-08-01: :class:`LoadBalancerOutboundRulesOperations` """ api_version = self._get_api_version('load_balancer_outbound_rules') @@ -3872,8 +3726,6 @@ def load_balancer_outbound_rules(self): from ..v2020_11_01.aio.operations import LoadBalancerOutboundRulesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import LoadBalancerOutboundRulesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import LoadBalancerOutboundRulesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import LoadBalancerOutboundRulesOperations as OperationClass else: @@ -3911,7 +3763,6 @@ def load_balancer_probes(self): * 2020-08-01: :class:`LoadBalancerProbesOperations` * 2020-11-01: :class:`LoadBalancerProbesOperations` * 2021-02-01: :class:`LoadBalancerProbesOperations` - * 2021-05-01: :class:`LoadBalancerProbesOperations` * 2021-08-01: :class:`LoadBalancerProbesOperations` """ api_version = self._get_api_version('load_balancer_probes') @@ -3969,8 +3820,6 @@ def load_balancer_probes(self): from ..v2020_11_01.aio.operations import LoadBalancerProbesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import LoadBalancerProbesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import LoadBalancerProbesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import LoadBalancerProbesOperations as OperationClass else: @@ -4012,7 +3861,6 @@ def load_balancers(self): * 2020-08-01: :class:`LoadBalancersOperations` * 2020-11-01: :class:`LoadBalancersOperations` * 2021-02-01: :class:`LoadBalancersOperations` - * 2021-05-01: :class:`LoadBalancersOperations` * 2021-08-01: :class:`LoadBalancersOperations` """ api_version = self._get_api_version('load_balancers') @@ -4078,8 +3926,6 @@ def load_balancers(self): from ..v2020_11_01.aio.operations import LoadBalancersOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import LoadBalancersOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import LoadBalancersOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import LoadBalancersOperations as OperationClass else: @@ -4121,7 +3967,6 @@ def local_network_gateways(self): * 2020-08-01: :class:`LocalNetworkGatewaysOperations` * 2020-11-01: :class:`LocalNetworkGatewaysOperations` * 2021-02-01: :class:`LocalNetworkGatewaysOperations` - * 2021-05-01: :class:`LocalNetworkGatewaysOperations` * 2021-08-01: :class:`LocalNetworkGatewaysOperations` """ api_version = self._get_api_version('local_network_gateways') @@ -4187,8 +4032,6 @@ def local_network_gateways(self): from ..v2020_11_01.aio.operations import LocalNetworkGatewaysOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import LocalNetworkGatewaysOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import LocalNetworkGatewaysOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import LocalNetworkGatewaysOperations as OperationClass else: @@ -4215,7 +4058,6 @@ def nat_gateways(self): * 2020-08-01: :class:`NatGatewaysOperations` * 2020-11-01: :class:`NatGatewaysOperations` * 2021-02-01: :class:`NatGatewaysOperations` - * 2021-05-01: :class:`NatGatewaysOperations` * 2021-08-01: :class:`NatGatewaysOperations` """ api_version = self._get_api_version('nat_gateways') @@ -4251,8 +4093,6 @@ def nat_gateways(self): from ..v2020_11_01.aio.operations import NatGatewaysOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import NatGatewaysOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import NatGatewaysOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import NatGatewaysOperations as OperationClass else: @@ -4266,7 +4106,6 @@ def nat_rules(self): * 2020-08-01: :class:`NatRulesOperations` * 2020-11-01: :class:`NatRulesOperations` * 2021-02-01: :class:`NatRulesOperations` - * 2021-05-01: :class:`NatRulesOperations` * 2021-08-01: :class:`NatRulesOperations` """ api_version = self._get_api_version('nat_rules') @@ -4276,8 +4115,6 @@ def nat_rules(self): from ..v2020_11_01.aio.operations import NatRulesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import NatRulesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import NatRulesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import NatRulesOperations as OperationClass else: @@ -4328,7 +4165,6 @@ def network_interface_ip_configurations(self): * 2020-08-01: :class:`NetworkInterfaceIPConfigurationsOperations` * 2020-11-01: :class:`NetworkInterfaceIPConfigurationsOperations` * 2021-02-01: :class:`NetworkInterfaceIPConfigurationsOperations` - * 2021-05-01: :class:`NetworkInterfaceIPConfigurationsOperations` * 2021-08-01: :class:`NetworkInterfaceIPConfigurationsOperations` """ api_version = self._get_api_version('network_interface_ip_configurations') @@ -4386,8 +4222,6 @@ def network_interface_ip_configurations(self): from ..v2020_11_01.aio.operations import NetworkInterfaceIPConfigurationsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import NetworkInterfaceIPConfigurationsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import NetworkInterfaceIPConfigurationsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import NetworkInterfaceIPConfigurationsOperations as OperationClass else: @@ -4425,7 +4259,6 @@ def network_interface_load_balancers(self): * 2020-08-01: :class:`NetworkInterfaceLoadBalancersOperations` * 2020-11-01: :class:`NetworkInterfaceLoadBalancersOperations` * 2021-02-01: :class:`NetworkInterfaceLoadBalancersOperations` - * 2021-05-01: :class:`NetworkInterfaceLoadBalancersOperations` * 2021-08-01: :class:`NetworkInterfaceLoadBalancersOperations` """ api_version = self._get_api_version('network_interface_load_balancers') @@ -4483,8 +4316,6 @@ def network_interface_load_balancers(self): from ..v2020_11_01.aio.operations import NetworkInterfaceLoadBalancersOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import NetworkInterfaceLoadBalancersOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import NetworkInterfaceLoadBalancersOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import NetworkInterfaceLoadBalancersOperations as OperationClass else: @@ -4515,7 +4346,6 @@ def network_interface_tap_configurations(self): * 2020-08-01: :class:`NetworkInterfaceTapConfigurationsOperations` * 2020-11-01: :class:`NetworkInterfaceTapConfigurationsOperations` * 2021-02-01: :class:`NetworkInterfaceTapConfigurationsOperations` - * 2021-05-01: :class:`NetworkInterfaceTapConfigurationsOperations` * 2021-08-01: :class:`NetworkInterfaceTapConfigurationsOperations` """ api_version = self._get_api_version('network_interface_tap_configurations') @@ -4559,8 +4389,6 @@ def network_interface_tap_configurations(self): from ..v2020_11_01.aio.operations import NetworkInterfaceTapConfigurationsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import NetworkInterfaceTapConfigurationsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import NetworkInterfaceTapConfigurationsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import NetworkInterfaceTapConfigurationsOperations as OperationClass else: @@ -4602,7 +4430,6 @@ def network_interfaces(self): * 2020-08-01: :class:`NetworkInterfacesOperations` * 2020-11-01: :class:`NetworkInterfacesOperations` * 2021-02-01: :class:`NetworkInterfacesOperations` - * 2021-05-01: :class:`NetworkInterfacesOperations` * 2021-08-01: :class:`NetworkInterfacesOperations` """ api_version = self._get_api_version('network_interfaces') @@ -4668,8 +4495,6 @@ def network_interfaces(self): from ..v2020_11_01.aio.operations import NetworkInterfacesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import NetworkInterfacesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import NetworkInterfacesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import NetworkInterfacesOperations as OperationClass else: @@ -4752,7 +4577,6 @@ def network_profiles(self): * 2020-08-01: :class:`NetworkProfilesOperations` * 2020-11-01: :class:`NetworkProfilesOperations` * 2021-02-01: :class:`NetworkProfilesOperations` - * 2021-05-01: :class:`NetworkProfilesOperations` * 2021-08-01: :class:`NetworkProfilesOperations` """ api_version = self._get_api_version('network_profiles') @@ -4796,8 +4620,6 @@ def network_profiles(self): from ..v2020_11_01.aio.operations import NetworkProfilesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import NetworkProfilesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import NetworkProfilesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import NetworkProfilesOperations as OperationClass else: @@ -4839,7 +4661,6 @@ def network_security_groups(self): * 2020-08-01: :class:`NetworkSecurityGroupsOperations` * 2020-11-01: :class:`NetworkSecurityGroupsOperations` * 2021-02-01: :class:`NetworkSecurityGroupsOperations` - * 2021-05-01: :class:`NetworkSecurityGroupsOperations` * 2021-08-01: :class:`NetworkSecurityGroupsOperations` """ api_version = self._get_api_version('network_security_groups') @@ -4905,8 +4726,6 @@ def network_security_groups(self): from ..v2020_11_01.aio.operations import NetworkSecurityGroupsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import NetworkSecurityGroupsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import NetworkSecurityGroupsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import NetworkSecurityGroupsOperations as OperationClass else: @@ -4939,7 +4758,6 @@ def network_virtual_appliances(self): * 2020-08-01: :class:`NetworkVirtualAppliancesOperations` * 2020-11-01: :class:`NetworkVirtualAppliancesOperations` * 2021-02-01: :class:`NetworkVirtualAppliancesOperations` - * 2021-05-01: :class:`NetworkVirtualAppliancesOperations` * 2021-08-01: :class:`NetworkVirtualAppliancesOperations` """ api_version = self._get_api_version('network_virtual_appliances') @@ -4961,8 +4779,6 @@ def network_virtual_appliances(self): from ..v2020_11_01.aio.operations import NetworkVirtualAppliancesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import NetworkVirtualAppliancesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import NetworkVirtualAppliancesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import NetworkVirtualAppliancesOperations as OperationClass else: @@ -5003,7 +4819,6 @@ def network_watchers(self): * 2020-08-01: :class:`NetworkWatchersOperations` * 2020-11-01: :class:`NetworkWatchersOperations` * 2021-02-01: :class:`NetworkWatchersOperations` - * 2021-05-01: :class:`NetworkWatchersOperations` * 2021-08-01: :class:`NetworkWatchersOperations` """ api_version = self._get_api_version('network_watchers') @@ -5067,8 +4882,6 @@ def network_watchers(self): from ..v2020_11_01.aio.operations import NetworkWatchersOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import NetworkWatchersOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import NetworkWatchersOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import NetworkWatchersOperations as OperationClass else: @@ -5144,7 +4957,6 @@ def operations(self): * 2020-08-01: :class:`Operations` * 2020-11-01: :class:`Operations` * 2021-02-01: :class:`Operations` - * 2021-05-01: :class:`Operations` * 2021-08-01: :class:`Operations` """ api_version = self._get_api_version('operations') @@ -5200,8 +5012,6 @@ def operations(self): from ..v2020_11_01.aio.operations import Operations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import Operations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import Operations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import Operations as OperationClass else: @@ -5232,7 +5042,6 @@ def p2_svpn_gateways(self): * 2020-08-01: :class:`P2SVpnGatewaysOperations` * 2020-11-01: :class:`P2SVpnGatewaysOperations` * 2021-02-01: :class:`P2SVpnGatewaysOperations` - * 2021-05-01: :class:`P2SVpnGatewaysOperations` * 2021-08-01: :class:`P2SVpnGatewaysOperations` """ api_version = self._get_api_version('p2_svpn_gateways') @@ -5276,8 +5085,6 @@ def p2_svpn_gateways(self): from ..v2020_11_01.aio.operations import P2SVpnGatewaysOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import P2SVpnGatewaysOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import P2SVpnGatewaysOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import P2SVpnGatewaysOperations as OperationClass else: @@ -5352,7 +5159,6 @@ def packet_captures(self): * 2020-08-01: :class:`PacketCapturesOperations` * 2020-11-01: :class:`PacketCapturesOperations` * 2021-02-01: :class:`PacketCapturesOperations` - * 2021-05-01: :class:`PacketCapturesOperations` * 2021-08-01: :class:`PacketCapturesOperations` """ api_version = self._get_api_version('packet_captures') @@ -5416,8 +5222,6 @@ def packet_captures(self): from ..v2020_11_01.aio.operations import PacketCapturesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import PacketCapturesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import PacketCapturesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import PacketCapturesOperations as OperationClass else: @@ -5445,7 +5249,6 @@ def peer_express_route_circuit_connections(self): * 2020-08-01: :class:`PeerExpressRouteCircuitConnectionsOperations` * 2020-11-01: :class:`PeerExpressRouteCircuitConnectionsOperations` * 2021-02-01: :class:`PeerExpressRouteCircuitConnectionsOperations` - * 2021-05-01: :class:`PeerExpressRouteCircuitConnectionsOperations` * 2021-08-01: :class:`PeerExpressRouteCircuitConnectionsOperations` """ api_version = self._get_api_version('peer_express_route_circuit_connections') @@ -5483,8 +5286,6 @@ def peer_express_route_circuit_connections(self): from ..v2020_11_01.aio.operations import PeerExpressRouteCircuitConnectionsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import PeerExpressRouteCircuitConnectionsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import PeerExpressRouteCircuitConnectionsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import PeerExpressRouteCircuitConnectionsOperations as OperationClass else: @@ -5516,7 +5317,6 @@ def private_dns_zone_groups(self): * 2020-08-01: :class:`PrivateDnsZoneGroupsOperations` * 2020-11-01: :class:`PrivateDnsZoneGroupsOperations` * 2021-02-01: :class:`PrivateDnsZoneGroupsOperations` - * 2021-05-01: :class:`PrivateDnsZoneGroupsOperations` * 2021-08-01: :class:`PrivateDnsZoneGroupsOperations` """ api_version = self._get_api_version('private_dns_zone_groups') @@ -5536,8 +5336,6 @@ def private_dns_zone_groups(self): from ..v2020_11_01.aio.operations import PrivateDnsZoneGroupsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import PrivateDnsZoneGroupsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import PrivateDnsZoneGroupsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import PrivateDnsZoneGroupsOperations as OperationClass else: @@ -5563,7 +5361,6 @@ def private_endpoints(self): * 2020-08-01: :class:`PrivateEndpointsOperations` * 2020-11-01: :class:`PrivateEndpointsOperations` * 2021-02-01: :class:`PrivateEndpointsOperations` - * 2021-05-01: :class:`PrivateEndpointsOperations` * 2021-08-01: :class:`PrivateEndpointsOperations` """ api_version = self._get_api_version('private_endpoints') @@ -5597,8 +5394,6 @@ def private_endpoints(self): from ..v2020_11_01.aio.operations import PrivateEndpointsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import PrivateEndpointsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import PrivateEndpointsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import PrivateEndpointsOperations as OperationClass else: @@ -5624,7 +5419,6 @@ def private_link_services(self): * 2020-08-01: :class:`PrivateLinkServicesOperations` * 2020-11-01: :class:`PrivateLinkServicesOperations` * 2021-02-01: :class:`PrivateLinkServicesOperations` - * 2021-05-01: :class:`PrivateLinkServicesOperations` * 2021-08-01: :class:`PrivateLinkServicesOperations` """ api_version = self._get_api_version('private_link_services') @@ -5658,8 +5452,6 @@ def private_link_services(self): from ..v2020_11_01.aio.operations import PrivateLinkServicesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import PrivateLinkServicesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import PrivateLinkServicesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import PrivateLinkServicesOperations as OperationClass else: @@ -5701,7 +5493,6 @@ def public_ip_addresses(self): * 2020-08-01: :class:`PublicIPAddressesOperations` * 2020-11-01: :class:`PublicIPAddressesOperations` * 2021-02-01: :class:`PublicIPAddressesOperations` - * 2021-05-01: :class:`PublicIPAddressesOperations` * 2021-08-01: :class:`PublicIPAddressesOperations` """ api_version = self._get_api_version('public_ip_addresses') @@ -5767,8 +5558,6 @@ def public_ip_addresses(self): from ..v2020_11_01.aio.operations import PublicIPAddressesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import PublicIPAddressesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import PublicIPAddressesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import PublicIPAddressesOperations as OperationClass else: @@ -5800,7 +5589,6 @@ def public_ip_prefixes(self): * 2020-08-01: :class:`PublicIPPrefixesOperations` * 2020-11-01: :class:`PublicIPPrefixesOperations` * 2021-02-01: :class:`PublicIPPrefixesOperations` - * 2021-05-01: :class:`PublicIPPrefixesOperations` * 2021-08-01: :class:`PublicIPPrefixesOperations` """ api_version = self._get_api_version('public_ip_prefixes') @@ -5846,8 +5634,6 @@ def public_ip_prefixes(self): from ..v2020_11_01.aio.operations import PublicIPPrefixesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import PublicIPPrefixesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import PublicIPPrefixesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import PublicIPPrefixesOperations as OperationClass else: @@ -5874,7 +5660,6 @@ def resource_navigation_links(self): * 2020-08-01: :class:`ResourceNavigationLinksOperations` * 2020-11-01: :class:`ResourceNavigationLinksOperations` * 2021-02-01: :class:`ResourceNavigationLinksOperations` - * 2021-05-01: :class:`ResourceNavigationLinksOperations` * 2021-08-01: :class:`ResourceNavigationLinksOperations` """ api_version = self._get_api_version('resource_navigation_links') @@ -5910,8 +5695,6 @@ def resource_navigation_links(self): from ..v2020_11_01.aio.operations import ResourceNavigationLinksOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import ResourceNavigationLinksOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import ResourceNavigationLinksOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import ResourceNavigationLinksOperations as OperationClass else: @@ -5951,7 +5734,6 @@ def route_filter_rules(self): * 2020-08-01: :class:`RouteFilterRulesOperations` * 2020-11-01: :class:`RouteFilterRulesOperations` * 2021-02-01: :class:`RouteFilterRulesOperations` - * 2021-05-01: :class:`RouteFilterRulesOperations` * 2021-08-01: :class:`RouteFilterRulesOperations` """ api_version = self._get_api_version('route_filter_rules') @@ -6013,8 +5795,6 @@ def route_filter_rules(self): from ..v2020_11_01.aio.operations import RouteFilterRulesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import RouteFilterRulesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import RouteFilterRulesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import RouteFilterRulesOperations as OperationClass else: @@ -6054,7 +5834,6 @@ def route_filters(self): * 2020-08-01: :class:`RouteFiltersOperations` * 2020-11-01: :class:`RouteFiltersOperations` * 2021-02-01: :class:`RouteFiltersOperations` - * 2021-05-01: :class:`RouteFiltersOperations` * 2021-08-01: :class:`RouteFiltersOperations` """ api_version = self._get_api_version('route_filters') @@ -6116,8 +5895,6 @@ def route_filters(self): from ..v2020_11_01.aio.operations import RouteFiltersOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import RouteFiltersOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import RouteFiltersOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import RouteFiltersOperations as OperationClass else: @@ -6159,7 +5936,6 @@ def route_tables(self): * 2020-08-01: :class:`RouteTablesOperations` * 2020-11-01: :class:`RouteTablesOperations` * 2021-02-01: :class:`RouteTablesOperations` - * 2021-05-01: :class:`RouteTablesOperations` * 2021-08-01: :class:`RouteTablesOperations` """ api_version = self._get_api_version('route_tables') @@ -6225,8 +6001,6 @@ def route_tables(self): from ..v2020_11_01.aio.operations import RouteTablesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import RouteTablesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import RouteTablesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import RouteTablesOperations as OperationClass else: @@ -6268,7 +6042,6 @@ def routes(self): * 2020-08-01: :class:`RoutesOperations` * 2020-11-01: :class:`RoutesOperations` * 2021-02-01: :class:`RoutesOperations` - * 2021-05-01: :class:`RoutesOperations` * 2021-08-01: :class:`RoutesOperations` """ api_version = self._get_api_version('routes') @@ -6334,8 +6107,6 @@ def routes(self): from ..v2020_11_01.aio.operations import RoutesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import RoutesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import RoutesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import RoutesOperations as OperationClass else: @@ -6346,13 +6117,10 @@ def routes(self): def routing_intent(self): """Instance depends on the API version: - * 2021-05-01: :class:`RoutingIntentOperations` * 2021-08-01: :class:`RoutingIntentOperations` """ api_version = self._get_api_version('routing_intent') - if api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import RoutingIntentOperations as OperationClass - elif api_version == '2021-08-01': + if api_version == '2021-08-01': from ..v2021_08_01.aio.operations import RoutingIntentOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'routing_intent'".format(api_version)) @@ -6383,7 +6151,6 @@ def security_partner_providers(self): * 2020-08-01: :class:`SecurityPartnerProvidersOperations` * 2020-11-01: :class:`SecurityPartnerProvidersOperations` * 2021-02-01: :class:`SecurityPartnerProvidersOperations` - * 2021-05-01: :class:`SecurityPartnerProvidersOperations` * 2021-08-01: :class:`SecurityPartnerProvidersOperations` """ api_version = self._get_api_version('security_partner_providers') @@ -6403,8 +6170,6 @@ def security_partner_providers(self): from ..v2020_11_01.aio.operations import SecurityPartnerProvidersOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import SecurityPartnerProvidersOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import SecurityPartnerProvidersOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import SecurityPartnerProvidersOperations as OperationClass else: @@ -6446,7 +6211,6 @@ def security_rules(self): * 2020-08-01: :class:`SecurityRulesOperations` * 2020-11-01: :class:`SecurityRulesOperations` * 2021-02-01: :class:`SecurityRulesOperations` - * 2021-05-01: :class:`SecurityRulesOperations` * 2021-08-01: :class:`SecurityRulesOperations` """ api_version = self._get_api_version('security_rules') @@ -6512,8 +6276,6 @@ def security_rules(self): from ..v2020_11_01.aio.operations import SecurityRulesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import SecurityRulesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import SecurityRulesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import SecurityRulesOperations as OperationClass else: @@ -6553,7 +6315,6 @@ def service_association_links(self): * 2020-08-01: :class:`ServiceAssociationLinksOperations` * 2020-11-01: :class:`ServiceAssociationLinksOperations` * 2021-02-01: :class:`ServiceAssociationLinksOperations` - * 2021-05-01: :class:`ServiceAssociationLinksOperations` * 2021-08-01: :class:`ServiceAssociationLinksOperations` """ api_version = self._get_api_version('service_association_links') @@ -6589,8 +6350,6 @@ def service_association_links(self): from ..v2020_11_01.aio.operations import ServiceAssociationLinksOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import ServiceAssociationLinksOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import ServiceAssociationLinksOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import ServiceAssociationLinksOperations as OperationClass else: @@ -6622,7 +6381,6 @@ def service_endpoint_policies(self): * 2020-08-01: :class:`ServiceEndpointPoliciesOperations` * 2020-11-01: :class:`ServiceEndpointPoliciesOperations` * 2021-02-01: :class:`ServiceEndpointPoliciesOperations` - * 2021-05-01: :class:`ServiceEndpointPoliciesOperations` * 2021-08-01: :class:`ServiceEndpointPoliciesOperations` """ api_version = self._get_api_version('service_endpoint_policies') @@ -6668,8 +6426,6 @@ def service_endpoint_policies(self): from ..v2020_11_01.aio.operations import ServiceEndpointPoliciesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import ServiceEndpointPoliciesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import ServiceEndpointPoliciesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import ServiceEndpointPoliciesOperations as OperationClass else: @@ -6701,7 +6457,6 @@ def service_endpoint_policy_definitions(self): * 2020-08-01: :class:`ServiceEndpointPolicyDefinitionsOperations` * 2020-11-01: :class:`ServiceEndpointPolicyDefinitionsOperations` * 2021-02-01: :class:`ServiceEndpointPolicyDefinitionsOperations` - * 2021-05-01: :class:`ServiceEndpointPolicyDefinitionsOperations` * 2021-08-01: :class:`ServiceEndpointPolicyDefinitionsOperations` """ api_version = self._get_api_version('service_endpoint_policy_definitions') @@ -6747,8 +6502,6 @@ def service_endpoint_policy_definitions(self): from ..v2020_11_01.aio.operations import ServiceEndpointPolicyDefinitionsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import ServiceEndpointPolicyDefinitionsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import ServiceEndpointPolicyDefinitionsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import ServiceEndpointPolicyDefinitionsOperations as OperationClass else: @@ -6759,13 +6512,10 @@ def service_endpoint_policy_definitions(self): def service_tag_information(self): """Instance depends on the API version: - * 2021-05-01: :class:`ServiceTagInformationOperations` * 2021-08-01: :class:`ServiceTagInformationOperations` """ api_version = self._get_api_version('service_tag_information') - if api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import ServiceTagInformationOperations as OperationClass - elif api_version == '2021-08-01': + if api_version == '2021-08-01': from ..v2021_08_01.aio.operations import ServiceTagInformationOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'service_tag_information'".format(api_version)) @@ -6790,7 +6540,6 @@ def service_tags(self): * 2020-08-01: :class:`ServiceTagsOperations` * 2020-11-01: :class:`ServiceTagsOperations` * 2021-02-01: :class:`ServiceTagsOperations` - * 2021-05-01: :class:`ServiceTagsOperations` * 2021-08-01: :class:`ServiceTagsOperations` """ api_version = self._get_api_version('service_tags') @@ -6824,8 +6573,6 @@ def service_tags(self): from ..v2020_11_01.aio.operations import ServiceTagsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import ServiceTagsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import ServiceTagsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import ServiceTagsOperations as OperationClass else: @@ -6867,7 +6614,6 @@ def subnets(self): * 2020-08-01: :class:`SubnetsOperations` * 2020-11-01: :class:`SubnetsOperations` * 2021-02-01: :class:`SubnetsOperations` - * 2021-05-01: :class:`SubnetsOperations` * 2021-08-01: :class:`SubnetsOperations` """ api_version = self._get_api_version('subnets') @@ -6933,8 +6679,6 @@ def subnets(self): from ..v2020_11_01.aio.operations import SubnetsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import SubnetsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import SubnetsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import SubnetsOperations as OperationClass else: @@ -6976,7 +6720,6 @@ def usages(self): * 2020-08-01: :class:`UsagesOperations` * 2020-11-01: :class:`UsagesOperations` * 2021-02-01: :class:`UsagesOperations` - * 2021-05-01: :class:`UsagesOperations` * 2021-08-01: :class:`UsagesOperations` """ api_version = self._get_api_version('usages') @@ -7042,8 +6785,6 @@ def usages(self): from ..v2020_11_01.aio.operations import UsagesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import UsagesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import UsagesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import UsagesOperations as OperationClass else: @@ -7086,7 +6827,6 @@ def virtual_appliance_sites(self): * 2020-08-01: :class:`VirtualApplianceSitesOperations` * 2020-11-01: :class:`VirtualApplianceSitesOperations` * 2021-02-01: :class:`VirtualApplianceSitesOperations` - * 2021-05-01: :class:`VirtualApplianceSitesOperations` * 2021-08-01: :class:`VirtualApplianceSitesOperations` """ api_version = self._get_api_version('virtual_appliance_sites') @@ -7102,8 +6842,6 @@ def virtual_appliance_sites(self): from ..v2020_11_01.aio.operations import VirtualApplianceSitesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import VirtualApplianceSitesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import VirtualApplianceSitesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import VirtualApplianceSitesOperations as OperationClass else: @@ -7120,7 +6858,6 @@ def virtual_appliance_skus(self): * 2020-08-01: :class:`VirtualApplianceSkusOperations` * 2020-11-01: :class:`VirtualApplianceSkusOperations` * 2021-02-01: :class:`VirtualApplianceSkusOperations` - * 2021-05-01: :class:`VirtualApplianceSkusOperations` * 2021-08-01: :class:`VirtualApplianceSkusOperations` """ api_version = self._get_api_version('virtual_appliance_skus') @@ -7136,8 +6873,6 @@ def virtual_appliance_skus(self): from ..v2020_11_01.aio.operations import VirtualApplianceSkusOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import VirtualApplianceSkusOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import VirtualApplianceSkusOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import VirtualApplianceSkusOperations as OperationClass else: @@ -7154,7 +6889,6 @@ def virtual_hub_bgp_connection(self): * 2020-08-01: :class:`VirtualHubBgpConnectionOperations` * 2020-11-01: :class:`VirtualHubBgpConnectionOperations` * 2021-02-01: :class:`VirtualHubBgpConnectionOperations` - * 2021-05-01: :class:`VirtualHubBgpConnectionOperations` * 2021-08-01: :class:`VirtualHubBgpConnectionOperations` """ api_version = self._get_api_version('virtual_hub_bgp_connection') @@ -7170,8 +6904,6 @@ def virtual_hub_bgp_connection(self): from ..v2020_11_01.aio.operations import VirtualHubBgpConnectionOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import VirtualHubBgpConnectionOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import VirtualHubBgpConnectionOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import VirtualHubBgpConnectionOperations as OperationClass else: @@ -7188,7 +6920,6 @@ def virtual_hub_bgp_connections(self): * 2020-08-01: :class:`VirtualHubBgpConnectionsOperations` * 2020-11-01: :class:`VirtualHubBgpConnectionsOperations` * 2021-02-01: :class:`VirtualHubBgpConnectionsOperations` - * 2021-05-01: :class:`VirtualHubBgpConnectionsOperations` * 2021-08-01: :class:`VirtualHubBgpConnectionsOperations` """ api_version = self._get_api_version('virtual_hub_bgp_connections') @@ -7204,8 +6935,6 @@ def virtual_hub_bgp_connections(self): from ..v2020_11_01.aio.operations import VirtualHubBgpConnectionsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import VirtualHubBgpConnectionsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import VirtualHubBgpConnectionsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import VirtualHubBgpConnectionsOperations as OperationClass else: @@ -7222,7 +6951,6 @@ def virtual_hub_ip_configuration(self): * 2020-08-01: :class:`VirtualHubIpConfigurationOperations` * 2020-11-01: :class:`VirtualHubIpConfigurationOperations` * 2021-02-01: :class:`VirtualHubIpConfigurationOperations` - * 2021-05-01: :class:`VirtualHubIpConfigurationOperations` * 2021-08-01: :class:`VirtualHubIpConfigurationOperations` """ api_version = self._get_api_version('virtual_hub_ip_configuration') @@ -7238,8 +6966,6 @@ def virtual_hub_ip_configuration(self): from ..v2020_11_01.aio.operations import VirtualHubIpConfigurationOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import VirtualHubIpConfigurationOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import VirtualHubIpConfigurationOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import VirtualHubIpConfigurationOperations as OperationClass else: @@ -7261,7 +6987,6 @@ def virtual_hub_route_table_v2_s(self): * 2020-08-01: :class:`VirtualHubRouteTableV2SOperations` * 2020-11-01: :class:`VirtualHubRouteTableV2SOperations` * 2021-02-01: :class:`VirtualHubRouteTableV2SOperations` - * 2021-05-01: :class:`VirtualHubRouteTableV2SOperations` * 2021-08-01: :class:`VirtualHubRouteTableV2SOperations` """ api_version = self._get_api_version('virtual_hub_route_table_v2_s') @@ -7287,8 +7012,6 @@ def virtual_hub_route_table_v2_s(self): from ..v2020_11_01.aio.operations import VirtualHubRouteTableV2SOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import VirtualHubRouteTableV2SOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import VirtualHubRouteTableV2SOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import VirtualHubRouteTableV2SOperations as OperationClass else: @@ -7322,7 +7045,6 @@ def virtual_hubs(self): * 2020-08-01: :class:`VirtualHubsOperations` * 2020-11-01: :class:`VirtualHubsOperations` * 2021-02-01: :class:`VirtualHubsOperations` - * 2021-05-01: :class:`VirtualHubsOperations` * 2021-08-01: :class:`VirtualHubsOperations` """ api_version = self._get_api_version('virtual_hubs') @@ -7372,8 +7094,6 @@ def virtual_hubs(self): from ..v2020_11_01.aio.operations import VirtualHubsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import VirtualHubsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import VirtualHubsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import VirtualHubsOperations as OperationClass else: @@ -7415,7 +7135,6 @@ def virtual_network_gateway_connections(self): * 2020-08-01: :class:`VirtualNetworkGatewayConnectionsOperations` * 2020-11-01: :class:`VirtualNetworkGatewayConnectionsOperations` * 2021-02-01: :class:`VirtualNetworkGatewayConnectionsOperations` - * 2021-05-01: :class:`VirtualNetworkGatewayConnectionsOperations` * 2021-08-01: :class:`VirtualNetworkGatewayConnectionsOperations` """ api_version = self._get_api_version('virtual_network_gateway_connections') @@ -7481,8 +7200,6 @@ def virtual_network_gateway_connections(self): from ..v2020_11_01.aio.operations import VirtualNetworkGatewayConnectionsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import VirtualNetworkGatewayConnectionsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import VirtualNetworkGatewayConnectionsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import VirtualNetworkGatewayConnectionsOperations as OperationClass else: @@ -7494,14 +7211,11 @@ def virtual_network_gateway_nat_rules(self): """Instance depends on the API version: * 2021-02-01: :class:`VirtualNetworkGatewayNatRulesOperations` - * 2021-05-01: :class:`VirtualNetworkGatewayNatRulesOperations` * 2021-08-01: :class:`VirtualNetworkGatewayNatRulesOperations` """ api_version = self._get_api_version('virtual_network_gateway_nat_rules') if api_version == '2021-02-01': from ..v2021_02_01.aio.operations import VirtualNetworkGatewayNatRulesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import VirtualNetworkGatewayNatRulesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import VirtualNetworkGatewayNatRulesOperations as OperationClass else: @@ -7543,7 +7257,6 @@ def virtual_network_gateways(self): * 2020-08-01: :class:`VirtualNetworkGatewaysOperations` * 2020-11-01: :class:`VirtualNetworkGatewaysOperations` * 2021-02-01: :class:`VirtualNetworkGatewaysOperations` - * 2021-05-01: :class:`VirtualNetworkGatewaysOperations` * 2021-08-01: :class:`VirtualNetworkGatewaysOperations` """ api_version = self._get_api_version('virtual_network_gateways') @@ -7609,8 +7322,6 @@ def virtual_network_gateways(self): from ..v2020_11_01.aio.operations import VirtualNetworkGatewaysOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import VirtualNetworkGatewaysOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import VirtualNetworkGatewaysOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import VirtualNetworkGatewaysOperations as OperationClass else: @@ -7651,7 +7362,6 @@ def virtual_network_peerings(self): * 2020-08-01: :class:`VirtualNetworkPeeringsOperations` * 2020-11-01: :class:`VirtualNetworkPeeringsOperations` * 2021-02-01: :class:`VirtualNetworkPeeringsOperations` - * 2021-05-01: :class:`VirtualNetworkPeeringsOperations` * 2021-08-01: :class:`VirtualNetworkPeeringsOperations` """ api_version = self._get_api_version('virtual_network_peerings') @@ -7715,8 +7425,6 @@ def virtual_network_peerings(self): from ..v2020_11_01.aio.operations import VirtualNetworkPeeringsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import VirtualNetworkPeeringsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import VirtualNetworkPeeringsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import VirtualNetworkPeeringsOperations as OperationClass else: @@ -7747,7 +7455,6 @@ def virtual_network_taps(self): * 2020-08-01: :class:`VirtualNetworkTapsOperations` * 2020-11-01: :class:`VirtualNetworkTapsOperations` * 2021-02-01: :class:`VirtualNetworkTapsOperations` - * 2021-05-01: :class:`VirtualNetworkTapsOperations` * 2021-08-01: :class:`VirtualNetworkTapsOperations` """ api_version = self._get_api_version('virtual_network_taps') @@ -7791,8 +7498,6 @@ def virtual_network_taps(self): from ..v2020_11_01.aio.operations import VirtualNetworkTapsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import VirtualNetworkTapsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import VirtualNetworkTapsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import VirtualNetworkTapsOperations as OperationClass else: @@ -7834,7 +7539,6 @@ def virtual_networks(self): * 2020-08-01: :class:`VirtualNetworksOperations` * 2020-11-01: :class:`VirtualNetworksOperations` * 2021-02-01: :class:`VirtualNetworksOperations` - * 2021-05-01: :class:`VirtualNetworksOperations` * 2021-08-01: :class:`VirtualNetworksOperations` """ api_version = self._get_api_version('virtual_networks') @@ -7900,8 +7604,6 @@ def virtual_networks(self): from ..v2020_11_01.aio.operations import VirtualNetworksOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import VirtualNetworksOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import VirtualNetworksOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import VirtualNetworksOperations as OperationClass else: @@ -7925,7 +7627,6 @@ def virtual_router_peerings(self): * 2020-08-01: :class:`VirtualRouterPeeringsOperations` * 2020-11-01: :class:`VirtualRouterPeeringsOperations` * 2021-02-01: :class:`VirtualRouterPeeringsOperations` - * 2021-05-01: :class:`VirtualRouterPeeringsOperations` * 2021-08-01: :class:`VirtualRouterPeeringsOperations` """ api_version = self._get_api_version('virtual_router_peerings') @@ -7955,8 +7656,6 @@ def virtual_router_peerings(self): from ..v2020_11_01.aio.operations import VirtualRouterPeeringsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import VirtualRouterPeeringsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import VirtualRouterPeeringsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import VirtualRouterPeeringsOperations as OperationClass else: @@ -7980,7 +7679,6 @@ def virtual_routers(self): * 2020-08-01: :class:`VirtualRoutersOperations` * 2020-11-01: :class:`VirtualRoutersOperations` * 2021-02-01: :class:`VirtualRoutersOperations` - * 2021-05-01: :class:`VirtualRoutersOperations` * 2021-08-01: :class:`VirtualRoutersOperations` """ api_version = self._get_api_version('virtual_routers') @@ -8010,8 +7708,6 @@ def virtual_routers(self): from ..v2020_11_01.aio.operations import VirtualRoutersOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import VirtualRoutersOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import VirtualRoutersOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import VirtualRoutersOperations as OperationClass else: @@ -8045,7 +7741,6 @@ def virtual_wans(self): * 2020-08-01: :class:`VirtualWansOperations` * 2020-11-01: :class:`VirtualWansOperations` * 2021-02-01: :class:`VirtualWansOperations` - * 2021-05-01: :class:`VirtualWansOperations` * 2021-08-01: :class:`VirtualWansOperations` """ api_version = self._get_api_version('virtual_wans') @@ -8095,8 +7790,6 @@ def virtual_wans(self): from ..v2020_11_01.aio.operations import VirtualWansOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import VirtualWansOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import VirtualWansOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import VirtualWansOperations as OperationClass else: @@ -8130,7 +7823,6 @@ def vpn_connections(self): * 2020-08-01: :class:`VpnConnectionsOperations` * 2020-11-01: :class:`VpnConnectionsOperations` * 2021-02-01: :class:`VpnConnectionsOperations` - * 2021-05-01: :class:`VpnConnectionsOperations` * 2021-08-01: :class:`VpnConnectionsOperations` """ api_version = self._get_api_version('vpn_connections') @@ -8180,8 +7872,6 @@ def vpn_connections(self): from ..v2020_11_01.aio.operations import VpnConnectionsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import VpnConnectionsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import VpnConnectionsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import VpnConnectionsOperations as OperationClass else: @@ -8215,7 +7905,6 @@ def vpn_gateways(self): * 2020-08-01: :class:`VpnGatewaysOperations` * 2020-11-01: :class:`VpnGatewaysOperations` * 2021-02-01: :class:`VpnGatewaysOperations` - * 2021-05-01: :class:`VpnGatewaysOperations` * 2021-08-01: :class:`VpnGatewaysOperations` """ api_version = self._get_api_version('vpn_gateways') @@ -8265,8 +7954,6 @@ def vpn_gateways(self): from ..v2020_11_01.aio.operations import VpnGatewaysOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import VpnGatewaysOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import VpnGatewaysOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import VpnGatewaysOperations as OperationClass else: @@ -8291,7 +7978,6 @@ def vpn_link_connections(self): * 2020-08-01: :class:`VpnLinkConnectionsOperations` * 2020-11-01: :class:`VpnLinkConnectionsOperations` * 2021-02-01: :class:`VpnLinkConnectionsOperations` - * 2021-05-01: :class:`VpnLinkConnectionsOperations` * 2021-08-01: :class:`VpnLinkConnectionsOperations` """ api_version = self._get_api_version('vpn_link_connections') @@ -8323,8 +8009,6 @@ def vpn_link_connections(self): from ..v2020_11_01.aio.operations import VpnLinkConnectionsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import VpnLinkConnectionsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import VpnLinkConnectionsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import VpnLinkConnectionsOperations as OperationClass else: @@ -8347,7 +8031,6 @@ def vpn_server_configurations(self): * 2020-08-01: :class:`VpnServerConfigurationsOperations` * 2020-11-01: :class:`VpnServerConfigurationsOperations` * 2021-02-01: :class:`VpnServerConfigurationsOperations` - * 2021-05-01: :class:`VpnServerConfigurationsOperations` * 2021-08-01: :class:`VpnServerConfigurationsOperations` """ api_version = self._get_api_version('vpn_server_configurations') @@ -8375,8 +8058,6 @@ def vpn_server_configurations(self): from ..v2020_11_01.aio.operations import VpnServerConfigurationsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import VpnServerConfigurationsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import VpnServerConfigurationsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import VpnServerConfigurationsOperations as OperationClass else: @@ -8399,7 +8080,6 @@ def vpn_server_configurations_associated_with_virtual_wan(self): * 2020-08-01: :class:`VpnServerConfigurationsAssociatedWithVirtualWanOperations` * 2020-11-01: :class:`VpnServerConfigurationsAssociatedWithVirtualWanOperations` * 2021-02-01: :class:`VpnServerConfigurationsAssociatedWithVirtualWanOperations` - * 2021-05-01: :class:`VpnServerConfigurationsAssociatedWithVirtualWanOperations` * 2021-08-01: :class:`VpnServerConfigurationsAssociatedWithVirtualWanOperations` """ api_version = self._get_api_version('vpn_server_configurations_associated_with_virtual_wan') @@ -8427,8 +8107,6 @@ def vpn_server_configurations_associated_with_virtual_wan(self): from ..v2020_11_01.aio.operations import VpnServerConfigurationsAssociatedWithVirtualWanOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import VpnServerConfigurationsAssociatedWithVirtualWanOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import VpnServerConfigurationsAssociatedWithVirtualWanOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import VpnServerConfigurationsAssociatedWithVirtualWanOperations as OperationClass else: @@ -8453,7 +8131,6 @@ def vpn_site_link_connections(self): * 2020-08-01: :class:`VpnSiteLinkConnectionsOperations` * 2020-11-01: :class:`VpnSiteLinkConnectionsOperations` * 2021-02-01: :class:`VpnSiteLinkConnectionsOperations` - * 2021-05-01: :class:`VpnSiteLinkConnectionsOperations` * 2021-08-01: :class:`VpnSiteLinkConnectionsOperations` """ api_version = self._get_api_version('vpn_site_link_connections') @@ -8485,8 +8162,6 @@ def vpn_site_link_connections(self): from ..v2020_11_01.aio.operations import VpnSiteLinkConnectionsOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import VpnSiteLinkConnectionsOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import VpnSiteLinkConnectionsOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import VpnSiteLinkConnectionsOperations as OperationClass else: @@ -8511,7 +8186,6 @@ def vpn_site_links(self): * 2020-08-01: :class:`VpnSiteLinksOperations` * 2020-11-01: :class:`VpnSiteLinksOperations` * 2021-02-01: :class:`VpnSiteLinksOperations` - * 2021-05-01: :class:`VpnSiteLinksOperations` * 2021-08-01: :class:`VpnSiteLinksOperations` """ api_version = self._get_api_version('vpn_site_links') @@ -8543,8 +8217,6 @@ def vpn_site_links(self): from ..v2020_11_01.aio.operations import VpnSiteLinksOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import VpnSiteLinksOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import VpnSiteLinksOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import VpnSiteLinksOperations as OperationClass else: @@ -8578,7 +8250,6 @@ def vpn_sites(self): * 2020-08-01: :class:`VpnSitesOperations` * 2020-11-01: :class:`VpnSitesOperations` * 2021-02-01: :class:`VpnSitesOperations` - * 2021-05-01: :class:`VpnSitesOperations` * 2021-08-01: :class:`VpnSitesOperations` """ api_version = self._get_api_version('vpn_sites') @@ -8628,8 +8299,6 @@ def vpn_sites(self): from ..v2020_11_01.aio.operations import VpnSitesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import VpnSitesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import VpnSitesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import VpnSitesOperations as OperationClass else: @@ -8663,7 +8332,6 @@ def vpn_sites_configuration(self): * 2020-08-01: :class:`VpnSitesConfigurationOperations` * 2020-11-01: :class:`VpnSitesConfigurationOperations` * 2021-02-01: :class:`VpnSitesConfigurationOperations` - * 2021-05-01: :class:`VpnSitesConfigurationOperations` * 2021-08-01: :class:`VpnSitesConfigurationOperations` """ api_version = self._get_api_version('vpn_sites_configuration') @@ -8713,8 +8381,6 @@ def vpn_sites_configuration(self): from ..v2020_11_01.aio.operations import VpnSitesConfigurationOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import VpnSitesConfigurationOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import VpnSitesConfigurationOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import VpnSitesConfigurationOperations as OperationClass else: @@ -8742,7 +8408,6 @@ def web_application_firewall_policies(self): * 2020-08-01: :class:`WebApplicationFirewallPoliciesOperations` * 2020-11-01: :class:`WebApplicationFirewallPoliciesOperations` * 2021-02-01: :class:`WebApplicationFirewallPoliciesOperations` - * 2021-05-01: :class:`WebApplicationFirewallPoliciesOperations` * 2021-08-01: :class:`WebApplicationFirewallPoliciesOperations` """ api_version = self._get_api_version('web_application_firewall_policies') @@ -8780,8 +8445,6 @@ def web_application_firewall_policies(self): from ..v2020_11_01.aio.operations import WebApplicationFirewallPoliciesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import WebApplicationFirewallPoliciesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import WebApplicationFirewallPoliciesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import WebApplicationFirewallPoliciesOperations as OperationClass else: @@ -8796,7 +8459,6 @@ def web_categories(self): * 2020-08-01: :class:`WebCategoriesOperations` * 2020-11-01: :class:`WebCategoriesOperations` * 2021-02-01: :class:`WebCategoriesOperations` - * 2021-05-01: :class:`WebCategoriesOperations` * 2021-08-01: :class:`WebCategoriesOperations` """ api_version = self._get_api_version('web_categories') @@ -8808,8 +8470,6 @@ def web_categories(self): from ..v2020_11_01.aio.operations import WebCategoriesOperations as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import WebCategoriesOperations as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import WebCategoriesOperations as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import WebCategoriesOperations as OperationClass else: diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/_operations_mixin.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/_operations_mixin.py index 61e16dda8afc..e132f2465dc5 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/_operations_mixin.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/aio/_operations_mixin.py @@ -9,16 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- from msrest import Serializer, Deserializer -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings +from typing import Any, AsyncIterable, Optional -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 azure.core.async_paging import AsyncItemPaged +from azure.core.polling import AsyncLROPoller class NetworkManagementClientOperationsMixin(object): @@ -76,8 +70,6 @@ async def begin_delete_bastion_shareable_link( # pylint: disable=inconsistent-r from ..v2020_11_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass else: @@ -150,8 +142,6 @@ async def begin_generatevirtualwanvpnserverconfigurationvpnprofile( from ..v2020_11_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass else: @@ -216,8 +206,6 @@ async def begin_get_active_sessions( from ..v2020_11_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass else: @@ -285,8 +273,6 @@ async def begin_put_bastion_shareable_link( from ..v2020_11_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass else: @@ -383,8 +369,6 @@ async def check_dns_name_availability( from ..v2020_11_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass else: @@ -445,8 +429,6 @@ def disconnect_active_sessions( from ..v2020_11_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass else: @@ -507,8 +489,6 @@ def get_bastion_shareable_link( from ..v2020_11_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass else: @@ -583,8 +563,6 @@ async def supported_security_providers( from ..v2020_11_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-02-01': from ..v2021_02_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass - elif api_version == '2021-05-01': - from ..v2021_05_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass elif api_version == '2021-08-01': from ..v2021_08_01.aio.operations import NetworkManagementClientOperationsMixin as OperationClass else: diff --git a/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_base.pyTestMgmtNetworktest_network.json b/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_base.pyTestMgmtNetworktest_network.json index d1ab44d01c7e..425c760a7c99 100644 --- a/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_base.pyTestMgmtNetworktest_network.json +++ b/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_base.pyTestMgmtNetworktest_network.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -17,12 +17,12 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "1753", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:00:23 GMT", + "Date": "Thu, 28 Apr 2022 08:28:54 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12651.7 - EUS ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - EUS ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -101,7 +101,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -111,7 +111,7 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "945", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:00:23 GMT", + "Date": "Thu, 28 Apr 2022 08:28:54 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -172,12 +172,12 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "client-request-id": "7403bf0e-4480-47aa-9489-6f7344f85696", + "client-request-id": "8558096d-097f-45b6-ab58-3bcf75b6eade", "Connection": "keep-alive", "Content-Length": "286", "Content-Type": "application/x-www-form-urlencoded", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", @@ -190,10 +190,10 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "client-request-id": "7403bf0e-4480-47aa-9489-6f7344f85696", + "client-request-id": "8558096d-097f-45b6-ab58-3bcf75b6eade", "Content-Length": "93", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:00:23 GMT", + "Date": "Thu, 28 Apr 2022 08:28:54 GMT", "Expires": "-1", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Pragma": "no-cache", @@ -201,7 +201,7 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", - "x-ms-ests-server": "2.1.12651.7 - SCUS ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - SCUS ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -220,7 +220,7 @@ "Connection": "keep-alive", "Content-Length": "104", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "eastus", @@ -232,11 +232,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/169f6b09-48cc-4564-8688-9dc02b1fe7dd?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/e9ea86ea-63fe-44da-9211-7232e51757a8?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "628", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:00:24 GMT", + "Date": "Thu, 28 Apr 2022 08:28:56 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "1", @@ -246,19 +246,19 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "9fb1cf0b-e226-4f8b-9b7f-313454fb36f3", - "x-ms-correlation-request-id": "a0bf3e82-b4bf-499a-a933-01c5f0dab701", + "x-ms-arm-service-request-id": "f0819f02-47e8-4661-8234-39b781f66756", + "x-ms-correlation-request-id": "25274c2e-1cc5-4060-9aa4-3bf2459574cb", "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-routing-request-id": "EASTUS2:20220425T030025Z:a0bf3e82-b4bf-499a-a933-01c5f0dab701" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T082856Z:25274c2e-1cc5-4060-9aa4-3bf2459574cb" }, "ResponseBody": { "name": "publicipname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/publicIPAddresses/publicipname", - "etag": "W/\u002274616413-d5c3-4f42-b0e8-523ce315640e\u0022", + "etag": "W/\u00221086da8b-66c1-47e0-8ee4-d472631c061f\u0022", "location": "eastus", "properties": { "provisioningState": "Updating", - "resourceGuid": "4c4deb17-7b4f-4894-9189-d00e603596d4", + "resourceGuid": "50cc0d24-715b-453a-bcfb-d0d61d2f28ef", "publicIPAddressVersion": "IPv4", "publicIPAllocationMethod": "Dynamic", "idleTimeoutInMinutes": 4, @@ -272,13 +272,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/169f6b09-48cc-4564-8688-9dc02b1fe7dd?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/e9ea86ea-63fe-44da-9211-7232e51757a8?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -286,7 +286,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:00:25 GMT", + "Date": "Thu, 28 Apr 2022 08:28:57 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -297,10 +297,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "2b9e99ec-014e-45f0-8f6e-d4275b6c1b1c", - "x-ms-correlation-request-id": "5c97cbd2-85ea-444c-84ff-e6c104ff9eb7", + "x-ms-arm-service-request-id": "b2fd1338-c7e6-4cfd-b892-06a016abe16f", + "x-ms-correlation-request-id": "e126a37f-3b51-40e6-8c15-912ddedf0fd3", "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-routing-request-id": "EASTUS2:20220425T030026Z:5c97cbd2-85ea-444c-84ff-e6c104ff9eb7" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T082857Z:e126a37f-3b51-40e6-8c15-912ddedf0fd3" }, "ResponseBody": { "status": "Succeeded" @@ -313,7 +313,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -321,8 +321,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:00:25 GMT", - "ETag": "W/\u0022ab8730b5-08b3-4717-9a39-c081e5e5879b\u0022", + "Date": "Thu, 28 Apr 2022 08:28:57 GMT", + "ETag": "W/\u00226b7632d7-eaf3-4c9b-9893-7b621a92de52\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -333,19 +333,19 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "7be50da6-444a-46c2-b1a4-34fcbc3d9532", - "x-ms-correlation-request-id": "d85fb206-0018-4e3b-8c57-97e8985e20c9", + "x-ms-arm-service-request-id": "4947f189-ce49-4fed-a9c0-c5f42c5130d6", + "x-ms-correlation-request-id": "1d42b182-b746-47bf-926c-4d763086a80e", "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-routing-request-id": "EASTUS2:20220425T030026Z:d85fb206-0018-4e3b-8c57-97e8985e20c9" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T082857Z:1d42b182-b746-47bf-926c-4d763086a80e" }, "ResponseBody": { "name": "publicipname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/publicIPAddresses/publicipname", - "etag": "W/\u0022ab8730b5-08b3-4717-9a39-c081e5e5879b\u0022", + "etag": "W/\u00226b7632d7-eaf3-4c9b-9893-7b621a92de52\u0022", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "4c4deb17-7b4f-4894-9189-d00e603596d4", + "resourceGuid": "50cc0d24-715b-453a-bcfb-d0d61d2f28ef", "publicIPAddressVersion": "IPv4", "publicIPAllocationMethod": "Dynamic", "idleTimeoutInMinutes": 4, @@ -367,7 +367,7 @@ "Connection": "keep-alive", "Content-Length": "92", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "eastus", @@ -382,11 +382,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/8ee80174-1670-4b10-8bc9-2e4b8ef07d60?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/f52e3384-b204-4800-94fe-569742d9e218?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "620", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:00:25 GMT", + "Date": "Thu, 28 Apr 2022 08:28:58 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "3", @@ -396,20 +396,20 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "f296dd4a-2f9f-47ba-81d3-b354d57517ef", - "x-ms-correlation-request-id": "9428dc68-b4ea-42b0-b4ec-0b2967d0df24", + "x-ms-arm-service-request-id": "a783882f-e310-48f7-b8a0-a10ecd5a0fd8", + "x-ms-correlation-request-id": "79429b7d-c2f0-46e7-b926-2b7c10336c94", "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-routing-request-id": "EASTUS2:20220425T030026Z:9428dc68-b4ea-42b0-b4ec-0b2967d0df24" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T082858Z:79429b7d-c2f0-46e7-b926-2b7c10336c94" }, "ResponseBody": { "name": "virtualnetworkname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/virtualnetworkname", - "etag": "W/\u0022170df220-1b25-4086-bbba-bc308d1cd8ce\u0022", + "etag": "W/\u002299023354-fb4e-4893-9acf-c99c1f07a2a2\u0022", "type": "Microsoft.Network/virtualNetworks", "location": "eastus", "properties": { "provisioningState": "Updating", - "resourceGuid": "b1e37264-cda2-432c-961a-50223e2bf69c", + "resourceGuid": "aa2c809a-5f4f-4f46-97da-de521976c9db", "addressSpace": { "addressPrefixes": [ "10.0.0.0/16" @@ -422,13 +422,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/8ee80174-1670-4b10-8bc9-2e4b8ef07d60?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/f52e3384-b204-4800-94fe-569742d9e218?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -436,7 +436,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:00:28 GMT", + "Date": "Thu, 28 Apr 2022 08:29:01 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -447,10 +447,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "df1edff2-4601-4f52-823d-c92cc2fd59c2", - "x-ms-correlation-request-id": "283fe9ee-f067-47b2-aa85-751339809268", + "x-ms-arm-service-request-id": "fefabed0-5beb-45e0-adb4-d1df18268499", + "x-ms-correlation-request-id": "f97ff545-d014-468e-97da-88b0da7b5dc4", "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-routing-request-id": "EASTUS2:20220425T030029Z:283fe9ee-f067-47b2-aa85-751339809268" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T082901Z:f97ff545-d014-468e-97da-88b0da7b5dc4" }, "ResponseBody": { "status": "Succeeded" @@ -463,7 +463,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -471,8 +471,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:00:28 GMT", - "ETag": "W/\u0022bb347307-1da5-47fe-9cc4-a6a8b7b6f204\u0022", + "Date": "Thu, 28 Apr 2022 08:29:01 GMT", + "ETag": "W/\u002228a5f993-35bf-42cb-b7ca-6a4cee67dae0\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -483,20 +483,20 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "3321855d-68f8-42f8-ac2b-c848f48ae7e6", - "x-ms-correlation-request-id": "9a4216f7-6b86-4635-b17f-a6bf4bc1f6cb", + "x-ms-arm-service-request-id": "308f75fd-02a9-4509-a821-85574108abc1", + "x-ms-correlation-request-id": "9ad66d65-ae96-425e-b0f8-657d42af2134", "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-routing-request-id": "EASTUS2:20220425T030029Z:9a4216f7-6b86-4635-b17f-a6bf4bc1f6cb" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T082901Z:9ad66d65-ae96-425e-b0f8-657d42af2134" }, "ResponseBody": { "name": "virtualnetworkname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/virtualnetworkname", - "etag": "W/\u0022bb347307-1da5-47fe-9cc4-a6a8b7b6f204\u0022", + "etag": "W/\u002228a5f993-35bf-42cb-b7ca-6a4cee67dae0\u0022", "type": "Microsoft.Network/virtualNetworks", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "b1e37264-cda2-432c-961a-50223e2bf69c", + "resourceGuid": "aa2c809a-5f4f-4f46-97da-de521976c9db", "addressSpace": { "addressPrefixes": [ "10.0.0.0/16" @@ -517,7 +517,7 @@ "Connection": "keep-alive", "Content-Length": "92", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "eastus", @@ -532,11 +532,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/c176d123-1eaf-464e-8af4-5c8593de5845?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/9d644bc8-d1c1-4556-8997-e91da4909b02?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "624", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:00:29 GMT", + "Date": "Thu, 28 Apr 2022 08:29:01 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "3", @@ -546,20 +546,20 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "2452cf10-e5cd-4570-9817-42b788b41efc", - "x-ms-correlation-request-id": "ac992a51-cd7d-441e-9c79-250ecf61c980", + "x-ms-arm-service-request-id": "6034b15d-bb8d-4e8e-bb62-998e798a1fe5", + "x-ms-correlation-request-id": "e3cb115f-7fb7-4bba-8c19-dec91311b496", "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-routing-request-id": "EASTUS2:20220425T030030Z:ac992a51-cd7d-441e-9c79-250ecf61c980" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T082901Z:e3cb115f-7fb7-4bba-8c19-dec91311b496" }, "ResponseBody": { "name": "rmvirtualnetworkname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/rmvirtualnetworkname", - "etag": "W/\u0022932d1876-eb6e-4005-a934-a75988caed82\u0022", + "etag": "W/\u00229d9d4a06-9b9f-42bc-98d6-33e80810ad00\u0022", "type": "Microsoft.Network/virtualNetworks", "location": "eastus", "properties": { "provisioningState": "Updating", - "resourceGuid": "7b4314f5-5cd0-4b87-8dd3-ed77b8ca0f42", + "resourceGuid": "18eb49b2-98b7-43db-a3a2-b85096770c9b", "addressSpace": { "addressPrefixes": [ "10.2.0.0/16" @@ -572,13 +572,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/c176d123-1eaf-464e-8af4-5c8593de5845?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/9d644bc8-d1c1-4556-8997-e91da4909b02?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -586,7 +586,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:00:32 GMT", + "Date": "Thu, 28 Apr 2022 08:29:04 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -597,10 +597,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "9bbb1242-ad30-4b51-bbb7-03b770c3762a", - "x-ms-correlation-request-id": "a075ec6a-21d1-4428-9ed2-be7eace2c3ab", + "x-ms-arm-service-request-id": "888ac97e-6c4f-4682-b988-ae71b43c6b58", + "x-ms-correlation-request-id": "6a32e5d5-95d9-42d3-ae0a-a9df04fd0faa", "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-routing-request-id": "EASTUS2:20220425T030033Z:a075ec6a-21d1-4428-9ed2-be7eace2c3ab" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T082905Z:6a32e5d5-95d9-42d3-ae0a-a9df04fd0faa" }, "ResponseBody": { "status": "Succeeded" @@ -613,7 +613,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -621,8 +621,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:00:32 GMT", - "ETag": "W/\u002222ad07e3-5b8c-461b-859a-a4414c38ce73\u0022", + "Date": "Thu, 28 Apr 2022 08:29:04 GMT", + "ETag": "W/\u00220dbd4060-63bc-4e7e-a537-d390e599cfdb\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -633,20 +633,20 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "0d25420d-5c58-4082-8e0d-e40b0e7197c8", - "x-ms-correlation-request-id": "96b1feeb-81e0-419f-86e9-712fd3313146", + "x-ms-arm-service-request-id": "dc2e8abf-13a7-45de-af17-26188a915bf1", + "x-ms-correlation-request-id": "15294464-2fbe-4aa9-a629-6bea4868a199", "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-routing-request-id": "EASTUS2:20220425T030033Z:96b1feeb-81e0-419f-86e9-712fd3313146" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T082905Z:15294464-2fbe-4aa9-a629-6bea4868a199" }, "ResponseBody": { "name": "rmvirtualnetworkname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/rmvirtualnetworkname", - "etag": "W/\u002222ad07e3-5b8c-461b-859a-a4414c38ce73\u0022", + "etag": "W/\u00220dbd4060-63bc-4e7e-a537-d390e599cfdb\u0022", "type": "Microsoft.Network/virtualNetworks", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "7b4314f5-5cd0-4b87-8dd3-ed77b8ca0f42", + "resourceGuid": "18eb49b2-98b7-43db-a3a2-b85096770c9b", "addressSpace": { "addressPrefixes": [ "10.2.0.0/16" @@ -667,7 +667,7 @@ "Connection": "keep-alive", "Content-Length": "48", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "properties": { @@ -676,11 +676,11 @@ }, "StatusCode": 201, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/7072f6e7-58fa-4ee5-aeb1-87408f7508cd?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/1dffe92e-975d-4da4-91e1-37f960c12094?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "535", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:00:32 GMT", + "Date": "Thu, 28 Apr 2022 08:29:05 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "3", @@ -690,15 +690,15 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "9fd39e36-38a7-449b-9984-fffc5b99bd47", - "x-ms-correlation-request-id": "552f66d0-3716-49d9-aba1-25c68c313abf", + "x-ms-arm-service-request-id": "1a863441-3705-45fa-bca2-06775d20897c", + "x-ms-correlation-request-id": "e8d37057-b9df-4f59-a841-d8709cd3322d", "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-routing-request-id": "EASTUS2:20220425T030033Z:552f66d0-3716-49d9-aba1-25c68c313abf" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T082905Z:e8d37057-b9df-4f59-a841-d8709cd3322d" }, "ResponseBody": { "name": "subnetname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/virtualnetworkname/subnets/subnetname", - "etag": "W/\u0022b9966c9b-03e6-4cf9-aa01-c6a428171392\u0022", + "etag": "W/\u002252505dc1-6e10-4fa2-a4d8-41d4db17c64a\u0022", "properties": { "provisioningState": "Updating", "addressPrefix": "10.0.0.0/24", @@ -710,13 +710,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/7072f6e7-58fa-4ee5-aeb1-87408f7508cd?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/1dffe92e-975d-4da4-91e1-37f960c12094?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -724,7 +724,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:00:36 GMT", + "Date": "Thu, 28 Apr 2022 08:29:08 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -735,10 +735,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "a8ab5de5-0702-49c4-8cc0-15d916196b2a", - "x-ms-correlation-request-id": "8da11256-2ae1-48f0-9125-be6379205bea", + "x-ms-arm-service-request-id": "c00aa86e-fbf8-4f53-b457-bec4b2f72d57", + "x-ms-correlation-request-id": "8a3eb021-4261-4206-bd99-15cd3c9f2fa6", "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-routing-request-id": "EASTUS2:20220425T030036Z:8da11256-2ae1-48f0-9125-be6379205bea" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T082908Z:8a3eb021-4261-4206-bd99-15cd3c9f2fa6" }, "ResponseBody": { "status": "Succeeded" @@ -751,7 +751,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -759,8 +759,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:00:36 GMT", - "ETag": "W/\u0022ba32e0b5-92ef-4f85-84ed-2c172eaf9716\u0022", + "Date": "Thu, 28 Apr 2022 08:29:08 GMT", + "ETag": "W/\u00227da4ac1d-a2f5-4cbf-9d8a-e3207c1c78f5\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -771,15 +771,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "22b4ccc4-237b-49a9-aa10-26d3837ab839", - "x-ms-correlation-request-id": "257dc24c-1ca2-422d-a270-c493fa1a6b3a", + "x-ms-arm-service-request-id": "b6be6139-e009-44d0-a98b-bd3cc8fa7502", + "x-ms-correlation-request-id": "2f325e39-faac-4cb7-b46e-1a1841a1d51b", "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-routing-request-id": "EASTUS2:20220425T030036Z:257dc24c-1ca2-422d-a270-c493fa1a6b3a" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T082908Z:2f325e39-faac-4cb7-b46e-1a1841a1d51b" }, "ResponseBody": { "name": "subnetname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/virtualnetworkname/subnets/subnetname", - "etag": "W/\u0022ba32e0b5-92ef-4f85-84ed-2c172eaf9716\u0022", + "etag": "W/\u00227da4ac1d-a2f5-4cbf-9d8a-e3207c1c78f5\u0022", "properties": { "provisioningState": "Succeeded", "addressPrefix": "10.0.0.0/24", @@ -799,7 +799,7 @@ "Connection": "keep-alive", "Content-Length": "275", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "eastus", @@ -819,11 +819,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/e638b77f-1285-4f5a-ad2c-6f06dbdb0d08?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/6bf3b277-5f65-4f4d-8f6c-6db7a606e734?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "1712", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:00:37 GMT", + "Date": "Thu, 28 Apr 2022 08:29:09 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -832,24 +832,24 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "f7c2483d-75c7-42ab-b962-2a1f06196b94", - "x-ms-correlation-request-id": "60c1e69f-ae2a-4b86-836c-e7cb35b25d0d", + "x-ms-arm-service-request-id": "318f6760-1df0-4934-9bb4-fb0fd2ac18ed", + "x-ms-correlation-request-id": "6da8fc80-5479-4a49-afe0-bcfaa820df47", "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-routing-request-id": "EASTUS2:20220425T030037Z:60c1e69f-ae2a-4b86-836c-e7cb35b25d0d" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T082909Z:6da8fc80-5479-4a49-afe0-bcfaa820df47" }, "ResponseBody": { "name": "networkinterfacename", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/networkinterfacename", - "etag": "W/\u00229b9ca0e7-7568-4075-97dc-e8ecb22f3ce9\u0022", + "etag": "W/\u00220e8f79f0-52f0-48e2-93c8-a4960f3c552a\u0022", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "30781912-a835-4372-861b-52c7237c4f8b", + "resourceGuid": "4f2ebc4c-83b6-431d-b332-9275fad750de", "ipConfigurations": [ { "name": "ipconfig", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/networkinterfacename/ipConfigurations/ipconfig", - "etag": "W/\u00229b9ca0e7-7568-4075-97dc-e8ecb22f3ce9\u0022", + "etag": "W/\u00220e8f79f0-52f0-48e2-93c8-a4960f3c552a\u0022", "type": "Microsoft.Network/networkInterfaces/ipConfigurations", "properties": { "provisioningState": "Succeeded", @@ -866,7 +866,7 @@ "dnsSettings": { "dnsServers": [], "appliedDnsServers": [], - "internalDomainNameSuffix": "mrzohmnczuwehfq0kard2k5wte.bx.internal.cloudapp.net" + "internalDomainNameSuffix": "tkaczkspl3de5f401zjbs3wj1d.bx.internal.cloudapp.net" }, "enableAcceleratedNetworking": false, "vnetEncryptionSupported": false, @@ -880,13 +880,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/e638b77f-1285-4f5a-ad2c-6f06dbdb0d08?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/6bf3b277-5f65-4f4d-8f6c-6db7a606e734?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -894,7 +894,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:01:06 GMT", + "Date": "Thu, 28 Apr 2022 08:29:38 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -905,10 +905,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "d1cd0436-03e2-4951-9a0b-34c1db41b378", - "x-ms-correlation-request-id": "bf3b2013-d315-4173-9e8e-848506077bd6", + "x-ms-arm-service-request-id": "1027da01-096d-411a-9e1b-5bec0888c137", + "x-ms-correlation-request-id": "74a3628c-ec3d-4fc3-b3e1-5aba5128f408", "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-routing-request-id": "EASTUS2:20220425T030107Z:bf3b2013-d315-4173-9e8e-848506077bd6" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T082939Z:74a3628c-ec3d-4fc3-b3e1-5aba5128f408" }, "ResponseBody": { "status": "Succeeded" @@ -921,7 +921,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -929,8 +929,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:01:06 GMT", - "ETag": "W/\u00229b9ca0e7-7568-4075-97dc-e8ecb22f3ce9\u0022", + "Date": "Thu, 28 Apr 2022 08:29:38 GMT", + "ETag": "W/\u00220e8f79f0-52f0-48e2-93c8-a4960f3c552a\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -941,24 +941,24 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "d011f45a-5c00-4462-8ee3-83c308476a6e", - "x-ms-correlation-request-id": "f063986e-a416-4bbf-ae23-a7afb1839efc", + "x-ms-arm-service-request-id": "5ac83ab7-4459-4b85-9b69-e18fa7bdc564", + "x-ms-correlation-request-id": "444fc58a-7bfc-4297-a348-3878030c882f", "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-routing-request-id": "EASTUS2:20220425T030107Z:f063986e-a416-4bbf-ae23-a7afb1839efc" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T082939Z:444fc58a-7bfc-4297-a348-3878030c882f" }, "ResponseBody": { "name": "networkinterfacename", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/networkinterfacename", - "etag": "W/\u00229b9ca0e7-7568-4075-97dc-e8ecb22f3ce9\u0022", + "etag": "W/\u00220e8f79f0-52f0-48e2-93c8-a4960f3c552a\u0022", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "30781912-a835-4372-861b-52c7237c4f8b", + "resourceGuid": "4f2ebc4c-83b6-431d-b332-9275fad750de", "ipConfigurations": [ { "name": "ipconfig", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/networkinterfacename/ipConfigurations/ipconfig", - "etag": "W/\u00229b9ca0e7-7568-4075-97dc-e8ecb22f3ce9\u0022", + "etag": "W/\u00220e8f79f0-52f0-48e2-93c8-a4960f3c552a\u0022", "type": "Microsoft.Network/networkInterfaces/ipConfigurations", "properties": { "provisioningState": "Succeeded", @@ -975,7 +975,7 @@ "dnsSettings": { "dnsServers": [], "appliedDnsServers": [], - "internalDomainNameSuffix": "mrzohmnczuwehfq0kard2k5wte.bx.internal.cloudapp.net" + "internalDomainNameSuffix": "tkaczkspl3de5f401zjbs3wj1d.bx.internal.cloudapp.net" }, "enableAcceleratedNetworking": false, "vnetEncryptionSupported": false, @@ -997,7 +997,7 @@ "Connection": "keep-alive", "Content-Length": "48", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "properties": { @@ -1006,11 +1006,11 @@ }, "StatusCode": 201, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/ff30af07-3976-41a7-80a5-4dda4a99a79e?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/73b2f336-b045-46b8-8d42-72ffff0d0ea1?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "541", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:01:07 GMT", + "Date": "Thu, 28 Apr 2022 08:29:39 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "3", @@ -1020,15 +1020,15 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "512d7f8d-767c-4637-8341-c12c7b378df5", - "x-ms-correlation-request-id": "79f9a7aa-4697-4305-bc44-a8d21635b264", + "x-ms-arm-service-request-id": "de5ce051-6cfd-4754-a4cf-88808c2479c3", + "x-ms-correlation-request-id": "6cce7568-e9c2-47b2-94a4-7a9552a7b8c5", "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-routing-request-id": "EASTUS2:20220425T030107Z:79f9a7aa-4697-4305-bc44-a8d21635b264" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T082939Z:6cce7568-e9c2-47b2-94a4-7a9552a7b8c5" }, "ResponseBody": { "name": "GatewaySubnet", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/virtualnetworkname/subnets/GatewaySubnet", - "etag": "W/\u0022c389251c-1299-4cef-b2be-aa0deac43f4f\u0022", + "etag": "W/\u002289409eb7-337c-4d99-af51-61b226b34943\u0022", "properties": { "provisioningState": "Updating", "addressPrefix": "10.0.1.0/24", @@ -1040,13 +1040,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/ff30af07-3976-41a7-80a5-4dda4a99a79e?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/73b2f336-b045-46b8-8d42-72ffff0d0ea1?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1054,7 +1054,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:01:10 GMT", + "Date": "Thu, 28 Apr 2022 08:29:42 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1065,10 +1065,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "92224181-9b13-4dd6-a49f-dc951965dc57", - "x-ms-correlation-request-id": "ef714592-a9e9-43ad-be3c-14fe9f071437", + "x-ms-arm-service-request-id": "10b70ce9-5c73-46ac-898d-95ced2a2317c", + "x-ms-correlation-request-id": "7528912e-f529-4b99-ac72-7d1c4796fba2", "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-routing-request-id": "EASTUS2:20220425T030110Z:ef714592-a9e9-43ad-be3c-14fe9f071437" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T082942Z:7528912e-f529-4b99-ac72-7d1c4796fba2" }, "ResponseBody": { "status": "Succeeded" @@ -1081,7 +1081,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1089,8 +1089,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:01:10 GMT", - "ETag": "W/\u00223c17130b-df57-4266-bf2d-3e9f9e0bfa43\u0022", + "Date": "Thu, 28 Apr 2022 08:29:42 GMT", + "ETag": "W/\u00223596ae8f-40b9-40b8-bb77-c3b2dd6877b0\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1101,15 +1101,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "70242b5b-6104-4105-a97e-3a8ce3964c95", - "x-ms-correlation-request-id": "8563500e-5062-49ef-b020-b424122a30dd", + "x-ms-arm-service-request-id": "200d873b-0060-4f67-9956-a22d345f6416", + "x-ms-correlation-request-id": "d2578e42-2458-4135-b589-0a6de04393d9", "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-routing-request-id": "EASTUS2:20220425T030110Z:8563500e-5062-49ef-b020-b424122a30dd" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T082942Z:d2578e42-2458-4135-b589-0a6de04393d9" }, "ResponseBody": { "name": "GatewaySubnet", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/virtualnetworkname/subnets/GatewaySubnet", - "etag": "W/\u00223c17130b-df57-4266-bf2d-3e9f9e0bfa43\u0022", + "etag": "W/\u00223596ae8f-40b9-40b8-bb77-c3b2dd6877b0\u0022", "properties": { "provisioningState": "Succeeded", "addressPrefix": "10.0.1.0/24", @@ -1129,7 +1129,7 @@ "Connection": "keep-alive", "Content-Length": "139", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "eastus", @@ -1145,11 +1145,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/f03206a8-4ed9-4ff5-85e5-98df17970038?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/7b24eb39-eaed-4135-9fff-9e2be44999a8?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "601", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:01:10 GMT", + "Date": "Thu, 28 Apr 2022 08:29:42 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -1159,20 +1159,20 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "ecf75e40-8fcc-4208-aa05-6fe65219c373", - "x-ms-correlation-request-id": "bd8418fb-9412-45d8-bc9e-af0b96214b58", + "x-ms-arm-service-request-id": "f0247127-bf49-446a-b888-b3f7f193c398", + "x-ms-correlation-request-id": "2c629448-fed6-42f5-884a-24f9ae1ecb80", "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-routing-request-id": "EASTUS2:20220425T030111Z:bd8418fb-9412-45d8-bc9e-af0b96214b58" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T082943Z:2c629448-fed6-42f5-884a-24f9ae1ecb80" }, "ResponseBody": { "name": "localnetworkgatewayname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/localNetworkGateways/localnetworkgatewayname", - "etag": "W/\u0022ca0d62c8-347e-4abf-979a-9c822564d1d8\u0022", + "etag": "W/\u0022e1e5ecc1-9812-41da-b8bb-adffaedaef82\u0022", "type": "Microsoft.Network/localNetworkGateways", "location": "eastus", "properties": { "provisioningState": "Updating", - "resourceGuid": "e5f0813e-5296-44a4-9dab-f7071f895040", + "resourceGuid": "27ea274e-d962-4939-a89e-7b2f5572f4a5", "localNetworkAddressSpace": { "addressPrefixes": [ "10.1.0.0/16" @@ -1183,13 +1183,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/f03206a8-4ed9-4ff5-85e5-98df17970038?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/7b24eb39-eaed-4135-9fff-9e2be44999a8?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1197,7 +1197,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:01:20 GMT", + "Date": "Thu, 28 Apr 2022 08:29:52 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1208,10 +1208,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "d9b2f7bb-a7b5-4277-8345-857605b2aea1", - "x-ms-correlation-request-id": "447c5aa5-a8f6-4fce-bc16-6c7337fb82fb", + "x-ms-arm-service-request-id": "ec922643-fa53-4d24-a7e5-47acfbdfc552", + "x-ms-correlation-request-id": "4438e2fd-e29b-4b6e-bfa7-a8c94fcbc4bc", "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-routing-request-id": "EASTUS2:20220425T030121Z:447c5aa5-a8f6-4fce-bc16-6c7337fb82fb" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T082953Z:4438e2fd-e29b-4b6e-bfa7-a8c94fcbc4bc" }, "ResponseBody": { "status": "Succeeded" @@ -1224,7 +1224,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1232,8 +1232,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:01:20 GMT", - "ETag": "W/\u00220b00875d-fbe5-4c37-bcd2-405da249cd0b\u0022", + "Date": "Thu, 28 Apr 2022 08:29:52 GMT", + "ETag": "W/\u0022ab94c267-131a-4da4-b74d-4d0a55394b15\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1244,20 +1244,20 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "38336399-915d-44e8-ab0e-30672c58f1d0", - "x-ms-correlation-request-id": "07cf2b94-c9f7-425e-8a3a-09e520fc8b2c", + "x-ms-arm-service-request-id": "4455e0aa-a5b9-4cc8-92ad-efaec589dfef", + "x-ms-correlation-request-id": "3a25d93d-e00d-4847-84d4-79c83e6188a8", "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-routing-request-id": "EASTUS2:20220425T030121Z:07cf2b94-c9f7-425e-8a3a-09e520fc8b2c" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T082953Z:3a25d93d-e00d-4847-84d4-79c83e6188a8" }, "ResponseBody": { "name": "localnetworkgatewayname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/localNetworkGateways/localnetworkgatewayname", - "etag": "W/\u00220b00875d-fbe5-4c37-bcd2-405da249cd0b\u0022", + "etag": "W/\u0022ab94c267-131a-4da4-b74d-4d0a55394b15\u0022", "type": "Microsoft.Network/localNetworkGateways", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "e5f0813e-5296-44a4-9dab-f7071f895040", + "resourceGuid": "27ea274e-d962-4939-a89e-7b2f5572f4a5", "localNetworkAddressSpace": { "addressPrefixes": [ "10.1.0.0/16" @@ -1276,7 +1276,7 @@ "Connection": "keep-alive", "Content-Length": "762", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "eastus", @@ -1318,11 +1318,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3bcf956b-f2e3-4707-8e55-065f2a9c38e4?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/f2dac113-833e-469e-bc80-2f6eb4a88776?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "2774", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:01:21 GMT", + "Date": "Thu, 28 Apr 2022 08:29:53 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -1332,27 +1332,27 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "e0ad0c18-ed43-44b1-a38f-a3c6979460e5", - "x-ms-correlation-request-id": "7c90b376-3539-4be6-8447-703981faa518", + "x-ms-arm-service-request-id": "13e7c2ff-fb3e-4fd1-837e-b358d33652b9", + "x-ms-correlation-request-id": "255ef018-cd59-4ab1-b628-388adaeaf61c", "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-routing-request-id": "EASTUS2:20220425T030121Z:7c90b376-3539-4be6-8447-703981faa518" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T082954Z:255ef018-cd59-4ab1-b628-388adaeaf61c" }, "ResponseBody": { "name": "virtualnetworkgatewayname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworkGateways/virtualnetworkgatewayname", - "etag": "W/\u0022979bc640-f525-4b65-ad60-09a6eb6c47f6\u0022", + "etag": "W/\u0022a1a5b34b-f7ba-496d-86cd-1285b196734b\u0022", "type": "Microsoft.Network/virtualNetworkGateways", "location": "eastus", "properties": { "provisioningState": "Updating", - "resourceGuid": "e2ba41e8-94cb-4437-9884-07bb261a33e5", + "resourceGuid": "c7ca961b-ab52-4d65-a2ab-740bc758765f", "packetCaptureDiagnosticState": "None", "enablePrivateIpAddress": false, "ipConfigurations": [ { "name": "ipconfig", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworkGateways/virtualnetworkgatewayname/ipConfigurations/ipconfig", - "etag": "W/\u0022979bc640-f525-4b65-ad60-09a6eb6c47f6\u0022", + "etag": "W/\u0022a1a5b34b-f7ba-496d-86cd-1285b196734b\u0022", "type": "Microsoft.Network/virtualNetworkGateways/ipConfigurations", "properties": { "provisioningState": "Updating", @@ -1412,13 +1412,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3bcf956b-f2e3-4707-8e55-065f2a9c38e4?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/f2dac113-833e-469e-bc80-2f6eb4a88776?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1426,7 +1426,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:01:31 GMT", + "Date": "Thu, 28 Apr 2022 08:30:04 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -1438,23 +1438,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "9de6e325-bcf5-45d1-9b90-572664e65fbc", - "x-ms-correlation-request-id": "dd235554-e4ce-43c2-a57f-4a97b8eaf0a6", + "x-ms-arm-service-request-id": "329c583f-caf9-4a68-8823-4e1ce8c14f1b", + "x-ms-correlation-request-id": "be94673e-a502-45ec-a252-fff82d51eeb4", "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-routing-request-id": "EASTUS2:20220425T030131Z:dd235554-e4ce-43c2-a57f-4a97b8eaf0a6" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T083004Z:be94673e-a502-45ec-a252-fff82d51eeb4" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3bcf956b-f2e3-4707-8e55-065f2a9c38e4?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/f2dac113-833e-469e-bc80-2f6eb4a88776?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1462,7 +1462,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:01:41 GMT", + "Date": "Thu, 28 Apr 2022 08:30:14 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "20", @@ -1474,23 +1474,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "bc618c0c-8207-42c1-9ecf-2a92bd444f7c", - "x-ms-correlation-request-id": "64e5c8b9-ab3a-48aa-9376-02a7784e2a8d", + "x-ms-arm-service-request-id": "e4f732ef-6c72-46e7-9fc0-e20937626cc8", + "x-ms-correlation-request-id": "cec84b81-9e39-4a0e-aaf8-5c04eb0ac444", "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-routing-request-id": "EASTUS2:20220425T030142Z:64e5c8b9-ab3a-48aa-9376-02a7784e2a8d" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T083015Z:cec84b81-9e39-4a0e-aaf8-5c04eb0ac444" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3bcf956b-f2e3-4707-8e55-065f2a9c38e4?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/f2dac113-833e-469e-bc80-2f6eb4a88776?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1498,7 +1498,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:02:01 GMT", + "Date": "Thu, 28 Apr 2022 08:30:34 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "20", @@ -1510,23 +1510,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "3086dabb-f036-4b18-890a-8b1531c87754", - "x-ms-correlation-request-id": "d7ede88f-6c65-486f-b386-ef69814abb3b", + "x-ms-arm-service-request-id": "9aaa7878-6592-4d66-8eb7-879b897af644", + "x-ms-correlation-request-id": "5fb3e010-02ef-4be2-9876-566f0103345d", "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-routing-request-id": "EASTUS2:20220425T030202Z:d7ede88f-6c65-486f-b386-ef69814abb3b" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T083035Z:5fb3e010-02ef-4be2-9876-566f0103345d" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3bcf956b-f2e3-4707-8e55-065f2a9c38e4?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/f2dac113-833e-469e-bc80-2f6eb4a88776?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1534,7 +1534,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:02:21 GMT", + "Date": "Thu, 28 Apr 2022 08:30:54 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "40", @@ -1546,23 +1546,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "61a8a392-ec57-4a4a-adfa-3390f06a6dfd", - "x-ms-correlation-request-id": "71864d27-e131-442b-b490-03083545c2bb", + "x-ms-arm-service-request-id": "1841c77c-9afc-4ef9-a3f6-9b677f9b0287", + "x-ms-correlation-request-id": "9f682443-1d72-4057-b047-b333ee729e6f", "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-routing-request-id": "EASTUS2:20220425T030222Z:71864d27-e131-442b-b490-03083545c2bb" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T083055Z:9f682443-1d72-4057-b047-b333ee729e6f" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3bcf956b-f2e3-4707-8e55-065f2a9c38e4?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/f2dac113-833e-469e-bc80-2f6eb4a88776?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1570,7 +1570,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:03:01 GMT", + "Date": "Thu, 28 Apr 2022 08:31:35 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "40", @@ -1582,23 +1582,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "2f3d5065-8169-49fa-b272-e658b1ef06b8", - "x-ms-correlation-request-id": "4581eb24-e634-4f36-bdb2-02384423c69f", + "x-ms-arm-service-request-id": "7f39d001-822b-4738-b404-fec25adc0bed", + "x-ms-correlation-request-id": "ddfa60ce-cd82-4daa-ae94-4e217b63599d", "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-routing-request-id": "EASTUS2:20220425T030302Z:4581eb24-e634-4f36-bdb2-02384423c69f" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T083135Z:ddfa60ce-cd82-4daa-ae94-4e217b63599d" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3bcf956b-f2e3-4707-8e55-065f2a9c38e4?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/f2dac113-833e-469e-bc80-2f6eb4a88776?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1606,7 +1606,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:03:42 GMT", + "Date": "Thu, 28 Apr 2022 08:32:14 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "80", @@ -1618,23 +1618,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "62223351-8a7e-4904-ac44-ec3efcbaf6f6", - "x-ms-correlation-request-id": "b8755ec0-6dd2-4ead-83ee-0457f190e713", + "x-ms-arm-service-request-id": "f35e3328-03e6-4668-ad2f-3ef4295a03bd", + "x-ms-correlation-request-id": "8d254fc1-77a9-4c86-87ac-eba38b8b0893", "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-routing-request-id": "EASTUS2:20220425T030342Z:b8755ec0-6dd2-4ead-83ee-0457f190e713" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T083215Z:8d254fc1-77a9-4c86-87ac-eba38b8b0893" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3bcf956b-f2e3-4707-8e55-065f2a9c38e4?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/f2dac113-833e-469e-bc80-2f6eb4a88776?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1642,7 +1642,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:05:02 GMT", + "Date": "Thu, 28 Apr 2022 08:33:35 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "160", @@ -1654,23 +1654,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "c028aecf-9e84-4369-9647-0ab9bb2b57a4", - "x-ms-correlation-request-id": "c73bad61-2eb5-44c4-934e-a7e949933e3f", + "x-ms-arm-service-request-id": "5791e670-d58b-490d-8245-13d86e1793fb", + "x-ms-correlation-request-id": "c346dac7-1370-45d8-b08a-f36c03bec82e", "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-routing-request-id": "EASTUS2:20220425T030502Z:c73bad61-2eb5-44c4-934e-a7e949933e3f" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T083335Z:c346dac7-1370-45d8-b08a-f36c03bec82e" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3bcf956b-f2e3-4707-8e55-065f2a9c38e4?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/f2dac113-833e-469e-bc80-2f6eb4a88776?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1678,7 +1678,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:07:41 GMT", + "Date": "Thu, 28 Apr 2022 08:36:15 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -1690,23 +1690,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "1f93fa92-2fbe-4168-b697-7926b7c3660e", - "x-ms-correlation-request-id": "0fa19384-940f-45d2-890e-53877e30ce1e", + "x-ms-arm-service-request-id": "5bf85209-20ed-452a-a5cc-8c58d91dc325", + "x-ms-correlation-request-id": "58e50bea-2caa-444d-af83-5e355607cc94", "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-routing-request-id": "EASTUS2:20220425T030742Z:0fa19384-940f-45d2-890e-53877e30ce1e" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T083616Z:58e50bea-2caa-444d-af83-5e355607cc94" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3bcf956b-f2e3-4707-8e55-065f2a9c38e4?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/f2dac113-833e-469e-bc80-2f6eb4a88776?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1714,7 +1714,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:09:22 GMT", + "Date": "Thu, 28 Apr 2022 08:37:55 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -1726,23 +1726,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "2c59367e-b06e-4179-b4eb-498188cf7a89", - "x-ms-correlation-request-id": "382d6feb-2657-495b-a2e9-d286978db4b7", + "x-ms-arm-service-request-id": "464ae2b5-263c-4e8d-b101-1bb7d920897d", + "x-ms-correlation-request-id": "32f156ea-8ec9-4239-a1a1-41060076885e", "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-routing-request-id": "EASTUS2:20220425T030922Z:382d6feb-2657-495b-a2e9-d286978db4b7" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T083756Z:32f156ea-8ec9-4239-a1a1-41060076885e" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3bcf956b-f2e3-4707-8e55-065f2a9c38e4?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/f2dac113-833e-469e-bc80-2f6eb4a88776?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1750,7 +1750,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:11:02 GMT", + "Date": "Thu, 28 Apr 2022 08:39:36 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -1762,23 +1762,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "824d343a-ae07-463e-9c77-0185942ab498", - "x-ms-correlation-request-id": "c30ab5e7-44c2-4937-877c-4fb4aea8103a", + "x-ms-arm-service-request-id": "65bfd015-2813-4f81-93b2-ce279ced936d", + "x-ms-correlation-request-id": "ebc902f2-133b-4fec-8a95-39121bbe6459", "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-routing-request-id": "EASTUS2:20220425T031103Z:c30ab5e7-44c2-4937-877c-4fb4aea8103a" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T083936Z:ebc902f2-133b-4fec-8a95-39121bbe6459" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3bcf956b-f2e3-4707-8e55-065f2a9c38e4?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/f2dac113-833e-469e-bc80-2f6eb4a88776?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1786,7 +1786,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:12:42 GMT", + "Date": "Thu, 28 Apr 2022 08:41:16 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -1798,23 +1798,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "88278177-d158-487c-a40c-5e7526baece9", - "x-ms-correlation-request-id": "ffcd91b3-d387-4a00-995b-b012b36d1cd4", + "x-ms-arm-service-request-id": "fe544408-c7e8-4c1b-b726-7fe49c92b5ed", + "x-ms-correlation-request-id": "fd982e1e-1c57-4752-92b4-22b6aa66e5ee", "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-routing-request-id": "EASTUS2:20220425T031243Z:ffcd91b3-d387-4a00-995b-b012b36d1cd4" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T084116Z:fd982e1e-1c57-4752-92b4-22b6aa66e5ee" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3bcf956b-f2e3-4707-8e55-065f2a9c38e4?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/f2dac113-833e-469e-bc80-2f6eb4a88776?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1822,7 +1822,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:14:22 GMT", + "Date": "Thu, 28 Apr 2022 08:42:56 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -1834,23 +1834,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "b4a9b736-c168-4ee5-80f8-27e78ad0c48b", - "x-ms-correlation-request-id": "88b4c63d-31cf-4911-aa9a-d592119d8f72", + "x-ms-arm-service-request-id": "c5679620-4bfb-40df-b92c-d53225227320", + "x-ms-correlation-request-id": "5acb9edf-b579-4bbd-ac17-77da9527b761", "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-routing-request-id": "EASTUS2:20220425T031423Z:88b4c63d-31cf-4911-aa9a-d592119d8f72" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T084257Z:5acb9edf-b579-4bbd-ac17-77da9527b761" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3bcf956b-f2e3-4707-8e55-065f2a9c38e4?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/f2dac113-833e-469e-bc80-2f6eb4a88776?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1858,7 +1858,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:16:03 GMT", + "Date": "Thu, 28 Apr 2022 08:44:37 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -1870,23 +1870,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "33577b7d-b3aa-414f-a2af-7abd04c6b367", - "x-ms-correlation-request-id": "1a752b69-4b2d-4258-a5d1-c469b0515c3f", + "x-ms-arm-service-request-id": "13b3dfae-664a-4413-be11-5b757cd9843a", + "x-ms-correlation-request-id": "b23983e3-204d-405d-8cd0-2f26f8a72d42", "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-routing-request-id": "EASTUS2:20220425T031603Z:1a752b69-4b2d-4258-a5d1-c469b0515c3f" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T084437Z:b23983e3-204d-405d-8cd0-2f26f8a72d42" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3bcf956b-f2e3-4707-8e55-065f2a9c38e4?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/f2dac113-833e-469e-bc80-2f6eb4a88776?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1894,7 +1894,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:17:43 GMT", + "Date": "Thu, 28 Apr 2022 08:46:17 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -1906,23 +1906,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "f4e24d69-7e9e-40ee-ac71-6aec34d1d011", - "x-ms-correlation-request-id": "4c196c0c-e905-40ff-a866-786a1cd52cba", + "x-ms-arm-service-request-id": "cd92dac6-c7f1-4468-a051-f2a574b20e9f", + "x-ms-correlation-request-id": "feff1c9a-12ef-4417-95ad-531b4d6e0efa", "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-routing-request-id": "EASTUS2:20220425T031743Z:4c196c0c-e905-40ff-a866-786a1cd52cba" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T084617Z:feff1c9a-12ef-4417-95ad-531b4d6e0efa" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3bcf956b-f2e3-4707-8e55-065f2a9c38e4?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/f2dac113-833e-469e-bc80-2f6eb4a88776?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1930,7 +1930,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:19:23 GMT", + "Date": "Thu, 28 Apr 2022 08:47:56 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -1942,23 +1942,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "103e6685-6614-4851-b198-45fa791cb789", - "x-ms-correlation-request-id": "dcd73abd-3dcb-4639-9ee7-4dafa3ad1b3d", + "x-ms-arm-service-request-id": "65b32b0f-6967-450b-9f7b-fb7229ccd10b", + "x-ms-correlation-request-id": "27d7234d-739d-4122-9b0d-504ce6fc6bcb", "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-routing-request-id": "EASTUS2:20220425T031923Z:dcd73abd-3dcb-4639-9ee7-4dafa3ad1b3d" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T084757Z:27d7234d-739d-4122-9b0d-504ce6fc6bcb" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3bcf956b-f2e3-4707-8e55-065f2a9c38e4?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/f2dac113-833e-469e-bc80-2f6eb4a88776?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1966,9 +1966,10 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:21:03 GMT", + "Date": "Thu, 28 Apr 2022 08:49:37 GMT", "Expires": "-1", "Pragma": "no-cache", + "Retry-After": "100", "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" @@ -1977,10 +1978,81 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "043a7d50-faba-4e88-b8dc-63e87d9452c1", - "x-ms-correlation-request-id": "c3c0aba1-1875-4a09-99a7-d03d3f07ed07", + "x-ms-arm-service-request-id": "441d7853-9427-48ff-a269-c8a4e005ac30", + "x-ms-correlation-request-id": "a0b9eaef-20f3-4391-8579-696da939bbeb", "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-routing-request-id": "EASTUS2:20220425T032104Z:c3c0aba1-1875-4a09-99a7-d03d3f07ed07" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T084937Z:a0b9eaef-20f3-4391-8579-696da939bbeb" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/f2dac113-833e-469e-bc80-2f6eb4a88776?api-version=2021-08-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Apr 2022 08:51:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "100", + "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": "b69233d1-6e57-487c-aadc-144882c2b719", + "x-ms-correlation-request-id": "9cf26355-c5cd-4bb3-805b-ab7f76e34ebc", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085118Z:9cf26355-c5cd-4bb3-805b-ab7f76e34ebc" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/f2dac113-833e-469e-bc80-2f6eb4a88776?api-version=2021-08-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Apr 2022 08:52:58 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": "faadf1f7-1088-4c89-8b53-6c2cc8e355e0", + "x-ms-correlation-request-id": "0d1afcc4-08bb-4be4-98dc-97d2243507c5", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085258Z:0d1afcc4-08bb-4be4-98dc-97d2243507c5" }, "ResponseBody": { "status": "Succeeded" @@ -1993,7 +2065,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2001,7 +2073,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:21:03 GMT", + "Date": "Thu, 28 Apr 2022 08:52:58 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -2012,27 +2084,27 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "58ad515f-8c46-4934-b5a1-e8d3688f3715", - "x-ms-correlation-request-id": "adbeeb14-6371-4e04-8038-bd4f6c1925c0", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-routing-request-id": "EASTUS2:20220425T032104Z:adbeeb14-6371-4e04-8038-bd4f6c1925c0" + "x-ms-arm-service-request-id": "4e564818-21a1-4c84-9a38-518f57214ce5", + "x-ms-correlation-request-id": "c97edd3a-933a-4842-a083-a2d0a8d937dd", + "x-ms-ratelimit-remaining-subscription-reads": "11987", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085258Z:c97edd3a-933a-4842-a083-a2d0a8d937dd" }, "ResponseBody": { "name": "virtualnetworkgatewayname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworkGateways/virtualnetworkgatewayname", - "etag": "W/\u00227249151d-2721-48c9-8b85-5441285d4f09\u0022", + "etag": "W/\u0022caefed50-214a-4de9-a62d-46bfc75c720e\u0022", "type": "Microsoft.Network/virtualNetworkGateways", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "e2ba41e8-94cb-4437-9884-07bb261a33e5", + "resourceGuid": "c7ca961b-ab52-4d65-a2ab-740bc758765f", "packetCaptureDiagnosticState": "None", "enablePrivateIpAddress": false, "ipConfigurations": [ { "name": "ipconfig", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworkGateways/virtualnetworkgatewayname/ipConfigurations/ipconfig", - "etag": "W/\u00227249151d-2721-48c9-8b85-5441285d4f09\u0022", + "etag": "W/\u0022caefed50-214a-4de9-a62d-46bfc75c720e\u0022", "type": "Microsoft.Network/virtualNetworkGateways/ipConfigurations", "properties": { "provisioningState": "Succeeded", @@ -2070,7 +2142,7 @@ ], "customBgpIpAddresses": [], "tunnelIpAddresses": [ - "20.231.35.70" + "40.88.151.112" ] } ] @@ -2094,7 +2166,7 @@ "Connection": "keep-alive", "Content-Length": "314", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "properties": { @@ -2109,11 +2181,11 @@ }, "StatusCode": 201, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/aa04e03a-85a3-4e33-9444-297d2d6082c1?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/0aa10352-8c19-4602-afe3-0f21c0df0459?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "1217", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:21:03 GMT", + "Date": "Thu, 28 Apr 2022 08:52:58 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -2123,18 +2195,18 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "1e77f3c5-2c15-4208-8ce8-5684bb17b8c9", - "x-ms-correlation-request-id": "b3a25033-75b4-459f-9c44-0c8cb11518ce", + "x-ms-arm-service-request-id": "5b81b879-7aac-49f3-9f07-5d75a26e8222", + "x-ms-correlation-request-id": "d2f941a9-95e2-4a66-ab91-7e16b08ee16f", "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-routing-request-id": "EASTUS2:20220425T032104Z:b3a25033-75b4-459f-9c44-0c8cb11518ce" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085258Z:d2f941a9-95e2-4a66-ab91-7e16b08ee16f" }, "ResponseBody": { "name": "virtualnetworkpeeringname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/virtualnetworkname/virtualNetworkPeerings/virtualnetworkpeeringname", - "etag": "W/\u0022c1a00716-feea-41c9-90cf-9bcd79055c67\u0022", + "etag": "W/\u002221b18b7a-05f0-4de5-be15-6e40a0e626b3\u0022", "properties": { "provisioningState": "Updating", - "resourceGuid": "caa06691-9172-08ab-1bc9-bd5586e1f9de", + "resourceGuid": "b2c7c928-c7f8-0c9d-3478-66028f01c540", "peeringState": "Initiated", "peeringSyncLevel": "RemoteNotInSync", "remoteVirtualNetwork": { @@ -2162,13 +2234,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/aa04e03a-85a3-4e33-9444-297d2d6082c1?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/0aa10352-8c19-4602-afe3-0f21c0df0459?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2176,7 +2248,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:21:14 GMT", + "Date": "Thu, 28 Apr 2022 08:53:08 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -2187,10 +2259,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "b3965ca0-72a8-47df-b41b-62ea29d1d170", - "x-ms-correlation-request-id": "b0c323d3-1f97-4f8a-afc4-b3399e9513c9", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-routing-request-id": "EASTUS2:20220425T032114Z:b0c323d3-1f97-4f8a-afc4-b3399e9513c9" + "x-ms-arm-service-request-id": "4e59dec5-5835-46c2-8cec-bb6249c0887e", + "x-ms-correlation-request-id": "9822db2b-3ece-4117-aeb3-72f08aac7b07", + "x-ms-ratelimit-remaining-subscription-reads": "11986", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085308Z:9822db2b-3ece-4117-aeb3-72f08aac7b07" }, "ResponseBody": { "status": "Succeeded" @@ -2203,7 +2275,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2211,8 +2283,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:21:14 GMT", - "ETag": "W/\u00223ece0aa8-9491-4d68-a423-e7f65733eef6\u0022", + "Date": "Thu, 28 Apr 2022 08:53:08 GMT", + "ETag": "W/\u00222f99700f-c343-48cc-9c80-92062246a768\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -2223,18 +2295,18 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "0fca455d-7332-4dd1-9881-a31bbfb3e79f", - "x-ms-correlation-request-id": "37d4d5b1-12e4-4110-b6d3-bf569deec7ad", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-routing-request-id": "EASTUS2:20220425T032114Z:37d4d5b1-12e4-4110-b6d3-bf569deec7ad" + "x-ms-arm-service-request-id": "e3ee5130-11e5-4c1b-bd39-4cbb24379c17", + "x-ms-correlation-request-id": "d41016fa-888a-4117-ab30-646679d36efb", + "x-ms-ratelimit-remaining-subscription-reads": "11985", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085308Z:d41016fa-888a-4117-ab30-646679d36efb" }, "ResponseBody": { "name": "virtualnetworkpeeringname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/virtualnetworkname/virtualNetworkPeerings/virtualnetworkpeeringname", - "etag": "W/\u00223ece0aa8-9491-4d68-a423-e7f65733eef6\u0022", + "etag": "W/\u00222f99700f-c343-48cc-9c80-92062246a768\u0022", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "caa06691-9172-08ab-1bc9-bd5586e1f9de", + "resourceGuid": "b2c7c928-c7f8-0c9d-3478-66028f01c540", "peeringState": "Initiated", "peeringSyncLevel": "RemoteNotInSync", "remoteVirtualNetwork": { @@ -2270,7 +2342,7 @@ "Connection": "keep-alive", "Content-Length": "1619", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "eastus", @@ -2333,11 +2405,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/022e9673-f15c-4431-a71a-e062c6068c28?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/e6749a2d-d329-42e0-bd06-61829196914b?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "1380", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:21:15 GMT", + "Date": "Thu, 28 Apr 2022 08:53:09 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -2347,20 +2419,20 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "7be3e7c2-417e-432f-b7ac-dfd6fc3fa026", - "x-ms-correlation-request-id": "9650e15d-2c70-4e20-b45b-a21613dcb7c2", + "x-ms-arm-service-request-id": "688b4337-e987-4df0-8e36-3dd0f6ff19e4", + "x-ms-correlation-request-id": "016e4eee-8363-43a5-85f5-fdd8b0ee9ff0", "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-routing-request-id": "EASTUS2:20220425T032115Z:9650e15d-2c70-4e20-b45b-a21613dcb7c2" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085310Z:016e4eee-8363-43a5-85f5-fdd8b0ee9ff0" }, "ResponseBody": { "name": "connectionname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/connections/connectionname", - "etag": "W/\u002259970160-02df-430e-9079-90cfc468baf1\u0022", + "etag": "W/\u002233217090-7543-472b-a94f-5c41d1d593ac\u0022", "type": "Microsoft.Network/connections", "location": "eastus", "properties": { "provisioningState": "Updating", - "resourceGuid": "0c4bc72c-8cb2-4c76-8e03-fbd02a2720bb", + "resourceGuid": "73c47da0-1e2c-4c87-abd7-4b80900d47cc", "packetCaptureDiagnosticState": "None", "virtualNetworkGateway1": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworkGateways/virtualnetworkgatewayname" @@ -2387,13 +2459,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/022e9673-f15c-4431-a71a-e062c6068c28?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/e6749a2d-d329-42e0-bd06-61829196914b?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2401,7 +2473,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:21:25 GMT", + "Date": "Thu, 28 Apr 2022 08:53:19 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -2413,23 +2485,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "d4b7b466-1d60-4878-9059-e69eb0fceece", - "x-ms-correlation-request-id": "78f19314-a012-43d7-9e04-79ed119801ff", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-routing-request-id": "EASTUS2:20220425T032125Z:78f19314-a012-43d7-9e04-79ed119801ff" + "x-ms-arm-service-request-id": "89e73551-29a2-475c-a489-e5c8a7604230", + "x-ms-correlation-request-id": "7b284b1c-2802-4187-b1dd-a170c2179fb4", + "x-ms-ratelimit-remaining-subscription-reads": "11984", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085320Z:7b284b1c-2802-4187-b1dd-a170c2179fb4" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/022e9673-f15c-4431-a71a-e062c6068c28?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/e6749a2d-d329-42e0-bd06-61829196914b?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2437,7 +2509,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:21:35 GMT", + "Date": "Thu, 28 Apr 2022 08:53:29 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "20", @@ -2449,23 +2521,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "60a3eecc-beb5-47ce-b990-64f072b4869b", - "x-ms-correlation-request-id": "af80fe31-f535-41ad-964a-1aea7eff9bdb", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-routing-request-id": "EASTUS2:20220425T032135Z:af80fe31-f535-41ad-964a-1aea7eff9bdb" + "x-ms-arm-service-request-id": "bcceb6e8-9927-40d4-85a6-08c074670c80", + "x-ms-correlation-request-id": "22952d45-d126-49b9-af26-a8244207b103", + "x-ms-ratelimit-remaining-subscription-reads": "11983", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085330Z:22952d45-d126-49b9-af26-a8244207b103" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/022e9673-f15c-4431-a71a-e062c6068c28?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/e6749a2d-d329-42e0-bd06-61829196914b?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2473,7 +2545,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:21:54 GMT", + "Date": "Thu, 28 Apr 2022 08:53:50 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "20", @@ -2485,23 +2557,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "d3b9269c-588e-42df-b172-41d71d263d55", - "x-ms-correlation-request-id": "4a37eb5b-d155-41e8-9ded-9cd982aec026", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-routing-request-id": "EASTUS2:20220425T032155Z:4a37eb5b-d155-41e8-9ded-9cd982aec026" + "x-ms-arm-service-request-id": "232b1e69-7d3f-4717-94a0-b77750fe59f2", + "x-ms-correlation-request-id": "fa0d7c1b-f792-445b-96f1-0b29f0ad32b3", + "x-ms-ratelimit-remaining-subscription-reads": "11982", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085350Z:fa0d7c1b-f792-445b-96f1-0b29f0ad32b3" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/022e9673-f15c-4431-a71a-e062c6068c28?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/e6749a2d-d329-42e0-bd06-61829196914b?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2509,9 +2581,10 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:22:15 GMT", + "Date": "Thu, 28 Apr 2022 08:54:10 GMT", "Expires": "-1", "Pragma": "no-cache", + "Retry-After": "40", "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" @@ -2520,10 +2593,45 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "a23717ea-098c-4c06-850c-80ca2221f3cc", - "x-ms-correlation-request-id": "43f3de91-a191-46da-b771-0bcd736b2f28", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-routing-request-id": "EASTUS2:20220425T032215Z:43f3de91-a191-46da-b771-0bcd736b2f28" + "x-ms-arm-service-request-id": "de91245b-eaf2-403a-88a8-577a11a811d4", + "x-ms-correlation-request-id": "6efaf0ed-db66-4a2b-a4c5-dbb76167cbd2", + "x-ms-ratelimit-remaining-subscription-reads": "11981", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085410Z:6efaf0ed-db66-4a2b-a4c5-dbb76167cbd2" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/e6749a2d-d329-42e0-bd06-61829196914b?api-version=2021-08-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Apr 2022 08:54:50 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": "a65fbaaa-cbe6-4955-9e0c-d3ed04ecd5f7", + "x-ms-correlation-request-id": "504cac08-0a25-4d52-a65c-9f5251ff0336", + "x-ms-ratelimit-remaining-subscription-reads": "11980", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085450Z:504cac08-0a25-4d52-a65c-9f5251ff0336" }, "ResponseBody": { "status": "Succeeded" @@ -2536,7 +2644,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2544,7 +2652,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:22:15 GMT", + "Date": "Thu, 28 Apr 2022 08:54:50 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -2555,20 +2663,20 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "bfb53afb-62f2-4eb5-8800-0300aa2557f7", - "x-ms-correlation-request-id": "5fcc9245-e375-43e4-b8e4-e8c1206d8fb3", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-routing-request-id": "EASTUS2:20220425T032216Z:5fcc9245-e375-43e4-b8e4-e8c1206d8fb3" + "x-ms-arm-service-request-id": "d5232760-b394-4010-9393-5a425b5eb892", + "x-ms-correlation-request-id": "56d45f83-305d-466d-b392-5b7616044c6e", + "x-ms-ratelimit-remaining-subscription-reads": "11979", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085451Z:56d45f83-305d-466d-b392-5b7616044c6e" }, "ResponseBody": { "name": "connectionname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/connections/connectionname", - "etag": "W/\u0022c0efb927-0acf-45a7-a7b1-4129e0347fcd\u0022", + "etag": "W/\u00226e9a96fa-a74f-4962-b936-5f5199ee13db\u0022", "type": "Microsoft.Network/connections", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "0c4bc72c-8cb2-4c76-8e03-fbd02a2720bb", + "resourceGuid": "73c47da0-1e2c-4c87-abd7-4b80900d47cc", "packetCaptureDiagnosticState": "None", "virtualNetworkGateway1": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworkGateways/virtualnetworkgatewayname" @@ -2604,17 +2712,17 @@ "Connection": "keep-alive", "Content-Length": "24", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "value": "AzureAbc123" }, "StatusCode": 200, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/adaaa7a1-04f5-40ca-a927-5321ea761f27?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/812b2081-dada-4aea-b424-b32eb5ac9fec?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 03:22:15 GMT", + "Date": "Thu, 28 Apr 2022 08:54:50 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -2624,21 +2732,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "4bf48776-0130-46f7-a02b-2f72e31f9774", - "x-ms-correlation-request-id": "491f78c4-3472-4bc5-874f-bb00da0945b8", + "x-ms-arm-service-request-id": "6d36555d-98c3-4df0-b57c-b04033528596", + "x-ms-correlation-request-id": "e2f25b81-dc67-4328-8609-fc507ca7d153", "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-routing-request-id": "EASTUS2:20220425T032216Z:491f78c4-3472-4bc5-874f-bb00da0945b8" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085451Z:e2f25b81-dc67-4328-8609-fc507ca7d153" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/adaaa7a1-04f5-40ca-a927-5321ea761f27?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/812b2081-dada-4aea-b424-b32eb5ac9fec?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2646,7 +2754,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:22:25 GMT", + "Date": "Thu, 28 Apr 2022 08:55:00 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -2658,23 +2766,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "144704e7-23ab-44ca-8728-0cfe97363577", - "x-ms-correlation-request-id": "6c58ff12-449f-4262-b240-52050a0bbad5", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-routing-request-id": "EASTUS2:20220425T032226Z:6c58ff12-449f-4262-b240-52050a0bbad5" + "x-ms-arm-service-request-id": "107a72d8-1114-4ca3-b316-9135974b877a", + "x-ms-correlation-request-id": "32c60bdc-641c-4414-b613-8d73a68fe0e8", + "x-ms-ratelimit-remaining-subscription-reads": "11978", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085501Z:32c60bdc-641c-4414-b613-8d73a68fe0e8" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/adaaa7a1-04f5-40ca-a927-5321ea761f27?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/812b2081-dada-4aea-b424-b32eb5ac9fec?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2682,7 +2790,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:22:35 GMT", + "Date": "Thu, 28 Apr 2022 08:55:10 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "20", @@ -2694,23 +2802,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "d5b63cb3-1809-46ee-a104-0ae6648c58bf", - "x-ms-correlation-request-id": "b88c9847-0fe8-48ed-a1df-6a809633fd8a", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-routing-request-id": "EASTUS2:20220425T032236Z:b88c9847-0fe8-48ed-a1df-6a809633fd8a" + "x-ms-arm-service-request-id": "e9594ce0-650d-44d0-a6c9-e478178673c6", + "x-ms-correlation-request-id": "728e79c6-4760-494f-92ac-8198b79f5534", + "x-ms-ratelimit-remaining-subscription-reads": "11977", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085511Z:728e79c6-4760-494f-92ac-8198b79f5534" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/adaaa7a1-04f5-40ca-a927-5321ea761f27?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/812b2081-dada-4aea-b424-b32eb5ac9fec?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2718,7 +2826,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:22:55 GMT", + "Date": "Thu, 28 Apr 2022 08:55:30 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "20", @@ -2730,23 +2838,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "15c8fed5-2013-49bd-aeec-574ab4a47455", - "x-ms-correlation-request-id": "e926e108-2c3d-4512-8c8c-acc97c86574e", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-routing-request-id": "EASTUS2:20220425T032256Z:e926e108-2c3d-4512-8c8c-acc97c86574e" + "x-ms-arm-service-request-id": "2eaa69ac-73d6-4cda-ba88-f91456b6113d", + "x-ms-correlation-request-id": "29544f7f-3fc9-47a7-bdef-49ff2ace8e73", + "x-ms-ratelimit-remaining-subscription-reads": "11976", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085531Z:29544f7f-3fc9-47a7-bdef-49ff2ace8e73" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/adaaa7a1-04f5-40ca-a927-5321ea761f27?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/812b2081-dada-4aea-b424-b32eb5ac9fec?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2754,7 +2862,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:23:16 GMT", + "Date": "Thu, 28 Apr 2022 08:55:51 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "40", @@ -2766,23 +2874,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "05233071-8647-4dca-8511-c868cba6350f", - "x-ms-correlation-request-id": "d6c469b7-6dc0-447a-ad6a-335f60149562", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-routing-request-id": "EASTUS2:20220425T032316Z:d6c469b7-6dc0-447a-ad6a-335f60149562" + "x-ms-arm-service-request-id": "61e5709f-ee92-4bd4-bc28-1125393d84cc", + "x-ms-correlation-request-id": "b8d7c364-72c3-4cf1-9681-b4857a244327", + "x-ms-ratelimit-remaining-subscription-reads": "11975", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085551Z:b8d7c364-72c3-4cf1-9681-b4857a244327" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/adaaa7a1-04f5-40ca-a927-5321ea761f27?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/812b2081-dada-4aea-b424-b32eb5ac9fec?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2790,7 +2898,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:23:55 GMT", + "Date": "Thu, 28 Apr 2022 08:56:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -2801,10 +2909,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "64f47a90-37bf-4e4a-a5cb-1d220f6281f6", - "x-ms-correlation-request-id": "5de76a1d-e7e6-4924-9e77-31157b6fd193", - "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-routing-request-id": "EASTUS2:20220425T032356Z:5de76a1d-e7e6-4924-9e77-31157b6fd193" + "x-ms-arm-service-request-id": "6ed41687-220c-4e53-9a9c-834466ca3127", + "x-ms-correlation-request-id": "154c4fc2-d870-4543-b4b8-1f4e4567d319", + "x-ms-ratelimit-remaining-subscription-reads": "11974", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085631Z:154c4fc2-d870-4543-b4b8-1f4e4567d319" }, "ResponseBody": { "status": "Succeeded" @@ -2817,7 +2925,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2825,7 +2933,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:23:55 GMT", + "Date": "Thu, 28 Apr 2022 08:56:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -2836,10 +2944,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "fa7bb084-7289-4fb3-8f2a-75dd916b2934", - "x-ms-correlation-request-id": "03c0be4a-60a9-4079-be09-41fe56be07ea", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-routing-request-id": "EASTUS2:20220425T032356Z:03c0be4a-60a9-4079-be09-41fe56be07ea" + "x-ms-arm-service-request-id": "7338f205-c683-4fc1-8bb3-2647033a34b4", + "x-ms-correlation-request-id": "a3fac8eb-698d-4507-8bb7-37109128ac49", + "x-ms-ratelimit-remaining-subscription-reads": "11973", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085631Z:a3fac8eb-698d-4507-8bb7-37109128ac49" }, "ResponseBody": { "value": "AzureAbc123" @@ -2852,7 +2960,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2860,8 +2968,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:23:55 GMT", - "ETag": "W/\u00223ece0aa8-9491-4d68-a423-e7f65733eef6\u0022", + "Date": "Thu, 28 Apr 2022 08:56:31 GMT", + "ETag": "W/\u00222f99700f-c343-48cc-9c80-92062246a768\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -2872,18 +2980,18 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "6230d3d8-e06b-4b5e-b70c-7297ea14dd2f", - "x-ms-correlation-request-id": "48b5362d-55db-49e8-ba0f-3fc7a6cea551", - "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-routing-request-id": "EASTUS2:20220425T032356Z:48b5362d-55db-49e8-ba0f-3fc7a6cea551" + "x-ms-arm-service-request-id": "9cc6aa42-09df-4a63-b2fd-8a18fb58651e", + "x-ms-correlation-request-id": "4876e7d0-a7dc-479c-bfdc-b14abb6b6d7a", + "x-ms-ratelimit-remaining-subscription-reads": "11972", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085631Z:4876e7d0-a7dc-479c-bfdc-b14abb6b6d7a" }, "ResponseBody": { "name": "virtualnetworkpeeringname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/virtualnetworkname/virtualNetworkPeerings/virtualnetworkpeeringname", - "etag": "W/\u00223ece0aa8-9491-4d68-a423-e7f65733eef6\u0022", + "etag": "W/\u00222f99700f-c343-48cc-9c80-92062246a768\u0022", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "caa06691-9172-08ab-1bc9-bd5586e1f9de", + "resourceGuid": "b2c7c928-c7f8-0c9d-3478-66028f01c540", "peeringState": "Initiated", "peeringSyncLevel": "RemoteNotInSync", "remoteVirtualNetwork": { @@ -2917,7 +3025,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2925,7 +3033,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:23:55 GMT", + "Date": "Thu, 28 Apr 2022 08:56:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -2936,10 +3044,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "d2971ebf-8be5-49be-af3b-3105e09ecb42", - "x-ms-correlation-request-id": "2e2e993f-423a-48e2-9dc6-5402ad22505d", - "x-ms-ratelimit-remaining-subscription-reads": "11974", - "x-ms-routing-request-id": "EASTUS2:20220425T032356Z:2e2e993f-423a-48e2-9dc6-5402ad22505d" + "x-ms-arm-service-request-id": "0660f1d1-b01c-4b41-a5e2-99b837d00edf", + "x-ms-correlation-request-id": "f4d12db6-ad2c-4a4c-b4ef-6b5f1bde80e2", + "x-ms-ratelimit-remaining-subscription-reads": "11971", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085631Z:f4d12db6-ad2c-4a4c-b4ef-6b5f1bde80e2" }, "ResponseBody": { "value": [] @@ -2952,7 +3060,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2960,7 +3068,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:23:55 GMT", + "Date": "Thu, 28 Apr 2022 08:56:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -2971,10 +3079,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "2708775b-1795-4b25-8b53-aae369fa6d6d", - "x-ms-correlation-request-id": "43006dca-dc33-4822-8b88-55021947eb56", - "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-routing-request-id": "EASTUS2:20220425T032356Z:43006dca-dc33-4822-8b88-55021947eb56" + "x-ms-arm-service-request-id": "6a6d2965-c808-493b-bb0f-bda09004c83a", + "x-ms-correlation-request-id": "55696240-255d-4d33-9d7f-1d49bed59bdb", + "x-ms-ratelimit-remaining-subscription-reads": "11970", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085632Z:55696240-255d-4d33-9d7f-1d49bed59bdb" }, "ResponseBody": { "value": [] @@ -2987,7 +3095,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2995,7 +3103,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:23:56 GMT", + "Date": "Thu, 28 Apr 2022 08:56:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -3006,10 +3114,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "41f2b750-9d03-4c8b-abbf-28709725755e", - "x-ms-correlation-request-id": "f4682296-25bb-4a07-8316-2517c0bdf767", - "x-ms-ratelimit-remaining-subscription-reads": "11972", - "x-ms-routing-request-id": "EASTUS2:20220425T032356Z:f4682296-25bb-4a07-8316-2517c0bdf767" + "x-ms-arm-service-request-id": "419f7eca-4cee-401b-99d0-7ed14425b171", + "x-ms-correlation-request-id": "394abf6a-b42b-45f9-8073-5e199e9a874f", + "x-ms-ratelimit-remaining-subscription-reads": "11969", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085632Z:394abf6a-b42b-45f9-8073-5e199e9a874f" }, "ResponseBody": { "available": true, @@ -3023,7 +3131,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -3031,8 +3139,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:23:56 GMT", - "ETag": "W/\u00228042f935-4a76-4282-80a5-8e41c7dc91ec\u0022", + "Date": "Thu, 28 Apr 2022 08:56:31 GMT", + "ETag": "W/\u0022c5b41670-1213-4d25-9cca-f015f4b74d2c\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -3043,15 +3151,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "64b40887-978c-472c-b32f-d12db2b66798", - "x-ms-correlation-request-id": "7161485f-4dfc-4d30-a5ef-5da1d6fecbb2", - "x-ms-ratelimit-remaining-subscription-reads": "11971", - "x-ms-routing-request-id": "EASTUS2:20220425T032356Z:7161485f-4dfc-4d30-a5ef-5da1d6fecbb2" + "x-ms-arm-service-request-id": "1cc476ed-4ca1-4dd9-9d1e-95a4ca34b8b5", + "x-ms-correlation-request-id": "0ac382f4-3ae6-494b-bdd2-22cceaaef79b", + "x-ms-ratelimit-remaining-subscription-reads": "11968", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085632Z:0ac382f4-3ae6-494b-bdd2-22cceaaef79b" }, "ResponseBody": { "name": "subnetname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/virtualnetworkname/subnets/subnetname", - "etag": "W/\u00228042f935-4a76-4282-80a5-8e41c7dc91ec\u0022", + "etag": "W/\u0022c5b41670-1213-4d25-9cca-f015f4b74d2c\u0022", "properties": { "provisioningState": "Succeeded", "addressPrefix": "10.0.0.0/24", @@ -3074,7 +3182,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -3082,7 +3190,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:23:56 GMT", + "Date": "Thu, 28 Apr 2022 08:56:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -3093,27 +3201,27 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "885945bf-4f98-43ac-9ef8-55e1469b1a6c", - "x-ms-correlation-request-id": "18abd6cb-e57d-49d1-9226-76be07ea426a", - "x-ms-ratelimit-remaining-subscription-reads": "11970", - "x-ms-routing-request-id": "EASTUS2:20220425T032356Z:18abd6cb-e57d-49d1-9226-76be07ea426a" + "x-ms-arm-service-request-id": "23215d15-975e-440f-b028-db96d086142e", + "x-ms-correlation-request-id": "2a2c4d0f-ceb5-449e-8d96-88fdcbb5b418", + "x-ms-ratelimit-remaining-subscription-reads": "11967", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085632Z:2a2c4d0f-ceb5-449e-8d96-88fdcbb5b418" }, "ResponseBody": { "name": "virtualnetworkgatewayname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworkGateways/virtualnetworkgatewayname", - "etag": "W/\u0022feca8a8a-4120-44ae-aedd-0f6df7e9d3aa\u0022", + "etag": "W/\u002277ae8a84-2273-488e-9ce8-d49099c8de5f\u0022", "type": "Microsoft.Network/virtualNetworkGateways", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "e2ba41e8-94cb-4437-9884-07bb261a33e5", + "resourceGuid": "c7ca961b-ab52-4d65-a2ab-740bc758765f", "packetCaptureDiagnosticState": "None", "enablePrivateIpAddress": false, "ipConfigurations": [ { "name": "ipconfig", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworkGateways/virtualnetworkgatewayname/ipConfigurations/ipconfig", - "etag": "W/\u0022feca8a8a-4120-44ae-aedd-0f6df7e9d3aa\u0022", + "etag": "W/\u002277ae8a84-2273-488e-9ce8-d49099c8de5f\u0022", "type": "Microsoft.Network/virtualNetworkGateways/ipConfigurations", "properties": { "provisioningState": "Succeeded", @@ -3151,7 +3259,7 @@ ], "customBgpIpAddresses": [], "tunnelIpAddresses": [ - "20.231.35.70" + "40.88.151.112" ] } ] @@ -3173,7 +3281,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -3181,8 +3289,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:23:56 GMT", - "ETag": "W/\u00220b00875d-fbe5-4c37-bcd2-405da249cd0b\u0022", + "Date": "Thu, 28 Apr 2022 08:56:31 GMT", + "ETag": "W/\u0022ab94c267-131a-4da4-b74d-4d0a55394b15\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -3193,20 +3301,20 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "570f47c4-3785-4586-b33e-1894ff43d0bd", - "x-ms-correlation-request-id": "7b84545e-0981-4996-b05e-3e195c2a1a77", - "x-ms-ratelimit-remaining-subscription-reads": "11969", - "x-ms-routing-request-id": "EASTUS2:20220425T032356Z:7b84545e-0981-4996-b05e-3e195c2a1a77" + "x-ms-arm-service-request-id": "156f7481-9558-44c6-867d-b6090abb819e", + "x-ms-correlation-request-id": "43b90aae-e71d-4dfc-9d90-35d99d130a6f", + "x-ms-ratelimit-remaining-subscription-reads": "11966", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085632Z:43b90aae-e71d-4dfc-9d90-35d99d130a6f" }, "ResponseBody": { "name": "localnetworkgatewayname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/localNetworkGateways/localnetworkgatewayname", - "etag": "W/\u00220b00875d-fbe5-4c37-bcd2-405da249cd0b\u0022", + "etag": "W/\u0022ab94c267-131a-4da4-b74d-4d0a55394b15\u0022", "type": "Microsoft.Network/localNetworkGateways", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "e5f0813e-5296-44a4-9dab-f7071f895040", + "resourceGuid": "27ea274e-d962-4939-a89e-7b2f5572f4a5", "localNetworkAddressSpace": { "addressPrefixes": [ "10.1.0.0/16" @@ -3223,7 +3331,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -3231,7 +3339,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:23:56 GMT", + "Date": "Thu, 28 Apr 2022 08:56:32 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -3242,10 +3350,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "453f31ed-501a-45ff-818b-eca37c833d5a", - "x-ms-correlation-request-id": "6b14c3d8-3e4a-40a0-aef3-8f0c92eb480d", - "x-ms-ratelimit-remaining-subscription-reads": "11968", - "x-ms-routing-request-id": "EASTUS2:20220425T032357Z:6b14c3d8-3e4a-40a0-aef3-8f0c92eb480d" + "x-ms-arm-service-request-id": "b387ebd0-c79a-4182-bc86-4b74b2101d88", + "x-ms-correlation-request-id": "0bb6b1e6-1f4c-4b42-8574-d96d8a96003b", + "x-ms-ratelimit-remaining-subscription-reads": "11965", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085632Z:0bb6b1e6-1f4c-4b42-8574-d96d8a96003b" }, "ResponseBody": { "value": "AzureAbc123" @@ -3258,7 +3366,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -3266,8 +3374,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:23:56 GMT", - "ETag": "W/\u00228042f935-4a76-4282-80a5-8e41c7dc91ec\u0022", + "Date": "Thu, 28 Apr 2022 08:56:32 GMT", + "ETag": "W/\u0022c5b41670-1213-4d25-9cca-f015f4b74d2c\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -3278,20 +3386,20 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "e70b3e49-77c9-40e7-99cf-5d7514ad1997", - "x-ms-correlation-request-id": "b6cce79b-2a97-4d6f-b999-cdbe76bc2ab5", - "x-ms-ratelimit-remaining-subscription-reads": "11967", - "x-ms-routing-request-id": "EASTUS2:20220425T032357Z:b6cce79b-2a97-4d6f-b999-cdbe76bc2ab5" + "x-ms-arm-service-request-id": "0d7d3dcd-980f-461e-8e31-5655e9399c86", + "x-ms-correlation-request-id": "998f4e64-4639-4c19-a3e5-0624bc3cd784", + "x-ms-ratelimit-remaining-subscription-reads": "11964", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085632Z:998f4e64-4639-4c19-a3e5-0624bc3cd784" }, "ResponseBody": { "name": "virtualnetworkname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/virtualnetworkname", - "etag": "W/\u00228042f935-4a76-4282-80a5-8e41c7dc91ec\u0022", + "etag": "W/\u0022c5b41670-1213-4d25-9cca-f015f4b74d2c\u0022", "type": "Microsoft.Network/virtualNetworks", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "b1e37264-cda2-432c-961a-50223e2bf69c", + "resourceGuid": "aa2c809a-5f4f-4f46-97da-de521976c9db", "addressSpace": { "addressPrefixes": [ "10.0.0.0/16" @@ -3301,7 +3409,7 @@ { "name": "subnetname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/virtualnetworkname/subnets/subnetname", - "etag": "W/\u00228042f935-4a76-4282-80a5-8e41c7dc91ec\u0022", + "etag": "W/\u0022c5b41670-1213-4d25-9cca-f015f4b74d2c\u0022", "properties": { "provisioningState": "Succeeded", "addressPrefix": "10.0.0.0/24", @@ -3319,7 +3427,7 @@ { "name": "GatewaySubnet", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/virtualnetworkname/subnets/GatewaySubnet", - "etag": "W/\u00228042f935-4a76-4282-80a5-8e41c7dc91ec\u0022", + "etag": "W/\u0022c5b41670-1213-4d25-9cca-f015f4b74d2c\u0022", "properties": { "provisioningState": "Succeeded", "addressPrefix": "10.0.1.0/24", @@ -3339,10 +3447,10 @@ { "name": "virtualnetworkpeeringname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/virtualnetworkname/virtualNetworkPeerings/virtualnetworkpeeringname", - "etag": "W/\u00228042f935-4a76-4282-80a5-8e41c7dc91ec\u0022", + "etag": "W/\u0022c5b41670-1213-4d25-9cca-f015f4b74d2c\u0022", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "caa06691-9172-08ab-1bc9-bd5586e1f9de", + "resourceGuid": "b2c7c928-c7f8-0c9d-3478-66028f01c540", "peeringState": "Initiated", "peeringSyncLevel": "RemoteNotInSync", "remoteVirtualNetwork": { @@ -3380,7 +3488,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -3388,7 +3496,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:23:56 GMT", + "Date": "Thu, 28 Apr 2022 08:56:35 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -3399,20 +3507,20 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "fc3c2071-8c0f-436d-b75c-a2f4363cd096", - "x-ms-correlation-request-id": "65808faa-8bbd-4c59-9a41-8fd02d7b5a4c", - "x-ms-ratelimit-remaining-subscription-reads": "11966", - "x-ms-routing-request-id": "EASTUS2:20220425T032357Z:65808faa-8bbd-4c59-9a41-8fd02d7b5a4c" + "x-ms-arm-service-request-id": "9d875a32-a00f-4157-8ac8-b8909f4416a5", + "x-ms-correlation-request-id": "551854ff-831a-418d-b2d0-9f1dca050d99", + "x-ms-ratelimit-remaining-subscription-reads": "11963", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085635Z:551854ff-831a-418d-b2d0-9f1dca050d99" }, "ResponseBody": { "name": "connectionname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/connections/connectionname", - "etag": "W/\u0022a6a72f13-5786-4e21-8380-f4b848fa1866\u0022", + "etag": "W/\u002247953ac2-a484-4262-a8c7-99d7eb77e644\u0022", "type": "Microsoft.Network/connections", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "0c4bc72c-8cb2-4c76-8e03-fbd02a2720bb", + "resourceGuid": "73c47da0-1e2c-4c87-abd7-4b80900d47cc", "packetCaptureDiagnosticState": "None", "virtualNetworkGateway1": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworkGateways/virtualnetworkgatewayname" @@ -3429,7 +3537,7 @@ "usePolicyBasedTrafficSelectors": false, "ipsecPolicies": [], "trafficSelectorPolicies": [], - "connectionStatus": "Unknown", + "connectionStatus": "NotConnected", "ingressBytesTransferred": 0, "egressBytesTransferred": 0, "expressRouteGatewayBypass": false, @@ -3447,7 +3555,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, @@ -3455,9 +3563,9 @@ "Cache-Control": "no-cache", "Content-Length": "4", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:23:56 GMT", + "Date": "Thu, 28 Apr 2022 08:56:35 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/799c72f0-c300-47e8-a85e-7712c20d5a1b?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/e4539aeb-d564-4d03-9759-e4165edf8cda?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -3466,21 +3574,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "e4579236-1b2a-4d12-a930-93af739ec600", - "x-ms-correlation-request-id": "b1d3f71e-7a22-463a-8bc2-db853fcd5367", + "x-ms-arm-service-request-id": "ea2386fb-4dcb-4707-9fe1-cc0cb0df14d7", + "x-ms-correlation-request-id": "5a5bb276-f415-438e-be25-c830cc73ee2d", "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-routing-request-id": "EASTUS2:20220425T032357Z:b1d3f71e-7a22-463a-8bc2-db853fcd5367" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085635Z:5a5bb276-f415-438e-be25-c830cc73ee2d" }, "ResponseBody": "null" }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/799c72f0-c300-47e8-a85e-7712c20d5a1b?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/e4539aeb-d564-4d03-9759-e4165edf8cda?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -3488,9 +3596,9 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:24:06 GMT", + "Date": "Thu, 28 Apr 2022 08:56:45 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/799c72f0-c300-47e8-a85e-7712c20d5a1b?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/e4539aeb-d564-4d03-9759-e4165edf8cda?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -3500,10 +3608,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "e4579236-1b2a-4d12-a930-93af739ec600", - "x-ms-correlation-request-id": "b1d3f71e-7a22-463a-8bc2-db853fcd5367", - "x-ms-ratelimit-remaining-subscription-reads": "11965", - "x-ms-routing-request-id": "EASTUS2:20220425T032407Z:2e8e5f43-fca9-43c7-9cbf-b1b4032020a6" + "x-ms-arm-service-request-id": "ea2386fb-4dcb-4707-9fe1-cc0cb0df14d7", + "x-ms-correlation-request-id": "5a5bb276-f415-438e-be25-c830cc73ee2d", + "x-ms-ratelimit-remaining-subscription-reads": "11962", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085646Z:2e0a40e7-23e1-46c1-822d-d00e1f78a1b2" }, "ResponseBody": { "value": [ @@ -3525,7 +3633,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, @@ -3533,9 +3641,9 @@ "Cache-Control": "no-cache", "Content-Length": "4", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:24:06 GMT", + "Date": "Thu, 28 Apr 2022 08:56:45 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/ddb3b248-4f46-446e-a961-6f5384c008fa?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/f2483e61-b553-455f-8116-d7102c55d4ef?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -3544,21 +3652,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "e695fa89-3483-4167-baf0-48a56c4078ad", - "x-ms-correlation-request-id": "2dead0f7-304e-48e2-b89f-573f0b2756b9", + "x-ms-arm-service-request-id": "feb52e32-4b4c-46f0-993a-19e88e7b4136", + "x-ms-correlation-request-id": "0d84de7f-4ebb-44a5-a2aa-a915d0408b2c", "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-routing-request-id": "EASTUS2:20220425T032407Z:2dead0f7-304e-48e2-b89f-573f0b2756b9" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085646Z:0d84de7f-4ebb-44a5-a2aa-a915d0408b2c" }, "ResponseBody": "null" }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/ddb3b248-4f46-446e-a961-6f5384c008fa?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/f2483e61-b553-455f-8116-d7102c55d4ef?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -3566,9 +3674,9 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:24:17 GMT", + "Date": "Thu, 28 Apr 2022 08:56:55 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/ddb3b248-4f46-446e-a961-6f5384c008fa?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/f2483e61-b553-455f-8116-d7102c55d4ef?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -3578,10 +3686,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "e695fa89-3483-4167-baf0-48a56c4078ad", - "x-ms-correlation-request-id": "2dead0f7-304e-48e2-b89f-573f0b2756b9", - "x-ms-ratelimit-remaining-subscription-reads": "11964", - "x-ms-routing-request-id": "EASTUS2:20220425T032417Z:7bff345d-e753-4f04-ad36-42f45e20221b" + "x-ms-arm-service-request-id": "feb52e32-4b4c-46f0-993a-19e88e7b4136", + "x-ms-correlation-request-id": "0d84de7f-4ebb-44a5-a2aa-a915d0408b2c", + "x-ms-ratelimit-remaining-subscription-reads": "11961", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085656Z:b525f925-57bb-4623-bfd1-05536be40001" }, "ResponseBody": { "value": [] @@ -3595,7 +3703,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, @@ -3603,9 +3711,9 @@ "Cache-Control": "no-cache", "Content-Length": "4", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:24:17 GMT", + "Date": "Thu, 28 Apr 2022 08:56:55 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/f5a2083a-ef8c-415d-8520-14fc4c06c3d4?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/8cbc1461-394b-45ce-968b-64e5893e4a96?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -3614,21 +3722,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "6ab879b3-84de-4bf3-b209-d27feafc708d", - "x-ms-correlation-request-id": "549df334-275c-4e5c-bf3e-8387b4db3d09", + "x-ms-arm-service-request-id": "1e482f98-b681-47d6-963f-b7b517c536ae", + "x-ms-correlation-request-id": "735286ff-63ea-485a-b0b4-b7100f988fc1", "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-routing-request-id": "EASTUS2:20220425T032417Z:549df334-275c-4e5c-bf3e-8387b4db3d09" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085656Z:735286ff-63ea-485a-b0b4-b7100f988fc1" }, "ResponseBody": "null" }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/f5a2083a-ef8c-415d-8520-14fc4c06c3d4?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/8cbc1461-394b-45ce-968b-64e5893e4a96?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -3636,9 +3744,9 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:24:27 GMT", + "Date": "Thu, 28 Apr 2022 08:57:05 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/f5a2083a-ef8c-415d-8520-14fc4c06c3d4?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/8cbc1461-394b-45ce-968b-64e5893e4a96?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -3648,10 +3756,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "6ab879b3-84de-4bf3-b209-d27feafc708d", - "x-ms-correlation-request-id": "549df334-275c-4e5c-bf3e-8387b4db3d09", - "x-ms-ratelimit-remaining-subscription-reads": "11963", - "x-ms-routing-request-id": "EASTUS2:20220425T032428Z:6e566630-aa9c-4a34-82e2-e2ac0fef4dc0" + "x-ms-arm-service-request-id": "1e482f98-b681-47d6-963f-b7b517c536ae", + "x-ms-correlation-request-id": "735286ff-63ea-485a-b0b4-b7100f988fc1", + "x-ms-ratelimit-remaining-subscription-reads": "11960", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085706Z:ff265140-ab34-4f75-a930-0cc417b25b32" }, "ResponseBody": { "value": [] @@ -3666,19 +3774,19 @@ "Connection": "keep-alive", "Content-Length": "18", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "keyLength": 128 }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/2e6d8669-6a09-4598-b4e4-f67b30420d1f?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/9159775f-6982-4dd1-80a7-0c2550025427?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 03:24:27 GMT", + "Date": "Thu, 28 Apr 2022 08:57:06 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/2e6d8669-6a09-4598-b4e4-f67b30420d1f?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/9159775f-6982-4dd1-80a7-0c2550025427?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -3687,21 +3795,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "08aa83d6-9c8a-499e-bb27-751324faef91", - "x-ms-correlation-request-id": "44ca8e6b-129f-4b6c-8f2b-2f2e5253af16", + "x-ms-arm-service-request-id": "1726b15a-666e-432d-8505-98cae3d11ec1", + "x-ms-correlation-request-id": "1744b0cc-91b7-4394-a830-1d6293bf15fb", "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-routing-request-id": "EASTUS2:20220425T032428Z:44ca8e6b-129f-4b6c-8f2b-2f2e5253af16" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085706Z:1744b0cc-91b7-4394-a830-1d6293bf15fb" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/2e6d8669-6a09-4598-b4e4-f67b30420d1f?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/9159775f-6982-4dd1-80a7-0c2550025427?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -3709,7 +3817,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:24:37 GMT", + "Date": "Thu, 28 Apr 2022 08:57:16 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -3721,23 +3829,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "abe77d89-b75c-4fac-b4dc-6e2803232c33", - "x-ms-correlation-request-id": "3c7042b2-91af-4b71-aedc-6f791aba145f", - "x-ms-ratelimit-remaining-subscription-reads": "11962", - "x-ms-routing-request-id": "EASTUS2:20220425T032438Z:3c7042b2-91af-4b71-aedc-6f791aba145f" + "x-ms-arm-service-request-id": "53f5169f-5f12-423d-8466-6a6ab8162aad", + "x-ms-correlation-request-id": "83607859-58f9-4bb9-978a-61f93b636c71", + "x-ms-ratelimit-remaining-subscription-reads": "11959", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085716Z:83607859-58f9-4bb9-978a-61f93b636c71" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/2e6d8669-6a09-4598-b4e4-f67b30420d1f?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/9159775f-6982-4dd1-80a7-0c2550025427?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -3745,7 +3853,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:24:47 GMT", + "Date": "Thu, 28 Apr 2022 08:57:25 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "20", @@ -3757,23 +3865,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "527f9285-306e-4a99-a7e7-d93ac8326251", - "x-ms-correlation-request-id": "7ff1337a-bc48-4c1b-809b-2ae4f827ddb4", - "x-ms-ratelimit-remaining-subscription-reads": "11961", - "x-ms-routing-request-id": "EASTUS2:20220425T032448Z:7ff1337a-bc48-4c1b-809b-2ae4f827ddb4" + "x-ms-arm-service-request-id": "1db709ef-f83e-4ca5-8683-9f80652efc7a", + "x-ms-correlation-request-id": "9b83ac42-8e84-4667-87ef-7749ca625b8e", + "x-ms-ratelimit-remaining-subscription-reads": "11958", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085726Z:9b83ac42-8e84-4667-87ef-7749ca625b8e" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/2e6d8669-6a09-4598-b4e4-f67b30420d1f?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/9159775f-6982-4dd1-80a7-0c2550025427?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -3781,7 +3889,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:25:07 GMT", + "Date": "Thu, 28 Apr 2022 08:57:47 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -3792,10 +3900,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "bea95300-9034-4d4b-9e46-3052f119eeee", - "x-ms-correlation-request-id": "7352277a-27eb-421b-969a-29dc9d317019", - "x-ms-ratelimit-remaining-subscription-reads": "11960", - "x-ms-routing-request-id": "EASTUS2:20220425T032508Z:7352277a-27eb-421b-969a-29dc9d317019" + "x-ms-arm-service-request-id": "491a477f-0451-41f0-8787-99ef7372de93", + "x-ms-correlation-request-id": "e6cc530a-796f-4f58-9a20-126510e7fa43", + "x-ms-ratelimit-remaining-subscription-reads": "11957", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085747Z:e6cc530a-796f-4f58-9a20-126510e7fa43" }, "ResponseBody": { "status": "Succeeded", @@ -3803,24 +3911,24 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/2e6d8669-6a09-4598-b4e4-f67b30420d1f?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/9159775f-6982-4dd1-80a7-0c2550025427?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/2e6d8669-6a09-4598-b4e4-f67b30420d1f?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/9159775f-6982-4dd1-80a7-0c2550025427?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:25:07 GMT", + "Date": "Thu, 28 Apr 2022 08:57:47 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/2e6d8669-6a09-4598-b4e4-f67b30420d1f?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/9159775f-6982-4dd1-80a7-0c2550025427?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -3830,10 +3938,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "08aa83d6-9c8a-499e-bb27-751324faef91", - "x-ms-correlation-request-id": "44ca8e6b-129f-4b6c-8f2b-2f2e5253af16", - "x-ms-ratelimit-remaining-subscription-reads": "11959", - "x-ms-routing-request-id": "EASTUS2:20220425T032508Z:943bb122-8057-4ab9-89bd-312d79ad39cb" + "x-ms-arm-service-request-id": "1726b15a-666e-432d-8505-98cae3d11ec1", + "x-ms-correlation-request-id": "1744b0cc-91b7-4394-a830-1d6293bf15fb", + "x-ms-ratelimit-remaining-subscription-reads": "11956", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085747Z:10fbf3fe-ed5c-4815-b9c2-27171b0eb605" }, "ResponseBody": "null" }, @@ -3845,17 +3953,17 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/37f883ea-7e5f-4e81-9c33-2708fcf619e3?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b200c0f4-5b2d-4743-a3b7-a32cb4cc4d76?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 03:25:07 GMT", + "Date": "Thu, 28 Apr 2022 08:57:47 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/37f883ea-7e5f-4e81-9c33-2708fcf619e3?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/b200c0f4-5b2d-4743-a3b7-a32cb4cc4d76?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -3864,21 +3972,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "f4c0674a-b8de-44b9-b942-cdfba6744e75", - "x-ms-correlation-request-id": "ce51f574-8a8c-4575-bf7b-f421923aa30f", + "x-ms-arm-service-request-id": "9d26b275-c7d5-4d91-8864-fbf9ca51aa5d", + "x-ms-correlation-request-id": "e42a984f-dd00-4f8a-ad4c-80c8f05b08cc", "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-routing-request-id": "EASTUS2:20220425T032508Z:ce51f574-8a8c-4575-bf7b-f421923aa30f" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085747Z:e42a984f-dd00-4f8a-ad4c-80c8f05b08cc" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/37f883ea-7e5f-4e81-9c33-2708fcf619e3?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b200c0f4-5b2d-4743-a3b7-a32cb4cc4d76?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -3886,7 +3994,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:25:18 GMT", + "Date": "Thu, 28 Apr 2022 08:57:57 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -3898,23 +4006,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "d8d6b789-1efd-4a6f-870c-dc8cb26f39cc", - "x-ms-correlation-request-id": "b23d385b-4cf3-4100-93a8-4f5f239e84a7", - "x-ms-ratelimit-remaining-subscription-reads": "11958", - "x-ms-routing-request-id": "EASTUS2:20220425T032518Z:b23d385b-4cf3-4100-93a8-4f5f239e84a7" + "x-ms-arm-service-request-id": "cb213cb6-cdb6-4fe4-9188-d5186977141d", + "x-ms-correlation-request-id": "e41bba08-a275-4ff7-8416-be11ba571162", + "x-ms-ratelimit-remaining-subscription-reads": "11955", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085757Z:e41bba08-a275-4ff7-8416-be11ba571162" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/37f883ea-7e5f-4e81-9c33-2708fcf619e3?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b200c0f4-5b2d-4743-a3b7-a32cb4cc4d76?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -3922,7 +4030,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:25:28 GMT", + "Date": "Thu, 28 Apr 2022 08:58:07 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "20", @@ -3934,23 +4042,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "8d06e3c0-d198-4d9b-8ac5-9dc33eafd141", - "x-ms-correlation-request-id": "7f7ea051-797c-44a6-9972-ce37139d546f", - "x-ms-ratelimit-remaining-subscription-reads": "11957", - "x-ms-routing-request-id": "EASTUS2:20220425T032528Z:7f7ea051-797c-44a6-9972-ce37139d546f" + "x-ms-arm-service-request-id": "9f610791-4517-40c3-bf66-f70ea97068f4", + "x-ms-correlation-request-id": "68b05ee8-38ae-4674-9a3b-37ff9ba307ea", + "x-ms-ratelimit-remaining-subscription-reads": "11954", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085807Z:68b05ee8-38ae-4674-9a3b-37ff9ba307ea" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/37f883ea-7e5f-4e81-9c33-2708fcf619e3?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b200c0f4-5b2d-4743-a3b7-a32cb4cc4d76?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -3958,7 +4066,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:25:48 GMT", + "Date": "Thu, 28 Apr 2022 08:58:27 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "40", @@ -3970,23 +4078,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "3fab1562-6a78-4cfd-8d6b-80b863ec2384", - "x-ms-correlation-request-id": "576ddf45-3af6-4aef-a457-66c52c403734", - "x-ms-ratelimit-remaining-subscription-reads": "11956", - "x-ms-routing-request-id": "EASTUS2:20220425T032548Z:576ddf45-3af6-4aef-a457-66c52c403734" + "x-ms-arm-service-request-id": "ad2e3fea-64b6-4842-8eb1-e2c0bd332afb", + "x-ms-correlation-request-id": "8bf4828a-ea02-4052-80b8-9100fadcc038", + "x-ms-ratelimit-remaining-subscription-reads": "11953", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085827Z:8bf4828a-ea02-4052-80b8-9100fadcc038" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/37f883ea-7e5f-4e81-9c33-2708fcf619e3?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b200c0f4-5b2d-4743-a3b7-a32cb4cc4d76?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -3994,7 +4102,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:26:27 GMT", + "Date": "Thu, 28 Apr 2022 08:59:06 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "80", @@ -4006,23 +4114,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "853cbb40-ff6d-4e1d-aa7a-3133a7fd3a53", - "x-ms-correlation-request-id": "190f8267-8f50-4c10-bfbf-35b7c65b152e", - "x-ms-ratelimit-remaining-subscription-reads": "11955", - "x-ms-routing-request-id": "EASTUS2:20220425T032628Z:190f8267-8f50-4c10-bfbf-35b7c65b152e" + "x-ms-arm-service-request-id": "cd3199e8-b860-4139-b6a1-1b53f2b022ff", + "x-ms-correlation-request-id": "6429d2a9-1f8b-47c4-9cba-110953e322e5", + "x-ms-ratelimit-remaining-subscription-reads": "11952", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T085907Z:6429d2a9-1f8b-47c4-9cba-110953e322e5" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/37f883ea-7e5f-4e81-9c33-2708fcf619e3?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b200c0f4-5b2d-4743-a3b7-a32cb4cc4d76?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -4030,7 +4138,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:27:48 GMT", + "Date": "Thu, 28 Apr 2022 09:00:27 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "160", @@ -4042,23 +4150,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "56f479fd-a788-478c-b154-22cde0bd811e", - "x-ms-correlation-request-id": "966242e6-a9c9-475c-b8bb-079d0324dfb6", - "x-ms-ratelimit-remaining-subscription-reads": "11954", - "x-ms-routing-request-id": "EASTUS2:20220425T032748Z:966242e6-a9c9-475c-b8bb-079d0324dfb6" + "x-ms-arm-service-request-id": "0874154f-d007-42d3-b846-efcfeb086f0e", + "x-ms-correlation-request-id": "ee7875cd-424b-42a6-9f42-06a4e14ff329", + "x-ms-ratelimit-remaining-subscription-reads": "11951", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T090027Z:ee7875cd-424b-42a6-9f42-06a4e14ff329" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/37f883ea-7e5f-4e81-9c33-2708fcf619e3?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b200c0f4-5b2d-4743-a3b7-a32cb4cc4d76?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -4066,7 +4174,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:30:28 GMT", + "Date": "Thu, 28 Apr 2022 09:03:08 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -4078,23 +4186,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "35ef4454-70b0-40b4-9a9a-de99131a3c1d", - "x-ms-correlation-request-id": "20120ce2-ad33-406b-af26-cd843ac49a36", - "x-ms-ratelimit-remaining-subscription-reads": "11953", - "x-ms-routing-request-id": "EASTUS2:20220425T033029Z:20120ce2-ad33-406b-af26-cd843ac49a36" + "x-ms-arm-service-request-id": "5d03e278-002c-4dd8-94a9-513bbdf16911", + "x-ms-correlation-request-id": "a9e90cfb-f32e-4ef8-9dd3-6a0f6bc3cad3", + "x-ms-ratelimit-remaining-subscription-reads": "11950", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T090308Z:a9e90cfb-f32e-4ef8-9dd3-6a0f6bc3cad3" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/37f883ea-7e5f-4e81-9c33-2708fcf619e3?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b200c0f4-5b2d-4743-a3b7-a32cb4cc4d76?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -4102,7 +4210,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:32:08 GMT", + "Date": "Thu, 28 Apr 2022 09:04:48 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -4114,23 +4222,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "536b32a3-728c-4ae0-9c94-db7f9bf1f243", - "x-ms-correlation-request-id": "a8cc0a9b-86b4-4684-a564-4662e048258f", - "x-ms-ratelimit-remaining-subscription-reads": "11952", - "x-ms-routing-request-id": "EASTUS2:20220425T033209Z:a8cc0a9b-86b4-4684-a564-4662e048258f" + "x-ms-arm-service-request-id": "8aae69c3-96b2-4810-97d6-26dd0a43d4cf", + "x-ms-correlation-request-id": "4a68dc33-09c5-4931-a9a1-509269fcb640", + "x-ms-ratelimit-remaining-subscription-reads": "11949", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T090448Z:4a68dc33-09c5-4931-a9a1-509269fcb640" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/37f883ea-7e5f-4e81-9c33-2708fcf619e3?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b200c0f4-5b2d-4743-a3b7-a32cb4cc4d76?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -4138,7 +4246,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:33:48 GMT", + "Date": "Thu, 28 Apr 2022 09:06:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -4150,23 +4258,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "ab9bfc70-cc82-44b7-93ec-036f0dab4929", - "x-ms-correlation-request-id": "4afc5fa0-a42c-470b-84c4-9f8532ac42be", - "x-ms-ratelimit-remaining-subscription-reads": "11951", - "x-ms-routing-request-id": "EASTUS2:20220425T033349Z:4afc5fa0-a42c-470b-84c4-9f8532ac42be" + "x-ms-arm-service-request-id": "d19ed105-1d22-44de-9494-6d3f61fb4374", + "x-ms-correlation-request-id": "c997f863-e3de-45e2-87fe-200a2b91c3e7", + "x-ms-ratelimit-remaining-subscription-reads": "11948", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T090628Z:c997f863-e3de-45e2-87fe-200a2b91c3e7" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/37f883ea-7e5f-4e81-9c33-2708fcf619e3?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b200c0f4-5b2d-4743-a3b7-a32cb4cc4d76?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -4174,7 +4282,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:35:29 GMT", + "Date": "Thu, 28 Apr 2022 09:08:08 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -4186,23 +4294,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "60ec11ce-7473-4d72-8616-74bfebdfa443", - "x-ms-correlation-request-id": "956a3d99-44f3-4b09-8d8b-52e6064f8f63", - "x-ms-ratelimit-remaining-subscription-reads": "11950", - "x-ms-routing-request-id": "EASTUS2:20220425T033529Z:956a3d99-44f3-4b09-8d8b-52e6064f8f63" + "x-ms-arm-service-request-id": "18decbd7-8931-4ea3-ad60-e5f50cf83c21", + "x-ms-correlation-request-id": "4ef4d33d-a112-48ed-95a4-3d766a81ab88", + "x-ms-ratelimit-remaining-subscription-reads": "11947", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T090809Z:4ef4d33d-a112-48ed-95a4-3d766a81ab88" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/37f883ea-7e5f-4e81-9c33-2708fcf619e3?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b200c0f4-5b2d-4743-a3b7-a32cb4cc4d76?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -4210,7 +4318,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:37:09 GMT", + "Date": "Thu, 28 Apr 2022 09:09:49 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -4222,23 +4330,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "9d625fa9-0293-4786-a1b2-88f689351a5a", - "x-ms-correlation-request-id": "118bc815-e532-4b15-9e12-f3bc7423451f", - "x-ms-ratelimit-remaining-subscription-reads": "11949", - "x-ms-routing-request-id": "EASTUS2:20220425T033709Z:118bc815-e532-4b15-9e12-f3bc7423451f" + "x-ms-arm-service-request-id": "1a15b215-fc01-42da-8b35-03524b25bc0f", + "x-ms-correlation-request-id": "145d832f-2866-4d5c-8278-6f8dbe5cd4cb", + "x-ms-ratelimit-remaining-subscription-reads": "11946", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T090949Z:145d832f-2866-4d5c-8278-6f8dbe5cd4cb" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/37f883ea-7e5f-4e81-9c33-2708fcf619e3?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b200c0f4-5b2d-4743-a3b7-a32cb4cc4d76?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -4246,7 +4354,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:38:49 GMT", + "Date": "Thu, 28 Apr 2022 09:11:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -4257,10 +4365,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "e5592e6a-db35-4191-a3cb-8408d79c3676", - "x-ms-correlation-request-id": "72d1c567-7930-4aae-9911-e7f7f578377f", - "x-ms-ratelimit-remaining-subscription-reads": "11948", - "x-ms-routing-request-id": "EASTUS2:20220425T033849Z:72d1c567-7930-4aae-9911-e7f7f578377f" + "x-ms-arm-service-request-id": "69e5b75e-8304-4140-b694-2aae8e3f7504", + "x-ms-correlation-request-id": "5e7d5897-da33-4570-aa52-dfaad815ae6f", + "x-ms-ratelimit-remaining-subscription-reads": "11945", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T091129Z:5e7d5897-da33-4570-aa52-dfaad815ae6f" }, "ResponseBody": { "status": "Succeeded", @@ -4268,24 +4376,24 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/37f883ea-7e5f-4e81-9c33-2708fcf619e3?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/b200c0f4-5b2d-4743-a3b7-a32cb4cc4d76?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/37f883ea-7e5f-4e81-9c33-2708fcf619e3?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b200c0f4-5b2d-4743-a3b7-a32cb4cc4d76?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:38:49 GMT", + "Date": "Thu, 28 Apr 2022 09:11:29 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/37f883ea-7e5f-4e81-9c33-2708fcf619e3?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/b200c0f4-5b2d-4743-a3b7-a32cb4cc4d76?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -4295,10 +4403,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "f4c0674a-b8de-44b9-b942-cdfba6744e75", - "x-ms-correlation-request-id": "ce51f574-8a8c-4575-bf7b-f421923aa30f", - "x-ms-ratelimit-remaining-subscription-reads": "11947", - "x-ms-routing-request-id": "EASTUS2:20220425T033850Z:be2e2fad-3b3a-4bc5-a30d-9451e5b8e17d" + "x-ms-arm-service-request-id": "9d26b275-c7d5-4d91-8864-fbf9ca51aa5d", + "x-ms-correlation-request-id": "e42a984f-dd00-4f8a-ad4c-80c8f05b08cc", + "x-ms-ratelimit-remaining-subscription-reads": "11944", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T091129Z:05b1be2b-3da1-4b66-bd42-688e62f79a95" }, "ResponseBody": "null" }, @@ -4311,7 +4419,7 @@ "Connection": "keep-alive", "Content-Length": "46", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "tags": { @@ -4325,7 +4433,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:38:49 GMT", + "Date": "Thu, 28 Apr 2022 09:11:29 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -4337,15 +4445,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "4bd63e70-ec4e-490d-9723-b1e4d23dd05d", - "x-ms-correlation-request-id": "f1510f6f-3cfa-425d-938a-bb8e9c63ccaa", + "x-ms-arm-service-request-id": "42500b2d-852f-44ee-9caa-5d213109e4d0", + "x-ms-correlation-request-id": "8c8f385a-8eba-4901-b5af-4f0404117641", "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-routing-request-id": "EASTUS2:20220425T033850Z:f1510f6f-3cfa-425d-938a-bb8e9c63ccaa" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T091130Z:8c8f385a-8eba-4901-b5af-4f0404117641" }, "ResponseBody": { "name": "virtualnetworkgatewayname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworkGateways/virtualnetworkgatewayname", - "etag": "W/\u0022d4dbf745-0c08-414b-ad0f-0622978ee227\u0022", + "etag": "W/\u002285a1fe55-2aab-434e-b188-5e7a635857d1\u0022", "type": "Microsoft.Network/virtualNetworkGateways", "location": "eastus", "tags": { @@ -4354,14 +4462,14 @@ }, "properties": { "provisioningState": "Updating", - "resourceGuid": "e2ba41e8-94cb-4437-9884-07bb261a33e5", + "resourceGuid": "c7ca961b-ab52-4d65-a2ab-740bc758765f", "packetCaptureDiagnosticState": "None", "enablePrivateIpAddress": false, "ipConfigurations": [ { "name": "ipconfig", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworkGateways/virtualnetworkgatewayname/ipConfigurations/ipconfig", - "etag": "W/\u0022d4dbf745-0c08-414b-ad0f-0622978ee227\u0022", + "etag": "W/\u002285a1fe55-2aab-434e-b188-5e7a635857d1\u0022", "type": "Microsoft.Network/virtualNetworkGateways/ipConfigurations", "properties": { "provisioningState": "Updating", @@ -4410,7 +4518,7 @@ ], "customBgpIpAddresses": [], "tunnelIpAddresses": [ - "20.231.35.70" + "40.88.151.112" ] } ] @@ -4432,7 +4540,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -4440,7 +4548,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:38:59 GMT", + "Date": "Thu, 28 Apr 2022 09:11:39 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -4451,15 +4559,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "5ba73c6e-1fc7-4d00-8098-a96c6b5bc2ed", - "x-ms-correlation-request-id": "7322bb8a-c0a7-4368-9494-59361a03baed", - "x-ms-ratelimit-remaining-subscription-reads": "11946", - "x-ms-routing-request-id": "EASTUS2:20220425T033900Z:7322bb8a-c0a7-4368-9494-59361a03baed" + "x-ms-arm-service-request-id": "c7ba4288-0dc6-460b-a88e-2201234757e9", + "x-ms-correlation-request-id": "c1eb33a8-b269-4ede-8e88-95221c373872", + "x-ms-ratelimit-remaining-subscription-reads": "11943", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T091140Z:c1eb33a8-b269-4ede-8e88-95221c373872" }, "ResponseBody": { "name": "virtualnetworkgatewayname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworkGateways/virtualnetworkgatewayname", - "etag": "W/\u0022d4dbf745-0c08-414b-ad0f-0622978ee227\u0022", + "etag": "W/\u002285a1fe55-2aab-434e-b188-5e7a635857d1\u0022", "type": "Microsoft.Network/virtualNetworkGateways", "location": "eastus", "tags": { @@ -4468,14 +4576,14 @@ }, "properties": { "provisioningState": "Updating", - "resourceGuid": "e2ba41e8-94cb-4437-9884-07bb261a33e5", + "resourceGuid": "c7ca961b-ab52-4d65-a2ab-740bc758765f", "packetCaptureDiagnosticState": "None", "enablePrivateIpAddress": false, "ipConfigurations": [ { "name": "ipconfig", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworkGateways/virtualnetworkgatewayname/ipConfigurations/ipconfig", - "etag": "W/\u0022d4dbf745-0c08-414b-ad0f-0622978ee227\u0022", + "etag": "W/\u002285a1fe55-2aab-434e-b188-5e7a635857d1\u0022", "type": "Microsoft.Network/virtualNetworkGateways/ipConfigurations", "properties": { "provisioningState": "Updating", @@ -4513,7 +4621,7 @@ ], "customBgpIpAddresses": [], "tunnelIpAddresses": [ - "20.231.35.70" + "40.88.151.112" ] } ] @@ -4535,7 +4643,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -4543,7 +4651,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:39:30 GMT", + "Date": "Thu, 28 Apr 2022 09:12:09 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -4554,15 +4662,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "2b0ddf0d-1bbc-46b3-81cc-10961e207e95", - "x-ms-correlation-request-id": "4351e704-eca8-43c2-9848-1f02a747fbf8", - "x-ms-ratelimit-remaining-subscription-reads": "11945", - "x-ms-routing-request-id": "EASTUS2:20220425T033930Z:4351e704-eca8-43c2-9848-1f02a747fbf8" + "x-ms-arm-service-request-id": "968cfbde-d7a6-476f-a18f-556a92b76671", + "x-ms-correlation-request-id": "21b7b768-9bbd-41ba-91a8-bb38e97591e8", + "x-ms-ratelimit-remaining-subscription-reads": "11942", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T091210Z:21b7b768-9bbd-41ba-91a8-bb38e97591e8" }, "ResponseBody": { "name": "virtualnetworkgatewayname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworkGateways/virtualnetworkgatewayname", - "etag": "W/\u0022d4dbf745-0c08-414b-ad0f-0622978ee227\u0022", + "etag": "W/\u002285a1fe55-2aab-434e-b188-5e7a635857d1\u0022", "type": "Microsoft.Network/virtualNetworkGateways", "location": "eastus", "tags": { @@ -4571,14 +4679,14 @@ }, "properties": { "provisioningState": "Updating", - "resourceGuid": "e2ba41e8-94cb-4437-9884-07bb261a33e5", + "resourceGuid": "c7ca961b-ab52-4d65-a2ab-740bc758765f", "packetCaptureDiagnosticState": "None", "enablePrivateIpAddress": false, "ipConfigurations": [ { "name": "ipconfig", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworkGateways/virtualnetworkgatewayname/ipConfigurations/ipconfig", - "etag": "W/\u0022d4dbf745-0c08-414b-ad0f-0622978ee227\u0022", + "etag": "W/\u002285a1fe55-2aab-434e-b188-5e7a635857d1\u0022", "type": "Microsoft.Network/virtualNetworkGateways/ipConfigurations", "properties": { "provisioningState": "Updating", @@ -4616,7 +4724,7 @@ ], "customBgpIpAddresses": [], "tunnelIpAddresses": [ - "20.231.35.70" + "40.88.151.112" ] } ] @@ -4638,7 +4746,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -4646,7 +4754,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:40:00 GMT", + "Date": "Thu, 28 Apr 2022 09:12:40 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -4657,15 +4765,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "536830f2-a1c2-4334-8132-604c1e686c18", - "x-ms-correlation-request-id": "9a0d8b13-e283-402d-bf37-0b8137c5905e", - "x-ms-ratelimit-remaining-subscription-reads": "11944", - "x-ms-routing-request-id": "EASTUS2:20220425T034000Z:9a0d8b13-e283-402d-bf37-0b8137c5905e" + "x-ms-arm-service-request-id": "00f6a374-804a-40eb-a9f7-b8e63302a5b2", + "x-ms-correlation-request-id": "029bfbd3-080c-4380-9102-4a4b4a45834e", + "x-ms-ratelimit-remaining-subscription-reads": "11941", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T091240Z:029bfbd3-080c-4380-9102-4a4b4a45834e" }, "ResponseBody": { "name": "virtualnetworkgatewayname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworkGateways/virtualnetworkgatewayname", - "etag": "W/\u00225bda8527-905d-4173-91bb-fafa6f3ec4c9\u0022", + "etag": "W/\u002228cf1edf-730b-4598-855a-ea63cc49fbc0\u0022", "type": "Microsoft.Network/virtualNetworkGateways", "location": "eastus", "tags": { @@ -4674,14 +4782,14 @@ }, "properties": { "provisioningState": "Succeeded", - "resourceGuid": "e2ba41e8-94cb-4437-9884-07bb261a33e5", + "resourceGuid": "c7ca961b-ab52-4d65-a2ab-740bc758765f", "packetCaptureDiagnosticState": "None", "enablePrivateIpAddress": false, "ipConfigurations": [ { "name": "ipconfig", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworkGateways/virtualnetworkgatewayname/ipConfigurations/ipconfig", - "etag": "W/\u00225bda8527-905d-4173-91bb-fafa6f3ec4c9\u0022", + "etag": "W/\u002228cf1edf-730b-4598-855a-ea63cc49fbc0\u0022", "type": "Microsoft.Network/virtualNetworkGateways/ipConfigurations", "properties": { "provisioningState": "Succeeded", @@ -4719,7 +4827,7 @@ ], "customBgpIpAddresses": [], "tunnelIpAddresses": [ - "20.231.35.70" + "40.88.151.112" ] } ] @@ -4743,7 +4851,7 @@ "Connection": "keep-alive", "Content-Length": "46", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "tags": { @@ -4757,7 +4865,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:40:00 GMT", + "Date": "Thu, 28 Apr 2022 09:12:40 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -4768,15 +4876,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "5dbc44f0-4860-44e7-b651-262eb19c3fa0", - "x-ms-correlation-request-id": "cb19a283-4aa6-4ccc-8b9e-7b926b7f9df2", + "x-ms-arm-service-request-id": "0e8562e4-8576-4cc3-a38c-469884f58026", + "x-ms-correlation-request-id": "a457c850-e626-4de1-aaa1-214c75e03ead", "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-routing-request-id": "EASTUS2:20220425T034000Z:cb19a283-4aa6-4ccc-8b9e-7b926b7f9df2" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T091241Z:a457c850-e626-4de1-aaa1-214c75e03ead" }, "ResponseBody": { "name": "localnetworkgatewayname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/localNetworkGateways/localnetworkgatewayname", - "etag": "W/\u00221131f77e-b845-44a7-9054-c2a45336d752\u0022", + "etag": "W/\u00220fa6166c-c4a4-4c7a-95ac-ab79092f45ad\u0022", "type": "Microsoft.Network/localNetworkGateways", "location": "eastus", "tags": { @@ -4785,7 +4893,7 @@ }, "properties": { "provisioningState": "Succeeded", - "resourceGuid": "e5f0813e-5296-44a4-9dab-f7071f895040", + "resourceGuid": "27ea274e-d962-4939-a89e-7b2f5572f4a5", "localNetworkAddressSpace": { "addressPrefixes": [ "10.1.0.0/16" @@ -4804,7 +4912,7 @@ "Connection": "keep-alive", "Content-Length": "46", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "tags": { @@ -4818,7 +4926,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:40:00 GMT", + "Date": "Thu, 28 Apr 2022 09:12:41 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -4829,15 +4937,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "1abe1fbe-97d1-4bda-bf30-c8a43e76cae9", - "x-ms-correlation-request-id": "9f7eeecd-3d92-4933-8f47-3e4f6aa7e322", + "x-ms-arm-service-request-id": "225071e7-3a73-45b0-b314-2e33ce65d6a2", + "x-ms-correlation-request-id": "c2627fb9-a3b4-46de-b70c-f13f44474e6e", "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-routing-request-id": "EASTUS2:20220425T034001Z:9f7eeecd-3d92-4933-8f47-3e4f6aa7e322" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T091241Z:c2627fb9-a3b4-46de-b70c-f13f44474e6e" }, "ResponseBody": { "name": "virtualnetworkname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/virtualnetworkname", - "etag": "W/\u002227362858-b8ec-4760-a2cf-20eb0049f24a\u0022", + "etag": "W/\u00226b7cc57e-47af-44c6-bc90-1ded6fb2935c\u0022", "type": "Microsoft.Network/virtualNetworks", "location": "eastus", "tags": { @@ -4846,7 +4954,7 @@ }, "properties": { "provisioningState": "Succeeded", - "resourceGuid": "b1e37264-cda2-432c-961a-50223e2bf69c", + "resourceGuid": "aa2c809a-5f4f-4f46-97da-de521976c9db", "addressSpace": { "addressPrefixes": [ "10.0.0.0/16" @@ -4856,7 +4964,7 @@ { "name": "subnetname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/virtualnetworkname/subnets/subnetname", - "etag": "W/\u002227362858-b8ec-4760-a2cf-20eb0049f24a\u0022", + "etag": "W/\u00226b7cc57e-47af-44c6-bc90-1ded6fb2935c\u0022", "properties": { "provisioningState": "Succeeded", "addressPrefix": "10.0.0.0/24", @@ -4874,7 +4982,7 @@ { "name": "GatewaySubnet", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/virtualnetworkname/subnets/GatewaySubnet", - "etag": "W/\u002227362858-b8ec-4760-a2cf-20eb0049f24a\u0022", + "etag": "W/\u00226b7cc57e-47af-44c6-bc90-1ded6fb2935c\u0022", "properties": { "provisioningState": "Succeeded", "addressPrefix": "10.0.1.0/24", @@ -4894,10 +5002,10 @@ { "name": "virtualnetworkpeeringname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/virtualnetworkname/virtualNetworkPeerings/virtualnetworkpeeringname", - "etag": "W/\u002227362858-b8ec-4760-a2cf-20eb0049f24a\u0022", + "etag": "W/\u00226b7cc57e-47af-44c6-bc90-1ded6fb2935c\u0022", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "caa06691-9172-08ab-1bc9-bd5586e1f9de", + "resourceGuid": "b2c7c928-c7f8-0c9d-3478-66028f01c540", "peeringState": "Initiated", "peeringSyncLevel": "RemoteNotInSync", "remoteVirtualNetwork": { @@ -4937,7 +5045,7 @@ "Connection": "keep-alive", "Content-Length": "2", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": {}, "StatusCode": 200, @@ -4946,7 +5054,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:40:02 GMT", + "Date": "Thu, 28 Apr 2022 09:12:42 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -4957,20 +5065,20 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "641e93fe-a75b-435f-8d56-af9f6082abf4", - "x-ms-correlation-request-id": "65b93537-ff9b-4caf-b870-b5f31e06adbb", + "x-ms-arm-service-request-id": "2ac98556-90fc-4941-b228-8cf355e34909", + "x-ms-correlation-request-id": "e09720b3-efdf-4cf2-a8fd-beb512a03383", "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-routing-request-id": "EASTUS2:20220425T034002Z:65b93537-ff9b-4caf-b870-b5f31e06adbb" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T091242Z:e09720b3-efdf-4cf2-a8fd-beb512a03383" }, "ResponseBody": { "name": "connectionname", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/connections/connectionname", - "etag": "W/\u0022eb76363b-7d70-4523-ba7e-d008f8ba55b1\u0022", + "etag": "W/\u00222fe39fb2-e6aa-4894-9dc0-f01ccb11f3a7\u0022", "type": "Microsoft.Network/connections", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "0c4bc72c-8cb2-4c76-8e03-fbd02a2720bb", + "resourceGuid": "73c47da0-1e2c-4c87-abd7-4b80900d47cc", "packetCaptureDiagnosticState": "None", "virtualNetworkGateway1": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworkGateways/virtualnetworkgatewayname" @@ -4981,7 +5089,7 @@ "connectionType": "IPsec", "connectionProtocol": "IKEv2", "routingWeight": 0, - "sharedKey": "H9znQzSjxPNpZPeODdJVcgTKEgShQhhkeK3ZuPEebkyg1kU2aOIVeyFDeIJ2knsk78NCO6pt1PcbLyP0RWVQqRTbBUYssvFqNaCX1JqGbDdgmN5KXCWPp1VLgXy24aou", + "sharedKey": "glIhVIbljf6eFLd15dSHJxSqwYBnYOia2j93zEocjfPypeOvIgdqb8t6V8p9eHeeigXucCroqHWmvD8iE16jP1drYgIX5kro2a3ZF4jCY1KANORiwkLkEZtGCkPc6b20", "enableBgp": false, "useLocalAzureIpAddress": false, "usePolicyBasedTrafficSelectors": false, @@ -5004,18 +5112,18 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/78e79109-81b2-4c8f-aa7a-94a439849b7b?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/6e474bcb-b687-4a5e-ad7a-f19e10dcb231?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 03:40:02 GMT", + "Date": "Thu, 28 Apr 2022 09:12:43 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/78e79109-81b2-4c8f-aa7a-94a439849b7b?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/6e474bcb-b687-4a5e-ad7a-f19e10dcb231?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -5024,21 +5132,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "30a6af0b-9b93-4c20-9aad-4a0805896c7f", - "x-ms-correlation-request-id": "f7d138b4-7fcb-47e1-8f3e-0012e43ea4f9", + "x-ms-arm-service-request-id": "53caf696-0ca3-43fb-a844-4ab5df6e4d08", + "x-ms-correlation-request-id": "6242bc63-9aba-47ec-8405-f918a2c2e3b2", "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-routing-request-id": "EASTUS2:20220425T034002Z:f7d138b4-7fcb-47e1-8f3e-0012e43ea4f9" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T091243Z:6242bc63-9aba-47ec-8405-f918a2c2e3b2" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/78e79109-81b2-4c8f-aa7a-94a439849b7b?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/6e474bcb-b687-4a5e-ad7a-f19e10dcb231?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -5046,7 +5154,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:40:12 GMT", + "Date": "Thu, 28 Apr 2022 09:12:52 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -5058,23 +5166,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "b2d1c1e8-c660-4b7d-94d8-5bf297922505", - "x-ms-correlation-request-id": "904379ed-8a5c-400e-9176-6eb81abe7fd3", - "x-ms-ratelimit-remaining-subscription-reads": "11943", - "x-ms-routing-request-id": "EASTUS2:20220425T034012Z:904379ed-8a5c-400e-9176-6eb81abe7fd3" + "x-ms-arm-service-request-id": "05b0a454-228b-4170-bd53-b96294edbe1d", + "x-ms-correlation-request-id": "2c79ce76-ba93-466e-84dc-4ac29612952b", + "x-ms-ratelimit-remaining-subscription-reads": "11940", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T091253Z:2c79ce76-ba93-466e-84dc-4ac29612952b" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/78e79109-81b2-4c8f-aa7a-94a439849b7b?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/6e474bcb-b687-4a5e-ad7a-f19e10dcb231?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -5082,7 +5190,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:40:22 GMT", + "Date": "Thu, 28 Apr 2022 09:13:02 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "20", @@ -5094,23 +5202,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "4328d5a9-9424-4523-b225-53f133b34a0a", - "x-ms-correlation-request-id": "98213377-5ca0-4fc4-8878-d7a5a79a5143", - "x-ms-ratelimit-remaining-subscription-reads": "11942", - "x-ms-routing-request-id": "EASTUS2:20220425T034022Z:98213377-5ca0-4fc4-8878-d7a5a79a5143" + "x-ms-arm-service-request-id": "c28de4c1-c287-43dd-906b-15ca726477e1", + "x-ms-correlation-request-id": "658790a5-831e-439b-a79a-99251f2e8c6d", + "x-ms-ratelimit-remaining-subscription-reads": "11939", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T091303Z:658790a5-831e-439b-a79a-99251f2e8c6d" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/78e79109-81b2-4c8f-aa7a-94a439849b7b?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/6e474bcb-b687-4a5e-ad7a-f19e10dcb231?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -5118,7 +5226,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:40:43 GMT", + "Date": "Thu, 28 Apr 2022 09:13:22 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -5129,34 +5237,34 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "90a0be3d-6551-44a7-b90d-1dfae44ee136", - "x-ms-correlation-request-id": "b486fad4-5961-47d3-8241-ce96d1de3893", - "x-ms-ratelimit-remaining-subscription-reads": "11941", - "x-ms-routing-request-id": "EASTUS2:20220425T034043Z:b486fad4-5961-47d3-8241-ce96d1de3893" + "x-ms-arm-service-request-id": "7ff895d3-886b-4f56-b6e9-b7e2e6e9c930", + "x-ms-correlation-request-id": "b0daf550-c271-4b28-8004-d9c7cb24bafc", + "x-ms-ratelimit-remaining-subscription-reads": "11938", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T091323Z:b0daf550-c271-4b28-8004-d9c7cb24bafc" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/78e79109-81b2-4c8f-aa7a-94a439849b7b?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/6e474bcb-b687-4a5e-ad7a-f19e10dcb231?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/78e79109-81b2-4c8f-aa7a-94a439849b7b?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/6e474bcb-b687-4a5e-ad7a-f19e10dcb231?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:40:43 GMT", + "Date": "Thu, 28 Apr 2022 09:13:22 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/78e79109-81b2-4c8f-aa7a-94a439849b7b?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/6e474bcb-b687-4a5e-ad7a-f19e10dcb231?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -5164,10 +5272,10 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "30a6af0b-9b93-4c20-9aad-4a0805896c7f", - "x-ms-correlation-request-id": "f7d138b4-7fcb-47e1-8f3e-0012e43ea4f9", - "x-ms-ratelimit-remaining-subscription-reads": "11940", - "x-ms-routing-request-id": "EASTUS2:20220425T034043Z:8614c42c-851b-4e3d-ae75-a95297412042" + "x-ms-arm-service-request-id": "53caf696-0ca3-43fb-a844-4ab5df6e4d08", + "x-ms-correlation-request-id": "6242bc63-9aba-47ec-8405-f918a2c2e3b2", + "x-ms-ratelimit-remaining-subscription-reads": "11937", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T091323Z:f5dadafd-a9bc-4990-975a-08aec23fcde4" }, "ResponseBody": null }, @@ -5179,17 +5287,17 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/2aaca5ff-0fd9-401e-b8dd-8f3893c998e1?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/c4241681-407e-4ea4-a8d6-5aac57e9d5c2?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 03:40:43 GMT", + "Date": "Thu, 28 Apr 2022 09:13:22 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/2aaca5ff-0fd9-401e-b8dd-8f3893c998e1?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/c4241681-407e-4ea4-a8d6-5aac57e9d5c2?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -5198,21 +5306,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "9b283758-1495-4798-8a75-d2f895d648e8", - "x-ms-correlation-request-id": "298fb308-d76f-4a93-9bf6-3c4d990ea26f", + "x-ms-arm-service-request-id": "8ae0afa7-87ba-43f2-8a80-354dfe1c8ad0", + "x-ms-correlation-request-id": "e26b5a3e-b1d1-4ecf-b06d-16f65947c53f", "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-routing-request-id": "EASTUS2:20220425T034043Z:298fb308-d76f-4a93-9bf6-3c4d990ea26f" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T091323Z:e26b5a3e-b1d1-4ecf-b06d-16f65947c53f" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/2aaca5ff-0fd9-401e-b8dd-8f3893c998e1?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/c4241681-407e-4ea4-a8d6-5aac57e9d5c2?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -5220,7 +5328,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:40:53 GMT", + "Date": "Thu, 28 Apr 2022 09:13:32 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -5231,33 +5339,33 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "426836f0-3128-4be0-b0cb-73051ee32eba", - "x-ms-correlation-request-id": "23761632-37ba-400b-8b64-e48aec707ffb", - "x-ms-ratelimit-remaining-subscription-reads": "11939", - "x-ms-routing-request-id": "EASTUS2:20220425T034053Z:23761632-37ba-400b-8b64-e48aec707ffb" + "x-ms-arm-service-request-id": "0e044ed8-a12f-4a77-a1e3-b65f89cb66b7", + "x-ms-correlation-request-id": "48a73d09-4e93-4e5d-b0f8-579255a04876", + "x-ms-ratelimit-remaining-subscription-reads": "11936", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T091333Z:48a73d09-4e93-4e5d-b0f8-579255a04876" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/2aaca5ff-0fd9-401e-b8dd-8f3893c998e1?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/c4241681-407e-4ea4-a8d6-5aac57e9d5c2?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/2aaca5ff-0fd9-401e-b8dd-8f3893c998e1?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/c4241681-407e-4ea4-a8d6-5aac57e9d5c2?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:40:53 GMT", + "Date": "Thu, 28 Apr 2022 09:13:32 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/2aaca5ff-0fd9-401e-b8dd-8f3893c998e1?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/c4241681-407e-4ea4-a8d6-5aac57e9d5c2?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -5265,10 +5373,10 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "9b283758-1495-4798-8a75-d2f895d648e8", - "x-ms-correlation-request-id": "298fb308-d76f-4a93-9bf6-3c4d990ea26f", - "x-ms-ratelimit-remaining-subscription-reads": "11938", - "x-ms-routing-request-id": "EASTUS2:20220425T034053Z:3b464314-a77f-4b45-991c-3f8986669697" + "x-ms-arm-service-request-id": "8ae0afa7-87ba-43f2-8a80-354dfe1c8ad0", + "x-ms-correlation-request-id": "e26b5a3e-b1d1-4ecf-b06d-16f65947c53f", + "x-ms-ratelimit-remaining-subscription-reads": "11935", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T091333Z:eb0a7169-6a13-4221-884b-01e210a104bc" }, "ResponseBody": null }, @@ -5280,18 +5388,18 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/eae7012a-14ac-4710-8e28-88dfc15fc9d5?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/945c0495-fb30-43ff-8739-a2e082e896ad?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 03:40:53 GMT", + "Date": "Thu, 28 Apr 2022 09:13:33 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/eae7012a-14ac-4710-8e28-88dfc15fc9d5?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/945c0495-fb30-43ff-8739-a2e082e896ad?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -5300,21 +5408,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "29b77f53-efd2-41e2-992c-fac4d7a5694a", - "x-ms-correlation-request-id": "a3c9d139-c1c4-4883-ade2-d40c32c4812d", + "x-ms-arm-service-request-id": "1287ccbe-b710-490a-abe9-c552d90a7e4d", + "x-ms-correlation-request-id": "c635faa6-ae29-4b37-bf9e-8671f09f17b2", "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-routing-request-id": "EASTUS2:20220425T034053Z:a3c9d139-c1c4-4883-ade2-d40c32c4812d" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T091334Z:c635faa6-ae29-4b37-bf9e-8671f09f17b2" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/eae7012a-14ac-4710-8e28-88dfc15fc9d5?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/945c0495-fb30-43ff-8739-a2e082e896ad?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -5322,7 +5430,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:41:03 GMT", + "Date": "Thu, 28 Apr 2022 09:13:43 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -5334,23 +5442,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "83da01fd-6544-4bd1-9f6a-dc2da7339b96", - "x-ms-correlation-request-id": "a52336b3-9c74-49eb-b9f0-b7fd465ae14c", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-routing-request-id": "EASTUS2:20220425T034103Z:a52336b3-9c74-49eb-b9f0-b7fd465ae14c" + "x-ms-arm-service-request-id": "3cf561ee-88f9-4f9d-a128-453ecfb2198f", + "x-ms-correlation-request-id": "a2e4aa3d-c238-4f07-9e6a-70439059f8f3", + "x-ms-ratelimit-remaining-subscription-reads": "11934", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T091344Z:a2e4aa3d-c238-4f07-9e6a-70439059f8f3" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/eae7012a-14ac-4710-8e28-88dfc15fc9d5?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/945c0495-fb30-43ff-8739-a2e082e896ad?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -5358,7 +5466,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:41:13 GMT", + "Date": "Thu, 28 Apr 2022 09:13:54 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "20", @@ -5370,23 +5478,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "426cb948-fb42-4683-949e-3f6a929776fb", - "x-ms-correlation-request-id": "52584d57-6735-4338-a095-bf8afff11254", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-routing-request-id": "EASTUS2:20220425T034113Z:52584d57-6735-4338-a095-bf8afff11254" + "x-ms-arm-service-request-id": "f790ed47-3de1-4c46-90b9-22c004e1a13e", + "x-ms-correlation-request-id": "bdf8a2ce-f77e-4761-bed4-0e073eb9fb5b", + "x-ms-ratelimit-remaining-subscription-reads": "11933", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T091354Z:bdf8a2ce-f77e-4761-bed4-0e073eb9fb5b" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/eae7012a-14ac-4710-8e28-88dfc15fc9d5?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/945c0495-fb30-43ff-8739-a2e082e896ad?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -5394,7 +5502,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:41:33 GMT", + "Date": "Thu, 28 Apr 2022 09:14:13 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "20", @@ -5406,23 +5514,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "d2ceac88-60dc-40e0-a128-b18a35051b27", - "x-ms-correlation-request-id": "c40d67f1-9e79-43b0-8e19-5b18ad903f4e", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-routing-request-id": "EASTUS2:20220425T034133Z:c40d67f1-9e79-43b0-8e19-5b18ad903f4e" + "x-ms-arm-service-request-id": "d8997d14-2974-4723-8785-cf6e8e953128", + "x-ms-correlation-request-id": "f38e8799-b1ae-436a-9e18-b265a9747130", + "x-ms-ratelimit-remaining-subscription-reads": "11932", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T091414Z:f38e8799-b1ae-436a-9e18-b265a9747130" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/eae7012a-14ac-4710-8e28-88dfc15fc9d5?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/945c0495-fb30-43ff-8739-a2e082e896ad?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -5430,7 +5538,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:41:52 GMT", + "Date": "Thu, 28 Apr 2022 09:14:33 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "40", @@ -5442,23 +5550,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "f7f4513f-49be-437f-85c5-5cd455588123", - "x-ms-correlation-request-id": "72ee4ca1-d3a9-485c-866e-05f8242969c2", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-routing-request-id": "EASTUS2:20220425T034153Z:72ee4ca1-d3a9-485c-866e-05f8242969c2" + "x-ms-arm-service-request-id": "5a5da970-5ad0-4abb-9fe3-9a3b14b317e1", + "x-ms-correlation-request-id": "ebb0e574-18d8-44ea-819e-e154d996af32", + "x-ms-ratelimit-remaining-subscription-reads": "11931", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T091434Z:ebb0e574-18d8-44ea-819e-e154d996af32" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/eae7012a-14ac-4710-8e28-88dfc15fc9d5?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/945c0495-fb30-43ff-8739-a2e082e896ad?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -5466,7 +5574,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:42:33 GMT", + "Date": "Thu, 28 Apr 2022 09:15:13 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "40", @@ -5478,23 +5586,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "ff69594f-fb77-4916-84d7-010d397a6deb", - "x-ms-correlation-request-id": "53e179f7-8ace-4689-88c8-d375b1e9721e", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-routing-request-id": "EASTUS2:20220425T034233Z:53e179f7-8ace-4689-88c8-d375b1e9721e" + "x-ms-arm-service-request-id": "ea5a72a1-03d4-4b78-8eee-9b78af59ecf4", + "x-ms-correlation-request-id": "86332064-ad2b-41f8-9418-848b0396980d", + "x-ms-ratelimit-remaining-subscription-reads": "11930", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T091514Z:86332064-ad2b-41f8-9418-848b0396980d" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/eae7012a-14ac-4710-8e28-88dfc15fc9d5?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/945c0495-fb30-43ff-8739-a2e082e896ad?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -5502,7 +5610,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:43:13 GMT", + "Date": "Thu, 28 Apr 2022 09:15:54 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "80", @@ -5514,23 +5622,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "4a299b27-5bf3-48c6-898f-79f550d0c6c0", - "x-ms-correlation-request-id": "186fc181-9a9d-45f1-a76b-8a5e3edf3880", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-routing-request-id": "EASTUS2:20220425T034314Z:186fc181-9a9d-45f1-a76b-8a5e3edf3880" + "x-ms-arm-service-request-id": "83c9f5a0-fe7c-42c5-a915-3910c9eb9545", + "x-ms-correlation-request-id": "f50df161-4768-4c43-9396-5ebad0f3d2b7", + "x-ms-ratelimit-remaining-subscription-reads": "11929", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T091554Z:f50df161-4768-4c43-9396-5ebad0f3d2b7" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/eae7012a-14ac-4710-8e28-88dfc15fc9d5?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/945c0495-fb30-43ff-8739-a2e082e896ad?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -5538,7 +5646,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:44:33 GMT", + "Date": "Thu, 28 Apr 2022 09:17:14 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "160", @@ -5550,23 +5658,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "4d4843d1-ae03-4d6e-9cf2-f546d1568168", - "x-ms-correlation-request-id": "c5a815f0-151a-40cb-87b8-d10560c5e9f2", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-routing-request-id": "EASTUS2:20220425T034434Z:c5a815f0-151a-40cb-87b8-d10560c5e9f2" + "x-ms-arm-service-request-id": "41cb3b24-a951-46dc-b28f-ae06c06c6946", + "x-ms-correlation-request-id": "aa11ef2c-edca-46ad-9c2c-28043a07545f", + "x-ms-ratelimit-remaining-subscription-reads": "11928", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T091714Z:aa11ef2c-edca-46ad-9c2c-28043a07545f" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/eae7012a-14ac-4710-8e28-88dfc15fc9d5?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/945c0495-fb30-43ff-8739-a2e082e896ad?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -5574,7 +5682,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:47:14 GMT", + "Date": "Thu, 28 Apr 2022 09:19:54 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -5586,23 +5694,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "917a628d-6325-4b8c-952a-3343a9dbe7f7", - "x-ms-correlation-request-id": "8ff24ce8-1156-41ac-8e3b-c3c3ccde80f9", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-routing-request-id": "EASTUS2:20220425T034714Z:8ff24ce8-1156-41ac-8e3b-c3c3ccde80f9" + "x-ms-arm-service-request-id": "262218f3-56f3-474c-9265-824ad7e40f84", + "x-ms-correlation-request-id": "b29b9f8e-6c8f-4bdb-b02a-d52d65b295fc", + "x-ms-ratelimit-remaining-subscription-reads": "11927", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T091955Z:b29b9f8e-6c8f-4bdb-b02a-d52d65b295fc" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/eae7012a-14ac-4710-8e28-88dfc15fc9d5?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/945c0495-fb30-43ff-8739-a2e082e896ad?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -5610,7 +5718,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:48:54 GMT", + "Date": "Thu, 28 Apr 2022 09:21:34 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -5621,34 +5729,34 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "315b11e4-e713-402c-91ec-48192cbbe818", - "x-ms-correlation-request-id": "921d4db1-cff8-45fe-803f-85060042373f", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-routing-request-id": "EASTUS2:20220425T034854Z:921d4db1-cff8-45fe-803f-85060042373f" + "x-ms-arm-service-request-id": "03979151-5981-464d-910f-f56d0d985077", + "x-ms-correlation-request-id": "83cbf35b-51d2-4c22-be83-a2dfae5307fa", + "x-ms-ratelimit-remaining-subscription-reads": "11926", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092135Z:83cbf35b-51d2-4c22-be83-a2dfae5307fa" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/eae7012a-14ac-4710-8e28-88dfc15fc9d5?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/945c0495-fb30-43ff-8739-a2e082e896ad?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/eae7012a-14ac-4710-8e28-88dfc15fc9d5?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/945c0495-fb30-43ff-8739-a2e082e896ad?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:48:54 GMT", + "Date": "Thu, 28 Apr 2022 09:21:34 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/eae7012a-14ac-4710-8e28-88dfc15fc9d5?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/945c0495-fb30-43ff-8739-a2e082e896ad?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -5656,10 +5764,10 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "29b77f53-efd2-41e2-992c-fac4d7a5694a", - "x-ms-correlation-request-id": "a3c9d139-c1c4-4883-ade2-d40c32c4812d", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-routing-request-id": "EASTUS2:20220425T034854Z:192adcd2-3972-44a0-bf83-ab632a3d62e3" + "x-ms-arm-service-request-id": "1287ccbe-b710-490a-abe9-c552d90a7e4d", + "x-ms-correlation-request-id": "c635faa6-ae29-4b37-bf9e-8671f09f17b2", + "x-ms-ratelimit-remaining-subscription-reads": "11925", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092135Z:46967546-6b2c-410a-a1ab-860bf1f7b94d" }, "ResponseBody": null }, @@ -5671,20 +5779,20 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Cache-Control": "no-cache", - "Date": "Mon, 25 Apr 2022 03:48:54 GMT", + "Date": "Thu, 28 Apr 2022 09:21:34 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c824bdad-0644-4e16-b4a1-fa1bfe55ac05", + "x-ms-correlation-request-id": "6b01ef45-47d2-49be-aaea-28a878f8fcb0", "x-ms-ratelimit-remaining-subscription-deletes": "14995", - "x-ms-routing-request-id": "EASTUS2:20220425T034854Z:c824bdad-0644-4e16-b4a1-fa1bfe55ac05" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092135Z:6b01ef45-47d2-49be-aaea-28a878f8fcb0" }, "ResponseBody": null }, @@ -5696,20 +5804,20 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Cache-Control": "no-cache", - "Date": "Mon, 25 Apr 2022 03:48:54 GMT", + "Date": "Thu, 28 Apr 2022 09:21:34 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "750f602d-f7d8-4735-b178-9f923d53f406", + "x-ms-correlation-request-id": "5a7cf67c-bad0-4342-b138-2eeb64be6517", "x-ms-ratelimit-remaining-subscription-deletes": "14994", - "x-ms-routing-request-id": "EASTUS2:20220425T034854Z:750f602d-f7d8-4735-b178-9f923d53f406" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092135Z:5a7cf67c-bad0-4342-b138-2eeb64be6517" }, "ResponseBody": null }, @@ -5721,20 +5829,20 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Cache-Control": "no-cache", - "Date": "Mon, 25 Apr 2022 03:48:54 GMT", + "Date": "Thu, 28 Apr 2022 09:21:34 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "9ec66b58-1705-44ad-bc6a-279fb398dcec", + "x-ms-correlation-request-id": "489748c4-f5d7-4c1d-a8cf-65559bc8ba68", "x-ms-ratelimit-remaining-subscription-deletes": "14993", - "x-ms-routing-request-id": "EASTUS2:20220425T034854Z:9ec66b58-1705-44ad-bc6a-279fb398dcec" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092135Z:489748c4-f5d7-4c1d-a8cf-65559bc8ba68" }, "ResponseBody": null }, @@ -5746,18 +5854,18 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b7649121-186b-4772-ad47-fa771d362e02?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/272df494-d675-493b-8c9d-37d290ae3e98?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 03:48:54 GMT", + "Date": "Thu, 28 Apr 2022 09:21:35 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/b7649121-186b-4772-ad47-fa771d362e02?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/272df494-d675-493b-8c9d-37d290ae3e98?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -5766,21 +5874,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "c27edeb7-72a2-43d3-96d0-19ce558d3a10", - "x-ms-correlation-request-id": "2faf30d4-07e7-47f2-a32e-e665cf50afd9", + "x-ms-arm-service-request-id": "66d7f85d-970a-404e-bab5-ccd9168b33da", + "x-ms-correlation-request-id": "08e93873-cd34-4edd-bbad-66fea61465b2", "x-ms-ratelimit-remaining-subscription-deletes": "14992", - "x-ms-routing-request-id": "EASTUS2:20220425T034854Z:2faf30d4-07e7-47f2-a32e-e665cf50afd9" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092136Z:08e93873-cd34-4edd-bbad-66fea61465b2" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b7649121-186b-4772-ad47-fa771d362e02?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/272df494-d675-493b-8c9d-37d290ae3e98?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -5788,7 +5896,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:49:04 GMT", + "Date": "Thu, 28 Apr 2022 09:21:46 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -5799,34 +5907,34 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "0bcd37c4-7610-459f-8fc7-f2f84b490915", - "x-ms-correlation-request-id": "b129a202-c209-4113-b6db-e3c956b85089", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-routing-request-id": "EASTUS2:20220425T034905Z:b129a202-c209-4113-b6db-e3c956b85089" + "x-ms-arm-service-request-id": "08acb17a-4715-42bb-bc10-dc3d9e5e5c46", + "x-ms-correlation-request-id": "91a87e10-1ab4-42b0-8fbf-b800a8c5a7e8", + "x-ms-ratelimit-remaining-subscription-reads": "11924", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092146Z:91a87e10-1ab4-42b0-8fbf-b800a8c5a7e8" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/b7649121-186b-4772-ad47-fa771d362e02?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/272df494-d675-493b-8c9d-37d290ae3e98?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b7649121-186b-4772-ad47-fa771d362e02?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/272df494-d675-493b-8c9d-37d290ae3e98?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:49:04 GMT", + "Date": "Thu, 28 Apr 2022 09:21:46 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/b7649121-186b-4772-ad47-fa771d362e02?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/272df494-d675-493b-8c9d-37d290ae3e98?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -5834,10 +5942,10 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "c27edeb7-72a2-43d3-96d0-19ce558d3a10", - "x-ms-correlation-request-id": "2faf30d4-07e7-47f2-a32e-e665cf50afd9", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-routing-request-id": "EASTUS2:20220425T034905Z:6ec9339b-c736-49ec-9ee9-2f065301bdab" + "x-ms-arm-service-request-id": "66d7f85d-970a-404e-bab5-ccd9168b33da", + "x-ms-correlation-request-id": "08e93873-cd34-4edd-bbad-66fea61465b2", + "x-ms-ratelimit-remaining-subscription-reads": "11923", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092146Z:ff0ba538-2d78-4a68-b12b-6711289b5523" }, "ResponseBody": null }, @@ -5849,18 +5957,18 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/8034f6ed-1dee-4061-815a-d5f0326cf32d?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/fc62af9c-750c-4214-af91-18e1d300aa7b?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 03:49:06 GMT", + "Date": "Thu, 28 Apr 2022 09:21:48 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/8034f6ed-1dee-4061-815a-d5f0326cf32d?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/fc62af9c-750c-4214-af91-18e1d300aa7b?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "4", "Server": [ @@ -5869,21 +5977,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "42c64a29-85c8-4c98-9aa5-630649b5d9d3", - "x-ms-correlation-request-id": "7ffc5d45-963f-41cc-8b65-5265aff1d446", + "x-ms-arm-service-request-id": "05d1a1db-db7e-401f-adeb-0dad77d8be58", + "x-ms-correlation-request-id": "7341c177-94d5-4f90-85be-72257011c018", "x-ms-ratelimit-remaining-subscription-deletes": "14991", - "x-ms-routing-request-id": "EASTUS2:20220425T034906Z:7ffc5d45-963f-41cc-8b65-5265aff1d446" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092148Z:7341c177-94d5-4f90-85be-72257011c018" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/8034f6ed-1dee-4061-815a-d5f0326cf32d?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/fc62af9c-750c-4214-af91-18e1d300aa7b?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -5891,7 +5999,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:49:10 GMT", + "Date": "Thu, 28 Apr 2022 09:21:52 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -5902,35 +6010,35 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "504ccd35-fe3c-4d2e-b2be-1ba13ea0fc22", - "x-ms-correlation-request-id": "19e71854-cda9-4aac-abd8-6c5d5779cafd", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-routing-request-id": "EASTUS2:20220425T034910Z:19e71854-cda9-4aac-abd8-6c5d5779cafd" + "x-ms-arm-service-request-id": "519b71f4-c13f-482a-a2e0-aa10b7a7f050", + "x-ms-correlation-request-id": "70fd5f77-2cc7-450d-a510-9f79417056f3", + "x-ms-ratelimit-remaining-subscription-reads": "11922", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092152Z:70fd5f77-2cc7-450d-a510-9f79417056f3" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/8034f6ed-1dee-4061-815a-d5f0326cf32d?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/fc62af9c-750c-4214-af91-18e1d300aa7b?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/8034f6ed-1dee-4061-815a-d5f0326cf32d?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/fc62af9c-750c-4214-af91-18e1d300aa7b?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:49:10 GMT", + "Date": "Thu, 28 Apr 2022 09:21:52 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/8034f6ed-1dee-4061-815a-d5f0326cf32d?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/fc62af9c-750c-4214-af91-18e1d300aa7b?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -5940,10 +6048,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "42c64a29-85c8-4c98-9aa5-630649b5d9d3", - "x-ms-correlation-request-id": "7ffc5d45-963f-41cc-8b65-5265aff1d446", - "x-ms-ratelimit-remaining-subscription-reads": "11924", - "x-ms-routing-request-id": "EASTUS2:20220425T034910Z:950fbce1-63f7-4e6a-9cfe-1ed10122f696" + "x-ms-arm-service-request-id": "05d1a1db-db7e-401f-adeb-0dad77d8be58", + "x-ms-correlation-request-id": "7341c177-94d5-4f90-85be-72257011c018", + "x-ms-ratelimit-remaining-subscription-reads": "11921", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092152Z:df0a6546-483c-4fce-bc66-be0e84a5d7d0" }, "ResponseBody": "null" }, @@ -5955,17 +6063,17 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/8cd58dea-11f7-4a09-a2b0-1e6554d19a36?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/006c606d-cc98-46bf-8bd5-921ca0f66d84?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 03:49:10 GMT", + "Date": "Thu, 28 Apr 2022 09:21:52 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/8cd58dea-11f7-4a09-a2b0-1e6554d19a36?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/006c606d-cc98-46bf-8bd5-921ca0f66d84?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -5974,21 +6082,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "2abb980d-c15f-4824-bc88-5735a6da2b10", - "x-ms-correlation-request-id": "8173182b-bf88-41cc-8290-2b24b645b040", + "x-ms-arm-service-request-id": "de24d4cd-4c4e-4479-b1b7-1a0ac5e98b46", + "x-ms-correlation-request-id": "8b687216-1ee5-40d9-88bf-9ad2126abaa3", "x-ms-ratelimit-remaining-subscription-deletes": "14990", - "x-ms-routing-request-id": "EASTUS2:20220425T034910Z:8173182b-bf88-41cc-8290-2b24b645b040" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092152Z:8b687216-1ee5-40d9-88bf-9ad2126abaa3" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/8cd58dea-11f7-4a09-a2b0-1e6554d19a36?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/006c606d-cc98-46bf-8bd5-921ca0f66d84?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -5996,7 +6104,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:49:20 GMT", + "Date": "Thu, 28 Apr 2022 09:22:02 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -6007,33 +6115,33 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "11db15df-f8e1-4cf7-bbd5-bfc84f706130", - "x-ms-correlation-request-id": "77832377-4723-49dd-b7be-6098056b8139", - "x-ms-ratelimit-remaining-subscription-reads": "11923", - "x-ms-routing-request-id": "EASTUS2:20220425T034920Z:77832377-4723-49dd-b7be-6098056b8139" + "x-ms-arm-service-request-id": "4f6091b3-2c8b-479c-9acf-7f31f5505cf6", + "x-ms-correlation-request-id": "6156b9f8-3de4-46c0-9eff-a61fafbd4422", + "x-ms-ratelimit-remaining-subscription-reads": "11920", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092202Z:6156b9f8-3de4-46c0-9eff-a61fafbd4422" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/8cd58dea-11f7-4a09-a2b0-1e6554d19a36?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/006c606d-cc98-46bf-8bd5-921ca0f66d84?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/8cd58dea-11f7-4a09-a2b0-1e6554d19a36?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/006c606d-cc98-46bf-8bd5-921ca0f66d84?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:49:20 GMT", + "Date": "Thu, 28 Apr 2022 09:22:02 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/8cd58dea-11f7-4a09-a2b0-1e6554d19a36?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/006c606d-cc98-46bf-8bd5-921ca0f66d84?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -6041,10 +6149,10 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "2abb980d-c15f-4824-bc88-5735a6da2b10", - "x-ms-correlation-request-id": "8173182b-bf88-41cc-8290-2b24b645b040", - "x-ms-ratelimit-remaining-subscription-reads": "11922", - "x-ms-routing-request-id": "EASTUS2:20220425T034921Z:5fd435b2-2dc5-4b68-ae61-813a10aeb35d" + "x-ms-arm-service-request-id": "de24d4cd-4c4e-4479-b1b7-1a0ac5e98b46", + "x-ms-correlation-request-id": "8b687216-1ee5-40d9-88bf-9ad2126abaa3", + "x-ms-ratelimit-remaining-subscription-reads": "11919", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092202Z:e3f09068-8b62-4eb2-8532-ebbcf7426cf5" }, "ResponseBody": null }, @@ -6056,18 +6164,18 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b46ae8da-42df-4dae-b2c4-e623a1478e74?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/7095821b-3b6c-46b4-9a70-c41f8d48c2c1?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 03:49:20 GMT", + "Date": "Thu, 28 Apr 2022 09:22:02 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/b46ae8da-42df-4dae-b2c4-e623a1478e74?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/7095821b-3b6c-46b4-9a70-c41f8d48c2c1?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -6076,21 +6184,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "97e99779-7c7b-4b74-9715-22e04efb1980", - "x-ms-correlation-request-id": "577b18a4-ff0d-47f2-8efd-094ae3b709a2", + "x-ms-arm-service-request-id": "7b2e85ab-f025-4a41-b531-9ea9d182008b", + "x-ms-correlation-request-id": "71f80262-e504-4aba-b342-b57195a804a2", "x-ms-ratelimit-remaining-subscription-deletes": "14989", - "x-ms-routing-request-id": "EASTUS2:20220425T034921Z:577b18a4-ff0d-47f2-8efd-094ae3b709a2" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092202Z:71f80262-e504-4aba-b342-b57195a804a2" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b46ae8da-42df-4dae-b2c4-e623a1478e74?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/7095821b-3b6c-46b4-9a70-c41f8d48c2c1?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -6098,7 +6206,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:49:30 GMT", + "Date": "Thu, 28 Apr 2022 09:22:12 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -6109,34 +6217,34 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "b50656ac-5485-488c-a6e4-fd7f6795a2d6", - "x-ms-correlation-request-id": "6584cc54-bf1a-4d51-9b94-e621cbb7edb7", - "x-ms-ratelimit-remaining-subscription-reads": "11921", - "x-ms-routing-request-id": "EASTUS2:20220425T034931Z:6584cc54-bf1a-4d51-9b94-e621cbb7edb7" + "x-ms-arm-service-request-id": "06218c09-c66c-4da9-b91a-7375f6ccbec2", + "x-ms-correlation-request-id": "ba90b8d6-5155-40f4-9182-82c448815158", + "x-ms-ratelimit-remaining-subscription-reads": "11918", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092213Z:ba90b8d6-5155-40f4-9182-82c448815158" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/b46ae8da-42df-4dae-b2c4-e623a1478e74?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/7095821b-3b6c-46b4-9a70-c41f8d48c2c1?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b46ae8da-42df-4dae-b2c4-e623a1478e74?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/7095821b-3b6c-46b4-9a70-c41f8d48c2c1?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:49:30 GMT", + "Date": "Thu, 28 Apr 2022 09:22:12 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/b46ae8da-42df-4dae-b2c4-e623a1478e74?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/7095821b-3b6c-46b4-9a70-c41f8d48c2c1?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -6144,10 +6252,10 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "97e99779-7c7b-4b74-9715-22e04efb1980", - "x-ms-correlation-request-id": "577b18a4-ff0d-47f2-8efd-094ae3b709a2", - "x-ms-ratelimit-remaining-subscription-reads": "11920", - "x-ms-routing-request-id": "EASTUS2:20220425T034931Z:65ecb2b8-73ef-47a1-96ef-36348b4d16c2" + "x-ms-arm-service-request-id": "7b2e85ab-f025-4a41-b531-9ea9d182008b", + "x-ms-correlation-request-id": "71f80262-e504-4aba-b342-b57195a804a2", + "x-ms-ratelimit-remaining-subscription-reads": "11917", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092213Z:90e1891a-f107-44a3-9527-db6831f752dc" }, "ResponseBody": null } diff --git a/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_endpoint.pyTestMgmtNetworktest_network.json b/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_endpoint.pyTestMgmtNetworktest_network.json index f30c6fbbd32d..95e83c235716 100644 --- a/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_endpoint.pyTestMgmtNetworktest_network.json +++ b/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_endpoint.pyTestMgmtNetworktest_network.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -17,12 +17,12 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "1753", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:35:18 GMT", + "Date": "Thu, 28 Apr 2022 09:22:47 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12651.7 - NCUS ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - NCUS ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -101,7 +101,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -111,12 +111,12 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "945", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:35:18 GMT", + "Date": "Thu, 28 Apr 2022 09:22:47 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12707.9 - KRSLR2 ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - EUS ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -172,28 +172,28 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "client-request-id": "7fc6b3b1-9791-435b-9670-19a06f31a8bf", + "client-request-id": "9c90fc42-544a-4b72-a909-036f4490b11a", "Connection": "keep-alive", - "Content-Length": "289", + "Content-Length": "286", "Content-Type": "application/x-www-form-urlencoded", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.7.3 (Windows-10-10.0.22581-SP0)", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", - "x-client-os": "win32", + "x-client-os": "linux", "x-client-sku": "MSAL.Python", "x-client-ver": "1.17.0", "x-ms-lib-capability": "retry-after, h429" }, - "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q~IsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "RequestBody": "client_id=8c41a920-007a-4844-a189-2d0efe39f51e\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=o0XWF_siD-FhI.5AE83-u0GaQHW_GP7cjy\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "client-request-id": "7fc6b3b1-9791-435b-9670-19a06f31a8bf", + "client-request-id": "9c90fc42-544a-4b72-a909-036f4490b11a", "Content-Length": "93", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:35:18 GMT", + "Date": "Thu, 28 Apr 2022 09:22:48 GMT", "Expires": "-1", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Pragma": "no-cache", @@ -201,7 +201,7 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", - "x-ms-ests-server": "2.1.12651.7 - EUS ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - WUS2 ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -220,7 +220,7 @@ "Connection": "keep-alive", "Content-Length": "92", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "eastus", @@ -235,11 +235,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/5873cc04-e52e-4c9d-a349-adda3f70ee47?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/796c006c-82b0-495e-a2c0-7447f4c0e42f?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "612", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:35:26 GMT", + "Date": "Thu, 28 Apr 2022 09:22:48 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "3", @@ -249,20 +249,20 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "b37462d5-f19a-4f94-a993-ff0337223142", - "x-ms-correlation-request-id": "0f6146d2-a0bd-4c6b-8749-48473e60a487", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013526Z:0f6146d2-a0bd-4c6b-8749-48473e60a487" + "x-ms-arm-service-request-id": "cc013734-0225-47e2-b32a-97c236eeee77", + "x-ms-correlation-request-id": "a8c436ac-3263-459d-aca0-8d785fc4e64e", + "x-ms-ratelimit-remaining-subscription-writes": "1191", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092249Z:a8c436ac-3263-459d-aca0-8d785fc4e64e" }, "ResponseBody": { "name": "virtualnetwork", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/virtualnetwork", - "etag": "W/\u002224eee61b-27a5-4b42-991b-5e23e40111c9\u0022", + "etag": "W/\u0022dc7a5a7e-a8c0-466c-a98e-af620d621716\u0022", "type": "Microsoft.Network/virtualNetworks", "location": "eastus", "properties": { "provisioningState": "Updating", - "resourceGuid": "7b252fad-830c-438a-98df-b0e6c553406d", + "resourceGuid": "69132fec-49bd-4c5f-aa1f-fe8121bc2249", "addressSpace": { "addressPrefixes": [ "10.0.0.0/16" @@ -275,13 +275,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/5873cc04-e52e-4c9d-a349-adda3f70ee47?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/796c006c-82b0-495e-a2c0-7447f4c0e42f?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -289,7 +289,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:35:30 GMT", + "Date": "Thu, 28 Apr 2022 09:22:51 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -300,10 +300,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "73ad8512-8a1a-4e0a-8a83-538e1d4c6969", - "x-ms-correlation-request-id": "2e59b6e6-5dae-47a5-a7a9-d14923a696ae", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013530Z:2e59b6e6-5dae-47a5-a7a9-d14923a696ae" + "x-ms-arm-service-request-id": "f12d3968-58f0-4410-be6e-ad0eeb2afc13", + "x-ms-correlation-request-id": "efabb86a-b052-4068-a529-eb239990c7e7", + "x-ms-ratelimit-remaining-subscription-reads": "11916", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092252Z:efabb86a-b052-4068-a529-eb239990c7e7" }, "ResponseBody": { "status": "Succeeded" @@ -316,7 +316,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -324,8 +324,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:35:30 GMT", - "ETag": "W/\u0022a23e086d-535c-4360-8e9b-7eb46bc6b131\u0022", + "Date": "Thu, 28 Apr 2022 09:22:51 GMT", + "ETag": "W/\u0022424d3cc5-62c6-48bb-b571-ef6b885a7af5\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -336,20 +336,20 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "fb1dbd81-4b3c-4e15-a8e6-cfa8e97578be", - "x-ms-correlation-request-id": "8457ac06-9496-4b96-82e2-ae304414f954", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013530Z:8457ac06-9496-4b96-82e2-ae304414f954" + "x-ms-arm-service-request-id": "dc8478e2-63a0-41eb-aa1c-00f404ae7dc4", + "x-ms-correlation-request-id": "876fbc84-e0cd-4774-a734-cea704aa6792", + "x-ms-ratelimit-remaining-subscription-reads": "11915", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092252Z:876fbc84-e0cd-4774-a734-cea704aa6792" }, "ResponseBody": { "name": "virtualnetwork", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/virtualnetwork", - "etag": "W/\u0022a23e086d-535c-4360-8e9b-7eb46bc6b131\u0022", + "etag": "W/\u0022424d3cc5-62c6-48bb-b571-ef6b885a7af5\u0022", "type": "Microsoft.Network/virtualNetworks", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "7b252fad-830c-438a-98df-b0e6c553406d", + "resourceGuid": "69132fec-49bd-4c5f-aa1f-fe8121bc2249", "addressSpace": { "addressPrefixes": [ "10.0.0.0/16" @@ -370,7 +370,7 @@ "Connection": "keep-alive", "Content-Length": "97", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "properties": { @@ -380,11 +380,11 @@ }, "StatusCode": 201, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/4a7f057d-a486-4406-a3ce-70a486aca1a4?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/58221e43-d193-4c6a-8680-be1c91e4822f?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "526", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:35:30 GMT", + "Date": "Thu, 28 Apr 2022 09:22:51 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "3", @@ -394,15 +394,15 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "3f304fa4-135f-4c13-b472-6b2530775d2c", - "x-ms-correlation-request-id": "a9d23657-3392-45a9-b06f-b2ab88b4fcd3", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013530Z:a9d23657-3392-45a9-b06f-b2ab88b4fcd3" + "x-ms-arm-service-request-id": "8120e4c9-c8bf-4bd0-8745-114c12dfea84", + "x-ms-correlation-request-id": "a5056114-fa84-4d68-8937-8cac35b8d2cc", + "x-ms-ratelimit-remaining-subscription-writes": "1190", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092252Z:a5056114-fa84-4d68-8937-8cac35b8d2cc" }, "ResponseBody": { "name": "subnet1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/virtualnetwork/subnets/subnet1", - "etag": "W/\u0022a7f0dda3-6e1e-4d26-b5f6-b8c0787bf042\u0022", + "etag": "W/\u00221da4c54d-0d26-4699-8b84-e9e545424f81\u0022", "properties": { "provisioningState": "Updating", "addressPrefix": "10.0.0.0/24", @@ -414,13 +414,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/4a7f057d-a486-4406-a3ce-70a486aca1a4?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/58221e43-d193-4c6a-8680-be1c91e4822f?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -428,7 +428,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:35:34 GMT", + "Date": "Thu, 28 Apr 2022 09:22:54 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -439,10 +439,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "60574064-ab2b-4337-a999-3a65610afc52", - "x-ms-correlation-request-id": "e76e15b8-ddca-43ff-9027-3d6ff65484a7", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013534Z:e76e15b8-ddca-43ff-9027-3d6ff65484a7" + "x-ms-arm-service-request-id": "808f9ff3-aa53-4c91-8a3a-329b494c9ef0", + "x-ms-correlation-request-id": "10e9a356-41b2-4bff-88a8-d471060b061d", + "x-ms-ratelimit-remaining-subscription-reads": "11914", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092255Z:10e9a356-41b2-4bff-88a8-d471060b061d" }, "ResponseBody": { "status": "Succeeded" @@ -455,7 +455,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -463,8 +463,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:35:34 GMT", - "ETag": "W/\u002283e647b2-737b-4cb4-aebf-f46edc08677a\u0022", + "Date": "Thu, 28 Apr 2022 09:22:55 GMT", + "ETag": "W/\u002288f2b2bb-0019-41a8-bad0-bf03c44d4693\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -475,15 +475,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "07af5d3b-b110-4399-a5e0-907ccc3997ff", - "x-ms-correlation-request-id": "5720384b-ba9e-4e7f-ac99-b187ecb9b664", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013534Z:5720384b-ba9e-4e7f-ac99-b187ecb9b664" + "x-ms-arm-service-request-id": "8c11a4d8-ffc4-49ef-9705-2425da75cd7d", + "x-ms-correlation-request-id": "72b64321-5e11-4b6d-ae5e-a0ab863f4652", + "x-ms-ratelimit-remaining-subscription-reads": "11913", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092255Z:72b64321-5e11-4b6d-ae5e-a0ab863f4652" }, "ResponseBody": { "name": "subnet1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/virtualnetwork/subnets/subnet1", - "etag": "W/\u002283e647b2-737b-4cb4-aebf-f46edc08677a\u0022", + "etag": "W/\u002288f2b2bb-0019-41a8-bad0-bf03c44d4693\u0022", "properties": { "provisioningState": "Succeeded", "addressPrefix": "10.0.0.0/24", @@ -503,7 +503,7 @@ "Connection": "keep-alive", "Content-Length": "94", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "properties": { @@ -513,11 +513,11 @@ }, "StatusCode": 201, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/bd03c3d2-fe39-4907-9f7d-f0fa266a4ed3?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/121f9d6d-d03b-4ded-81ab-0e07f2961418?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "526", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:35:34 GMT", + "Date": "Thu, 28 Apr 2022 09:22:55 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "3", @@ -527,15 +527,15 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "5b1dcbc2-9534-4c1e-a2f3-45d73e8b795e", - "x-ms-correlation-request-id": "2c5bcc13-d485-477a-b340-f0883e8be416", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013535Z:2c5bcc13-d485-477a-b340-f0883e8be416" + "x-ms-arm-service-request-id": "e1c2c583-e12e-4ce3-83be-3b60b9d95189", + "x-ms-correlation-request-id": "6d25b37c-0fe8-4cc3-8b1d-fbfb036adce7", + "x-ms-ratelimit-remaining-subscription-writes": "1189", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092255Z:6d25b37c-0fe8-4cc3-8b1d-fbfb036adce7" }, "ResponseBody": { "name": "subnet2", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/virtualnetwork/subnets/subnet2", - "etag": "W/\u002288cd8941-c6bf-42b1-9636-6e2a3d9e1dba\u0022", + "etag": "W/\u0022fe35df2e-ed2e-4d12-951f-ae387d186328\u0022", "properties": { "provisioningState": "Updating", "addressPrefix": "10.0.1.0/24", @@ -547,13 +547,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/bd03c3d2-fe39-4907-9f7d-f0fa266a4ed3?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/121f9d6d-d03b-4ded-81ab-0e07f2961418?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -561,7 +561,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:35:38 GMT", + "Date": "Thu, 28 Apr 2022 09:22:58 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -572,10 +572,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "8def269a-06ac-40dc-9224-fa3c6a2127a2", - "x-ms-correlation-request-id": "201081a6-b3ca-484e-9f2d-0c24eba8c4ef", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013538Z:201081a6-b3ca-484e-9f2d-0c24eba8c4ef" + "x-ms-arm-service-request-id": "9e76e4dc-d5f3-4d1d-a622-b8759c0fb8b3", + "x-ms-correlation-request-id": "c0e24acd-76f6-4077-8c55-3ca3693ec19b", + "x-ms-ratelimit-remaining-subscription-reads": "11912", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092258Z:c0e24acd-76f6-4077-8c55-3ca3693ec19b" }, "ResponseBody": { "status": "Succeeded" @@ -588,7 +588,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -596,8 +596,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:35:38 GMT", - "ETag": "W/\u0022252554e8-0ba2-421a-a368-f0df71a878a3\u0022", + "Date": "Thu, 28 Apr 2022 09:22:58 GMT", + "ETag": "W/\u0022495769b6-9600-4960-8721-e0bec4337d73\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -608,15 +608,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "22ab6d94-c9ae-41e0-bbaa-c44874fe4efa", - "x-ms-correlation-request-id": "8843cdd4-f8d9-462c-a4a9-9028037b3f65", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013538Z:8843cdd4-f8d9-462c-a4a9-9028037b3f65" + "x-ms-arm-service-request-id": "7989fecf-fe8d-45bf-938a-50324b4acb46", + "x-ms-correlation-request-id": "afb4b67a-4217-4612-afcb-4737ed03cfad", + "x-ms-ratelimit-remaining-subscription-reads": "11911", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092258Z:afb4b67a-4217-4612-afcb-4737ed03cfad" }, "ResponseBody": { "name": "subnet2", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/virtualnetwork/subnets/subnet2", - "etag": "W/\u0022252554e8-0ba2-421a-a368-f0df71a878a3\u0022", + "etag": "W/\u0022495769b6-9600-4960-8721-e0bec4337d73\u0022", "properties": { "provisioningState": "Succeeded", "addressPrefix": "10.0.1.0/24", @@ -636,7 +636,7 @@ "Connection": "keep-alive", "Content-Length": "314", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "eastus", @@ -659,11 +659,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/d8d9f7a0-c685-4ff3-ac48-a488a402ade1?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/e261260a-176f-4fed-9aa0-c339ffabe04b?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "1508", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:35:44 GMT", + "Date": "Thu, 28 Apr 2022 09:22:59 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "3", @@ -673,25 +673,25 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "dd74e739-701b-479a-9f82-3574d4e1b174", - "x-ms-correlation-request-id": "7db797cf-9db9-4281-9fa5-7228bdbcdf91", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013544Z:7db797cf-9db9-4281-9fa5-7228bdbcdf91" + "x-ms-arm-service-request-id": "374bcc2f-2f34-4191-86d3-c0a0012ae1d2", + "x-ms-correlation-request-id": "6b6adc99-a26d-48c4-8be1-aa0a357e8f02", + "x-ms-ratelimit-remaining-subscription-writes": "1188", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092259Z:6b6adc99-a26d-48c4-8be1-aa0a357e8f02" }, "ResponseBody": { "name": "loadbalancer", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/loadbalancer", - "etag": "W/\u00226f99c726-2706-41d8-a063-31090f031b68\u0022", + "etag": "W/\u00228aaa010d-a11e-4bf2-9023-4807bc87ccf0\u0022", "type": "Microsoft.Network/loadBalancers", "location": "eastus", "properties": { "provisioningState": "Updating", - "resourceGuid": "95b3a305-3097-40c8-9ab3-f434516765d8", + "resourceGuid": "84aaec19-e6b9-49c5-838f-decbeba5521d", "frontendIPConfigurations": [ { "name": "myIPConfiguration", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/loadbalancer/frontendIPConfigurations/myIPConfiguration", - "etag": "W/\u00226f99c726-2706-41d8-a063-31090f031b68\u0022", + "etag": "W/\u00228aaa010d-a11e-4bf2-9023-4807bc87ccf0\u0022", "type": "Microsoft.Network/loadBalancers/frontendIPConfigurations", "properties": { "provisioningState": "Updating", @@ -718,13 +718,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/d8d9f7a0-c685-4ff3-ac48-a488a402ade1?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/e261260a-176f-4fed-9aa0-c339ffabe04b?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -732,7 +732,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:35:47 GMT", + "Date": "Thu, 28 Apr 2022 09:23:02 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -743,10 +743,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "ba9b96a9-6c84-4e35-8ad7-891ef9f49d03", - "x-ms-correlation-request-id": "e1bde578-c91e-4f03-a249-82762f33db30", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013548Z:e1bde578-c91e-4f03-a249-82762f33db30" + "x-ms-arm-service-request-id": "50bcb507-0ae6-414d-b74f-089fafdf1be2", + "x-ms-correlation-request-id": "d09cdbcf-7c67-4592-9421-6edce54a3bca", + "x-ms-ratelimit-remaining-subscription-reads": "11910", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092302Z:d09cdbcf-7c67-4592-9421-6edce54a3bca" }, "ResponseBody": { "status": "Succeeded" @@ -759,7 +759,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -767,8 +767,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:35:48 GMT", - "ETag": "W/\u002289f2c631-1f26-4768-ad5d-298a445854a3\u0022", + "Date": "Thu, 28 Apr 2022 09:23:02 GMT", + "ETag": "W/\u00229cfac5c2-7984-413c-961f-572183cfac7b\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -779,25 +779,25 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "4cdaeb6b-9005-42ee-a618-b61178f1a095", - "x-ms-correlation-request-id": "5bfe808b-133b-44a8-91a8-6482d9235031", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013548Z:5bfe808b-133b-44a8-91a8-6482d9235031" + "x-ms-arm-service-request-id": "71201df7-b74f-4d20-a956-93752cf6f073", + "x-ms-correlation-request-id": "587317d0-e994-4cfb-aeda-c0abe205f798", + "x-ms-ratelimit-remaining-subscription-reads": "11909", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092302Z:587317d0-e994-4cfb-aeda-c0abe205f798" }, "ResponseBody": { "name": "loadbalancer", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/loadbalancer", - "etag": "W/\u002289f2c631-1f26-4768-ad5d-298a445854a3\u0022", + "etag": "W/\u00229cfac5c2-7984-413c-961f-572183cfac7b\u0022", "type": "Microsoft.Network/loadBalancers", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "95b3a305-3097-40c8-9ab3-f434516765d8", + "resourceGuid": "84aaec19-e6b9-49c5-838f-decbeba5521d", "frontendIPConfigurations": [ { "name": "myIPConfiguration", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/loadbalancer/frontendIPConfigurations/myIPConfiguration", - "etag": "W/\u002289f2c631-1f26-4768-ad5d-298a445854a3\u0022", + "etag": "W/\u00229cfac5c2-7984-413c-961f-572183cfac7b\u0022", "type": "Microsoft.Network/loadBalancers/frontendIPConfigurations", "properties": { "provisioningState": "Succeeded", @@ -832,7 +832,7 @@ "Connection": "keep-alive", "Content-Length": "759", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "eastus", @@ -874,11 +874,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/0d67d28f-1a1f-48da-addc-f4c700c87fd3?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/0478b323-9e79-4132-b7d1-bed4034bf66d?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "2225", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:35:53 GMT", + "Date": "Thu, 28 Apr 2022 09:23:03 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -888,26 +888,26 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "f2b102d5-a4c8-440e-aa7f-202f7ed66890", - "x-ms-correlation-request-id": "ec0f3de5-537d-4a61-a44e-d7a78879dcbf", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013553Z:ec0f3de5-537d-4a61-a44e-d7a78879dcbf" + "x-ms-arm-service-request-id": "db02b2e3-980d-49ad-b918-28cde9455ed0", + "x-ms-correlation-request-id": "77eab86b-22d7-4c93-835d-2030f24252c6", + "x-ms-ratelimit-remaining-subscription-writes": "1187", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092304Z:77eab86b-22d7-4c93-835d-2030f24252c6" }, "ResponseBody": { "name": "myService", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateLinkServices/myService", - "etag": "W/\u002274d64590-3212-41b0-847f-95e73591baa5\u0022", + "etag": "W/\u00226d753f06-da17-47c2-9dd7-74baad41babf\u0022", "type": "Microsoft.Network/privateLinkServices", "location": "eastus", "properties": { "provisioningState": "Updating", - "resourceGuid": "066bebc9-2b80-4c27-b181-0a4858402fe6", + "resourceGuid": "78a1643a-eb2e-45a5-bca2-637ee9fbcef7", "fqdns": [ "fqdn1", "fqdn2", "fqdn3" ], - "alias": "myservice.22f418af-ba1d-46d4-a60d-3f21f5fb6076.eastus.azure.privatelinkservice", + "alias": "myservice.357e98c0-00ab-4024-acc2-6bd3bc58db69.eastus.azure.privatelinkservice", "visibility": { "subscriptions": [ "00000000-0000-0000-0000-000000000000" @@ -928,7 +928,7 @@ { "name": "myIPConfiguration", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateLinkServices/myService/ipConfigurations/myIPConfiguration", - "etag": "W/\u002274d64590-3212-41b0-847f-95e73591baa5\u0022", + "etag": "W/\u00226d753f06-da17-47c2-9dd7-74baad41babf\u0022", "type": "Microsoft.Network/privateLinkServices/ipConfigurations", "properties": { "provisioningState": "Succeeded", @@ -944,20 +944,56 @@ "privateEndpointConnections": [], "networkInterfaces": [ { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/myService.nic.ca77c97c-158d-4515-bfad-ba0b670ed19a" + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/myService.nic.67b61536-f242-4741-bee1-8c30169bcd94" } ] } } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/0d67d28f-1a1f-48da-addc-f4c700c87fd3?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/0478b323-9e79-4132-b7d1-bed4034bf66d?api-version=2021-08-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Apr 2022 09:23:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "10", + "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": "96affd65-1c6a-4737-bb11-ba6ed04ce5ba", + "x-ms-correlation-request-id": "f02b93e1-f930-40c0-9f4a-314cce7dad85", + "x-ms-ratelimit-remaining-subscription-reads": "11908", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092314Z:f02b93e1-f930-40c0-9f4a-314cce7dad85" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/0478b323-9e79-4132-b7d1-bed4034bf66d?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -965,7 +1001,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:36:04 GMT", + "Date": "Thu, 28 Apr 2022 09:23:23 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -976,10 +1012,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "79830d28-d3b8-4bcb-8323-815dcdbd81c0", - "x-ms-correlation-request-id": "813f133a-f01c-48ec-a2a5-b15fbf8a2063", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013604Z:813f133a-f01c-48ec-a2a5-b15fbf8a2063" + "x-ms-arm-service-request-id": "391b7944-69ed-4243-a4a9-258e4bb3e3b7", + "x-ms-correlation-request-id": "e775d6cd-e644-4f82-b4a1-3e5c6b4bab69", + "x-ms-ratelimit-remaining-subscription-reads": "11907", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092324Z:e775d6cd-e644-4f82-b4a1-3e5c6b4bab69" }, "ResponseBody": { "status": "Succeeded" @@ -992,7 +1028,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1000,8 +1036,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:36:04 GMT", - "ETag": "W/\u0022866669ac-f187-4a3f-bd15-0f829fd60925\u0022", + "Date": "Thu, 28 Apr 2022 09:23:23 GMT", + "ETag": "W/\u00228719d7e4-35fe-47fc-8619-48e03fed186b\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1012,26 +1048,26 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "841f9b5f-0cf3-4724-aecd-befc5bb3f52c", - "x-ms-correlation-request-id": "c8719935-cee7-44c5-a22f-01700096e999", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013605Z:c8719935-cee7-44c5-a22f-01700096e999" + "x-ms-arm-service-request-id": "6f3e8779-bd57-43ea-931c-d48e42d04aa6", + "x-ms-correlation-request-id": "fbe33008-a64e-4eb7-a441-49ea71b23c2b", + "x-ms-ratelimit-remaining-subscription-reads": "11906", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092324Z:fbe33008-a64e-4eb7-a441-49ea71b23c2b" }, "ResponseBody": { "name": "myService", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateLinkServices/myService", - "etag": "W/\u0022866669ac-f187-4a3f-bd15-0f829fd60925\u0022", + "etag": "W/\u00228719d7e4-35fe-47fc-8619-48e03fed186b\u0022", "type": "Microsoft.Network/privateLinkServices", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "066bebc9-2b80-4c27-b181-0a4858402fe6", + "resourceGuid": "78a1643a-eb2e-45a5-bca2-637ee9fbcef7", "fqdns": [ "fqdn1", "fqdn2", "fqdn3" ], - "alias": "myservice.22f418af-ba1d-46d4-a60d-3f21f5fb6076.eastus.azure.privatelinkservice", + "alias": "myservice.357e98c0-00ab-4024-acc2-6bd3bc58db69.eastus.azure.privatelinkservice", "visibility": { "subscriptions": [ "00000000-0000-0000-0000-000000000000" @@ -1052,7 +1088,7 @@ { "name": "myIPConfiguration", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateLinkServices/myService/ipConfigurations/myIPConfiguration", - "etag": "W/\u0022866669ac-f187-4a3f-bd15-0f829fd60925\u0022", + "etag": "W/\u00228719d7e4-35fe-47fc-8619-48e03fed186b\u0022", "type": "Microsoft.Network/privateLinkServices/ipConfigurations", "properties": { "provisioningState": "Succeeded", @@ -1068,7 +1104,7 @@ "privateEndpointConnections": [], "networkInterfaces": [ { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/myService.nic.ca77c97c-158d-4515-bfad-ba0b670ed19a" + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/myService.nic.67b61536-f242-4741-bee1-8c30169bcd94" } ] } @@ -1083,7 +1119,7 @@ "Connection": "keep-alive", "Content-Length": "441", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "eastus", @@ -1104,11 +1140,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/ce7e658b-4c5d-462a-8886-cd8244b8ec5c?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/e88ad9f7-d13c-4bd9-b55f-83beb0baf8c8?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "1894", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:36:09 GMT", + "Date": "Thu, 28 Apr 2022 09:23:24 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -1118,25 +1154,25 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "a847e8fd-f145-4dc1-a0e4-373ccb8b82cc", - "x-ms-correlation-request-id": "ec3b6aab-220a-4bd8-b59c-ebfc1fd02770", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013609Z:ec3b6aab-220a-4bd8-b59c-ebfc1fd02770" + "x-ms-arm-service-request-id": "caa6156b-d28d-46d6-9b42-ba8efd59ddb1", + "x-ms-correlation-request-id": "ecc8e8c3-8206-4b64-a663-57f5eef88ea8", + "x-ms-ratelimit-remaining-subscription-writes": "1186", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092325Z:ecc8e8c3-8206-4b64-a663-57f5eef88ea8" }, "ResponseBody": { "name": "myPrivateEndpoint", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint", - "etag": "W/\u0022d7764764-239a-45c1-a2c1-d43b6e078335\u0022", + "etag": "W/\u00224f7ef6e7-d11d-4919-9cf8-f277537a5eb0\u0022", "type": "Microsoft.Network/privateEndpoints", "location": "eastus", "properties": { "provisioningState": "Updating", - "resourceGuid": "51fa3961-3131-44c1-aab8-6ef3df43529e", + "resourceGuid": "d0ad9c90-6a4f-442f-84eb-111247435e97", "privateLinkServiceConnections": [ { "name": "myService", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint/privateLinkServiceConnections/myService", - "etag": "W/\u0022d7764764-239a-45c1-a2c1-d43b6e078335\u0022", + "etag": "W/\u00224f7ef6e7-d11d-4919-9cf8-f277537a5eb0\u0022", "properties": { "provisioningState": "Succeeded", "privateLinkServiceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateLinkServices/myService", @@ -1157,7 +1193,7 @@ "ipConfigurations": [], "networkInterfaces": [ { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/myPrivateEndpoint.nic.430d6a08-9d2b-4c67-89b8-825298b50c86" + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/myPrivateEndpoint.nic.dd9a792b-f814-4b70-bb0a-80710a2209aa" } ], "customDnsConfigs": [] @@ -1165,13 +1201,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/ce7e658b-4c5d-462a-8886-cd8244b8ec5c?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/e88ad9f7-d13c-4bd9-b55f-83beb0baf8c8?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1179,7 +1215,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:36:19 GMT", + "Date": "Thu, 28 Apr 2022 09:23:35 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -1191,23 +1227,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "1ae94477-a509-417d-98f9-92cd9766bc2f", - "x-ms-correlation-request-id": "c6842b79-44bf-421e-91aa-827020655d6e", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013619Z:c6842b79-44bf-421e-91aa-827020655d6e" + "x-ms-arm-service-request-id": "8f5f5ef4-64fb-4736-a62d-3560ee6fb77f", + "x-ms-correlation-request-id": "5015a93f-57c7-4752-8977-ebcb5ac080ad", + "x-ms-ratelimit-remaining-subscription-reads": "11905", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092335Z:5015a93f-57c7-4752-8977-ebcb5ac080ad" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/ce7e658b-4c5d-462a-8886-cd8244b8ec5c?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/e88ad9f7-d13c-4bd9-b55f-83beb0baf8c8?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1215,7 +1251,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:36:29 GMT", + "Date": "Thu, 28 Apr 2022 09:23:45 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "20", @@ -1227,23 +1263,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "3db764e2-f3e3-418c-8981-87b0d6671347", - "x-ms-correlation-request-id": "6b405968-5f1e-4116-8ef3-71d92cc30f91", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013630Z:6b405968-5f1e-4116-8ef3-71d92cc30f91" + "x-ms-arm-service-request-id": "12b7e17a-8bd4-4d57-8bca-0b635ee713ea", + "x-ms-correlation-request-id": "1ce37a76-9617-4f3c-8c68-5ae07268f9c5", + "x-ms-ratelimit-remaining-subscription-reads": "11904", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092345Z:1ce37a76-9617-4f3c-8c68-5ae07268f9c5" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/ce7e658b-4c5d-462a-8886-cd8244b8ec5c?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/e88ad9f7-d13c-4bd9-b55f-83beb0baf8c8?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1251,7 +1287,43 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:36:49 GMT", + "Date": "Thu, 28 Apr 2022 09:24:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "20", + "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": "c8a067aa-7bc3-4e9b-910f-d3758ec93f82", + "x-ms-correlation-request-id": "57230c16-d23c-4eed-97ba-bd8fb957ca6d", + "x-ms-ratelimit-remaining-subscription-reads": "11903", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092405Z:57230c16-d23c-4eed-97ba-bd8fb957ca6d" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/e88ad9f7-d13c-4bd9-b55f-83beb0baf8c8?api-version=2021-08-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Apr 2022 09:24:25 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1262,10 +1334,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "900849ea-25d9-472b-9b61-946bfa7952b6", - "x-ms-correlation-request-id": "2f269961-572e-4ae3-a752-9215f8cbbd81", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013650Z:2f269961-572e-4ae3-a752-9215f8cbbd81" + "x-ms-arm-service-request-id": "2e0f0211-02f4-4315-b7b5-edd33d2547ec", + "x-ms-correlation-request-id": "bf3835c2-d2a7-4a4d-8214-68c4fca2ff2c", + "x-ms-ratelimit-remaining-subscription-reads": "11902", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092425Z:bf3835c2-d2a7-4a4d-8214-68c4fca2ff2c" }, "ResponseBody": { "status": "Succeeded" @@ -1278,7 +1350,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1286,8 +1358,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:36:50 GMT", - "ETag": "W/\u00224036b59e-953c-4e05-a13c-73e792592a49\u0022", + "Date": "Thu, 28 Apr 2022 09:24:25 GMT", + "ETag": "W/\u002249222a58-df1d-4dac-be5d-06bb85d83ba9\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1298,25 +1370,25 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "0857cb1f-86d0-4948-b3b6-12eb687af3f4", - "x-ms-correlation-request-id": "d582a200-691d-4e29-8d98-c2909a60d3dd", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013651Z:d582a200-691d-4e29-8d98-c2909a60d3dd" + "x-ms-arm-service-request-id": "2b46bc7d-c2bb-4f42-8067-2548840d52a0", + "x-ms-correlation-request-id": "232f1423-1813-4cb9-b74d-873c1f058287", + "x-ms-ratelimit-remaining-subscription-reads": "11901", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092425Z:232f1423-1813-4cb9-b74d-873c1f058287" }, "ResponseBody": { "name": "myPrivateEndpoint", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint", - "etag": "W/\u00224036b59e-953c-4e05-a13c-73e792592a49\u0022", + "etag": "W/\u002249222a58-df1d-4dac-be5d-06bb85d83ba9\u0022", "type": "Microsoft.Network/privateEndpoints", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "51fa3961-3131-44c1-aab8-6ef3df43529e", + "resourceGuid": "d0ad9c90-6a4f-442f-84eb-111247435e97", "privateLinkServiceConnections": [ { "name": "myService", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint/privateLinkServiceConnections/myService", - "etag": "W/\u00224036b59e-953c-4e05-a13c-73e792592a49\u0022", + "etag": "W/\u002249222a58-df1d-4dac-be5d-06bb85d83ba9\u0022", "properties": { "provisioningState": "Succeeded", "privateLinkServiceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateLinkServices/myService", @@ -1337,7 +1409,7 @@ "ipConfigurations": [], "networkInterfaces": [ { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/myPrivateEndpoint.nic.430d6a08-9d2b-4c67-89b8-825298b50c86" + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/myPrivateEndpoint.nic.dd9a792b-f814-4b70-bb0a-80710a2209aa" } ], "customDnsConfigs": [] @@ -1351,7 +1423,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1359,8 +1431,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:36:50 GMT", - "ETag": "W/\u0022ebe151cf-51ab-4f40-a089-d7d251ae6bb1\u0022", + "Date": "Thu, 28 Apr 2022 09:24:25 GMT", + "ETag": "W/\u0022d53d07f9-9520-4ac5-b724-aaa5d9aa0892\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1371,26 +1443,26 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "9d186a3c-a38c-46a9-b974-f6203f2c770f", - "x-ms-correlation-request-id": "0f83fb29-4767-439a-8596-9e809b9c3ceb", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013651Z:0f83fb29-4767-439a-8596-9e809b9c3ceb" + "x-ms-arm-service-request-id": "452b5709-563d-452d-ad4b-c68eaa6eded6", + "x-ms-correlation-request-id": "52bd1a66-0d75-4855-8d19-c0b4aa8ff2bc", + "x-ms-ratelimit-remaining-subscription-reads": "11900", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092425Z:52bd1a66-0d75-4855-8d19-c0b4aa8ff2bc" }, "ResponseBody": { "name": "myService", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateLinkServices/myService", - "etag": "W/\u0022ebe151cf-51ab-4f40-a089-d7d251ae6bb1\u0022", + "etag": "W/\u0022d53d07f9-9520-4ac5-b724-aaa5d9aa0892\u0022", "type": "Microsoft.Network/privateLinkServices", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "066bebc9-2b80-4c27-b181-0a4858402fe6", + "resourceGuid": "78a1643a-eb2e-45a5-bca2-637ee9fbcef7", "fqdns": [ "fqdn1", "fqdn2", "fqdn3" ], - "alias": "myservice.22f418af-ba1d-46d4-a60d-3f21f5fb6076.eastus.azure.privatelinkservice", + "alias": "myservice.357e98c0-00ab-4024-acc2-6bd3bc58db69.eastus.azure.privatelinkservice", "visibility": { "subscriptions": [ "00000000-0000-0000-0000-000000000000" @@ -1411,7 +1483,7 @@ { "name": "myIPConfiguration", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateLinkServices/myService/ipConfigurations/myIPConfiguration", - "etag": "W/\u0022ebe151cf-51ab-4f40-a089-d7d251ae6bb1\u0022", + "etag": "W/\u0022d53d07f9-9520-4ac5-b724-aaa5d9aa0892\u0022", "type": "Microsoft.Network/privateLinkServices/ipConfigurations", "properties": { "provisioningState": "Succeeded", @@ -1426,9 +1498,9 @@ ], "privateEndpointConnections": [ { - "name": "myPrivateEndpoint.51fa3961-3131-44c1-aab8-6ef3df43529e", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateLinkServices/myService/privateEndpointConnections/myPrivateEndpoint.51fa3961-3131-44c1-aab8-6ef3df43529e", - "etag": "W/\u0022ebe151cf-51ab-4f40-a089-d7d251ae6bb1\u0022", + "name": "myPrivateEndpoint.d0ad9c90-6a4f-442f-84eb-111247435e97", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateLinkServices/myService/privateEndpointConnections/myPrivateEndpoint.d0ad9c90-6a4f-442f-84eb-111247435e97", + "etag": "W/\u0022d53d07f9-9520-4ac5-b724-aaa5d9aa0892\u0022", "properties": { "provisioningState": "Succeeded", "privateEndpoint": { @@ -1439,21 +1511,21 @@ "description": "Approved", "actionsRequired": "None" }, - "linkIdentifier": "536948354" + "linkIdentifier": "536906593" }, "type": "Microsoft.Network/privateLinkServices/privateEndpointConnections" } ], "networkInterfaces": [ { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/myService.nic.ca77c97c-158d-4515-bfad-ba0b670ed19a" + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/myService.nic.67b61536-f242-4741-bee1-8c30169bcd94" } ] } } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateLinkServices/myService/privateEndpointConnections/myPrivateEndpoint.51fa3961-3131-44c1-aab8-6ef3df43529e?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateLinkServices/myService/privateEndpointConnections/myPrivateEndpoint.d0ad9c90-6a4f-442f-84eb-111247435e97?api-version=2021-08-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -1461,10 +1533,10 @@ "Connection": "keep-alive", "Content-Length": "190", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { - "name": "myPrivateEndpoint.51fa3961-3131-44c1-aab8-6ef3df43529e", + "name": "myPrivateEndpoint.d0ad9c90-6a4f-442f-84eb-111247435e97", "properties": { "privateLinkServiceConnectionState": { "status": "Approved", @@ -1474,11 +1546,11 @@ }, "StatusCode": 200, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/17c76f37-ad2e-4af4-b303-ae854a842db3?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/7d1be5ee-430e-4e54-b244-c20f383ba323?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:36:51 GMT", + "Date": "Thu, 28 Apr 2022 09:24:25 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -1490,15 +1562,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "0cd16ac3-47bf-4de7-80c8-4c63759f8bbb", - "x-ms-correlation-request-id": "622c11d1-0b2f-47b1-9751-1aa712824032", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013651Z:622c11d1-0b2f-47b1-9751-1aa712824032" + "x-ms-arm-service-request-id": "092ab62b-d2f0-4657-b471-09a7ab32b28c", + "x-ms-correlation-request-id": "f1842811-0cda-4b35-9973-764ae9f18703", + "x-ms-ratelimit-remaining-subscription-writes": "1185", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092426Z:f1842811-0cda-4b35-9973-764ae9f18703" }, "ResponseBody": { - "name": "myPrivateEndpoint.51fa3961-3131-44c1-aab8-6ef3df43529e", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateLinkServices/myService/privateEndpointConnections/myPrivateEndpoint.51fa3961-3131-44c1-aab8-6ef3df43529e", - "etag": "W/\u0022851956a4-caf4-48ff-8adf-d78e09c4d950\u0022", + "name": "myPrivateEndpoint.d0ad9c90-6a4f-442f-84eb-111247435e97", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateLinkServices/myService/privateEndpointConnections/myPrivateEndpoint.d0ad9c90-6a4f-442f-84eb-111247435e97", + "etag": "W/\u00225a15224a-a9df-4b69-9c19-5c4df71d4b69\u0022", "properties": { "provisioningState": "Updating", "privateEndpoint": { @@ -1509,7 +1581,7 @@ "description": "approved it for some reason.", "actionsRequired": "" }, - "linkIdentifier": "536948354" + "linkIdentifier": "536906593" }, "type": "Microsoft.Network/privateLinkServices/privateEndpointConnections" } @@ -1521,7 +1593,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1531,12 +1603,12 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "1753", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:36:51 GMT", + "Date": "Thu, 28 Apr 2022 09:24:25 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12651.7 - SCUS ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - SCUS ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -1615,7 +1687,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1625,12 +1697,12 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "945", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:36:51 GMT", + "Date": "Thu, 28 Apr 2022 09:24:25 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12707.9 - KRSLR2 ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - EUS ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -1686,28 +1758,28 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "client-request-id": "8506af2f-e7bd-4aae-b7bb-7b661d7431c0", + "client-request-id": "1d043e8d-fa19-4c67-b4a1-e3720928d7c7", "Connection": "keep-alive", - "Content-Length": "289", + "Content-Length": "286", "Content-Type": "application/x-www-form-urlencoded", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.7.3 (Windows-10-10.0.22581-SP0)", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", - "x-client-os": "win32", + "x-client-os": "linux", "x-client-sku": "MSAL.Python", "x-client-ver": "1.17.0", "x-ms-lib-capability": "retry-after, h429" }, - "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q~IsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "RequestBody": "client_id=8c41a920-007a-4844-a189-2d0efe39f51e\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=o0XWF_siD-FhI.5AE83-u0GaQHW_GP7cjy\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "client-request-id": "8506af2f-e7bd-4aae-b7bb-7b661d7431c0", + "client-request-id": "1d043e8d-fa19-4c67-b4a1-e3720928d7c7", "Content-Length": "93", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:36:52 GMT", + "Date": "Thu, 28 Apr 2022 09:24:25 GMT", "Expires": "-1", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Pragma": "no-cache", @@ -1715,7 +1787,7 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", - "x-ms-ests-server": "2.1.12651.9 - WUS2 ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - SCUS ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -1734,39 +1806,39 @@ "Connection": "keep-alive", "Content-Length": "22", "Content-Type": "application/json", - "User-Agent": "azsdk-python-mgmt-privatedns/1.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-mgmt-privatedns/1.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "global" }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateDnsOperationStatuses/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtVcHNlcnRQcml2YXRlRG5zWm9uZTtmNTg3MGVmZC1jOThlLTQ4YzYtYTAxMi1kODk2NDYyMjdkNWQ=?api-version=2018-09-01", + "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateDnsOperationStatuses/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtVcHNlcnRQcml2YXRlRG5zWm9uZTszNzA3OTI1Ni04NjJkLTQ0MTMtYmY2Ny1jNzYzZmMzMmY0YTQ=?api-version=2018-09-01", "Cache-Control": "private", "Content-Length": "2", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:36:56 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateDnsOperationResults/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtVcHNlcnRQcml2YXRlRG5zWm9uZTtmNTg3MGVmZC1jOThlLTQ4YzYtYTAxMi1kODk2NDYyMjdkNWQ=?api-version=2018-09-01", + "Date": "Thu, 28 Apr 2022 09:24:26 GMT", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateDnsOperationResults/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtVcHNlcnRQcml2YXRlRG5zWm9uZTszNzA3OTI1Ni04NjJkLTQ0MTMtYmY2Ny1jNzYzZmMzMmY0YTQ=?api-version=2018-09-01", "Retry-After": "30", "Server": "Microsoft-IIS/10.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-AspNet-Version": "4.0.30319", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "af0230b2-689c-444b-a47b-600de7a474c5", + "x-ms-correlation-request-id": "6bf915db-7509-4d86-b8c5-b895e05009ef", "x-ms-ratelimit-remaining-subscription-resource-requests": "11999", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013657Z:af0230b2-689c-444b-a47b-600de7a474c5", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092427Z:6bf915db-7509-4d86-b8c5-b895e05009ef", "X-Powered-By": "ASP.NET" }, "ResponseBody": {} }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateDnsOperationStatuses/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtVcHNlcnRQcml2YXRlRG5zWm9uZTtmNTg3MGVmZC1jOThlLTQ4YzYtYTAxMi1kODk2NDYyMjdkNWQ=?api-version=2018-09-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateDnsOperationStatuses/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtVcHNlcnRQcml2YXRlRG5zWm9uZTszNzA3OTI1Ni04NjJkLTQ0MTMtYmY2Ny1jNzYzZmMzMmY0YTQ=?api-version=2018-09-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-privatedns/1.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-mgmt-privatedns/1.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1774,16 +1846,16 @@ "Cache-Control": "private", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:37:27 GMT", + "Date": "Thu, 28 Apr 2022 09:24:56 GMT", "Server": "Microsoft-IIS/10.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-AspNet-Version": "4.0.30319", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "89776612-b4a7-4591-97f7-63b35c5a6c0f", + "x-ms-correlation-request-id": "2ecb51c5-fd48-4cba-a058-5bdb4248917b", "x-ms-ratelimit-remaining-subscription-resource-requests": "499", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013727Z:89776612-b4a7-4591-97f7-63b35c5a6c0f", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092457Z:2ecb51c5-fd48-4cba-a058-5bdb4248917b", "X-Powered-By": "ASP.NET" }, "ResponseBody": { @@ -1797,7 +1869,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-mgmt-privatedns/1.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-mgmt-privatedns/1.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1805,24 +1877,24 @@ "Cache-Control": "private", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:37:27 GMT", - "ETag": "f56353a1-2e82-426a-bf70-40ed6d5d2ea1", + "Date": "Thu, 28 Apr 2022 09:24:56 GMT", + "ETag": "f585ab96-09d3-42ae-a626-6bc135c559d2", "Server": "Microsoft-IIS/10.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-AspNet-Version": "4.0.30319", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "452fc890-4091-4f4c-8db9-08a8367d31fc", + "x-ms-correlation-request-id": "95712ccd-6d16-4e9e-be04-041bed21686f", "x-ms-ratelimit-remaining-subscription-resource-requests": "499", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013727Z:452fc890-4091-4f4c-8db9-08a8367d31fc", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092457Z:95712ccd-6d16-4e9e-be04-041bed21686f", "X-Powered-By": "ASP.NET" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateDnsZones/www.zone1.com", "name": "www.zone1.com", "type": "Microsoft.Network/privateDnsZones", - "etag": "f56353a1-2e82-426a-bf70-40ed6d5d2ea1", + "etag": "f585ab96-09d3-42ae-a626-6bc135c559d2", "location": "global", "properties": { "maxNumberOfRecordSets": 25000, @@ -1844,7 +1916,7 @@ "Connection": "keep-alive", "Content-Length": "266", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "name": "myPrivateDnsZoneGroup", @@ -1861,11 +1933,11 @@ }, "StatusCode": 201, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/7ce5cdb3-fd16-4c9f-989c-39bafd91dd45?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/8db68a85-36a8-4eec-9422-6f909c672531?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "1165", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:37:28 GMT", + "Date": "Thu, 28 Apr 2022 09:24:56 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -1875,15 +1947,15 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "38001841-07e1-4a19-b2dd-e88ba92b808b", - "x-ms-correlation-request-id": "d99202c6-6338-4a0e-90c6-0bf4bb0d3501", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013729Z:d99202c6-6338-4a0e-90c6-0bf4bb0d3501" + "x-ms-arm-service-request-id": "77ed8416-0937-4696-ac98-695f9714c910", + "x-ms-correlation-request-id": "7d9e89c8-5b42-4ce1-bc3f-9532d3af165a", + "x-ms-ratelimit-remaining-subscription-writes": "1184", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092457Z:7d9e89c8-5b42-4ce1-bc3f-9532d3af165a" }, "ResponseBody": { "name": "myPrivateDnsZoneGroup", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint/privateDnsZoneGroups/myPrivateDnsZoneGroup", - "etag": "W/\u002285e455f5-00c1-4cdb-9617-e7ba36bc693a\u0022", + "etag": "W/\u00223f8ffeda-0338-491f-94f8-4cc46816c500\u0022", "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups", "properties": { "provisioningState": "Updating", @@ -1891,7 +1963,7 @@ { "name": "zone1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint/privateDnsZoneGroups/myPrivateDnsZoneGroup/privateDnsZoneConfigs/zone1", - "etag": "W/\u002285e455f5-00c1-4cdb-9617-e7ba36bc693a\u0022", + "etag": "W/\u00223f8ffeda-0338-491f-94f8-4cc46816c500\u0022", "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups/privateDnsZoneConfigs", "properties": { "provisioningState": "Updating", @@ -1904,13 +1976,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/7ce5cdb3-fd16-4c9f-989c-39bafd91dd45?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/8db68a85-36a8-4eec-9422-6f909c672531?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1918,7 +1990,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:37:39 GMT", + "Date": "Thu, 28 Apr 2022 09:25:07 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1929,10 +2001,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "44c6d757-87f1-4453-8025-e1f652574a93", - "x-ms-correlation-request-id": "7a7f341b-63bc-4776-98e9-d3cc45659f9b", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013740Z:7a7f341b-63bc-4776-98e9-d3cc45659f9b" + "x-ms-arm-service-request-id": "b9bf4b11-9883-45c1-8bc1-4f8decc8b976", + "x-ms-correlation-request-id": "213c89fd-d566-4970-818d-8501aefca4a1", + "x-ms-ratelimit-remaining-subscription-reads": "11899", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092507Z:213c89fd-d566-4970-818d-8501aefca4a1" }, "ResponseBody": { "status": "Succeeded" @@ -1945,7 +2017,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1953,8 +2025,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:37:41 GMT", - "ETag": "W/\u0022b2e01943-084d-480c-89e1-0dd35ae749bf\u0022", + "Date": "Thu, 28 Apr 2022 09:25:08 GMT", + "ETag": "W/\u0022d85a9c69-d1e9-491c-ac7d-1aaf7fed2b17\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1965,15 +2037,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "f3f272a2-e6ce-43ba-82f1-6dd59bdaae15", - "x-ms-correlation-request-id": "9898d272-e3ca-41b3-85be-4189b1f95dc1", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013741Z:9898d272-e3ca-41b3-85be-4189b1f95dc1" + "x-ms-arm-service-request-id": "9cef8770-110b-4760-8c39-06013d4a7f42", + "x-ms-correlation-request-id": "84fdadcc-67b9-4f84-b6d0-2a7929bea27e", + "x-ms-ratelimit-remaining-subscription-reads": "11898", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092508Z:84fdadcc-67b9-4f84-b6d0-2a7929bea27e" }, "ResponseBody": { "name": "myPrivateDnsZoneGroup", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint/privateDnsZoneGroups/myPrivateDnsZoneGroup", - "etag": "W/\u0022b2e01943-084d-480c-89e1-0dd35ae749bf\u0022", + "etag": "W/\u0022d85a9c69-d1e9-491c-ac7d-1aaf7fed2b17\u0022", "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups", "properties": { "provisioningState": "Succeeded", @@ -1981,7 +2053,7 @@ { "name": "zone1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint/privateDnsZoneGroups/myPrivateDnsZoneGroup/privateDnsZoneConfigs/zone1", - "etag": "W/\u0022b2e01943-084d-480c-89e1-0dd35ae749bf\u0022", + "etag": "W/\u0022d85a9c69-d1e9-491c-ac7d-1aaf7fed2b17\u0022", "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups/privateDnsZoneConfigs", "properties": { "provisioningState": "Succeeded", @@ -2000,7 +2072,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2008,8 +2080,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:37:41 GMT", - "ETag": "W/\u0022b2e01943-084d-480c-89e1-0dd35ae749bf\u0022", + "Date": "Thu, 28 Apr 2022 09:25:08 GMT", + "ETag": "W/\u0022d85a9c69-d1e9-491c-ac7d-1aaf7fed2b17\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -2020,15 +2092,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "d703cca2-95b5-401f-8297-796872dfdd26", - "x-ms-correlation-request-id": "4d57953f-fa2a-47a5-9730-2dd9c3ae2f77", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013741Z:4d57953f-fa2a-47a5-9730-2dd9c3ae2f77" + "x-ms-arm-service-request-id": "c96eacdf-ade7-48e7-b975-e223b08b1bd3", + "x-ms-correlation-request-id": "2d09c79e-99ea-4463-9bd6-c294b0db3085", + "x-ms-ratelimit-remaining-subscription-reads": "11897", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092508Z:2d09c79e-99ea-4463-9bd6-c294b0db3085" }, "ResponseBody": { "name": "myPrivateDnsZoneGroup", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint/privateDnsZoneGroups/myPrivateDnsZoneGroup", - "etag": "W/\u0022b2e01943-084d-480c-89e1-0dd35ae749bf\u0022", + "etag": "W/\u0022d85a9c69-d1e9-491c-ac7d-1aaf7fed2b17\u0022", "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups", "properties": { "provisioningState": "Succeeded", @@ -2036,7 +2108,7 @@ { "name": "zone1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint/privateDnsZoneGroups/myPrivateDnsZoneGroup/privateDnsZoneConfigs/zone1", - "etag": "W/\u0022b2e01943-084d-480c-89e1-0dd35ae749bf\u0022", + "etag": "W/\u0022d85a9c69-d1e9-491c-ac7d-1aaf7fed2b17\u0022", "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups/privateDnsZoneConfigs", "properties": { "provisioningState": "Succeeded", @@ -2049,13 +2121,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateLinkServices/myService/privateEndpointConnections/myPrivateEndpoint.51fa3961-3131-44c1-aab8-6ef3df43529e?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateLinkServices/myService/privateEndpointConnections/myPrivateEndpoint.d0ad9c90-6a4f-442f-84eb-111247435e97?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2063,8 +2135,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:37:41 GMT", - "ETag": "W/\u002221d7bea6-a586-47dd-ac09-04a97b857a29\u0022", + "Date": "Thu, 28 Apr 2022 09:25:08 GMT", + "ETag": "W/\u002260883ae5-64c7-4896-81b1-f5a0d6a21011\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -2075,15 +2147,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "3b9474ed-e15e-4313-b058-e17800f52492", - "x-ms-correlation-request-id": "44e7fd08-88fe-4f6c-be17-5ad4274481f7", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013742Z:44e7fd08-88fe-4f6c-be17-5ad4274481f7" + "x-ms-arm-service-request-id": "2abd6734-84aa-4218-8133-e6dff3bc1167", + "x-ms-correlation-request-id": "6edacca1-1688-4f63-b677-3130a88cf713", + "x-ms-ratelimit-remaining-subscription-reads": "11896", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092508Z:6edacca1-1688-4f63-b677-3130a88cf713" }, "ResponseBody": { - "name": "myPrivateEndpoint.51fa3961-3131-44c1-aab8-6ef3df43529e", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateLinkServices/myService/privateEndpointConnections/myPrivateEndpoint.51fa3961-3131-44c1-aab8-6ef3df43529e", - "etag": "W/\u002221d7bea6-a586-47dd-ac09-04a97b857a29\u0022", + "name": "myPrivateEndpoint.d0ad9c90-6a4f-442f-84eb-111247435e97", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateLinkServices/myService/privateEndpointConnections/myPrivateEndpoint.d0ad9c90-6a4f-442f-84eb-111247435e97", + "etag": "W/\u002260883ae5-64c7-4896-81b1-f5a0d6a21011\u0022", "properties": { "provisioningState": "Succeeded", "privateEndpoint": { @@ -2094,7 +2166,7 @@ "description": "approved it for some reason.", "actionsRequired": "" }, - "linkIdentifier": "536948354" + "linkIdentifier": "536906593" }, "type": "Microsoft.Network/privateLinkServices/privateEndpointConnections" } @@ -2106,7 +2178,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2114,8 +2186,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:37:42 GMT", - "ETag": "W/\u0022b2e01943-084d-480c-89e1-0dd35ae749bf\u0022", + "Date": "Thu, 28 Apr 2022 09:25:08 GMT", + "ETag": "W/\u0022d85a9c69-d1e9-491c-ac7d-1aaf7fed2b17\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -2126,25 +2198,25 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "6def211a-5b16-45fb-980c-1b6b877f1247", - "x-ms-correlation-request-id": "6fde8eca-d513-4bb1-ad56-45302bafad3c", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013742Z:6fde8eca-d513-4bb1-ad56-45302bafad3c" + "x-ms-arm-service-request-id": "30bbbfc5-327a-41c1-8c19-a024705373a8", + "x-ms-correlation-request-id": "699b46ec-ba5a-4ba6-ae77-ccfaead59047", + "x-ms-ratelimit-remaining-subscription-reads": "11895", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092508Z:699b46ec-ba5a-4ba6-ae77-ccfaead59047" }, "ResponseBody": { "name": "myPrivateEndpoint", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint", - "etag": "W/\u0022b2e01943-084d-480c-89e1-0dd35ae749bf\u0022", + "etag": "W/\u0022d85a9c69-d1e9-491c-ac7d-1aaf7fed2b17\u0022", "type": "Microsoft.Network/privateEndpoints", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "51fa3961-3131-44c1-aab8-6ef3df43529e", + "resourceGuid": "d0ad9c90-6a4f-442f-84eb-111247435e97", "privateLinkServiceConnections": [ { "name": "myService", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint/privateLinkServiceConnections/myService", - "etag": "W/\u0022b2e01943-084d-480c-89e1-0dd35ae749bf\u0022", + "etag": "W/\u0022d85a9c69-d1e9-491c-ac7d-1aaf7fed2b17\u0022", "properties": { "provisioningState": "Succeeded", "privateLinkServiceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateLinkServices/myService", @@ -2165,7 +2237,7 @@ "ipConfigurations": [], "networkInterfaces": [ { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/myPrivateEndpoint.nic.430d6a08-9d2b-4c67-89b8-825298b50c86" + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/myPrivateEndpoint.nic.dd9a792b-f814-4b70-bb0a-80710a2209aa" } ], "customDnsConfigs": [] @@ -2179,7 +2251,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2187,8 +2259,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:37:42 GMT", - "ETag": "W/\u002221d7bea6-a586-47dd-ac09-04a97b857a29\u0022", + "Date": "Thu, 28 Apr 2022 09:25:08 GMT", + "ETag": "W/\u002260883ae5-64c7-4896-81b1-f5a0d6a21011\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -2199,26 +2271,26 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "160912a8-5f41-47bf-a03a-b11d36f38514", - "x-ms-correlation-request-id": "e48fb32b-040d-44f6-9689-1e1e0ae59f2a", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013742Z:e48fb32b-040d-44f6-9689-1e1e0ae59f2a" + "x-ms-arm-service-request-id": "6268deb2-5284-4418-9ef5-ec70dd90e410", + "x-ms-correlation-request-id": "052bd33b-6dc5-44be-b830-1c20f4a58e66", + "x-ms-ratelimit-remaining-subscription-reads": "11894", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092508Z:052bd33b-6dc5-44be-b830-1c20f4a58e66" }, "ResponseBody": { "name": "myService", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateLinkServices/myService", - "etag": "W/\u002221d7bea6-a586-47dd-ac09-04a97b857a29\u0022", + "etag": "W/\u002260883ae5-64c7-4896-81b1-f5a0d6a21011\u0022", "type": "Microsoft.Network/privateLinkServices", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "066bebc9-2b80-4c27-b181-0a4858402fe6", + "resourceGuid": "78a1643a-eb2e-45a5-bca2-637ee9fbcef7", "fqdns": [ "fqdn1", "fqdn2", "fqdn3" ], - "alias": "myservice.22f418af-ba1d-46d4-a60d-3f21f5fb6076.eastus.azure.privatelinkservice", + "alias": "myservice.357e98c0-00ab-4024-acc2-6bd3bc58db69.eastus.azure.privatelinkservice", "visibility": { "subscriptions": [ "00000000-0000-0000-0000-000000000000" @@ -2239,7 +2311,7 @@ { "name": "myIPConfiguration", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateLinkServices/myService/ipConfigurations/myIPConfiguration", - "etag": "W/\u002221d7bea6-a586-47dd-ac09-04a97b857a29\u0022", + "etag": "W/\u002260883ae5-64c7-4896-81b1-f5a0d6a21011\u0022", "type": "Microsoft.Network/privateLinkServices/ipConfigurations", "properties": { "provisioningState": "Succeeded", @@ -2254,9 +2326,9 @@ ], "privateEndpointConnections": [ { - "name": "myPrivateEndpoint.51fa3961-3131-44c1-aab8-6ef3df43529e", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateLinkServices/myService/privateEndpointConnections/myPrivateEndpoint.51fa3961-3131-44c1-aab8-6ef3df43529e", - "etag": "W/\u002221d7bea6-a586-47dd-ac09-04a97b857a29\u0022", + "name": "myPrivateEndpoint.d0ad9c90-6a4f-442f-84eb-111247435e97", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateLinkServices/myService/privateEndpointConnections/myPrivateEndpoint.d0ad9c90-6a4f-442f-84eb-111247435e97", + "etag": "W/\u002260883ae5-64c7-4896-81b1-f5a0d6a21011\u0022", "properties": { "provisioningState": "Succeeded", "privateEndpoint": { @@ -2267,14 +2339,14 @@ "description": "approved it for some reason.", "actionsRequired": "" }, - "linkIdentifier": "536948354" + "linkIdentifier": "536906593" }, "type": "Microsoft.Network/privateLinkServices/privateEndpointConnections" } ], "networkInterfaces": [ { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/myService.nic.ca77c97c-158d-4515-bfad-ba0b670ed19a" + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/myService.nic.67b61536-f242-4741-bee1-8c30169bcd94" } ] } @@ -2288,17 +2360,17 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/32e1a86d-edde-49a7-8c54-bcdee939698c?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3148bd3a-e977-464a-ba84-e75c2b01696c?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Wed, 27 Apr 2022 01:37:43 GMT", + "Date": "Thu, 28 Apr 2022 09:25:08 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/32e1a86d-edde-49a7-8c54-bcdee939698c?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/3148bd3a-e977-464a-ba84-e75c2b01696c?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -2307,21 +2379,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "0918b817-1e22-4318-85c9-f583a85a4748", - "x-ms-correlation-request-id": "6bfc0528-bcae-40e5-bb1f-8ab9ac0904cc", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013744Z:6bfc0528-bcae-40e5-bb1f-8ab9ac0904cc" + "x-ms-arm-service-request-id": "a5fbf74f-26ca-4fcd-835f-92fa944fbaaf", + "x-ms-correlation-request-id": "8d8c95ab-a0a6-46e3-a697-ec7fd8c82c30", + "x-ms-ratelimit-remaining-subscription-deletes": "14988", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092508Z:8d8c95ab-a0a6-46e3-a697-ec7fd8c82c30" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/32e1a86d-edde-49a7-8c54-bcdee939698c?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3148bd3a-e977-464a-ba84-e75c2b01696c?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2329,7 +2401,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:37:54 GMT", + "Date": "Thu, 28 Apr 2022 09:25:18 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -2340,33 +2412,33 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "db8afe9f-2560-4825-af5b-98264dfe1066", - "x-ms-correlation-request-id": "c0e1d679-9dac-4c5a-bddf-9f001e20a051", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013755Z:c0e1d679-9dac-4c5a-bddf-9f001e20a051" + "x-ms-arm-service-request-id": "ab5d91bd-29b7-40af-8845-edbcc6d33281", + "x-ms-correlation-request-id": "6b3e45be-ccf7-4c31-933c-b3c35c7a8753", + "x-ms-ratelimit-remaining-subscription-reads": "11893", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092518Z:6b3e45be-ccf7-4c31-933c-b3c35c7a8753" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/32e1a86d-edde-49a7-8c54-bcdee939698c?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/3148bd3a-e977-464a-ba84-e75c2b01696c?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/32e1a86d-edde-49a7-8c54-bcdee939698c?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3148bd3a-e977-464a-ba84-e75c2b01696c?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:37:54 GMT", + "Date": "Thu, 28 Apr 2022 09:25:18 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/32e1a86d-edde-49a7-8c54-bcdee939698c?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/3148bd3a-e977-464a-ba84-e75c2b01696c?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -2374,32 +2446,32 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "0918b817-1e22-4318-85c9-f583a85a4748", - "x-ms-correlation-request-id": "6bfc0528-bcae-40e5-bb1f-8ab9ac0904cc", - "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013755Z:80e3ac41-7a36-4ad3-ab55-759bd913b4ad" + "x-ms-arm-service-request-id": "a5fbf74f-26ca-4fcd-835f-92fa944fbaaf", + "x-ms-correlation-request-id": "8d8c95ab-a0a6-46e3-a697-ec7fd8c82c30", + "x-ms-ratelimit-remaining-subscription-reads": "11892", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092518Z:3aa865da-08c3-4a49-85d0-b3ab808d5943" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateLinkServices/myService/privateEndpointConnections/myPrivateEndpoint.51fa3961-3131-44c1-aab8-6ef3df43529e?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateLinkServices/myService/privateEndpointConnections/myPrivateEndpoint.d0ad9c90-6a4f-442f-84eb-111247435e97?api-version=2021-08-01", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b84b49ff-6ea1-420e-bbb0-45d72d386559?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/049d85ce-bbca-4584-a75d-2cc5199426cc?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Wed, 27 Apr 2022 01:37:55 GMT", + "Date": "Thu, 28 Apr 2022 09:25:18 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/b84b49ff-6ea1-420e-bbb0-45d72d386559?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/049d85ce-bbca-4584-a75d-2cc5199426cc?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -2408,21 +2480,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "9da893fc-60a7-4ebf-826d-9ba3f8c95db5", - "x-ms-correlation-request-id": "68484737-30f3-48ad-b03f-99b9cb812b52", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013755Z:68484737-30f3-48ad-b03f-99b9cb812b52" + "x-ms-arm-service-request-id": "38e3afb1-c30c-42e6-b7c5-0725809f585c", + "x-ms-correlation-request-id": "5697c844-0797-49c4-b744-1f526d6441f9", + "x-ms-ratelimit-remaining-subscription-deletes": "14987", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092519Z:5697c844-0797-49c4-b744-1f526d6441f9" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b84b49ff-6ea1-420e-bbb0-45d72d386559?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/049d85ce-bbca-4584-a75d-2cc5199426cc?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2430,7 +2502,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:38:05 GMT", + "Date": "Thu, 28 Apr 2022 09:25:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -2441,33 +2513,33 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "711296b8-2d91-4613-93de-668249d41ad5", - "x-ms-correlation-request-id": "8ba47a7b-fad2-4cfc-aef1-b3c8b529665e", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013806Z:8ba47a7b-fad2-4cfc-aef1-b3c8b529665e" + "x-ms-arm-service-request-id": "c89d15b4-0e22-4d2e-9d18-58ef3aa6b4e8", + "x-ms-correlation-request-id": "b3b9d3ae-c0f7-4c5b-b791-c3e60f375c3c", + "x-ms-ratelimit-remaining-subscription-reads": "11891", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092529Z:b3b9d3ae-c0f7-4c5b-b791-c3e60f375c3c" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/b84b49ff-6ea1-420e-bbb0-45d72d386559?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/049d85ce-bbca-4584-a75d-2cc5199426cc?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b84b49ff-6ea1-420e-bbb0-45d72d386559?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/049d85ce-bbca-4584-a75d-2cc5199426cc?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:38:05 GMT", + "Date": "Thu, 28 Apr 2022 09:25:28 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/b84b49ff-6ea1-420e-bbb0-45d72d386559?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/049d85ce-bbca-4584-a75d-2cc5199426cc?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -2475,10 +2547,10 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "9da893fc-60a7-4ebf-826d-9ba3f8c95db5", - "x-ms-correlation-request-id": "68484737-30f3-48ad-b03f-99b9cb812b52", - "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013806Z:90bcc687-a0d8-4d61-86da-aabac579ec64" + "x-ms-arm-service-request-id": "38e3afb1-c30c-42e6-b7c5-0725809f585c", + "x-ms-correlation-request-id": "5697c844-0797-49c4-b744-1f526d6441f9", + "x-ms-ratelimit-remaining-subscription-reads": "11890", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092529Z:f4173616-4b3b-453c-8cb1-9edb234fb0a6" }, "ResponseBody": null }, @@ -2490,18 +2562,18 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/542f89a1-f5a5-40d7-8766-b83634dd13ce?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/2b4063d5-5306-45e2-bc21-fcc691c53d16?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Wed, 27 Apr 2022 01:38:06 GMT", + "Date": "Thu, 28 Apr 2022 09:25:28 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/542f89a1-f5a5-40d7-8766-b83634dd13ce?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/2b4063d5-5306-45e2-bc21-fcc691c53d16?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -2510,21 +2582,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "6c42e60f-aee9-43ab-b4c8-7ba78744b6f0", - "x-ms-correlation-request-id": "c99b38c3-a848-4246-a729-fd4e55df7fdb", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013807Z:c99b38c3-a848-4246-a729-fd4e55df7fdb" + "x-ms-arm-service-request-id": "a70cc2d4-152c-46a1-ba7a-5749c577d1b9", + "x-ms-correlation-request-id": "659129cc-28fe-4321-87c2-8e7f95e0ca7f", + "x-ms-ratelimit-remaining-subscription-deletes": "14986", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092529Z:659129cc-28fe-4321-87c2-8e7f95e0ca7f" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/542f89a1-f5a5-40d7-8766-b83634dd13ce?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/2b4063d5-5306-45e2-bc21-fcc691c53d16?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2532,7 +2604,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:38:17 GMT", + "Date": "Thu, 28 Apr 2022 09:25:38 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -2543,34 +2615,34 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "bf8517a1-74c3-4b1e-aa56-2d18e952957a", - "x-ms-correlation-request-id": "ea2bfd01-66fd-49a8-9c34-ea71e0cce2d4", - "x-ms-ratelimit-remaining-subscription-reads": "11974", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013818Z:ea2bfd01-66fd-49a8-9c34-ea71e0cce2d4" + "x-ms-arm-service-request-id": "1e409872-dd1d-4d66-bcde-c22dec0e33b6", + "x-ms-correlation-request-id": "5df44c2d-0b45-475a-b977-f0debfa1ea1b", + "x-ms-ratelimit-remaining-subscription-reads": "11889", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092539Z:5df44c2d-0b45-475a-b977-f0debfa1ea1b" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/542f89a1-f5a5-40d7-8766-b83634dd13ce?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/2b4063d5-5306-45e2-bc21-fcc691c53d16?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/542f89a1-f5a5-40d7-8766-b83634dd13ce?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/2b4063d5-5306-45e2-bc21-fcc691c53d16?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:38:18 GMT", + "Date": "Thu, 28 Apr 2022 09:25:38 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/542f89a1-f5a5-40d7-8766-b83634dd13ce?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/2b4063d5-5306-45e2-bc21-fcc691c53d16?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -2578,10 +2650,10 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "6c42e60f-aee9-43ab-b4c8-7ba78744b6f0", - "x-ms-correlation-request-id": "c99b38c3-a848-4246-a729-fd4e55df7fdb", - "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013818Z:9e0e68bc-65b9-4b6c-ab4a-cbe4f3383d32" + "x-ms-arm-service-request-id": "a70cc2d4-152c-46a1-ba7a-5749c577d1b9", + "x-ms-correlation-request-id": "659129cc-28fe-4321-87c2-8e7f95e0ca7f", + "x-ms-ratelimit-remaining-subscription-reads": "11888", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092539Z:fea92aad-26a7-456a-869a-54d01e2bf805" }, "ResponseBody": null }, @@ -2593,18 +2665,18 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/4c9e6f66-1e93-4d20-8c54-9c312711a575?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/1e9f944e-2608-4609-b079-5a02da784f6c?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Wed, 27 Apr 2022 01:38:18 GMT", + "Date": "Thu, 28 Apr 2022 09:25:39 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/4c9e6f66-1e93-4d20-8c54-9c312711a575?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/1e9f944e-2608-4609-b079-5a02da784f6c?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -2613,21 +2685,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "66c18834-8119-465e-8517-b03273cea140", - "x-ms-correlation-request-id": "5ae78290-51be-49e1-b432-5b88666ef54c", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013819Z:5ae78290-51be-49e1-b432-5b88666ef54c" + "x-ms-arm-service-request-id": "cba7b88f-b02e-4c95-886f-51cbee9faf8a", + "x-ms-correlation-request-id": "98a628de-9aa2-42ed-b2e0-7c32a4d846ac", + "x-ms-ratelimit-remaining-subscription-deletes": "14985", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092539Z:98a628de-9aa2-42ed-b2e0-7c32a4d846ac" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/4c9e6f66-1e93-4d20-8c54-9c312711a575?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/1e9f944e-2608-4609-b079-5a02da784f6c?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2635,7 +2707,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:38:29 GMT", + "Date": "Thu, 28 Apr 2022 09:25:49 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -2646,34 +2718,34 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "f63d6d10-a8b2-498b-ad88-e081d6cc26a8", - "x-ms-correlation-request-id": "1f65611e-9c08-4408-8311-64a0f91b89a3", - "x-ms-ratelimit-remaining-subscription-reads": "11972", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013830Z:1f65611e-9c08-4408-8311-64a0f91b89a3" + "x-ms-arm-service-request-id": "667464a2-1874-44ef-b288-db0a040c772d", + "x-ms-correlation-request-id": "cedd5d85-1ffe-4c14-8e63-4837200f9e08", + "x-ms-ratelimit-remaining-subscription-reads": "11887", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092549Z:cedd5d85-1ffe-4c14-8e63-4837200f9e08" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/4c9e6f66-1e93-4d20-8c54-9c312711a575?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/1e9f944e-2608-4609-b079-5a02da784f6c?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.7.3 (Windows-10-10.0.22581-SP0)" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/4c9e6f66-1e93-4d20-8c54-9c312711a575?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/1e9f944e-2608-4609-b079-5a02da784f6c?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 27 Apr 2022 01:38:29 GMT", + "Date": "Thu, 28 Apr 2022 09:25:49 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/4c9e6f66-1e93-4d20-8c54-9c312711a575?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/1e9f944e-2608-4609-b079-5a02da784f6c?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -2681,10 +2753,10 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "66c18834-8119-465e-8517-b03273cea140", - "x-ms-correlation-request-id": "5ae78290-51be-49e1-b432-5b88666ef54c", - "x-ms-ratelimit-remaining-subscription-reads": "11971", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220427T013830Z:ebce1f2c-fd65-4deb-9746-9d3694fa7977" + "x-ms-arm-service-request-id": "cba7b88f-b02e-4c95-886f-51cbee9faf8a", + "x-ms-correlation-request-id": "98a628de-9aa2-42ed-b2e0-7c32a4d846ac", + "x-ms-ratelimit-remaining-subscription-reads": "11886", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092550Z:aa3e67c2-f28c-4b60-a6cd-405d369a4cb6" }, "ResponseBody": null } diff --git a/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_endpoint_policy.pyTestMgmtNetworktest_network.json b/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_endpoint_policy.pyTestMgmtNetworktest_network.json index e40f34265337..aa6c40ac6532 100644 --- a/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_endpoint_policy.pyTestMgmtNetworktest_network.json +++ b/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_endpoint_policy.pyTestMgmtNetworktest_network.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -17,12 +17,12 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "1753", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:51:40 GMT", + "Date": "Thu, 28 Apr 2022 09:25:51 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12651.7 - WUS2 ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - EUS ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -101,7 +101,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -111,12 +111,12 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "945", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:51:40 GMT", + "Date": "Thu, 28 Apr 2022 09:25:51 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12651.7 - WUS2 ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - WUS2 ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -172,12 +172,12 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "client-request-id": "fe8e4853-2af7-409f-9001-afd1902bcfb9", + "client-request-id": "070b092e-b73f-4368-9c77-f3dd6126a64a", "Connection": "keep-alive", "Content-Length": "286", "Content-Type": "application/x-www-form-urlencoded", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", @@ -190,10 +190,10 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "client-request-id": "fe8e4853-2af7-409f-9001-afd1902bcfb9", + "client-request-id": "070b092e-b73f-4368-9c77-f3dd6126a64a", "Content-Length": "93", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:51:40 GMT", + "Date": "Thu, 28 Apr 2022 09:25:51 GMT", "Expires": "-1", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Pragma": "no-cache", @@ -201,7 +201,7 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", - "x-ms-ests-server": "2.1.12651.7 - WUS2 ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - WUS2 ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -220,7 +220,7 @@ "Connection": "keep-alive", "Content-Length": "22", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "eastus" @@ -228,11 +228,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/8052ff0c-71db-48bb-a48f-fa2b930beaa3?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/a7d06fa2-a72f-49c7-a5f1-c1c4871594e3?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "509", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:51:40 GMT", + "Date": "Thu, 28 Apr 2022 09:25:51 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -242,32 +242,32 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "dad6194f-01b6-4a78-8941-2217f34f6f8d", - "x-ms-correlation-request-id": "5f4c755c-8f08-4aef-93a8-6681cf9c70c4", - "x-ms-ratelimit-remaining-subscription-writes": "1184", - "x-ms-routing-request-id": "EASTUS2:20220425T035141Z:5f4c755c-8f08-4aef-93a8-6681cf9c70c4" + "x-ms-arm-service-request-id": "22988bd9-eab6-4480-9959-28e976873cbd", + "x-ms-correlation-request-id": "7390bca1-2c35-4da7-a510-db2ebcc8bc5e", + "x-ms-ratelimit-remaining-subscription-writes": "1183", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092552Z:7390bca1-2c35-4da7-a510-db2ebcc8bc5e" }, "ResponseBody": { "name": "myServiceEndpointPolicy", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/serviceEndpointPolicies/myServiceEndpointPolicy", - "etag": "W/\u002220a755ac-fedd-4578-ae14-31b02cf8d615\u0022", + "etag": "W/\u0022b25f2d01-a8ba-469b-b1ed-b05858d6f77e\u0022", "type": "Microsoft.Network/serviceEndpointPolicies", "location": "eastus", "properties": { "provisioningState": "Updating", - "resourceGuid": "3315c5ba-8600-42a7-9803-8707077fd760", + "resourceGuid": "e9f90026-541f-4a03-b9ce-508991ec0931", "serviceEndpointPolicyDefinitions": [] } } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/8052ff0c-71db-48bb-a48f-fa2b930beaa3?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/a7d06fa2-a72f-49c7-a5f1-c1c4871594e3?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -275,7 +275,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:51:50 GMT", + "Date": "Thu, 28 Apr 2022 09:26:01 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -286,10 +286,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "68938b5c-178c-4629-9d0a-a95ac105875e", - "x-ms-correlation-request-id": "b315d5c9-0ae0-435b-82c4-3c422176e8d5", - "x-ms-ratelimit-remaining-subscription-reads": "11902", - "x-ms-routing-request-id": "EASTUS2:20220425T035151Z:b315d5c9-0ae0-435b-82c4-3c422176e8d5" + "x-ms-arm-service-request-id": "a45f98f0-be60-4c3c-ab23-39b0cb05f001", + "x-ms-correlation-request-id": "a4d1818d-cac7-4f93-a36c-5b2255aeae5b", + "x-ms-ratelimit-remaining-subscription-reads": "11885", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092602Z:a4d1818d-cac7-4f93-a36c-5b2255aeae5b" }, "ResponseBody": { "status": "Succeeded" @@ -302,7 +302,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -310,8 +310,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:51:50 GMT", - "ETag": "W/\u002278b445dd-dc67-4fd1-bfbb-3385a0eea8df\u0022", + "Date": "Thu, 28 Apr 2022 09:26:01 GMT", + "ETag": "W/\u0022fe360244-dac7-46d1-a6ac-6907909b3f6f\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -322,20 +322,20 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "555294e7-7de6-4617-95c9-21f163385fa6", - "x-ms-correlation-request-id": "05b677e7-c275-48b7-8116-e35e9c2b5645", - "x-ms-ratelimit-remaining-subscription-reads": "11901", - "x-ms-routing-request-id": "EASTUS2:20220425T035151Z:05b677e7-c275-48b7-8116-e35e9c2b5645" + "x-ms-arm-service-request-id": "2e418d5f-4e7f-430c-b60b-2c99ef74b988", + "x-ms-correlation-request-id": "78136bfe-f3db-458f-8169-5fbe65b9ebf4", + "x-ms-ratelimit-remaining-subscription-reads": "11884", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092602Z:78136bfe-f3db-458f-8169-5fbe65b9ebf4" }, "ResponseBody": { "name": "myServiceEndpointPolicy", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/serviceEndpointPolicies/myServiceEndpointPolicy", - "etag": "W/\u002278b445dd-dc67-4fd1-bfbb-3385a0eea8df\u0022", + "etag": "W/\u0022fe360244-dac7-46d1-a6ac-6907909b3f6f\u0022", "type": "Microsoft.Network/serviceEndpointPolicies", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "3315c5ba-8600-42a7-9803-8707077fd760", + "resourceGuid": "e9f90026-541f-4a03-b9ce-508991ec0931", "serviceEndpointPolicyDefinitions": [] } } @@ -349,7 +349,7 @@ "Connection": "keep-alive", "Content-Length": "207", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "properties": { @@ -362,11 +362,11 @@ }, "StatusCode": 201, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/5f743967-8e1f-485a-9af9-6bac41f5aa5b?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/ca41e428-363d-4c3e-975a-acd6cc25738d?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "708", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:51:51 GMT", + "Date": "Thu, 28 Apr 2022 09:26:01 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -376,15 +376,15 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "532d6738-5ceb-43f8-b3b0-4989aeb5fa95", - "x-ms-correlation-request-id": "b6218194-7bdb-45d8-9a93-322d6ca89ff2", - "x-ms-ratelimit-remaining-subscription-writes": "1183", - "x-ms-routing-request-id": "EASTUS2:20220425T035151Z:b6218194-7bdb-45d8-9a93-322d6ca89ff2" + "x-ms-arm-service-request-id": "adf8d047-f854-45db-8940-45b7e0cc0207", + "x-ms-correlation-request-id": "ac85a5b8-a51a-43a8-86df-aa4bf1b2a996", + "x-ms-ratelimit-remaining-subscription-writes": "1182", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092602Z:ac85a5b8-a51a-43a8-86df-aa4bf1b2a996" }, "ResponseBody": { "name": "myServiceEndpointPolicyDefinition", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/serviceEndpointPolicies/myServiceEndpointPolicy/serviceEndpointPolicyDefinitions/myServiceEndpointPolicyDefinition", - "etag": "W/\u0022df9065d9-67b5-43cf-a349-e39dbaaf1965\u0022", + "etag": "W/\u0022e4956f12-0f7d-438b-bc46-7f33bd4a2ca5\u0022", "properties": { "provisioningState": "Updating", "service": "Microsoft.Storage", @@ -397,13 +397,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/5f743967-8e1f-485a-9af9-6bac41f5aa5b?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/ca41e428-363d-4c3e-975a-acd6cc25738d?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -411,7 +411,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:52:01 GMT", + "Date": "Thu, 28 Apr 2022 09:26:12 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -422,10 +422,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "57dbeef7-a865-460f-a374-2b06a5b71dda", - "x-ms-correlation-request-id": "a19a4f94-3188-4795-bf63-129f86a320d7", - "x-ms-ratelimit-remaining-subscription-reads": "11900", - "x-ms-routing-request-id": "EASTUS2:20220425T035201Z:a19a4f94-3188-4795-bf63-129f86a320d7" + "x-ms-arm-service-request-id": "30de6b34-8a21-4247-9974-a0a862e4f6f6", + "x-ms-correlation-request-id": "1ac8f9db-7ad8-49ed-96c9-6f5f7b82270b", + "x-ms-ratelimit-remaining-subscription-reads": "11883", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092612Z:1ac8f9db-7ad8-49ed-96c9-6f5f7b82270b" }, "ResponseBody": { "status": "Succeeded" @@ -438,7 +438,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -446,8 +446,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:52:01 GMT", - "ETag": "W/\u0022ae076e01-c2e6-4623-a00a-9f2127403d75\u0022", + "Date": "Thu, 28 Apr 2022 09:26:13 GMT", + "ETag": "W/\u002262589616-1fc0-4720-a877-3fc506fe2b77\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -458,15 +458,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "a3d9f975-19b4-4ea6-b347-31c1b98ed5b5", - "x-ms-correlation-request-id": "b43bc85a-d17e-42b4-88e7-acbc94f2b02b", - "x-ms-ratelimit-remaining-subscription-reads": "11899", - "x-ms-routing-request-id": "EASTUS2:20220425T035202Z:b43bc85a-d17e-42b4-88e7-acbc94f2b02b" + "x-ms-arm-service-request-id": "86bc5cbc-ac85-49b2-80bd-e4963b6fc967", + "x-ms-correlation-request-id": "57b9a60f-d81d-4874-88bc-c2b507c597b3", + "x-ms-ratelimit-remaining-subscription-reads": "11882", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092613Z:57b9a60f-d81d-4874-88bc-c2b507c597b3" }, "ResponseBody": { "name": "myServiceEndpointPolicyDefinition", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/serviceEndpointPolicies/myServiceEndpointPolicy/serviceEndpointPolicyDefinitions/myServiceEndpointPolicyDefinition", - "etag": "W/\u0022ae076e01-c2e6-4623-a00a-9f2127403d75\u0022", + "etag": "W/\u002262589616-1fc0-4720-a877-3fc506fe2b77\u0022", "properties": { "provisioningState": "Succeeded", "service": "Microsoft.Storage", @@ -485,7 +485,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -493,8 +493,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:52:01 GMT", - "ETag": "W/\u0022ae076e01-c2e6-4623-a00a-9f2127403d75\u0022", + "Date": "Thu, 28 Apr 2022 09:26:13 GMT", + "ETag": "W/\u002262589616-1fc0-4720-a877-3fc506fe2b77\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -505,15 +505,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "277b2850-4218-4e81-b906-980ac7ef649e", - "x-ms-correlation-request-id": "d843160d-fef4-4b78-967c-b99e7aa73499", - "x-ms-ratelimit-remaining-subscription-reads": "11898", - "x-ms-routing-request-id": "EASTUS2:20220425T035202Z:d843160d-fef4-4b78-967c-b99e7aa73499" + "x-ms-arm-service-request-id": "5eca4368-20d2-4345-adf7-49ef869cd34a", + "x-ms-correlation-request-id": "bcc22f15-abc2-409c-be75-585e390dc3fb", + "x-ms-ratelimit-remaining-subscription-reads": "11881", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092613Z:bcc22f15-abc2-409c-be75-585e390dc3fb" }, "ResponseBody": { "name": "myServiceEndpointPolicyDefinition", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/serviceEndpointPolicies/myServiceEndpointPolicy/serviceEndpointPolicyDefinitions/myServiceEndpointPolicyDefinition", - "etag": "W/\u0022ae076e01-c2e6-4623-a00a-9f2127403d75\u0022", + "etag": "W/\u002262589616-1fc0-4720-a877-3fc506fe2b77\u0022", "properties": { "provisioningState": "Succeeded", "service": "Microsoft.Storage", @@ -532,7 +532,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -540,8 +540,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:52:01 GMT", - "ETag": "W/\u0022ae076e01-c2e6-4623-a00a-9f2127403d75\u0022", + "Date": "Thu, 28 Apr 2022 09:26:13 GMT", + "ETag": "W/\u002262589616-1fc0-4720-a877-3fc506fe2b77\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -552,25 +552,25 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "5937a36c-0b73-41f6-839d-4be6a6ef4594", - "x-ms-correlation-request-id": "34596843-2d46-43f9-bea4-5aa8d7e1a116", - "x-ms-ratelimit-remaining-subscription-reads": "11897", - "x-ms-routing-request-id": "EASTUS2:20220425T035202Z:34596843-2d46-43f9-bea4-5aa8d7e1a116" + "x-ms-arm-service-request-id": "0711fbf3-3f4e-4a81-92fe-c0210e3afa73", + "x-ms-correlation-request-id": "811805cf-eeb6-4681-957c-8c37d15570de", + "x-ms-ratelimit-remaining-subscription-reads": "11880", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092613Z:811805cf-eeb6-4681-957c-8c37d15570de" }, "ResponseBody": { "name": "myServiceEndpointPolicy", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/serviceEndpointPolicies/myServiceEndpointPolicy", - "etag": "W/\u0022ae076e01-c2e6-4623-a00a-9f2127403d75\u0022", + "etag": "W/\u002262589616-1fc0-4720-a877-3fc506fe2b77\u0022", "type": "Microsoft.Network/serviceEndpointPolicies", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "3315c5ba-8600-42a7-9803-8707077fd760", + "resourceGuid": "e9f90026-541f-4a03-b9ce-508991ec0931", "serviceEndpointPolicyDefinitions": [ { "name": "myServiceEndpointPolicyDefinition", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/serviceEndpointPolicies/myServiceEndpointPolicy/serviceEndpointPolicyDefinitions/myServiceEndpointPolicyDefinition", - "etag": "W/\u0022ae076e01-c2e6-4623-a00a-9f2127403d75\u0022", + "etag": "W/\u002262589616-1fc0-4720-a877-3fc506fe2b77\u0022", "properties": { "provisioningState": "Succeeded", "service": "Microsoft.Storage", @@ -594,7 +594,7 @@ "Connection": "keep-alive", "Content-Length": "46", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "tags": { @@ -608,7 +608,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:52:01 GMT", + "Date": "Thu, 28 Apr 2022 09:26:13 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -619,15 +619,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "f8a84329-8298-4ac4-93e6-04a77fe6f5e5", - "x-ms-correlation-request-id": "20e2989d-b30d-440f-b702-16a3edc1ccca", - "x-ms-ratelimit-remaining-subscription-writes": "1182", - "x-ms-routing-request-id": "EASTUS2:20220425T035202Z:20e2989d-b30d-440f-b702-16a3edc1ccca" + "x-ms-arm-service-request-id": "b078cc52-7bbe-48c5-a166-f7f417886a03", + "x-ms-correlation-request-id": "db0c2785-73e3-4eb5-b595-7292b343a05a", + "x-ms-ratelimit-remaining-subscription-writes": "1181", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092613Z:db0c2785-73e3-4eb5-b595-7292b343a05a" }, "ResponseBody": { "name": "myServiceEndpointPolicy", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/serviceEndpointPolicies/myServiceEndpointPolicy", - "etag": "W/\u002242e6baf5-504f-42b3-a50f-28b281fe0ad5\u0022", + "etag": "W/\u0022180126ea-41a2-413c-bd21-a2b49fa2821a\u0022", "type": "Microsoft.Network/serviceEndpointPolicies", "location": "eastus", "tags": { @@ -636,12 +636,12 @@ }, "properties": { "provisioningState": "Succeeded", - "resourceGuid": "3315c5ba-8600-42a7-9803-8707077fd760", + "resourceGuid": "e9f90026-541f-4a03-b9ce-508991ec0931", "serviceEndpointPolicyDefinitions": [ { "name": "myServiceEndpointPolicyDefinition", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/serviceEndpointPolicies/myServiceEndpointPolicy/serviceEndpointPolicyDefinitions/myServiceEndpointPolicyDefinition", - "etag": "W/\u002242e6baf5-504f-42b3-a50f-28b281fe0ad5\u0022", + "etag": "W/\u0022180126ea-41a2-413c-bd21-a2b49fa2821a\u0022", "properties": { "provisioningState": "Succeeded", "service": "Microsoft.Storage", @@ -664,17 +664,17 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b2e93e1f-4ed3-45a1-9759-123d2d0ba8d9?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/52cf5e9e-9570-4db3-a496-be0c44ef4467?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 03:52:01 GMT", + "Date": "Thu, 28 Apr 2022 09:26:13 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/b2e93e1f-4ed3-45a1-9759-123d2d0ba8d9?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/52cf5e9e-9570-4db3-a496-be0c44ef4467?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -683,21 +683,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "b791abcb-75d5-4d90-924d-b2ec1a2e148e", - "x-ms-correlation-request-id": "d19dfdd0-8263-4a02-9976-15cba4c4df19", - "x-ms-ratelimit-remaining-subscription-deletes": "14988", - "x-ms-routing-request-id": "EASTUS2:20220425T035202Z:d19dfdd0-8263-4a02-9976-15cba4c4df19" + "x-ms-arm-service-request-id": "2edb43a2-d66c-4d96-8b5a-eed713a62acf", + "x-ms-correlation-request-id": "b6da1061-800b-4c26-b20b-408685c2be94", + "x-ms-ratelimit-remaining-subscription-deletes": "14984", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092613Z:b6da1061-800b-4c26-b20b-408685c2be94" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b2e93e1f-4ed3-45a1-9759-123d2d0ba8d9?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/52cf5e9e-9570-4db3-a496-be0c44ef4467?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -705,7 +705,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:52:12 GMT", + "Date": "Thu, 28 Apr 2022 09:26:23 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -716,33 +716,33 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "94e23c9e-4647-44f4-b8b7-f6170dcad367", - "x-ms-correlation-request-id": "84672b01-ce2f-4246-b3ee-70407540b316", - "x-ms-ratelimit-remaining-subscription-reads": "11896", - "x-ms-routing-request-id": "EASTUS2:20220425T035212Z:84672b01-ce2f-4246-b3ee-70407540b316" + "x-ms-arm-service-request-id": "986d8af2-07ec-43a1-8f5b-1c6a985cf141", + "x-ms-correlation-request-id": "b3cdd85d-5b23-4536-958f-aeedecf81121", + "x-ms-ratelimit-remaining-subscription-reads": "11879", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092623Z:b3cdd85d-5b23-4536-958f-aeedecf81121" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/b2e93e1f-4ed3-45a1-9759-123d2d0ba8d9?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/52cf5e9e-9570-4db3-a496-be0c44ef4467?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b2e93e1f-4ed3-45a1-9759-123d2d0ba8d9?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/52cf5e9e-9570-4db3-a496-be0c44ef4467?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:52:12 GMT", + "Date": "Thu, 28 Apr 2022 09:26:23 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/b2e93e1f-4ed3-45a1-9759-123d2d0ba8d9?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/52cf5e9e-9570-4db3-a496-be0c44ef4467?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -750,10 +750,10 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "b791abcb-75d5-4d90-924d-b2ec1a2e148e", - "x-ms-correlation-request-id": "d19dfdd0-8263-4a02-9976-15cba4c4df19", - "x-ms-ratelimit-remaining-subscription-reads": "11895", - "x-ms-routing-request-id": "EASTUS2:20220425T035212Z:749ea862-6e18-42b3-85c6-7d13249a4825" + "x-ms-arm-service-request-id": "2edb43a2-d66c-4d96-8b5a-eed713a62acf", + "x-ms-correlation-request-id": "b6da1061-800b-4c26-b20b-408685c2be94", + "x-ms-ratelimit-remaining-subscription-reads": "11878", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092623Z:8e13c82f-c5a4-4d55-af96-90e1a45ae280" }, "ResponseBody": null }, @@ -765,18 +765,18 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/6c97888e-3e57-40fb-ace1-e0f4fbc260e3?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b9c6c2c3-08a8-4611-958f-8dab2390b72a?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 03:52:12 GMT", + "Date": "Thu, 28 Apr 2022 09:26:24 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/6c97888e-3e57-40fb-ace1-e0f4fbc260e3?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/b9c6c2c3-08a8-4611-958f-8dab2390b72a?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -785,21 +785,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "0213889b-27b5-4c1a-8d9c-2148f784522f", - "x-ms-correlation-request-id": "2940be08-c52f-4863-8882-b831520afba7", - "x-ms-ratelimit-remaining-subscription-deletes": "14987", - "x-ms-routing-request-id": "EASTUS2:20220425T035212Z:2940be08-c52f-4863-8882-b831520afba7" + "x-ms-arm-service-request-id": "143eada3-2095-428a-a385-3a65ab0a5079", + "x-ms-correlation-request-id": "5b099ae0-b3fb-44fe-8fb2-55517f8086fe", + "x-ms-ratelimit-remaining-subscription-deletes": "14983", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092624Z:5b099ae0-b3fb-44fe-8fb2-55517f8086fe" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/6c97888e-3e57-40fb-ace1-e0f4fbc260e3?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b9c6c2c3-08a8-4611-958f-8dab2390b72a?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -807,7 +807,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:52:22 GMT", + "Date": "Thu, 28 Apr 2022 09:26:34 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -818,34 +818,34 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "23f831c3-2f8b-4cac-84a8-33587d8e6ad4", - "x-ms-correlation-request-id": "d4bf967d-704c-4cfd-8473-8ca29739d0b3", - "x-ms-ratelimit-remaining-subscription-reads": "11894", - "x-ms-routing-request-id": "EASTUS2:20220425T035222Z:d4bf967d-704c-4cfd-8473-8ca29739d0b3" + "x-ms-arm-service-request-id": "3c123427-a23f-4788-8cf5-8b282bef5f5c", + "x-ms-correlation-request-id": "6cc3f760-c6f0-440b-be0c-6ea500ae451c", + "x-ms-ratelimit-remaining-subscription-reads": "11877", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092634Z:6cc3f760-c6f0-440b-be0c-6ea500ae451c" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/6c97888e-3e57-40fb-ace1-e0f4fbc260e3?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/b9c6c2c3-08a8-4611-958f-8dab2390b72a?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/6c97888e-3e57-40fb-ace1-e0f4fbc260e3?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b9c6c2c3-08a8-4611-958f-8dab2390b72a?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:52:22 GMT", + "Date": "Thu, 28 Apr 2022 09:26:34 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/6c97888e-3e57-40fb-ace1-e0f4fbc260e3?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/b9c6c2c3-08a8-4611-958f-8dab2390b72a?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -853,10 +853,10 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "0213889b-27b5-4c1a-8d9c-2148f784522f", - "x-ms-correlation-request-id": "2940be08-c52f-4863-8882-b831520afba7", - "x-ms-ratelimit-remaining-subscription-reads": "11893", - "x-ms-routing-request-id": "EASTUS2:20220425T035223Z:c24bf6a6-24e1-449b-8fd7-cd859c05ddd3" + "x-ms-arm-service-request-id": "143eada3-2095-428a-a385-3a65ab0a5079", + "x-ms-correlation-request-id": "5b099ae0-b3fb-44fe-8fb2-55517f8086fe", + "x-ms-ratelimit-remaining-subscription-reads": "11876", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092634Z:2afb5648-7746-46fb-8500-7deac0fe3bd0" }, "ResponseBody": null } diff --git a/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_firewall.pyTestMgmtNetworktest_network.json b/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_firewall.pyTestMgmtNetworktest_network.json index af09bd06336c..54e3396c8843 100644 --- a/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_firewall.pyTestMgmtNetworktest_network.json +++ b/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_firewall.pyTestMgmtNetworktest_network.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -17,12 +17,12 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "1753", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:52:23 GMT", + "Date": "Thu, 28 Apr 2022 09:26:35 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12651.7 - WUS2 ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - NCUS ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -101,7 +101,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -111,12 +111,12 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "945", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:52:23 GMT", + "Date": "Thu, 28 Apr 2022 09:26:35 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12651.7 - SCUS ProdSlices", + "x-ms-ests-server": "2.1.12651.7 - NCUS ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -172,12 +172,12 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "client-request-id": "3e25346f-b49c-4010-815c-6fc5e31abe83", + "client-request-id": "d02efe76-b51c-4263-ae6f-a1b0e6857f52", "Connection": "keep-alive", "Content-Length": "286", "Content-Type": "application/x-www-form-urlencoded", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", @@ -190,10 +190,10 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "client-request-id": "3e25346f-b49c-4010-815c-6fc5e31abe83", + "client-request-id": "d02efe76-b51c-4263-ae6f-a1b0e6857f52", "Content-Length": "93", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:52:23 GMT", + "Date": "Thu, 28 Apr 2022 09:26:35 GMT", "Expires": "-1", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Pragma": "no-cache", @@ -201,7 +201,7 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", - "x-ms-ests-server": "2.1.12651.7 - NCUS ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - EUS ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -220,7 +220,7 @@ "Connection": "keep-alive", "Content-Length": "115", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "West US", @@ -235,11 +235,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/cf523ee8-b5f4-45c4-bb21-2eca8ccc84f3?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5b4cd817-7244-4a02-b8e4-d15f11d768ba?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "542", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:52:24 GMT", + "Date": "Thu, 28 Apr 2022 09:26:36 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -249,15 +249,15 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "ea5ffe6c-f5b9-4e61-a36b-c3f25b0eb405", - "x-ms-correlation-request-id": "a7b8d7fa-1079-4444-9edf-a228dd68359f", - "x-ms-ratelimit-remaining-subscription-writes": "1181", - "x-ms-routing-request-id": "EASTUS2:20220425T035224Z:a7b8d7fa-1079-4444-9edf-a228dd68359f" + "x-ms-arm-service-request-id": "c6ab6fe5-9705-411e-ad9f-c61d5d3f5332", + "x-ms-correlation-request-id": "aa9e97b7-a2f9-4284-a5f0-8233a24bcb88", + "x-ms-ratelimit-remaining-subscription-writes": "1180", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092636Z:aa9e97b7-a2f9-4284-a5f0-8233a24bcb88" }, "ResponseBody": { "name": "virtualwan", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/virtualWans/virtualwan", - "etag": "W/\u00222eefb807-924b-475c-b675-101653c39296\u0022", + "etag": "W/\u0022010f9c9f-bd2f-449f-8a57-ba1a66081447\u0022", "type": "Microsoft.Network/virtualWans", "location": "westus", "tags": { @@ -273,13 +273,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/cf523ee8-b5f4-45c4-bb21-2eca8ccc84f3?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5b4cd817-7244-4a02-b8e4-d15f11d768ba?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -287,7 +287,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:52:34 GMT", + "Date": "Thu, 28 Apr 2022 09:26:46 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -298,10 +298,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "3f8f88a8-a0e3-4fb3-a6dc-e1bc445585ce", - "x-ms-correlation-request-id": "c4765015-18e0-48c9-8153-f0e9fc73f9b9", - "x-ms-ratelimit-remaining-subscription-reads": "11892", - "x-ms-routing-request-id": "EASTUS2:20220425T035234Z:c4765015-18e0-48c9-8153-f0e9fc73f9b9" + "x-ms-arm-service-request-id": "f3ae70d7-8c37-4b3d-aba6-7d5e1e9d4608", + "x-ms-correlation-request-id": "f5a308ac-8e8f-445e-859a-9bbef24df385", + "x-ms-ratelimit-remaining-subscription-reads": "11875", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092646Z:f5a308ac-8e8f-445e-859a-9bbef24df385" }, "ResponseBody": { "status": "Succeeded" @@ -314,7 +314,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -322,8 +322,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:52:34 GMT", - "ETag": "W/\u002274250d8a-67ae-4033-8dab-075a1637c6a6\u0022", + "Date": "Thu, 28 Apr 2022 09:26:46 GMT", + "ETag": "W/\u002205eead30-b305-4607-a5d1-0b92b6121881\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -334,15 +334,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "0c51e8c6-710e-4074-ac3b-916bfc038aec", - "x-ms-correlation-request-id": "a0e188b7-a590-44b4-8cfe-bd5a24da12a0", - "x-ms-ratelimit-remaining-subscription-reads": "11891", - "x-ms-routing-request-id": "EASTUS2:20220425T035235Z:a0e188b7-a590-44b4-8cfe-bd5a24da12a0" + "x-ms-arm-service-request-id": "d618d6b1-eb53-4be6-8b15-91918c6b45b5", + "x-ms-correlation-request-id": "9df8f791-8d64-42ca-bebc-53482368ecfd", + "x-ms-ratelimit-remaining-subscription-reads": "11874", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092646Z:9df8f791-8d64-42ca-bebc-53482368ecfd" }, "ResponseBody": { "name": "virtualwan", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/virtualWans/virtualwan", - "etag": "W/\u002274250d8a-67ae-4033-8dab-075a1637c6a6\u0022", + "etag": "W/\u002205eead30-b305-4607-a5d1-0b92b6121881\u0022", "type": "Microsoft.Network/virtualWans", "location": "westus", "tags": { @@ -366,7 +366,7 @@ "Connection": "keep-alive", "Content-Length": "269", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "West US", @@ -384,11 +384,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/445b0b3d-9542-4161-8ad5-365e485019cd?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/07a37d6c-22ad-4fd9-8772-5d57d406e4ab?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "1048", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:52:35 GMT", + "Date": "Thu, 28 Apr 2022 09:26:48 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -398,15 +398,15 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "1002cef3-4e1e-4553-98d4-3f4ca407b96d", - "x-ms-correlation-request-id": "93ec9074-0e65-460e-b114-5beecc189783", - "x-ms-ratelimit-remaining-subscription-writes": "1180", - "x-ms-routing-request-id": "EASTUS2:20220425T035236Z:93ec9074-0e65-460e-b114-5beecc189783" + "x-ms-arm-service-request-id": "038ca13c-848f-4940-9769-5cddc3bf7c87", + "x-ms-correlation-request-id": "286e1772-d1ff-46cc-ac63-74b00e819865", + "x-ms-ratelimit-remaining-subscription-writes": "1179", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092648Z:286e1772-d1ff-46cc-ac63-74b00e819865" }, "ResponseBody": { "name": "virtualhub", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/virtualHubs/virtualhub", - "etag": "W/\u002258bbc85b-e5f9-48d1-9a24-831bf5e0ff40\u0022", + "etag": "W/\u0022c289bf63-9125-4601-9e00-beef43a7435f\u0022", "type": "Microsoft.Network/virtualHubs", "location": "westus", "tags": { @@ -437,13 +437,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/445b0b3d-9542-4161-8ad5-365e485019cd?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/07a37d6c-22ad-4fd9-8772-5d57d406e4ab?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -451,7 +451,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:52:45 GMT", + "Date": "Thu, 28 Apr 2022 09:26:57 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -463,23 +463,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "954851e3-9e3a-402c-b711-b024383e69c8", - "x-ms-correlation-request-id": "2074e963-e462-4999-8b63-ed8b26fdc853", - "x-ms-ratelimit-remaining-subscription-reads": "11890", - "x-ms-routing-request-id": "EASTUS2:20220425T035246Z:2074e963-e462-4999-8b63-ed8b26fdc853" + "x-ms-arm-service-request-id": "b59a413d-6908-4812-8c75-3074d503e4bf", + "x-ms-correlation-request-id": "f7ae6801-595c-4f39-81f4-bfa8d35a8502", + "x-ms-ratelimit-remaining-subscription-reads": "11873", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092658Z:f7ae6801-595c-4f39-81f4-bfa8d35a8502" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/445b0b3d-9542-4161-8ad5-365e485019cd?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/07a37d6c-22ad-4fd9-8772-5d57d406e4ab?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -487,7 +487,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:52:56 GMT", + "Date": "Thu, 28 Apr 2022 09:27:08 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "20", @@ -499,23 +499,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "93e892b4-c415-4880-bb70-e71a2f5a39eb", - "x-ms-correlation-request-id": "ac820986-ac48-4926-a2eb-851585d64531", - "x-ms-ratelimit-remaining-subscription-reads": "11889", - "x-ms-routing-request-id": "EASTUS2:20220425T035256Z:ac820986-ac48-4926-a2eb-851585d64531" + "x-ms-arm-service-request-id": "16af3d82-0621-42e7-9f42-50f64ca173a1", + "x-ms-correlation-request-id": "ad0a0244-ac15-47fb-a50c-8eb97bc0289e", + "x-ms-ratelimit-remaining-subscription-reads": "11872", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092708Z:ad0a0244-ac15-47fb-a50c-8eb97bc0289e" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/445b0b3d-9542-4161-8ad5-365e485019cd?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/07a37d6c-22ad-4fd9-8772-5d57d406e4ab?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -523,7 +523,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:53:16 GMT", + "Date": "Thu, 28 Apr 2022 09:27:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "20", @@ -535,23 +535,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "e59f50fa-6727-4c15-b2b4-56c90226e668", - "x-ms-correlation-request-id": "e4e8c23a-9c85-49a3-a1d3-a5bf4a3f979a", - "x-ms-ratelimit-remaining-subscription-reads": "11888", - "x-ms-routing-request-id": "EASTUS2:20220425T035316Z:e4e8c23a-9c85-49a3-a1d3-a5bf4a3f979a" + "x-ms-arm-service-request-id": "83fad61a-a651-4969-ad9b-1c9e6dc6e74f", + "x-ms-correlation-request-id": "9583cb1e-5ace-4cae-8e9f-a35991ccfc30", + "x-ms-ratelimit-remaining-subscription-reads": "11871", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092728Z:9583cb1e-5ace-4cae-8e9f-a35991ccfc30" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/445b0b3d-9542-4161-8ad5-365e485019cd?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/07a37d6c-22ad-4fd9-8772-5d57d406e4ab?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -559,7 +559,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:53:36 GMT", + "Date": "Thu, 28 Apr 2022 09:27:48 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "40", @@ -571,23 +571,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "19ad6d0d-89b9-4681-90a8-814770256918", - "x-ms-correlation-request-id": "1ef812da-16a7-41ea-9df8-1f119245e53a", - "x-ms-ratelimit-remaining-subscription-reads": "11887", - "x-ms-routing-request-id": "EASTUS2:20220425T035336Z:1ef812da-16a7-41ea-9df8-1f119245e53a" + "x-ms-arm-service-request-id": "1e2fbf40-3c10-496c-8ba1-52ca83391cc6", + "x-ms-correlation-request-id": "c13c9811-bb54-4aa3-9a48-f4cabbb38367", + "x-ms-ratelimit-remaining-subscription-reads": "11870", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092748Z:c13c9811-bb54-4aa3-9a48-f4cabbb38367" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/445b0b3d-9542-4161-8ad5-365e485019cd?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/07a37d6c-22ad-4fd9-8772-5d57d406e4ab?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -595,7 +595,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:54:16 GMT", + "Date": "Thu, 28 Apr 2022 09:28:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "40", @@ -607,23 +607,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "3c0159e3-7ea8-4228-b363-846fbb0bfa94", - "x-ms-correlation-request-id": "aaedbfac-6c81-4dd3-802e-33de286ce767", - "x-ms-ratelimit-remaining-subscription-reads": "11886", - "x-ms-routing-request-id": "EASTUS2:20220425T035417Z:aaedbfac-6c81-4dd3-802e-33de286ce767" + "x-ms-arm-service-request-id": "7ec4d52f-99bb-4331-a665-a4b79e939942", + "x-ms-correlation-request-id": "5e503774-f68c-47ee-84f6-854d9e2e5052", + "x-ms-ratelimit-remaining-subscription-reads": "11869", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092829Z:5e503774-f68c-47ee-84f6-854d9e2e5052" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/445b0b3d-9542-4161-8ad5-365e485019cd?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/07a37d6c-22ad-4fd9-8772-5d57d406e4ab?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -631,7 +631,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:54:56 GMT", + "Date": "Thu, 28 Apr 2022 09:29:09 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "80", @@ -643,23 +643,59 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "fb365ecc-bb44-451b-992e-8b08c9c93702", - "x-ms-correlation-request-id": "698377ee-4739-4fe5-86f0-55757f988705", - "x-ms-ratelimit-remaining-subscription-reads": "11885", - "x-ms-routing-request-id": "EASTUS2:20220425T035457Z:698377ee-4739-4fe5-86f0-55757f988705" + "x-ms-arm-service-request-id": "14687659-13eb-460b-9be7-bd6b64705e86", + "x-ms-correlation-request-id": "842aebf0-3d97-4c65-ad87-16bab021549e", + "x-ms-ratelimit-remaining-subscription-reads": "11868", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T092909Z:842aebf0-3d97-4c65-ad87-16bab021549e" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/07a37d6c-22ad-4fd9-8772-5d57d406e4ab?api-version=2021-08-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 28 Apr 2022 09:30:29 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "160", + "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": "a6f92710-d62a-4e7a-92aa-3421c139f1d9", + "x-ms-correlation-request-id": "61063d97-b48c-427a-8e56-9d8e19fc9ba2", + "x-ms-ratelimit-remaining-subscription-reads": "11867", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T093029Z:61063d97-b48c-427a-8e56-9d8e19fc9ba2" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/445b0b3d-9542-4161-8ad5-365e485019cd?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/07a37d6c-22ad-4fd9-8772-5d57d406e4ab?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -667,7 +703,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:56:17 GMT", + "Date": "Thu, 28 Apr 2022 09:33:09 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -678,10 +714,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "97ea0d75-319d-46ca-ba64-13855dace7b4", - "x-ms-correlation-request-id": "83c070fe-5b98-4314-994b-057cf8216111", - "x-ms-ratelimit-remaining-subscription-reads": "11884", - "x-ms-routing-request-id": "EASTUS2:20220425T035617Z:83c070fe-5b98-4314-994b-057cf8216111" + "x-ms-arm-service-request-id": "e9488af3-ce3a-46cb-ac77-4d33e22908ce", + "x-ms-correlation-request-id": "01e42d92-3525-4d57-9830-ccdf8687e7a5", + "x-ms-ratelimit-remaining-subscription-reads": "11866", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T093309Z:01e42d92-3525-4d57-9830-ccdf8687e7a5" }, "ResponseBody": { "status": "Succeeded" @@ -694,7 +730,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -702,7 +738,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:56:17 GMT", + "Date": "Thu, 28 Apr 2022 09:33:09 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -713,15 +749,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "ea0c57b6-705e-4da4-a684-efb59b543bd3", - "x-ms-correlation-request-id": "df8c7645-a300-472f-abc0-cf6ab191e283", - "x-ms-ratelimit-remaining-subscription-reads": "11883", - "x-ms-routing-request-id": "EASTUS2:20220425T035617Z:df8c7645-a300-472f-abc0-cf6ab191e283" + "x-ms-arm-service-request-id": "3189d850-0243-4231-8753-bfa91cea748c", + "x-ms-correlation-request-id": "762040c0-3225-4dc5-a1ac-e74d02143438", + "x-ms-ratelimit-remaining-subscription-reads": "11865", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T093309Z:762040c0-3225-4dc5-a1ac-e74d02143438" }, "ResponseBody": { "name": "virtualhub", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/virtualHubs/virtualhub", - "etag": "W/\u002215325692-9f0a-44d1-901e-224b17378c43\u0022", + "etag": "W/\u0022ba55bab0-2168-43f7-8ad7-cbc04c8cad5a\u0022", "type": "Microsoft.Network/virtualHubs", "location": "westus", "tags": { @@ -760,7 +796,7 @@ "Connection": "keep-alive", "Content-Length": "94", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "eastus", @@ -773,20 +809,20 @@ }, "StatusCode": 201, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/nfvOperations/cb95bed2-717e-4181-b7cb-0c994a536559?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/nfvOperations/6204ad41-e7d4-4762-a338-b0b9f6f4ac52?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "570", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:56:19 GMT", + "Date": "Thu, 28 Apr 2022 09:33:11 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "79170eb7-7d81-4053-a4af-1c57529fe121", + "x-ms-correlation-request-id": "eabfc56c-ae3b-4d92-b927-f00d406733a7", "x-ms-ratelimit-remaining-subscription-writes": "1179", - "x-ms-routing-request-id": "EASTUS2:20220425T035619Z:79170eb7-7d81-4053-a4af-1c57529fe121" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T093312Z:eabfc56c-ae3b-4d92-b927-f00d406733a7" }, "ResponseBody": { "properties": { @@ -802,7 +838,7 @@ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/firewallPolicies/firewallpolicy", "name": "firewallpolicy", "type": "Microsoft.Network/FirewallPolicies", - "etag": "17e3824e-a16d-4b57-ae2a-1075d18f923d", + "etag": "4bb21089-eded-4db6-976a-08631ce3930e", "location": "eastus", "tags": { "key1": "value1" @@ -810,13 +846,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/nfvOperations/cb95bed2-717e-4181-b7cb-0c994a536559?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/nfvOperations/6204ad41-e7d4-4762-a338-b0b9f6f4ac52?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -824,7 +860,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:56:29 GMT", + "Date": "Thu, 28 Apr 2022 09:33:22 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -832,9 +868,9 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "caf55778-d42a-4e12-a17f-effa763e5061", - "x-ms-ratelimit-remaining-subscription-reads": "11882", - "x-ms-routing-request-id": "EASTUS2:20220425T035629Z:caf55778-d42a-4e12-a17f-effa763e5061" + "x-ms-correlation-request-id": "41f9b6b4-fcb2-4722-a2fd-a889a9bfa7dd", + "x-ms-ratelimit-remaining-subscription-reads": "11864", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T093322Z:41f9b6b4-fcb2-4722-a2fd-a889a9bfa7dd" }, "ResponseBody": { "status": "Succeeded" @@ -847,7 +883,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -855,8 +891,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:56:29 GMT", - "ETag": "\u002217e3824e-a16d-4b57-ae2a-1075d18f923d\u0022", + "Date": "Thu, 28 Apr 2022 09:33:23 GMT", + "ETag": "\u00224bb21089-eded-4db6-976a-08631ce3930e\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -864,9 +900,9 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8cce6cab-8287-4b74-80c4-faa4c339f414", - "x-ms-ratelimit-remaining-subscription-reads": "11881", - "x-ms-routing-request-id": "EASTUS2:20220425T035629Z:8cce6cab-8287-4b74-80c4-faa4c339f414" + "x-ms-correlation-request-id": "7d18e96d-8d28-410e-8036-b669db454fb7", + "x-ms-ratelimit-remaining-subscription-reads": "11863", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T093323Z:7d18e96d-8d28-410e-8036-b669db454fb7" }, "ResponseBody": { "properties": { @@ -882,7 +918,7 @@ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/firewallPolicies/firewallpolicy", "name": "firewallpolicy", "type": "Microsoft.Network/FirewallPolicies", - "etag": "17e3824e-a16d-4b57-ae2a-1075d18f923d", + "etag": "4bb21089-eded-4db6-976a-08631ce3930e", "location": "eastus", "tags": { "key1": "value1" @@ -898,7 +934,7 @@ "Connection": "keep-alive", "Content-Length": "510", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "West US", @@ -928,11 +964,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/62b76e1d-c374-4a06-96df-e61718b7593b?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c6c0e3fc-10a1-4a46-b28b-1118d3b74d95?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "981", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:56:33 GMT", + "Date": "Thu, 28 Apr 2022 09:33:26 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -942,15 +978,15 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "efb68612-0111-466d-9aad-5746cfd56c42", - "x-ms-correlation-request-id": "3047fb02-8e0c-4387-b5fb-12a35bb48478", + "x-ms-arm-service-request-id": "190fee6f-d378-49fa-ac59-459153f3bce5", + "x-ms-correlation-request-id": "073b3595-93c3-4d76-b708-fe54b7b3a72f", "x-ms-ratelimit-remaining-subscription-writes": "1178", - "x-ms-routing-request-id": "EASTUS2:20220425T035633Z:3047fb02-8e0c-4387-b5fb-12a35bb48478" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T093326Z:073b3595-93c3-4d76-b708-fe54b7b3a72f" }, "ResponseBody": { "name": "azurefirewall", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/azureFirewalls/azurefirewall", - "etag": "W/\u00229fd16a3e-41be-4c13-9f0c-02e349fda559\u0022", + "etag": "W/\u0022c14c87e1-5187-48c8-ad8f-4a65e2ea5c00\u0022", "type": "Microsoft.Network/azureFirewalls", "location": "westus", "tags": { @@ -979,13 +1015,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/62b76e1d-c374-4a06-96df-e61718b7593b?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c6c0e3fc-10a1-4a46-b28b-1118d3b74d95?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -993,7 +1029,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:56:43 GMT", + "Date": "Thu, 28 Apr 2022 09:33:36 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -1005,23 +1041,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "687ecdbc-ec6f-49a0-a82c-18ce8aa4b6e1", - "x-ms-correlation-request-id": "2cd3153c-b85f-4904-b7ae-ce7f48a7015f", - "x-ms-ratelimit-remaining-subscription-reads": "11880", - "x-ms-routing-request-id": "EASTUS2:20220425T035643Z:2cd3153c-b85f-4904-b7ae-ce7f48a7015f" + "x-ms-arm-service-request-id": "8b92c22a-1748-48c4-8904-e017643a81a2", + "x-ms-correlation-request-id": "d5782abf-bf75-4bf6-8113-22b8f524b438", + "x-ms-ratelimit-remaining-subscription-reads": "11862", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T093336Z:d5782abf-bf75-4bf6-8113-22b8f524b438" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/62b76e1d-c374-4a06-96df-e61718b7593b?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c6c0e3fc-10a1-4a46-b28b-1118d3b74d95?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1029,7 +1065,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:56:53 GMT", + "Date": "Thu, 28 Apr 2022 09:33:46 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "20", @@ -1041,23 +1077,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "785ca092-f014-4e0e-840c-5556780cc9dc", - "x-ms-correlation-request-id": "6f8f8269-d13a-4c10-ad9f-2fa2aa9a2229", - "x-ms-ratelimit-remaining-subscription-reads": "11879", - "x-ms-routing-request-id": "EASTUS2:20220425T035654Z:6f8f8269-d13a-4c10-ad9f-2fa2aa9a2229" + "x-ms-arm-service-request-id": "9aef9859-c768-4102-8936-ffc11f658722", + "x-ms-correlation-request-id": "87a2e63c-786a-4ea0-92fe-9e26542d70fe", + "x-ms-ratelimit-remaining-subscription-reads": "11861", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T093347Z:87a2e63c-786a-4ea0-92fe-9e26542d70fe" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/62b76e1d-c374-4a06-96df-e61718b7593b?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c6c0e3fc-10a1-4a46-b28b-1118d3b74d95?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1065,7 +1101,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:57:13 GMT", + "Date": "Thu, 28 Apr 2022 09:34:06 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "20", @@ -1077,23 +1113,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "b2157af5-4277-4d89-8d70-4b005bd08811", - "x-ms-correlation-request-id": "0197ca4c-49a4-419c-84a6-a7da6c4f92f9", - "x-ms-ratelimit-remaining-subscription-reads": "11878", - "x-ms-routing-request-id": "EASTUS2:20220425T035714Z:0197ca4c-49a4-419c-84a6-a7da6c4f92f9" + "x-ms-arm-service-request-id": "979d8741-9870-423f-86cb-68f1a19373ca", + "x-ms-correlation-request-id": "16a6bd02-1385-4f31-b2e0-ecd1297753cc", + "x-ms-ratelimit-remaining-subscription-reads": "11860", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T093407Z:16a6bd02-1385-4f31-b2e0-ecd1297753cc" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/62b76e1d-c374-4a06-96df-e61718b7593b?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c6c0e3fc-10a1-4a46-b28b-1118d3b74d95?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1101,7 +1137,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:57:33 GMT", + "Date": "Thu, 28 Apr 2022 09:34:26 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "40", @@ -1113,23 +1149,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "2c2753cd-e970-471a-8f99-f334d597c5c6", - "x-ms-correlation-request-id": "30a9b660-e5e7-4886-bed2-dcabd508941e", - "x-ms-ratelimit-remaining-subscription-reads": "11877", - "x-ms-routing-request-id": "EASTUS2:20220425T035734Z:30a9b660-e5e7-4886-bed2-dcabd508941e" + "x-ms-arm-service-request-id": "66c068ae-e498-4cff-99ee-72990cd95ab3", + "x-ms-correlation-request-id": "9000709e-9ae9-4262-bf91-c030546de020", + "x-ms-ratelimit-remaining-subscription-reads": "11859", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T093427Z:9000709e-9ae9-4262-bf91-c030546de020" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/62b76e1d-c374-4a06-96df-e61718b7593b?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c6c0e3fc-10a1-4a46-b28b-1118d3b74d95?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1137,7 +1173,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:58:14 GMT", + "Date": "Thu, 28 Apr 2022 09:35:07 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "40", @@ -1149,23 +1185,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "582d3c79-9fc2-4470-a28a-88fa3040125c", - "x-ms-correlation-request-id": "013edb03-3e3e-4e4b-a95d-631031ad136b", - "x-ms-ratelimit-remaining-subscription-reads": "11876", - "x-ms-routing-request-id": "EASTUS2:20220425T035814Z:013edb03-3e3e-4e4b-a95d-631031ad136b" + "x-ms-arm-service-request-id": "01358071-f24f-4cfc-9595-4fdf7459da3c", + "x-ms-correlation-request-id": "7d809c07-c662-4c6d-9f08-601df98e94d4", + "x-ms-ratelimit-remaining-subscription-reads": "11859", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T093507Z:7d809c07-c662-4c6d-9f08-601df98e94d4" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/62b76e1d-c374-4a06-96df-e61718b7593b?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c6c0e3fc-10a1-4a46-b28b-1118d3b74d95?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1173,7 +1209,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 03:58:53 GMT", + "Date": "Thu, 28 Apr 2022 09:35:47 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "80", @@ -1185,23 +1221,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "7c7010e0-e1a7-4c8c-ad57-6dacd52e3efb", - "x-ms-correlation-request-id": "70091ec0-24b2-4d15-ae8d-1d08ee0933ee", - "x-ms-ratelimit-remaining-subscription-reads": "11875", - "x-ms-routing-request-id": "EASTUS2:20220425T035854Z:70091ec0-24b2-4d15-ae8d-1d08ee0933ee" + "x-ms-arm-service-request-id": "7910ca20-3ea7-4496-8144-7d09bfbdf7fd", + "x-ms-correlation-request-id": "d62e6aee-f5c8-4074-9418-449c1300dc0c", + "x-ms-ratelimit-remaining-subscription-reads": "11858", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T093547Z:d62e6aee-f5c8-4074-9418-449c1300dc0c" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/62b76e1d-c374-4a06-96df-e61718b7593b?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c6c0e3fc-10a1-4a46-b28b-1118d3b74d95?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1209,7 +1245,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:00:14 GMT", + "Date": "Thu, 28 Apr 2022 09:37:07 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "160", @@ -1221,59 +1257,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "e9487946-ce82-4b16-b73b-58ffbaa227ea", - "x-ms-correlation-request-id": "b5d17468-b541-428f-9783-c88cb1bd169f", - "x-ms-ratelimit-remaining-subscription-reads": "11874", - "x-ms-routing-request-id": "EASTUS2:20220425T040014Z:b5d17468-b541-428f-9783-c88cb1bd169f" - }, - "ResponseBody": { - "status": "InProgress" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/62b76e1d-c374-4a06-96df-e61718b7593b?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:02:54 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "100", - "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": "d38884b8-d855-4ec1-b38d-e3360c86f352", - "x-ms-correlation-request-id": "f0bb09d8-b01b-4cd2-9b78-8a84793db3fc", - "x-ms-ratelimit-remaining-subscription-reads": "11873", - "x-ms-routing-request-id": "EASTUS2:20220425T040254Z:f0bb09d8-b01b-4cd2-9b78-8a84793db3fc" + "x-ms-arm-service-request-id": "1643f258-48dc-4f0b-ae6f-e500525508a7", + "x-ms-correlation-request-id": "44e2ec60-9c4d-4e7d-bd5a-ada472c7e932", + "x-ms-ratelimit-remaining-subscription-reads": "11857", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T093708Z:44e2ec60-9c4d-4e7d-bd5a-ada472c7e932" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/62b76e1d-c374-4a06-96df-e61718b7593b?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c6c0e3fc-10a1-4a46-b28b-1118d3b74d95?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1281,7 +1281,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:04:35 GMT", + "Date": "Thu, 28 Apr 2022 09:39:48 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -1293,23 +1293,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "c04802b9-0d51-46fc-bc8a-676ba617ad47", - "x-ms-correlation-request-id": "8ca7bd23-2a47-4261-a320-559046fb5616", - "x-ms-ratelimit-remaining-subscription-reads": "11872", - "x-ms-routing-request-id": "EASTUS2:20220425T040435Z:8ca7bd23-2a47-4261-a320-559046fb5616" + "x-ms-arm-service-request-id": "dcb81b52-1e1a-499a-a3ac-45ee2c233ff3", + "x-ms-correlation-request-id": "9b063d88-9585-4367-96f2-32eaa81c7981", + "x-ms-ratelimit-remaining-subscription-reads": "11856", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T093948Z:9b063d88-9585-4367-96f2-32eaa81c7981" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/62b76e1d-c374-4a06-96df-e61718b7593b?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c6c0e3fc-10a1-4a46-b28b-1118d3b74d95?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1317,7 +1317,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:06:14 GMT", + "Date": "Thu, 28 Apr 2022 09:41:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -1329,23 +1329,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "c4ca0dec-9473-4e39-b21a-ce9f14f40080", - "x-ms-correlation-request-id": "75cfdc5b-4423-4c8e-bfb2-e87354bc84c2", - "x-ms-ratelimit-remaining-subscription-reads": "11871", - "x-ms-routing-request-id": "EASTUS2:20220425T040615Z:75cfdc5b-4423-4c8e-bfb2-e87354bc84c2" + "x-ms-arm-service-request-id": "a8ad55ef-dac5-4ace-a45b-f060776c440f", + "x-ms-correlation-request-id": "e46308f5-3f6b-4ce3-960a-dcd4ffbaaef4", + "x-ms-ratelimit-remaining-subscription-reads": "11858", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T094128Z:e46308f5-3f6b-4ce3-960a-dcd4ffbaaef4" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/62b76e1d-c374-4a06-96df-e61718b7593b?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c6c0e3fc-10a1-4a46-b28b-1118d3b74d95?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1353,7 +1353,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:07:54 GMT", + "Date": "Thu, 28 Apr 2022 09:43:08 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -1365,23 +1365,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "43043d7b-9cd7-404f-8a6d-9aff994fff6d", - "x-ms-correlation-request-id": "522834aa-e7d1-4b32-a8ce-2961f139dcc6", - "x-ms-ratelimit-remaining-subscription-reads": "11870", - "x-ms-routing-request-id": "EASTUS2:20220425T040755Z:522834aa-e7d1-4b32-a8ce-2961f139dcc6" + "x-ms-arm-service-request-id": "9eef0806-9213-4b44-a955-c34cd79ebd12", + "x-ms-correlation-request-id": "8847bb9c-5082-47bb-9269-4007e557d496", + "x-ms-ratelimit-remaining-subscription-reads": "11857", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T094309Z:8847bb9c-5082-47bb-9269-4007e557d496" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/62b76e1d-c374-4a06-96df-e61718b7593b?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c6c0e3fc-10a1-4a46-b28b-1118d3b74d95?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1389,7 +1389,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:09:35 GMT", + "Date": "Thu, 28 Apr 2022 09:44:49 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -1401,23 +1401,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "24769415-809b-4657-9a5c-e80f2f2256dd", - "x-ms-correlation-request-id": "3ba6a203-c96b-4ca0-b887-2f94a7d5f5f9", - "x-ms-ratelimit-remaining-subscription-reads": "11869", - "x-ms-routing-request-id": "EASTUS2:20220425T040935Z:3ba6a203-c96b-4ca0-b887-2f94a7d5f5f9" + "x-ms-arm-service-request-id": "ad554442-5f10-4ef1-a310-8854798784a6", + "x-ms-correlation-request-id": "1105649b-0a45-45e2-b94c-c25df97c9bba", + "x-ms-ratelimit-remaining-subscription-reads": "11856", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T094449Z:1105649b-0a45-45e2-b94c-c25df97c9bba" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/62b76e1d-c374-4a06-96df-e61718b7593b?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c6c0e3fc-10a1-4a46-b28b-1118d3b74d95?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1425,7 +1425,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:11:15 GMT", + "Date": "Thu, 28 Apr 2022 09:46:29 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -1437,23 +1437,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "c8bbf6d1-f0e2-4146-bc59-f4651b8f75ef", - "x-ms-correlation-request-id": "bd3c4acc-bb43-46a7-91e0-f3ba1626cdc1", - "x-ms-ratelimit-remaining-subscription-reads": "11871", - "x-ms-routing-request-id": "EASTUS2:20220425T041116Z:bd3c4acc-bb43-46a7-91e0-f3ba1626cdc1" + "x-ms-arm-service-request-id": "89406714-fe16-4a04-8e4d-16af3161cb12", + "x-ms-correlation-request-id": "2687376e-4ee0-4a7c-a4ec-65c55b033e00", + "x-ms-ratelimit-remaining-subscription-reads": "11858", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T094629Z:2687376e-4ee0-4a7c-a4ec-65c55b033e00" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/62b76e1d-c374-4a06-96df-e61718b7593b?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c6c0e3fc-10a1-4a46-b28b-1118d3b74d95?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1461,7 +1461,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:12:55 GMT", + "Date": "Thu, 28 Apr 2022 09:48:09 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -1473,23 +1473,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "ffbae458-ab9e-4b8d-b6f8-67bfb5c266c5", - "x-ms-correlation-request-id": "ec406989-3747-460d-a218-fbb8a307bd74", - "x-ms-ratelimit-remaining-subscription-reads": "11870", - "x-ms-routing-request-id": "EASTUS2:20220425T041256Z:ec406989-3747-460d-a218-fbb8a307bd74" + "x-ms-arm-service-request-id": "dc96d4d6-fdb4-48b0-ac59-1df6894144af", + "x-ms-correlation-request-id": "2921d4ef-c28f-46e4-85a7-ce1da180286c", + "x-ms-ratelimit-remaining-subscription-reads": "11857", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T094809Z:2921d4ef-c28f-46e4-85a7-ce1da180286c" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/62b76e1d-c374-4a06-96df-e61718b7593b?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c6c0e3fc-10a1-4a46-b28b-1118d3b74d95?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1497,7 +1497,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:14:36 GMT", + "Date": "Thu, 28 Apr 2022 09:49:49 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1508,10 +1508,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "38a32889-8ea4-4f1a-b350-aa13a7f40a73", - "x-ms-correlation-request-id": "80aa5ed1-664b-4888-8bae-1343ebca582d", - "x-ms-ratelimit-remaining-subscription-reads": "11869", - "x-ms-routing-request-id": "EASTUS2:20220425T041436Z:80aa5ed1-664b-4888-8bae-1343ebca582d" + "x-ms-arm-service-request-id": "70f4cc81-7aa6-4872-bf18-c79523c4b2ab", + "x-ms-correlation-request-id": "5eace6bd-5e0a-4480-898c-acd3d8869edd", + "x-ms-ratelimit-remaining-subscription-reads": "11856", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T094950Z:5eace6bd-5e0a-4480-898c-acd3d8869edd" }, "ResponseBody": { "status": "Succeeded" @@ -1524,7 +1524,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1532,8 +1532,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:14:36 GMT", - "ETag": "W/\u0022e16b209d-cdbe-42d1-ac71-143de1c2f77e\u0022", + "Date": "Thu, 28 Apr 2022 09:49:49 GMT", + "ETag": "W/\u0022d5ca0a05-b50b-4760-9f5f-dc9a6705d8b4\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1544,15 +1544,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "054fd5fd-8b22-4781-8514-6c3130122ae8", - "x-ms-correlation-request-id": "ec1a336a-5164-4c68-b610-1fd2f29e335f", - "x-ms-ratelimit-remaining-subscription-reads": "11868", - "x-ms-routing-request-id": "EASTUS2:20220425T041436Z:ec1a336a-5164-4c68-b610-1fd2f29e335f" + "x-ms-arm-service-request-id": "002b7d6c-1975-4cff-8240-fa905b14cd38", + "x-ms-correlation-request-id": "2c573933-182b-49ba-9304-eda63af1733b", + "x-ms-ratelimit-remaining-subscription-reads": "11855", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T094950Z:2c573933-182b-49ba-9304-eda63af1733b" }, "ResponseBody": { "name": "azurefirewall", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/azureFirewalls/azurefirewall", - "etag": "W/\u0022e16b209d-cdbe-42d1-ac71-143de1c2f77e\u0022", + "etag": "W/\u0022d5ca0a05-b50b-4760-9f5f-dc9a6705d8b4\u0022", "type": "Microsoft.Network/azureFirewalls", "location": "westus", "tags": { @@ -1573,7 +1573,7 @@ "publicIPs": { "addresses": [ { - "address": "168.61.3.246" + "address": "104.40.9.150" } ], "count": 1 @@ -1592,7 +1592,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1600,8 +1600,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:14:36 GMT", - "ETag": "W/\u0022e16b209d-cdbe-42d1-ac71-143de1c2f77e\u0022", + "Date": "Thu, 28 Apr 2022 09:49:49 GMT", + "ETag": "W/\u0022d5ca0a05-b50b-4760-9f5f-dc9a6705d8b4\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1612,15 +1612,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "f99a5f01-742d-4f41-a8ba-cabc063fb77a", - "x-ms-correlation-request-id": "4c5c7868-0d35-4d7f-b555-160de59740bb", - "x-ms-ratelimit-remaining-subscription-reads": "11867", - "x-ms-routing-request-id": "EASTUS2:20220425T041436Z:4c5c7868-0d35-4d7f-b555-160de59740bb" + "x-ms-arm-service-request-id": "73c41e15-87c8-487a-b19f-e6d7e92d311f", + "x-ms-correlation-request-id": "3c295db8-4ff1-41fe-b8b7-a806d2cacaa8", + "x-ms-ratelimit-remaining-subscription-reads": "11854", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T094950Z:3c295db8-4ff1-41fe-b8b7-a806d2cacaa8" }, "ResponseBody": { "name": "azurefirewall", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/azureFirewalls/azurefirewall", - "etag": "W/\u0022e16b209d-cdbe-42d1-ac71-143de1c2f77e\u0022", + "etag": "W/\u0022d5ca0a05-b50b-4760-9f5f-dc9a6705d8b4\u0022", "type": "Microsoft.Network/azureFirewalls", "location": "westus", "tags": { @@ -1641,7 +1641,7 @@ "publicIPs": { "addresses": [ { - "address": "168.61.3.246" + "address": "104.40.9.150" } ], "count": 1 @@ -1662,7 +1662,7 @@ "Connection": "keep-alive", "Content-Length": "46", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "tags": { @@ -1676,7 +1676,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:14:36 GMT", + "Date": "Thu, 28 Apr 2022 09:49:50 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -1688,15 +1688,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "af2eb3e2-9aea-4f97-b0ed-2ea61dd6127d", - "x-ms-correlation-request-id": "6876adc9-fb7a-4df5-8f84-b707d8e392e7", - "x-ms-ratelimit-remaining-subscription-writes": "1178", - "x-ms-routing-request-id": "EASTUS2:20220425T041437Z:6876adc9-fb7a-4df5-8f84-b707d8e392e7" + "x-ms-arm-service-request-id": "8475671e-48da-43fd-822b-47650b0c9331", + "x-ms-correlation-request-id": "d27d5b7c-70d7-438b-a7f3-19a7256bdf45", + "x-ms-ratelimit-remaining-subscription-writes": "1177", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T094950Z:d27d5b7c-70d7-438b-a7f3-19a7256bdf45" }, "ResponseBody": { "name": "azurefirewall", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/azureFirewalls/azurefirewall", - "etag": "W/\u002250f7e25e-2829-49ba-a12c-8421599dc38f\u0022", + "etag": "W/\u0022fa6ef7cc-c073-4aa9-a8b9-276fc78f8121\u0022", "type": "Microsoft.Network/azureFirewalls", "location": "westus", "tags": { @@ -1718,7 +1718,7 @@ "publicIPs": { "addresses": [ { - "address": "168.61.3.246" + "address": "104.40.9.150" } ], "count": 1 @@ -1737,7 +1737,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1745,8 +1745,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:14:46 GMT", - "ETag": "W/\u002250f7e25e-2829-49ba-a12c-8421599dc38f\u0022", + "Date": "Thu, 28 Apr 2022 09:50:00 GMT", + "ETag": "W/\u0022fa6ef7cc-c073-4aa9-a8b9-276fc78f8121\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1757,15 +1757,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "19bbcace-6128-4b15-8d78-3a5ad5422111", - "x-ms-correlation-request-id": "d8bc3aed-06a6-4bf4-9c5c-ae0f4fb015e9", - "x-ms-ratelimit-remaining-subscription-reads": "11866", - "x-ms-routing-request-id": "EASTUS2:20220425T041447Z:d8bc3aed-06a6-4bf4-9c5c-ae0f4fb015e9" + "x-ms-arm-service-request-id": "2b96c700-33d1-4eb9-9fee-6e33a364c319", + "x-ms-correlation-request-id": "63b79466-891b-497e-ae66-50cbb9ac6c97", + "x-ms-ratelimit-remaining-subscription-reads": "11856", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095001Z:63b79466-891b-497e-ae66-50cbb9ac6c97" }, "ResponseBody": { "name": "azurefirewall", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/azureFirewalls/azurefirewall", - "etag": "W/\u002250f7e25e-2829-49ba-a12c-8421599dc38f\u0022", + "etag": "W/\u0022fa6ef7cc-c073-4aa9-a8b9-276fc78f8121\u0022", "type": "Microsoft.Network/azureFirewalls", "location": "westus", "tags": { @@ -1787,7 +1787,7 @@ "publicIPs": { "addresses": [ { - "address": "168.61.3.246" + "address": "104.40.9.150" } ], "count": 1 @@ -1806,7 +1806,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1814,8 +1814,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:15:16 GMT", - "ETag": "W/\u002250f7e25e-2829-49ba-a12c-8421599dc38f\u0022", + "Date": "Thu, 28 Apr 2022 09:50:31 GMT", + "ETag": "W/\u0022fa6ef7cc-c073-4aa9-a8b9-276fc78f8121\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1826,15 +1826,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "1bd20865-6eba-47cd-baa1-5ac8815ceebc", - "x-ms-correlation-request-id": "eb606bc5-bf30-4b93-9c28-c0061323aef9", - "x-ms-ratelimit-remaining-subscription-reads": "11868", - "x-ms-routing-request-id": "EASTUS2:20220425T041517Z:eb606bc5-bf30-4b93-9c28-c0061323aef9" + "x-ms-arm-service-request-id": "45ac6f2e-ee22-4fa0-bb9b-bfc7952a27b0", + "x-ms-correlation-request-id": "b1909b5c-3cb2-48de-915b-57cd7a367392", + "x-ms-ratelimit-remaining-subscription-reads": "11855", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095031Z:b1909b5c-3cb2-48de-915b-57cd7a367392" }, "ResponseBody": { "name": "azurefirewall", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/azureFirewalls/azurefirewall", - "etag": "W/\u002250f7e25e-2829-49ba-a12c-8421599dc38f\u0022", + "etag": "W/\u0022fa6ef7cc-c073-4aa9-a8b9-276fc78f8121\u0022", "type": "Microsoft.Network/azureFirewalls", "location": "westus", "tags": { @@ -1856,7 +1856,7 @@ "publicIPs": { "addresses": [ { - "address": "168.61.3.246" + "address": "104.40.9.150" } ], "count": 1 @@ -1875,7 +1875,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1883,8 +1883,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:15:47 GMT", - "ETag": "W/\u002250f7e25e-2829-49ba-a12c-8421599dc38f\u0022", + "Date": "Thu, 28 Apr 2022 09:51:01 GMT", + "ETag": "W/\u0022066e1106-b5ba-4a72-8395-1ff07259efc2\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1895,15 +1895,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "5a2435be-4248-471a-81a1-5c3956f6b8fa", - "x-ms-correlation-request-id": "98e3a46a-c0f1-4d3d-acdc-59a62c67f27d", - "x-ms-ratelimit-remaining-subscription-reads": "11867", - "x-ms-routing-request-id": "EASTUS2:20220425T041547Z:98e3a46a-c0f1-4d3d-acdc-59a62c67f27d" + "x-ms-arm-service-request-id": "475e4c6d-ba49-4083-89f4-0294c23443cc", + "x-ms-correlation-request-id": "4559997e-dd6b-4ef6-b429-9e7dfbe869c9", + "x-ms-ratelimit-remaining-subscription-reads": "11854", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095101Z:4559997e-dd6b-4ef6-b429-9e7dfbe869c9" }, "ResponseBody": { "name": "azurefirewall", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/azureFirewalls/azurefirewall", - "etag": "W/\u002250f7e25e-2829-49ba-a12c-8421599dc38f\u0022", + "etag": "W/\u0022066e1106-b5ba-4a72-8395-1ff07259efc2\u0022", "type": "Microsoft.Network/azureFirewalls", "location": "westus", "tags": { @@ -1911,7 +1911,7 @@ "tag2": "value2" }, "properties": { - "provisioningState": "Updating", + "provisioningState": "Succeeded", "sku": { "name": "AZFW_Hub", "tier": "Standard" @@ -1925,7 +1925,7 @@ "publicIPs": { "addresses": [ { - "address": "168.61.3.246" + "address": "104.40.9.150" } ], "count": 1 @@ -1939,12 +1939,47 @@ }, { "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/azureFirewalls/azurefirewall?api-version=2021-08-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncNotification": "Enabled", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/582548e0-05e9-4c43-9525-50fa2ecc6966?api-version=2021-08-01", + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Thu, 28 Apr 2022 09:51:01 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/582548e0-05e9-4c43-9525-50fa2ecc6966?api-version=2021-08-01", + "Pragma": "no-cache", + "Retry-After": "10", + "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": "118ccc90-0df0-4371-903b-d2979ad9952d", + "x-ms-correlation-request-id": "d222a9fa-4cbf-45c7-a33b-efb5c740a9d1", + "x-ms-ratelimit-remaining-subscription-deletes": "14983", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095101Z:d222a9fa-4cbf-45c7-a33b-efb5c740a9d1" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/582548e0-05e9-4c43-9525-50fa2ecc6966?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1952,10 +1987,10 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:16:16 GMT", - "ETag": "W/\u002250f7e25e-2829-49ba-a12c-8421599dc38f\u0022", + "Date": "Thu, 28 Apr 2022 09:51:11 GMT", "Expires": "-1", "Pragma": "no-cache", + "Retry-After": "10", "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" @@ -1964,56 +1999,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "9e1dfbce-d56b-4158-a381-59fec295f27c", - "x-ms-correlation-request-id": "0566e1eb-160a-4cef-b6c9-3f9d2b880d26", - "x-ms-ratelimit-remaining-subscription-reads": "11866", - "x-ms-routing-request-id": "EASTUS2:20220425T041617Z:0566e1eb-160a-4cef-b6c9-3f9d2b880d26" + "x-ms-arm-service-request-id": "ea8f05e4-ce70-46bd-8811-25ec0250f380", + "x-ms-correlation-request-id": "d7747a85-ecc1-4834-9462-9e42050b062b", + "x-ms-ratelimit-remaining-subscription-reads": "11853", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095111Z:d7747a85-ecc1-4834-9462-9e42050b062b" }, "ResponseBody": { - "name": "azurefirewall", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/azureFirewalls/azurefirewall", - "etag": "W/\u002250f7e25e-2829-49ba-a12c-8421599dc38f\u0022", - "type": "Microsoft.Network/azureFirewalls", - "location": "westus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "provisioningState": "Updating", - "sku": { - "name": "AZFW_Hub", - "tier": "Standard" - }, - "additionalProperties": {}, - "virtualHub": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/virtualHubs/virtualhub" - }, - "hubIPAddresses": { - "privateIPAddress": "10.168.0.132", - "publicIPs": { - "addresses": [ - { - "address": "168.61.3.246" - } - ], - "count": 1 - } - }, - "firewallPolicy": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/firewallPolicies/firewallpolicy" - } - } + "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/azureFirewalls/azurefirewall?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/582548e0-05e9-4c43-9525-50fa2ecc6966?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2021,10 +2023,10 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:16:47 GMT", - "ETag": "W/\u002250f7e25e-2829-49ba-a12c-8421599dc38f\u0022", + "Date": "Thu, 28 Apr 2022 09:51:21 GMT", "Expires": "-1", "Pragma": "no-cache", + "Retry-After": "20", "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" @@ -2033,56 +2035,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "d7863228-0eb5-45fc-92d1-8942717c7460", - "x-ms-correlation-request-id": "5e2d0a6d-606b-4f31-8014-2398848dbb59", - "x-ms-ratelimit-remaining-subscription-reads": "11865", - "x-ms-routing-request-id": "EASTUS2:20220425T041647Z:5e2d0a6d-606b-4f31-8014-2398848dbb59" + "x-ms-arm-service-request-id": "61a20a91-4c2d-4c04-8193-ad7caf040fdb", + "x-ms-correlation-request-id": "a672b1ec-ef95-4d02-af59-8ccb10231dab", + "x-ms-ratelimit-remaining-subscription-reads": "11852", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095122Z:a672b1ec-ef95-4d02-af59-8ccb10231dab" }, "ResponseBody": { - "name": "azurefirewall", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/azureFirewalls/azurefirewall", - "etag": "W/\u002250f7e25e-2829-49ba-a12c-8421599dc38f\u0022", - "type": "Microsoft.Network/azureFirewalls", - "location": "westus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "provisioningState": "Updating", - "sku": { - "name": "AZFW_Hub", - "tier": "Standard" - }, - "additionalProperties": {}, - "virtualHub": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/virtualHubs/virtualhub" - }, - "hubIPAddresses": { - "privateIPAddress": "10.168.0.132", - "publicIPs": { - "addresses": [ - { - "address": "168.61.3.246" - } - ], - "count": 1 - } - }, - "firewallPolicy": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/firewallPolicies/firewallpolicy" - } - } + "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/azureFirewalls/azurefirewall?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/582548e0-05e9-4c43-9525-50fa2ecc6966?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2090,10 +2059,10 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:17:17 GMT", - "ETag": "W/\u002250f7e25e-2829-49ba-a12c-8421599dc38f\u0022", + "Date": "Thu, 28 Apr 2022 09:51:41 GMT", "Expires": "-1", "Pragma": "no-cache", + "Retry-After": "20", "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" @@ -2102,56 +2071,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "a5b17c20-d619-47c2-953d-8e83cb97a897", - "x-ms-correlation-request-id": "fee9206e-461d-43e4-a38e-63fc631450db", - "x-ms-ratelimit-remaining-subscription-reads": "11864", - "x-ms-routing-request-id": "EASTUS2:20220425T041717Z:fee9206e-461d-43e4-a38e-63fc631450db" + "x-ms-arm-service-request-id": "8eaf535d-692f-4174-a60c-0e1c8fb4e242", + "x-ms-correlation-request-id": "8bfa515f-43e8-44d2-8bd1-823eafaf7549", + "x-ms-ratelimit-remaining-subscription-reads": "11851", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095142Z:8bfa515f-43e8-44d2-8bd1-823eafaf7549" }, "ResponseBody": { - "name": "azurefirewall", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/azureFirewalls/azurefirewall", - "etag": "W/\u002250f7e25e-2829-49ba-a12c-8421599dc38f\u0022", - "type": "Microsoft.Network/azureFirewalls", - "location": "westus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "provisioningState": "Updating", - "sku": { - "name": "AZFW_Hub", - "tier": "Standard" - }, - "additionalProperties": {}, - "virtualHub": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/virtualHubs/virtualhub" - }, - "hubIPAddresses": { - "privateIPAddress": "10.168.0.132", - "publicIPs": { - "addresses": [ - { - "address": "168.61.3.246" - } - ], - "count": 1 - } - }, - "firewallPolicy": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/firewallPolicies/firewallpolicy" - } - } + "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/azureFirewalls/azurefirewall?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/582548e0-05e9-4c43-9525-50fa2ecc6966?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2159,10 +2095,10 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:17:47 GMT", - "ETag": "W/\u002250f7e25e-2829-49ba-a12c-8421599dc38f\u0022", + "Date": "Thu, 28 Apr 2022 09:52:02 GMT", "Expires": "-1", "Pragma": "no-cache", + "Retry-After": "40", "Server": [ "Microsoft-HTTPAPI/2.0", "Microsoft-HTTPAPI/2.0" @@ -2171,334 +2107,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "64fdea46-fe79-4bf9-ac4a-23182493bbd3", - "x-ms-correlation-request-id": "0ea70535-e10f-4af2-9c50-7933c38eabe4", - "x-ms-ratelimit-remaining-subscription-reads": "11863", - "x-ms-routing-request-id": "EASTUS2:20220425T041748Z:0ea70535-e10f-4af2-9c50-7933c38eabe4" - }, - "ResponseBody": { - "name": "azurefirewall", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/azureFirewalls/azurefirewall", - "etag": "W/\u002250f7e25e-2829-49ba-a12c-8421599dc38f\u0022", - "type": "Microsoft.Network/azureFirewalls", - "location": "westus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "provisioningState": "Updating", - "sku": { - "name": "AZFW_Hub", - "tier": "Standard" - }, - "additionalProperties": {}, - "virtualHub": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/virtualHubs/virtualhub" - }, - "hubIPAddresses": { - "privateIPAddress": "10.168.0.132", - "publicIPs": { - "addresses": [ - { - "address": "168.61.3.246" - } - ], - "count": 1 - } - }, - "firewallPolicy": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/firewallPolicies/firewallpolicy" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/azureFirewalls/azurefirewall?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:18:18 GMT", - "ETag": "W/\u002250f7e25e-2829-49ba-a12c-8421599dc38f\u0022", - "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": "358c3ffd-d277-4a14-98ad-d7349c74cf1e", - "x-ms-correlation-request-id": "7727ca19-4793-47b9-bf5d-25a2b1095881", - "x-ms-ratelimit-remaining-subscription-reads": "11862", - "x-ms-routing-request-id": "EASTUS2:20220425T041818Z:7727ca19-4793-47b9-bf5d-25a2b1095881" - }, - "ResponseBody": { - "name": "azurefirewall", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/azureFirewalls/azurefirewall", - "etag": "W/\u002250f7e25e-2829-49ba-a12c-8421599dc38f\u0022", - "type": "Microsoft.Network/azureFirewalls", - "location": "westus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "provisioningState": "Updating", - "sku": { - "name": "AZFW_Hub", - "tier": "Standard" - }, - "additionalProperties": {}, - "virtualHub": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/virtualHubs/virtualhub" - }, - "hubIPAddresses": { - "privateIPAddress": "10.168.0.132", - "publicIPs": { - "addresses": [ - { - "address": "168.61.3.246" - } - ], - "count": 1 - } - }, - "firewallPolicy": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/firewallPolicies/firewallpolicy" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/azureFirewalls/azurefirewall?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:18:47 GMT", - "ETag": "W/\u002250f7e25e-2829-49ba-a12c-8421599dc38f\u0022", - "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": "674312a0-a462-43a7-b64f-6a28d17b573d", - "x-ms-correlation-request-id": "3cac8b70-bf33-4c85-b6a5-0de478002d80", - "x-ms-ratelimit-remaining-subscription-reads": "11861", - "x-ms-routing-request-id": "EASTUS2:20220425T041848Z:3cac8b70-bf33-4c85-b6a5-0de478002d80" - }, - "ResponseBody": { - "name": "azurefirewall", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/azureFirewalls/azurefirewall", - "etag": "W/\u002250f7e25e-2829-49ba-a12c-8421599dc38f\u0022", - "type": "Microsoft.Network/azureFirewalls", - "location": "westus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "provisioningState": "Updating", - "sku": { - "name": "AZFW_Hub", - "tier": "Standard" - }, - "additionalProperties": {}, - "virtualHub": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/virtualHubs/virtualhub" - }, - "hubIPAddresses": { - "privateIPAddress": "10.168.0.132", - "publicIPs": { - "addresses": [ - { - "address": "168.61.3.246" - } - ], - "count": 1 - } - }, - "firewallPolicy": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/firewallPolicies/firewallpolicy" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/azureFirewalls/azurefirewall?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:19:17 GMT", - "ETag": "W/\u0022d3269082-6030-4eff-96a9-9d7bf6419c79\u0022", - "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": "bbdc3865-e938-4395-8111-982a555f5722", - "x-ms-correlation-request-id": "e579993d-f341-4896-acf4-2cf7514e8d5b", - "x-ms-ratelimit-remaining-subscription-reads": "11860", - "x-ms-routing-request-id": "EASTUS2:20220425T041918Z:e579993d-f341-4896-acf4-2cf7514e8d5b" - }, - "ResponseBody": { - "name": "azurefirewall", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/azureFirewalls/azurefirewall", - "etag": "W/\u0022d3269082-6030-4eff-96a9-9d7bf6419c79\u0022", - "type": "Microsoft.Network/azureFirewalls", - "location": "westus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "sku": { - "name": "AZFW_Hub", - "tier": "Standard" - }, - "additionalProperties": {}, - "virtualHub": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/virtualHubs/virtualhub" - }, - "hubIPAddresses": { - "privateIPAddress": "10.168.0.132", - "publicIPs": { - "addresses": [ - { - "address": "168.61.3.246" - } - ], - "count": 1 - } - }, - "firewallPolicy": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/firewallPolicies/firewallpolicy" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/20ad2a59/providers/Microsoft.Network/azureFirewalls/azurefirewall?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ce185cef-8696-487b-8f59-507794e04f57?api-version=2021-08-01", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 04:19:17 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/ce185cef-8696-487b-8f59-507794e04f57?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "10", - "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": "b1de7e28-03bf-4e9d-a168-2d62c7320416", - "x-ms-correlation-request-id": "82ce35fc-5297-40b0-9438-155dee906777", - "x-ms-ratelimit-remaining-subscription-deletes": "14987", - "x-ms-routing-request-id": "EASTUS2:20220425T041918Z:82ce35fc-5297-40b0-9438-155dee906777" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ce185cef-8696-487b-8f59-507794e04f57?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:19:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "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": "e2cba849-9339-459a-b4d4-cc8fa5959ab3", - "x-ms-correlation-request-id": "2c66201f-1cbc-4362-a5dd-9cbd383efe9a", - "x-ms-ratelimit-remaining-subscription-reads": "11859", - "x-ms-routing-request-id": "EASTUS2:20220425T041928Z:2c66201f-1cbc-4362-a5dd-9cbd383efe9a" + "x-ms-arm-service-request-id": "c86203bb-0900-46dd-9e02-cdf1529c7011", + "x-ms-correlation-request-id": "a324fffa-aee6-4dc5-9282-b934cbee9451", + "x-ms-ratelimit-remaining-subscription-reads": "11850", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095202Z:a324fffa-aee6-4dc5-9282-b934cbee9451" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ce185cef-8696-487b-8f59-507794e04f57?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/582548e0-05e9-4c43-9525-50fa2ecc6966?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2506,115 +2131,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:19:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "20", - "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": "ac518c35-7ab4-4cfc-abbb-d4d8cf8a675a", - "x-ms-correlation-request-id": "df89078d-df24-4d93-b2cd-a711a13c68b5", - "x-ms-ratelimit-remaining-subscription-reads": "11858", - "x-ms-routing-request-id": "EASTUS2:20220425T041938Z:df89078d-df24-4d93-b2cd-a711a13c68b5" - }, - "ResponseBody": { - "status": "InProgress" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ce185cef-8696-487b-8f59-507794e04f57?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:19:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "20", - "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": "fe79671e-86c2-4bba-b2b1-5661df42c9c9", - "x-ms-correlation-request-id": "ee399d14-37a6-4f68-8b41-8c561e1a7378", - "x-ms-ratelimit-remaining-subscription-reads": "11857", - "x-ms-routing-request-id": "EASTUS2:20220425T041959Z:ee399d14-37a6-4f68-8b41-8c561e1a7378" - }, - "ResponseBody": { - "status": "InProgress" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ce185cef-8696-487b-8f59-507794e04f57?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:20:19 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "40", - "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": "e7b92753-7052-4768-a899-b1019a9d76b0", - "x-ms-correlation-request-id": "3aa0854c-f062-43fa-8761-6c9926cda59d", - "x-ms-ratelimit-remaining-subscription-reads": "11859", - "x-ms-routing-request-id": "EASTUS2:20220425T042019Z:3aa0854c-f062-43fa-8761-6c9926cda59d" - }, - "ResponseBody": { - "status": "InProgress" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ce185cef-8696-487b-8f59-507794e04f57?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:20:58 GMT", + "Date": "Thu, 28 Apr 2022 09:52:42 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "40", @@ -2626,23 +2143,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "801b80c4-7904-48b9-845f-0d074ea4e37f", - "x-ms-correlation-request-id": "4798aaa8-d1e8-41cb-8966-74e746a91ca8", - "x-ms-ratelimit-remaining-subscription-reads": "11858", - "x-ms-routing-request-id": "EASTUS2:20220425T042059Z:4798aaa8-d1e8-41cb-8966-74e746a91ca8" + "x-ms-arm-service-request-id": "4242dba0-9c5d-469b-b779-c920bfd0e0e7", + "x-ms-correlation-request-id": "22278d7c-b4b8-4f14-9b87-0d951de88e88", + "x-ms-ratelimit-remaining-subscription-reads": "11849", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095242Z:22278d7c-b4b8-4f14-9b87-0d951de88e88" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ce185cef-8696-487b-8f59-507794e04f57?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/582548e0-05e9-4c43-9525-50fa2ecc6966?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2650,7 +2167,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:21:39 GMT", + "Date": "Thu, 28 Apr 2022 09:53:22 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "80", @@ -2662,23 +2179,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "fd531ab2-8f9b-4624-9edd-14890b204f64", - "x-ms-correlation-request-id": "e0d45539-9d79-41a0-8535-a0dcca0d364e", - "x-ms-ratelimit-remaining-subscription-reads": "11857", - "x-ms-routing-request-id": "EASTUS2:20220425T042139Z:e0d45539-9d79-41a0-8535-a0dcca0d364e" + "x-ms-arm-service-request-id": "a2e49d41-2dfa-4b38-b768-3526990caedb", + "x-ms-correlation-request-id": "f1c2d103-cdf8-4cd2-97ad-432611ab4b7c", + "x-ms-ratelimit-remaining-subscription-reads": "11848", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095322Z:f1c2d103-cdf8-4cd2-97ad-432611ab4b7c" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ce185cef-8696-487b-8f59-507794e04f57?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/582548e0-05e9-4c43-9525-50fa2ecc6966?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2686,7 +2203,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:22:59 GMT", + "Date": "Thu, 28 Apr 2022 09:54:42 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "160", @@ -2698,23 +2215,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "eb9ed1f3-199f-403e-9f9a-45e92b124f77", - "x-ms-correlation-request-id": "ad1a9f7e-ea9f-4473-a121-f72f20a831ea", - "x-ms-ratelimit-remaining-subscription-reads": "11856", - "x-ms-routing-request-id": "EASTUS2:20220425T042259Z:ad1a9f7e-ea9f-4473-a121-f72f20a831ea" + "x-ms-arm-service-request-id": "681a8d53-be3a-4261-8ef2-244b584532bd", + "x-ms-correlation-request-id": "e48c209b-3574-45ee-b2cb-bdc5447c6945", + "x-ms-ratelimit-remaining-subscription-reads": "11847", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095443Z:e48c209b-3574-45ee-b2cb-bdc5447c6945" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ce185cef-8696-487b-8f59-507794e04f57?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/582548e0-05e9-4c43-9525-50fa2ecc6966?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -2722,7 +2239,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:25:39 GMT", + "Date": "Thu, 28 Apr 2022 09:57:22 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -2733,34 +2250,34 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "6c8c78f0-7c20-4db4-bc27-a6bd4d9e6e9d", - "x-ms-correlation-request-id": "41a130dc-8893-4fa3-89c2-f415b36778b8", - "x-ms-ratelimit-remaining-subscription-reads": "11885", - "x-ms-routing-request-id": "EASTUS2:20220425T042539Z:41a130dc-8893-4fa3-89c2-f415b36778b8" + "x-ms-arm-service-request-id": "521e2b23-caa1-4296-9d25-3eedb8a7d20d", + "x-ms-correlation-request-id": "b18ac643-95b8-4b07-a980-cfabd637cdd3", + "x-ms-ratelimit-remaining-subscription-reads": "11857", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095723Z:b18ac643-95b8-4b07-a980-cfabd637cdd3" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/ce185cef-8696-487b-8f59-507794e04f57?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/582548e0-05e9-4c43-9525-50fa2ecc6966?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ce185cef-8696-487b-8f59-507794e04f57?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/582548e0-05e9-4c43-9525-50fa2ecc6966?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:25:39 GMT", + "Date": "Thu, 28 Apr 2022 09:57:22 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/ce185cef-8696-487b-8f59-507794e04f57?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/582548e0-05e9-4c43-9525-50fa2ecc6966?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -2768,10 +2285,10 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "b1de7e28-03bf-4e9d-a168-2d62c7320416", - "x-ms-correlation-request-id": "82ce35fc-5297-40b0-9438-155dee906777", - "x-ms-ratelimit-remaining-subscription-reads": "11884", - "x-ms-routing-request-id": "EASTUS2:20220425T042539Z:93a4f361-de58-4cb2-9eb9-4f1ee60cc139" + "x-ms-arm-service-request-id": "118ccc90-0df0-4371-903b-d2979ad9952d", + "x-ms-correlation-request-id": "d222a9fa-4cbf-45c7-a33b-efb5c740a9d1", + "x-ms-ratelimit-remaining-subscription-reads": "11856", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095723Z:e0e4bb66-1411-43e2-9acc-b4c334fd754e" }, "ResponseBody": null } diff --git a/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_firewall_policy.pyTestMgmtNetworktest_network.json b/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_firewall_policy.pyTestMgmtNetworktest_network.json index 9f8b3c5d2a78..f77998d267e6 100644 --- a/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_firewall_policy.pyTestMgmtNetworktest_network.json +++ b/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_firewall_policy.pyTestMgmtNetworktest_network.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -17,12 +17,12 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "1753", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:25:40 GMT", + "Date": "Thu, 28 Apr 2022 09:57:25 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12651.7 - NCUS ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - WUS2 ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -101,7 +101,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -111,12 +111,12 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "945", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:25:40 GMT", + "Date": "Thu, 28 Apr 2022 09:57:25 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12651.7 - NCUS ProdSlices", + "x-ms-ests-server": "2.1.12707.9 - WUS2 ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -172,12 +172,12 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "client-request-id": "557b60ba-15f4-4684-a2ca-2847ecf184d8", + "client-request-id": "66c6d036-0e03-4463-a197-94a2a5228450", "Connection": "keep-alive", "Content-Length": "286", "Content-Type": "application/x-www-form-urlencoded", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", @@ -190,10 +190,10 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "client-request-id": "557b60ba-15f4-4684-a2ca-2847ecf184d8", + "client-request-id": "66c6d036-0e03-4463-a197-94a2a5228450", "Content-Length": "93", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:25:40 GMT", + "Date": "Thu, 28 Apr 2022 09:57:25 GMT", "Expires": "-1", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Pragma": "no-cache", @@ -201,7 +201,7 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", - "x-ms-ests-server": "2.1.12651.7 - EUS ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - EUS ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -220,7 +220,7 @@ "Connection": "keep-alive", "Content-Length": "95", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "West US", @@ -233,20 +233,20 @@ }, "StatusCode": 201, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperations/c669669a-9994-4239-b688-4aa1160ab662?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperations/b8cf3b5a-24dd-45d5-9d19-e2f0676d7bfd?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "572", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:25:43 GMT", + "Date": "Thu, 28 Apr 2022 09:57:27 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d92c8888-2a2b-4551-8f85-2dfffe34fed2", - "x-ms-ratelimit-remaining-subscription-writes": "1180", - "x-ms-routing-request-id": "EASTUS2:20220425T042543Z:d92c8888-2a2b-4551-8f85-2dfffe34fed2" + "x-ms-correlation-request-id": "eb60632b-f37d-4931-8cf5-8b2c796dce17", + "x-ms-ratelimit-remaining-subscription-writes": "1179", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095728Z:eb60632b-f37d-4931-8cf5-8b2c796dce17" }, "ResponseBody": { "properties": { @@ -262,7 +262,7 @@ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/firewallPolicies/myFirewallPolicy", "name": "myFirewallPolicy", "type": "Microsoft.Network/FirewallPolicies", - "etag": "c5dd2046-58d2-4cd7-8542-3f685c0e6879", + "etag": "b12877c7-df26-4d92-9fe5-a641b4b89cc9", "location": "westus", "tags": { "key1": "value1" @@ -270,13 +270,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperations/c669669a-9994-4239-b688-4aa1160ab662?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperations/b8cf3b5a-24dd-45d5-9d19-e2f0676d7bfd?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -284,7 +284,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:25:53 GMT", + "Date": "Thu, 28 Apr 2022 09:57:37 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -292,9 +292,9 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2d02bf57-a162-4535-8b06-c2f13abfa108", - "x-ms-ratelimit-remaining-subscription-reads": "11883", - "x-ms-routing-request-id": "EASTUS2:20220425T042554Z:2d02bf57-a162-4535-8b06-c2f13abfa108" + "x-ms-correlation-request-id": "c8c95abe-da89-4ac9-b310-0d9ba5755a7a", + "x-ms-ratelimit-remaining-subscription-reads": "11855", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095738Z:c8c95abe-da89-4ac9-b310-0d9ba5755a7a" }, "ResponseBody": { "status": "Succeeded" @@ -307,7 +307,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -315,8 +315,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:25:53 GMT", - "ETag": "\u0022c5dd2046-58d2-4cd7-8542-3f685c0e6879\u0022", + "Date": "Thu, 28 Apr 2022 09:57:37 GMT", + "ETag": "\u0022b12877c7-df26-4d92-9fe5-a641b4b89cc9\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -324,9 +324,9 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "6d0815d1-8e2a-495e-96d7-dc3bade55bf4", - "x-ms-ratelimit-remaining-subscription-reads": "11882", - "x-ms-routing-request-id": "EASTUS2:20220425T042554Z:6d0815d1-8e2a-495e-96d7-dc3bade55bf4" + "x-ms-correlation-request-id": "4fa39d75-aaab-47bd-b2a7-2e4b8780bc9f", + "x-ms-ratelimit-remaining-subscription-reads": "11854", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095738Z:4fa39d75-aaab-47bd-b2a7-2e4b8780bc9f" }, "ResponseBody": { "properties": { @@ -342,7 +342,7 @@ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/firewallPolicies/myFirewallPolicy", "name": "myFirewallPolicy", "type": "Microsoft.Network/FirewallPolicies", - "etag": "c5dd2046-58d2-4cd7-8542-3f685c0e6879", + "etag": "b12877c7-df26-4d92-9fe5-a641b4b89cc9", "location": "westus", "tags": { "key1": "value1" @@ -358,7 +358,7 @@ "Connection": "keep-alive", "Content-Length": "361", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "properties": { @@ -394,20 +394,20 @@ }, "StatusCode": 201, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperations/4b754e25-a044-4f90-9e21-5c4313b96a40?api-version=2020-04-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperations/396aaa5f-6faf-4537-8a77-5039ccb37586?api-version=2020-04-01", "Cache-Control": "no-cache", "Content-Length": "1091", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:25:55 GMT", + "Date": "Thu, 28 Apr 2022 09:57:39 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1efd344b-db04-4c50-8c03-5cc069329239", - "x-ms-ratelimit-remaining-subscription-writes": "1179", - "x-ms-routing-request-id": "EASTUS2:20220425T042556Z:1efd344b-db04-4c50-8c03-5cc069329239" + "x-ms-correlation-request-id": "305bc7c9-5793-42be-9e2d-ec6d6bf2a751", + "x-ms-ratelimit-remaining-subscription-writes": "1178", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095740Z:305bc7c9-5793-42be-9e2d-ec6d6bf2a751" }, "ResponseBody": { "properties": { @@ -445,18 +445,18 @@ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/firewallPolicies/myFirewallPolicy/ruleGroups/myRuleGroup", "name": "myRuleGroup", "type": "Microsoft.Network/FirewallPolicies/RuleGroups", - "etag": "54182e2a-7fd6-4111-b237-b811d6b94401", + "etag": "17777856-a2c5-48df-8927-ff0442f9749f", "location": "westus" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperations/4b754e25-a044-4f90-9e21-5c4313b96a40?api-version=2020-04-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperations/396aaa5f-6faf-4537-8a77-5039ccb37586?api-version=2020-04-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -464,7 +464,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:05 GMT", + "Date": "Thu, 28 Apr 2022 09:57:50 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -472,9 +472,9 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8343fad1-67ea-49da-8708-fa69159c59e1", - "x-ms-ratelimit-remaining-subscription-reads": "11881", - "x-ms-routing-request-id": "EASTUS2:20220425T042606Z:8343fad1-67ea-49da-8708-fa69159c59e1" + "x-ms-correlation-request-id": "ec3aa1ce-bedf-4d48-a449-7f2d790d2c9b", + "x-ms-ratelimit-remaining-subscription-reads": "11853", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095751Z:ec3aa1ce-bedf-4d48-a449-7f2d790d2c9b" }, "ResponseBody": { "status": "Succeeded" @@ -487,7 +487,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -495,8 +495,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:06 GMT", - "ETag": "\u002254182e2a-7fd6-4111-b237-b811d6b94401\u0022", + "Date": "Thu, 28 Apr 2022 09:57:51 GMT", + "ETag": "\u002217777856-a2c5-48df-8927-ff0442f9749f\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -504,9 +504,9 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a8ad822d-a597-457f-9331-5dcc08101905", - "x-ms-ratelimit-remaining-subscription-reads": "11880", - "x-ms-routing-request-id": "EASTUS2:20220425T042606Z:a8ad822d-a597-457f-9331-5dcc08101905" + "x-ms-correlation-request-id": "d3498b54-7135-4cb6-b314-d268fa4eac36", + "x-ms-ratelimit-remaining-subscription-reads": "11852", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095751Z:d3498b54-7135-4cb6-b314-d268fa4eac36" }, "ResponseBody": { "properties": { @@ -544,7 +544,7 @@ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/firewallPolicies/myFirewallPolicy/ruleGroups/myRuleGroup", "name": "myRuleGroup", "type": "Microsoft.Network/FirewallPolicies/RuleGroups", - "etag": "54182e2a-7fd6-4111-b237-b811d6b94401", + "etag": "17777856-a2c5-48df-8927-ff0442f9749f", "location": "westus" } }, @@ -555,7 +555,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -563,8 +563,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:06 GMT", - "ETag": "\u002254182e2a-7fd6-4111-b237-b811d6b94401\u0022", + "Date": "Thu, 28 Apr 2022 09:57:51 GMT", + "ETag": "\u002217777856-a2c5-48df-8927-ff0442f9749f\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -572,9 +572,9 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0f5e9e24-af5d-45c0-b6e0-515e1b6212d0", - "x-ms-ratelimit-remaining-subscription-reads": "11879", - "x-ms-routing-request-id": "EASTUS2:20220425T042607Z:0f5e9e24-af5d-45c0-b6e0-515e1b6212d0" + "x-ms-correlation-request-id": "d70dd4d1-bd25-408f-9bc8-fcaa4db512e8", + "x-ms-ratelimit-remaining-subscription-reads": "11851", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095751Z:d70dd4d1-bd25-408f-9bc8-fcaa4db512e8" }, "ResponseBody": { "properties": { @@ -612,7 +612,7 @@ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/firewallPolicies/myFirewallPolicy/ruleGroups/myRuleGroup", "name": "myRuleGroup", "type": "Microsoft.Network/FirewallPolicies/RuleGroups", - "etag": "54182e2a-7fd6-4111-b237-b811d6b94401", + "etag": "17777856-a2c5-48df-8927-ff0442f9749f", "location": "westus" } }, @@ -623,7 +623,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -631,8 +631,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:06 GMT", - "ETag": "\u00224b5d6712-fb42-4ee5-81f1-9bd0c97f402e\u0022", + "Date": "Thu, 28 Apr 2022 09:57:51 GMT", + "ETag": "\u0022d472ddaf-b6b6-4f8a-be38-1975c7cfc87c\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -640,9 +640,9 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "429dae2b-bf8b-496b-b0d6-acd2281fb379", - "x-ms-ratelimit-remaining-subscription-reads": "11878", - "x-ms-routing-request-id": "EASTUS2:20220425T042607Z:429dae2b-bf8b-496b-b0d6-acd2281fb379" + "x-ms-correlation-request-id": "cda1105e-325b-4184-83db-924e3958076c", + "x-ms-ratelimit-remaining-subscription-reads": "11850", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095751Z:cda1105e-325b-4184-83db-924e3958076c" }, "ResponseBody": { "properties": { @@ -662,7 +662,7 @@ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/firewallPolicies/myFirewallPolicy", "name": "myFirewallPolicy", "type": "Microsoft.Network/FirewallPolicies", - "etag": "4b5d6712-fb42-4ee5-81f1-9bd0c97f402e", + "etag": "d472ddaf-b6b6-4f8a-be38-1975c7cfc87c", "location": "westus", "tags": { "key1": "value1" @@ -677,26 +677,26 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperations/f98ec8a4-edb5-46a7-adfa-0b02b845df7a?api-version=2020-04-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperations/29cf2e23-9d96-41d0-874e-56d7051a551b?api-version=2020-04-01", "Cache-Control": "no-cache", "Content-Length": "1091", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:08 GMT", + "Date": "Thu, 28 Apr 2022 09:57:52 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperationResults/f98ec8a4-edb5-46a7-adfa-0b02b845df7a?api-version=2020-04-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperationResults/29cf2e23-9d96-41d0-874e-56d7051a551b?api-version=2020-04-01", "Pragma": "no-cache", "Retry-After": "10", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "cce8bc70-0e2a-4889-b718-b7557638d295", - "x-ms-ratelimit-remaining-subscription-deletes": "14986", - "x-ms-routing-request-id": "EASTUS2:20220425T042609Z:cce8bc70-0e2a-4889-b718-b7557638d295" + "x-ms-correlation-request-id": "e3697a6a-686d-46bb-a2d2-ec8996365575", + "x-ms-ratelimit-remaining-subscription-deletes": "14982", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095752Z:e3697a6a-686d-46bb-a2d2-ec8996365575" }, "ResponseBody": { "properties": { @@ -734,18 +734,18 @@ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/firewallPolicies/myFirewallPolicy/ruleGroups/myRuleGroup", "name": "myRuleGroup", "type": "Microsoft.Network/FirewallPolicies/RuleGroups", - "etag": "f5c13da3-1764-47be-acc4-4e650ae1a186", + "etag": "cdb4041b-0a93-4860-a7be-a57525ce2d94", "location": "westus" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperations/f98ec8a4-edb5-46a7-adfa-0b02b845df7a?api-version=2020-04-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperations/29cf2e23-9d96-41d0-874e-56d7051a551b?api-version=2020-04-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -753,7 +753,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:19 GMT", + "Date": "Thu, 28 Apr 2022 09:58:02 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -761,22 +761,22 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1625c1d2-5ee0-4da9-b59d-c631dcddd2d2", - "x-ms-ratelimit-remaining-subscription-reads": "11877", - "x-ms-routing-request-id": "EASTUS2:20220425T042619Z:1625c1d2-5ee0-4da9-b59d-c631dcddd2d2" + "x-ms-correlation-request-id": "858b6511-2a61-406c-a8bf-c0fd78971b53", + "x-ms-ratelimit-remaining-subscription-reads": "11849", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095803Z:858b6511-2a61-406c-a8bf-c0fd78971b53" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperationResults/f98ec8a4-edb5-46a7-adfa-0b02b845df7a?api-version=2020-04-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperationResults/29cf2e23-9d96-41d0-874e-56d7051a551b?api-version=2020-04-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -784,7 +784,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:19 GMT", + "Date": "Thu, 28 Apr 2022 09:58:02 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -792,9 +792,9 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "17befeb6-2a5b-4e27-b65c-74f2cddaaae0", - "x-ms-ratelimit-remaining-subscription-reads": "11876", - "x-ms-routing-request-id": "EASTUS2:20220425T042619Z:17befeb6-2a5b-4e27-b65c-74f2cddaaae0" + "x-ms-correlation-request-id": "e7186feb-3f22-40a3-9eb5-0c1bf8944981", + "x-ms-ratelimit-remaining-subscription-reads": "11848", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095803Z:e7186feb-3f22-40a3-9eb5-0c1bf8944981" }, "ResponseBody": "null" }, @@ -806,22 +806,22 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 04:26:20 GMT", + "Date": "Thu, 28 Apr 2022 09:58:03 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "cee148ef-b479-4dc1-92e0-c2f9cb1effc4", - "x-ms-ratelimit-remaining-subscription-deletes": "14985", - "x-ms-routing-request-id": "EASTUS2:20220425T042620Z:cee148ef-b479-4dc1-92e0-c2f9cb1effc4" + "x-ms-correlation-request-id": "40d11f8c-e80d-42bf-8a2c-6ebb34074ac7", + "x-ms-ratelimit-remaining-subscription-deletes": "14981", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095804Z:40d11f8c-e80d-42bf-8a2c-6ebb34074ac7" }, "ResponseBody": null } diff --git a/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_ip.pyTestMgmtNetworktest_network.json b/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_ip.pyTestMgmtNetworktest_network.json index 2ad2eb4bb936..3466d6b6a339 100644 --- a/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_ip.pyTestMgmtNetworktest_network.json +++ b/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_ip.pyTestMgmtNetworktest_network.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -17,12 +17,12 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "1753", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:21 GMT", + "Date": "Thu, 28 Apr 2022 09:58:04 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12651.7 - SCUS ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - EUS ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -101,7 +101,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -111,7 +111,7 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "945", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:21 GMT", + "Date": "Thu, 28 Apr 2022 09:58:04 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -172,12 +172,12 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "client-request-id": "faa3754a-08b9-4eed-aeda-8b64f8d3db2d", + "client-request-id": "4d1f8139-a7e2-453b-a388-650bf41817e7", "Connection": "keep-alive", "Content-Length": "286", "Content-Type": "application/x-www-form-urlencoded", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", @@ -190,10 +190,10 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "client-request-id": "faa3754a-08b9-4eed-aeda-8b64f8d3db2d", + "client-request-id": "4d1f8139-a7e2-453b-a388-650bf41817e7", "Content-Length": "93", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:21 GMT", + "Date": "Thu, 28 Apr 2022 09:58:05 GMT", "Expires": "-1", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Pragma": "no-cache", @@ -201,7 +201,7 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", - "x-ms-ests-server": "2.1.12651.7 - WUS2 ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - WUS2 ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -220,7 +220,7 @@ "Connection": "keep-alive", "Content-Length": "140", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "West US", @@ -237,20 +237,20 @@ }, "StatusCode": 201, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperations/7c70dc18-3fc8-4401-8809-f8bd2174ae9c?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperations/6efd3c01-41b5-4c4f-b225-8aff78cbc0d4?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "539", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:23 GMT", + "Date": "Thu, 28 Apr 2022 09:58:06 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ef72166f-a42f-424e-a32f-0e7773086b45", - "x-ms-ratelimit-remaining-subscription-writes": "1178", - "x-ms-routing-request-id": "EASTUS2:20220425T042623Z:ef72166f-a42f-424e-a32f-0e7773086b45" + "x-ms-correlation-request-id": "1713ca6a-e178-4392-bdf0-e4e4661841da", + "x-ms-ratelimit-remaining-subscription-writes": "1177", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095807Z:1713ca6a-e178-4392-bdf0-e4e4661841da" }, "ResponseBody": { "properties": { @@ -266,7 +266,7 @@ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/ipGroups/myIpGroups", "name": "myIpGroups", "type": "Microsoft.Network/IpGroups", - "etag": "d1be75b8-0f0d-4bfd-9be0-16bd15f7a0de", + "etag": "03d9e853-1b04-4b57-9924-a14f996de39a", "location": "westus", "tags": { "key1": "value1" @@ -274,13 +274,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperations/7c70dc18-3fc8-4401-8809-f8bd2174ae9c?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperations/6efd3c01-41b5-4c4f-b225-8aff78cbc0d4?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -288,7 +288,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:33 GMT", + "Date": "Thu, 28 Apr 2022 09:58:16 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -296,9 +296,9 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "472b4351-d4b8-4fc3-9e71-bec75500ab14", - "x-ms-ratelimit-remaining-subscription-reads": "11875", - "x-ms-routing-request-id": "EASTUS2:20220425T042633Z:472b4351-d4b8-4fc3-9e71-bec75500ab14" + "x-ms-correlation-request-id": "116524b1-2697-457b-baef-e195efe09c44", + "x-ms-ratelimit-remaining-subscription-reads": "11847", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095817Z:116524b1-2697-457b-baef-e195efe09c44" }, "ResponseBody": { "status": "Succeeded" @@ -311,7 +311,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -319,8 +319,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:33 GMT", - "ETag": "\u0022d1be75b8-0f0d-4bfd-9be0-16bd15f7a0de\u0022", + "Date": "Thu, 28 Apr 2022 09:58:17 GMT", + "ETag": "\u002203d9e853-1b04-4b57-9924-a14f996de39a\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -328,9 +328,9 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c02ad8b2-2b68-4812-a308-45d53bf69c1e", - "x-ms-ratelimit-remaining-subscription-reads": "11874", - "x-ms-routing-request-id": "EASTUS2:20220425T042633Z:c02ad8b2-2b68-4812-a308-45d53bf69c1e" + "x-ms-correlation-request-id": "2e5f15a1-a6a8-479e-8b69-5d94eae415f9", + "x-ms-ratelimit-remaining-subscription-reads": "11846", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095817Z:2e5f15a1-a6a8-479e-8b69-5d94eae415f9" }, "ResponseBody": { "properties": { @@ -346,7 +346,7 @@ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/ipGroups/myIpGroups", "name": "myIpGroups", "type": "Microsoft.Network/IpGroups", - "etag": "d1be75b8-0f0d-4bfd-9be0-16bd15f7a0de", + "etag": "03d9e853-1b04-4b57-9924-a14f996de39a", "location": "westus", "tags": { "key1": "value1" @@ -360,7 +360,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -368,8 +368,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:33 GMT", - "ETag": "\u0022d1be75b8-0f0d-4bfd-9be0-16bd15f7a0de\u0022", + "Date": "Thu, 28 Apr 2022 09:58:17 GMT", + "ETag": "\u002203d9e853-1b04-4b57-9924-a14f996de39a\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", @@ -377,9 +377,9 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "9540c2a6-f629-4ed3-b11f-ffc4fc5534f5", - "x-ms-ratelimit-remaining-subscription-reads": "11873", - "x-ms-routing-request-id": "EASTUS2:20220425T042633Z:9540c2a6-f629-4ed3-b11f-ffc4fc5534f5" + "x-ms-correlation-request-id": "30dd87ac-caa2-4888-9e24-8ec6ebbe61f4", + "x-ms-ratelimit-remaining-subscription-reads": "11845", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095817Z:30dd87ac-caa2-4888-9e24-8ec6ebbe61f4" }, "ResponseBody": { "properties": { @@ -395,7 +395,7 @@ "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/ipGroups/myIpGroups", "name": "myIpGroups", "type": "Microsoft.Network/IpGroups", - "etag": "d1be75b8-0f0d-4bfd-9be0-16bd15f7a0de", + "etag": "03d9e853-1b04-4b57-9924-a14f996de39a", "location": "westus", "tags": { "key1": "value1" @@ -410,22 +410,22 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 04:26:34 GMT", + "Date": "Thu, 28 Apr 2022 09:58:18 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5de6cd91-c4df-420e-af0a-aef886ce13ed", - "x-ms-ratelimit-remaining-subscription-deletes": "14984", - "x-ms-routing-request-id": "EASTUS2:20220425T042634Z:5de6cd91-c4df-420e-af0a-aef886ce13ed" + "x-ms-correlation-request-id": "98586674-56a1-495a-a3b1-55a4d55eb7cf", + "x-ms-ratelimit-remaining-subscription-deletes": "14980", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095818Z:98586674-56a1-495a-a3b1-55a4d55eb7cf" }, "ResponseBody": null } diff --git a/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_ip_addresses.pyTestMgmtNetworktest_network.json b/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_ip_addresses.pyTestMgmtNetworktest_network.json index ae43e75cddcb..0b09814f1cc5 100644 --- a/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_ip_addresses.pyTestMgmtNetworktest_network.json +++ b/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_ip_addresses.pyTestMgmtNetworktest_network.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -17,12 +17,12 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "1753", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:35 GMT", + "Date": "Thu, 28 Apr 2022 09:58:20 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12651.7 - WUS2 ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - EUS ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -101,7 +101,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -111,12 +111,12 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "945", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:35 GMT", + "Date": "Thu, 28 Apr 2022 09:58:20 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12651.7 - EUS ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - SCUS ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -172,12 +172,12 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "client-request-id": "c7c07d6b-c6f2-4162-9953-bb072406a7ad", + "client-request-id": "069418fa-f9ae-4d55-b7f4-2de7c81311c9", "Connection": "keep-alive", "Content-Length": "286", "Content-Type": "application/x-www-form-urlencoded", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", @@ -190,10 +190,10 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "client-request-id": "c7c07d6b-c6f2-4162-9953-bb072406a7ad", + "client-request-id": "069418fa-f9ae-4d55-b7f4-2de7c81311c9", "Content-Length": "93", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:35 GMT", + "Date": "Thu, 28 Apr 2022 09:58:20 GMT", "Expires": "-1", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Pragma": "no-cache", @@ -201,7 +201,7 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", - "x-ms-ests-server": "2.1.12651.7 - EUS ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - WUS2 ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -220,7 +220,7 @@ "Connection": "keep-alive", "Content-Length": "87", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "westus", @@ -234,11 +234,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/62dcc4ff-64e2-4db0-b4ca-3346828c7782?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c1799c78-5a2a-49f2-bb2c-5e526471de09?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "598", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:36 GMT", + "Date": "Thu, 28 Apr 2022 09:58:20 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "3", @@ -248,20 +248,20 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "203931e7-c5a9-47e3-b10a-063771e19419", - "x-ms-correlation-request-id": "67cbcaa3-fdc3-4935-86a7-b245c90250d5", - "x-ms-ratelimit-remaining-subscription-writes": "1177", - "x-ms-routing-request-id": "EASTUS2:20220425T042637Z:67cbcaa3-fdc3-4935-86a7-b245c90250d5" + "x-ms-arm-service-request-id": "18b69992-e991-4f50-9a71-d08855c250d1", + "x-ms-correlation-request-id": "cc77330f-6f15-4cb9-8324-98636dbaf4d6", + "x-ms-ratelimit-remaining-subscription-writes": "1176", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095821Z:cc77330f-6f15-4cb9-8324-98636dbaf4d6" }, "ResponseBody": { "name": "publicipprefixd2d02bf9", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/publicIPPrefixes/publicipprefixd2d02bf9", - "etag": "W/\u00224cb9db0e-8123-4dea-addf-89afaa782c8b\u0022", + "etag": "W/\u002288a13303-8e8f-4206-af73-3a52b553f071\u0022", "type": "Microsoft.Network/publicIPPrefixes", "location": "westus", "properties": { "provisioningState": "Updating", - "resourceGuid": "60b5521d-47c3-44a3-b1ab-6ee302d85e39", + "resourceGuid": "31f5a798-13e6-4de3-91f4-abd49133caa5", "prefixLength": 30, "publicIPAddressVersion": "IPv4", "ipTags": [] @@ -273,13 +273,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/62dcc4ff-64e2-4db0-b4ca-3346828c7782?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c1799c78-5a2a-49f2-bb2c-5e526471de09?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -287,7 +287,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:39 GMT", + "Date": "Thu, 28 Apr 2022 09:58:23 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -298,10 +298,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "3559a6e5-f4eb-43ff-9f84-f7c410d17747", - "x-ms-correlation-request-id": "460d6fec-a6fe-48bd-930d-197353fff009", - "x-ms-ratelimit-remaining-subscription-reads": "11872", - "x-ms-routing-request-id": "EASTUS2:20220425T042640Z:460d6fec-a6fe-48bd-930d-197353fff009" + "x-ms-arm-service-request-id": "b7d059ff-b3af-4c71-a97d-7061223a9d68", + "x-ms-correlation-request-id": "7c9bab4c-1f0e-4f9b-8de4-32062895bc41", + "x-ms-ratelimit-remaining-subscription-reads": "11844", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095824Z:7c9bab4c-1f0e-4f9b-8de4-32062895bc41" }, "ResponseBody": { "status": "Succeeded" @@ -314,7 +314,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -322,8 +322,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:39 GMT", - "ETag": "W/\u0022b556d380-9f81-4a24-9416-dc802d521ddf\u0022", + "Date": "Thu, 28 Apr 2022 09:58:23 GMT", + "ETag": "W/\u002206dff27a-1eca-4588-9c98-d44471ba1813\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -334,23 +334,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "6ebc8ca5-ec20-4d11-aeae-7fc1fb4df8df", - "x-ms-correlation-request-id": "520187d3-9dea-4358-ab81-1ae79e529c19", - "x-ms-ratelimit-remaining-subscription-reads": "11871", - "x-ms-routing-request-id": "EASTUS2:20220425T042640Z:520187d3-9dea-4358-ab81-1ae79e529c19" + "x-ms-arm-service-request-id": "6650dde3-c667-4787-82f0-9e728c52457a", + "x-ms-correlation-request-id": "1a299830-9acd-4fc8-9b03-c1057714f94c", + "x-ms-ratelimit-remaining-subscription-reads": "11843", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095824Z:1a299830-9acd-4fc8-9b03-c1057714f94c" }, "ResponseBody": { "name": "publicipprefixd2d02bf9", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/publicIPPrefixes/publicipprefixd2d02bf9", - "etag": "W/\u0022b556d380-9f81-4a24-9416-dc802d521ddf\u0022", + "etag": "W/\u002206dff27a-1eca-4588-9c98-d44471ba1813\u0022", "type": "Microsoft.Network/publicIPPrefixes", "location": "westus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "60b5521d-47c3-44a3-b1ab-6ee302d85e39", + "resourceGuid": "31f5a798-13e6-4de3-91f4-abd49133caa5", "prefixLength": 30, "publicIPAddressVersion": "IPv4", - "ipPrefix": "40.86.162.56/30", + "ipPrefix": "52.155.62.100/30", "ipTags": [] }, "sku": { @@ -368,7 +368,7 @@ "Connection": "keep-alive", "Content-Length": "22", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "eastus" @@ -376,11 +376,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/76ba0438-a5b3-4d49-9fd5-47de5880a190?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/007c7818-24d6-4f34-9176-9821e87fb97e?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "650", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:40 GMT", + "Date": "Thu, 28 Apr 2022 09:58:24 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "1", @@ -390,19 +390,19 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "97227b7e-8aaf-4e2b-9d8f-35f8e5d6fea8", - "x-ms-correlation-request-id": "90430ca7-7215-4575-9ace-e4e06ac3ca35", - "x-ms-ratelimit-remaining-subscription-writes": "1176", - "x-ms-routing-request-id": "EASTUS2:20220425T042640Z:90430ca7-7215-4575-9ace-e4e06ac3ca35" + "x-ms-arm-service-request-id": "935e0148-439e-4073-9107-0e5e11251261", + "x-ms-correlation-request-id": "5ef0596b-1de2-408f-b96e-f84d6b1b4a4e", + "x-ms-ratelimit-remaining-subscription-writes": "1175", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095824Z:5ef0596b-1de2-408f-b96e-f84d6b1b4a4e" }, "ResponseBody": { "name": "publicipaddressd2d02bf9", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/publicIPAddresses/publicipaddressd2d02bf9", - "etag": "W/\u00222977514c-bf9c-49e9-884c-f03698d67f03\u0022", + "etag": "W/\u00227f3c057e-be43-4bea-9d02-bcecc41e8604\u0022", "location": "eastus", "properties": { "provisioningState": "Updating", - "resourceGuid": "c4ca79a1-c8a7-464a-afc4-9d1023a8ce47", + "resourceGuid": "a9b810d0-be93-4f29-a40f-0d07b411e9ac", "publicIPAddressVersion": "IPv4", "publicIPAllocationMethod": "Dynamic", "idleTimeoutInMinutes": 4, @@ -416,13 +416,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/76ba0438-a5b3-4d49-9fd5-47de5880a190?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/007c7818-24d6-4f34-9176-9821e87fb97e?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -430,7 +430,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:41 GMT", + "Date": "Thu, 28 Apr 2022 09:58:25 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -441,10 +441,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "4d504ef5-9a26-4d4b-bfcc-769c65375d49", - "x-ms-correlation-request-id": "e2c3903a-a9b5-454b-9464-3519792a5da0", - "x-ms-ratelimit-remaining-subscription-reads": "11870", - "x-ms-routing-request-id": "EASTUS2:20220425T042641Z:e2c3903a-a9b5-454b-9464-3519792a5da0" + "x-ms-arm-service-request-id": "34821752-278a-4f48-baa7-db3cce84d802", + "x-ms-correlation-request-id": "95bebd9f-8d11-40a0-ae2b-1ebb8da08b8d", + "x-ms-ratelimit-remaining-subscription-reads": "11842", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095826Z:95bebd9f-8d11-40a0-ae2b-1ebb8da08b8d" }, "ResponseBody": { "status": "Succeeded" @@ -457,7 +457,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -465,8 +465,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:41 GMT", - "ETag": "W/\u002251a45989-1801-4557-a02a-95c8cfcbc1fd\u0022", + "Date": "Thu, 28 Apr 2022 09:58:25 GMT", + "ETag": "W/\u0022290d2be5-1c67-4dd6-b57a-624225b0ca8d\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -477,19 +477,19 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "90f47d3a-a9ee-4354-84a0-b4bb909cc051", - "x-ms-correlation-request-id": "136b6068-1c93-434c-a694-0e6e9b50b499", - "x-ms-ratelimit-remaining-subscription-reads": "11869", - "x-ms-routing-request-id": "EASTUS2:20220425T042641Z:136b6068-1c93-434c-a694-0e6e9b50b499" + "x-ms-arm-service-request-id": "5fa9ef56-502e-41d7-a80c-03f74b770333", + "x-ms-correlation-request-id": "37e90a7c-8407-4880-b141-c5680b5aa098", + "x-ms-ratelimit-remaining-subscription-reads": "11841", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095826Z:37e90a7c-8407-4880-b141-c5680b5aa098" }, "ResponseBody": { "name": "publicipaddressd2d02bf9", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/publicIPAddresses/publicipaddressd2d02bf9", - "etag": "W/\u002251a45989-1801-4557-a02a-95c8cfcbc1fd\u0022", + "etag": "W/\u0022290d2be5-1c67-4dd6-b57a-624225b0ca8d\u0022", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "c4ca79a1-c8a7-464a-afc4-9d1023a8ce47", + "resourceGuid": "a9b810d0-be93-4f29-a40f-0d07b411e9ac", "publicIPAddressVersion": "IPv4", "publicIPAllocationMethod": "Dynamic", "idleTimeoutInMinutes": 4, @@ -509,7 +509,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -517,8 +517,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:41 GMT", - "ETag": "W/\u002251a45989-1801-4557-a02a-95c8cfcbc1fd\u0022", + "Date": "Thu, 28 Apr 2022 09:58:25 GMT", + "ETag": "W/\u0022290d2be5-1c67-4dd6-b57a-624225b0ca8d\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -529,19 +529,19 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "a5993b88-ecca-4fde-b2d0-7637798e98e9", - "x-ms-correlation-request-id": "62985ad2-4acb-45d5-ba64-7ffeff690957", - "x-ms-ratelimit-remaining-subscription-reads": "11868", - "x-ms-routing-request-id": "EASTUS2:20220425T042641Z:62985ad2-4acb-45d5-ba64-7ffeff690957" + "x-ms-arm-service-request-id": "ab652d00-0f0c-4288-88b8-ff10b10d4a71", + "x-ms-correlation-request-id": "a12fd822-b27b-41b5-80bf-ce8518519968", + "x-ms-ratelimit-remaining-subscription-reads": "11840", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095826Z:a12fd822-b27b-41b5-80bf-ce8518519968" }, "ResponseBody": { "name": "publicipaddressd2d02bf9", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/publicIPAddresses/publicipaddressd2d02bf9", - "etag": "W/\u002251a45989-1801-4557-a02a-95c8cfcbc1fd\u0022", + "etag": "W/\u0022290d2be5-1c67-4dd6-b57a-624225b0ca8d\u0022", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "c4ca79a1-c8a7-464a-afc4-9d1023a8ce47", + "resourceGuid": "a9b810d0-be93-4f29-a40f-0d07b411e9ac", "publicIPAddressVersion": "IPv4", "publicIPAllocationMethod": "Dynamic", "idleTimeoutInMinutes": 4, @@ -561,7 +561,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -569,8 +569,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:41 GMT", - "ETag": "W/\u0022b556d380-9f81-4a24-9416-dc802d521ddf\u0022", + "Date": "Thu, 28 Apr 2022 09:58:25 GMT", + "ETag": "W/\u002206dff27a-1eca-4588-9c98-d44471ba1813\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -581,23 +581,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "def996a8-0c73-40b9-ac88-b022f1b8b485", - "x-ms-correlation-request-id": "8605db3a-977e-40ed-b7c6-6ee86fc49a34", - "x-ms-ratelimit-remaining-subscription-reads": "11867", - "x-ms-routing-request-id": "EASTUS2:20220425T042641Z:8605db3a-977e-40ed-b7c6-6ee86fc49a34" + "x-ms-arm-service-request-id": "b0970e27-feb1-4e73-82b9-a834a9a04dbf", + "x-ms-correlation-request-id": "738ef43e-afaf-409c-bbcb-98a3671a7bb3", + "x-ms-ratelimit-remaining-subscription-reads": "11839", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095826Z:738ef43e-afaf-409c-bbcb-98a3671a7bb3" }, "ResponseBody": { "name": "publicipprefixd2d02bf9", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/publicIPPrefixes/publicipprefixd2d02bf9", - "etag": "W/\u0022b556d380-9f81-4a24-9416-dc802d521ddf\u0022", + "etag": "W/\u002206dff27a-1eca-4588-9c98-d44471ba1813\u0022", "type": "Microsoft.Network/publicIPPrefixes", "location": "westus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "60b5521d-47c3-44a3-b1ab-6ee302d85e39", + "resourceGuid": "31f5a798-13e6-4de3-91f4-abd49133caa5", "prefixLength": 30, "publicIPAddressVersion": "IPv4", - "ipPrefix": "40.86.162.56/30", + "ipPrefix": "52.155.62.100/30", "ipTags": [] }, "sku": { @@ -615,7 +615,7 @@ "Connection": "keep-alive", "Content-Length": "46", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "tags": { @@ -629,7 +629,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:41 GMT", + "Date": "Thu, 28 Apr 2022 09:58:25 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -640,15 +640,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "437c0d26-9854-45d0-8a64-c71dbcec041b", - "x-ms-correlation-request-id": "ef847f97-6872-4e3d-91b6-677957a1dc99", - "x-ms-ratelimit-remaining-subscription-writes": "1175", - "x-ms-routing-request-id": "EASTUS2:20220425T042642Z:ef847f97-6872-4e3d-91b6-677957a1dc99" + "x-ms-arm-service-request-id": "7b3f5f59-2515-4325-97db-ef5f023134c9", + "x-ms-correlation-request-id": "b26512a6-97c9-49e4-ae0d-c6fd5261b2af", + "x-ms-ratelimit-remaining-subscription-writes": "1174", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095826Z:b26512a6-97c9-49e4-ae0d-c6fd5261b2af" }, "ResponseBody": { "name": "publicipaddressd2d02bf9", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/publicIPAddresses/publicipaddressd2d02bf9", - "etag": "W/\u0022ab60ac7f-e8f7-4ef1-aab9-9de2d313cd31\u0022", + "etag": "W/\u0022a6e0b84e-22bc-42c3-92f4-ab1f26903a43\u0022", "location": "eastus", "tags": { "tag1": "value1", @@ -656,7 +656,7 @@ }, "properties": { "provisioningState": "Succeeded", - "resourceGuid": "c4ca79a1-c8a7-464a-afc4-9d1023a8ce47", + "resourceGuid": "a9b810d0-be93-4f29-a40f-0d07b411e9ac", "publicIPAddressVersion": "IPv4", "publicIPAllocationMethod": "Dynamic", "idleTimeoutInMinutes": 4, @@ -678,7 +678,7 @@ "Connection": "keep-alive", "Content-Length": "46", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "tags": { @@ -692,7 +692,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:42 GMT", + "Date": "Thu, 28 Apr 2022 09:58:26 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -703,15 +703,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "67becc48-9da1-43f1-98bb-8e26687437c3", - "x-ms-correlation-request-id": "998a95bc-3061-4994-b0a0-cda34010d543", - "x-ms-ratelimit-remaining-subscription-writes": "1174", - "x-ms-routing-request-id": "EASTUS2:20220425T042642Z:998a95bc-3061-4994-b0a0-cda34010d543" + "x-ms-arm-service-request-id": "5d701d0f-e4ca-48c5-9ada-13f7a4fdebb2", + "x-ms-correlation-request-id": "fd59a9d9-8530-443b-a23d-6ec072f2a38e", + "x-ms-ratelimit-remaining-subscription-writes": "1173", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095827Z:fd59a9d9-8530-443b-a23d-6ec072f2a38e" }, "ResponseBody": { "name": "publicipprefixd2d02bf9", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/publicIPPrefixes/publicipprefixd2d02bf9", - "etag": "W/\u0022ab572eba-8c5d-4c77-8fcc-ca1bb1fe7b7c\u0022", + "etag": "W/\u0022d2a5cf5a-0542-4680-90ac-f730abf01f5d\u0022", "type": "Microsoft.Network/publicIPPrefixes", "location": "westus", "tags": { @@ -720,10 +720,10 @@ }, "properties": { "provisioningState": "Succeeded", - "resourceGuid": "60b5521d-47c3-44a3-b1ab-6ee302d85e39", + "resourceGuid": "31f5a798-13e6-4de3-91f4-abd49133caa5", "prefixLength": 30, "publicIPAddressVersion": "IPv4", - "ipPrefix": "40.86.162.56/30", + "ipPrefix": "52.155.62.100/30", "ipTags": [] }, "sku": { @@ -740,18 +740,18 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/7d5a2b5d-be19-4e5d-b486-2bf9f6b78382?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/ed5f713b-7e28-4957-b322-772e95cb13c7?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 04:26:42 GMT", + "Date": "Thu, 28 Apr 2022 09:58:26 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/7d5a2b5d-be19-4e5d-b486-2bf9f6b78382?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/ed5f713b-7e28-4957-b322-772e95cb13c7?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -760,21 +760,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "a3ee489d-4273-4ffa-9ef4-37ed57929406", - "x-ms-correlation-request-id": "37d6efd4-a7ee-4f45-9368-0ab2c91310e4", - "x-ms-ratelimit-remaining-subscription-deletes": "14983", - "x-ms-routing-request-id": "EASTUS2:20220425T042642Z:37d6efd4-a7ee-4f45-9368-0ab2c91310e4" + "x-ms-arm-service-request-id": "b4a0a89a-981c-4f9c-a203-4f2c56d3795d", + "x-ms-correlation-request-id": "36df6a47-2954-4705-9215-4388bbed58dd", + "x-ms-ratelimit-remaining-subscription-deletes": "14979", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095827Z:36df6a47-2954-4705-9215-4388bbed58dd" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/7d5a2b5d-be19-4e5d-b486-2bf9f6b78382?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/ed5f713b-7e28-4957-b322-772e95cb13c7?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -782,7 +782,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:52 GMT", + "Date": "Thu, 28 Apr 2022 09:58:36 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -793,34 +793,34 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "f9da64d0-29f0-4a7a-b1c3-1c2eae625f20", - "x-ms-correlation-request-id": "d3a1de4a-7d55-43fb-91a1-b9017fa17b30", - "x-ms-ratelimit-remaining-subscription-reads": "11866", - "x-ms-routing-request-id": "EASTUS2:20220425T042652Z:d3a1de4a-7d55-43fb-91a1-b9017fa17b30" + "x-ms-arm-service-request-id": "c3939391-d684-4b2e-8474-5f0bbd74fac6", + "x-ms-correlation-request-id": "182c5758-15c3-4744-8d1d-242cc61e9d70", + "x-ms-ratelimit-remaining-subscription-reads": "11838", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095837Z:182c5758-15c3-4744-8d1d-242cc61e9d70" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/7d5a2b5d-be19-4e5d-b486-2bf9f6b78382?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/ed5f713b-7e28-4957-b322-772e95cb13c7?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/7d5a2b5d-be19-4e5d-b486-2bf9f6b78382?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/ed5f713b-7e28-4957-b322-772e95cb13c7?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:26:52 GMT", + "Date": "Thu, 28 Apr 2022 09:58:36 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/7d5a2b5d-be19-4e5d-b486-2bf9f6b78382?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/ed5f713b-7e28-4957-b322-772e95cb13c7?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -828,10 +828,10 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "a3ee489d-4273-4ffa-9ef4-37ed57929406", - "x-ms-correlation-request-id": "37d6efd4-a7ee-4f45-9368-0ab2c91310e4", - "x-ms-ratelimit-remaining-subscription-reads": "11865", - "x-ms-routing-request-id": "EASTUS2:20220425T042652Z:e9694062-848a-438b-ac31-471d0af2b5a3" + "x-ms-arm-service-request-id": "b4a0a89a-981c-4f9c-a203-4f2c56d3795d", + "x-ms-correlation-request-id": "36df6a47-2954-4705-9215-4388bbed58dd", + "x-ms-ratelimit-remaining-subscription-reads": "11837", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095837Z:ffa9270e-353d-49ed-a090-db93c2aa23df" }, "ResponseBody": null }, @@ -843,18 +843,18 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/38bd5b4b-59b1-4b2d-9d72-2d5fbe0b2584?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f836981a-4570-49dc-b849-279447c6aa2d?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 04:26:52 GMT", + "Date": "Thu, 28 Apr 2022 09:58:36 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/38bd5b4b-59b1-4b2d-9d72-2d5fbe0b2584?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/f836981a-4570-49dc-b849-279447c6aa2d?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -863,21 +863,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "aa77179c-61e0-4075-9e6a-712a159e819f", - "x-ms-correlation-request-id": "27400d99-bdb8-4c99-b920-36ae8fcca0fd", - "x-ms-ratelimit-remaining-subscription-deletes": "14982", - "x-ms-routing-request-id": "EASTUS2:20220425T042652Z:27400d99-bdb8-4c99-b920-36ae8fcca0fd" + "x-ms-arm-service-request-id": "25f86b94-12a6-418d-a87a-cf351687141d", + "x-ms-correlation-request-id": "2058acd5-bf5d-498b-821a-c70bad6c449b", + "x-ms-ratelimit-remaining-subscription-deletes": "14978", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095837Z:2058acd5-bf5d-498b-821a-c70bad6c449b" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/38bd5b4b-59b1-4b2d-9d72-2d5fbe0b2584?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f836981a-4570-49dc-b849-279447c6aa2d?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -885,7 +885,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:27:02 GMT", + "Date": "Thu, 28 Apr 2022 09:58:47 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -896,34 +896,34 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "4d259bae-f4b1-4698-b812-6a69729578ee", - "x-ms-correlation-request-id": "210d4cce-f8e7-4501-b9ed-495a5ed48706", - "x-ms-ratelimit-remaining-subscription-reads": "11864", - "x-ms-routing-request-id": "EASTUS2:20220425T042703Z:210d4cce-f8e7-4501-b9ed-495a5ed48706" + "x-ms-arm-service-request-id": "5fc73df6-b6be-4bfd-93a9-98d45afd9666", + "x-ms-correlation-request-id": "76d78d05-edaf-4c62-9e10-cc0017c96fca", + "x-ms-ratelimit-remaining-subscription-reads": "11836", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095847Z:76d78d05-edaf-4c62-9e10-cc0017c96fca" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/38bd5b4b-59b1-4b2d-9d72-2d5fbe0b2584?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/f836981a-4570-49dc-b849-279447c6aa2d?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/38bd5b4b-59b1-4b2d-9d72-2d5fbe0b2584?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f836981a-4570-49dc-b849-279447c6aa2d?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:27:02 GMT", + "Date": "Thu, 28 Apr 2022 09:58:47 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/38bd5b4b-59b1-4b2d-9d72-2d5fbe0b2584?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/f836981a-4570-49dc-b849-279447c6aa2d?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -931,10 +931,10 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "aa77179c-61e0-4075-9e6a-712a159e819f", - "x-ms-correlation-request-id": "27400d99-bdb8-4c99-b920-36ae8fcca0fd", - "x-ms-ratelimit-remaining-subscription-reads": "11863", - "x-ms-routing-request-id": "EASTUS2:20220425T042703Z:c4f30ac1-f1a1-42e1-b452-46bb5fdb7d52" + "x-ms-arm-service-request-id": "25f86b94-12a6-418d-a87a-cf351687141d", + "x-ms-correlation-request-id": "2058acd5-bf5d-498b-821a-c70bad6c449b", + "x-ms-ratelimit-remaining-subscription-reads": "11835", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095847Z:c7901244-2e87-44bb-a10f-d3630c2d20ba" }, "ResponseBody": null } diff --git a/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_load_balancer.pyTestMgmtNetworktest_network.json b/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_load_balancer.pyTestMgmtNetworktest_network.json index e60e5e8f8362..9e9a800e5cb1 100644 --- a/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_load_balancer.pyTestMgmtNetworktest_network.json +++ b/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_load_balancer.pyTestMgmtNetworktest_network.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -17,12 +17,12 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "1753", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:27:03 GMT", + "Date": "Thu, 28 Apr 2022 09:58:49 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12651.7 - EUS ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - NCUS ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -101,7 +101,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -111,12 +111,12 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "945", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:27:03 GMT", + "Date": "Thu, 28 Apr 2022 09:58:49 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12651.7 - SCUS ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - WUS2 ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -172,12 +172,12 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "client-request-id": "38b2dfed-2a46-433f-ba14-5d8e4bdd8885", + "client-request-id": "e6299d78-f5ac-4cb1-b312-542dd5a60080", "Connection": "keep-alive", "Content-Length": "286", "Content-Type": "application/x-www-form-urlencoded", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", @@ -190,10 +190,10 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "client-request-id": "38b2dfed-2a46-433f-ba14-5d8e4bdd8885", + "client-request-id": "e6299d78-f5ac-4cb1-b312-542dd5a60080", "Content-Length": "93", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:27:03 GMT", + "Date": "Thu, 28 Apr 2022 09:58:49 GMT", "Expires": "-1", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Pragma": "no-cache", @@ -201,7 +201,7 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", - "x-ms-ests-server": "2.1.12651.7 - SCUS ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - EUS ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -220,7 +220,7 @@ "Connection": "keep-alive", "Content-Length": "167", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "eastus", @@ -236,11 +236,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/37bf6dbe-58e3-497d-84ca-569b42ca232c?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/defed511-00a3-4d46-a104-60027d727684?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "651", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:27:04 GMT", + "Date": "Thu, 28 Apr 2022 09:58:50 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "1", @@ -250,19 +250,19 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "52393ab5-3154-42c3-94ff-8e8a33d9e72c", - "x-ms-correlation-request-id": "4a3e0408-29fd-4ee6-9df8-feada37d2221", - "x-ms-ratelimit-remaining-subscription-writes": "1173", - "x-ms-routing-request-id": "EASTUS2:20220425T042705Z:4a3e0408-29fd-4ee6-9df8-feada37d2221" + "x-ms-arm-service-request-id": "bf485734-e290-4775-a97c-40f731df4225", + "x-ms-correlation-request-id": "cb9be436-8d5f-4201-a74c-b3eec478e5a0", + "x-ms-ratelimit-remaining-subscription-writes": "1172", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095850Z:cb9be436-8d5f-4201-a74c-b3eec478e5a0" }, "ResponseBody": { "name": "public_ip_address_name", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/publicIPAddresses/public_ip_address_name", - "etag": "W/\u00224bda4858-3b58-4fa4-a036-1356f37e7f71\u0022", + "etag": "W/\u0022b2958d70-ab6f-42ff-a80c-7e1b6982f54a\u0022", "location": "eastus", "properties": { "provisioningState": "Updating", - "resourceGuid": "8c484674-c8ef-4c7c-950e-b774b004dddd", + "resourceGuid": "6d4610c6-d9b8-4ba7-8e9f-84d0a8233375", "publicIPAddressVersion": "IPv4", "publicIPAllocationMethod": "Static", "idleTimeoutInMinutes": 10, @@ -276,13 +276,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/37bf6dbe-58e3-497d-84ca-569b42ca232c?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/defed511-00a3-4d46-a104-60027d727684?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -290,7 +290,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:27:05 GMT", + "Date": "Thu, 28 Apr 2022 09:58:51 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -301,10 +301,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "d2353be8-0d3f-4488-8efc-3d3d2048fa35", - "x-ms-correlation-request-id": "7f1fbd3a-dd7b-40b7-8a2d-828a122ba9ea", - "x-ms-ratelimit-remaining-subscription-reads": "11862", - "x-ms-routing-request-id": "EASTUS2:20220425T042706Z:7f1fbd3a-dd7b-40b7-8a2d-828a122ba9ea" + "x-ms-arm-service-request-id": "2596b8b0-3c5e-45b5-b228-15be9bd7a199", + "x-ms-correlation-request-id": "0f8fbc4a-cdbf-437e-9e17-79c4024b1731", + "x-ms-ratelimit-remaining-subscription-reads": "11834", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095851Z:0f8fbc4a-cdbf-437e-9e17-79c4024b1731" }, "ResponseBody": { "status": "Succeeded" @@ -317,7 +317,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -325,8 +325,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:27:05 GMT", - "ETag": "W/\u00220e44b877-e0ec-46ae-9201-b337f02d638c\u0022", + "Date": "Thu, 28 Apr 2022 09:58:51 GMT", + "ETag": "W/\u0022bc89afee-d6ca-4a97-8bf0-c91249f3c2ba\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -337,20 +337,20 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "b8c945f9-2f08-4624-847d-f55391b6f24b", - "x-ms-correlation-request-id": "0ef9b865-f789-46ed-8109-ab171fe0cdda", - "x-ms-ratelimit-remaining-subscription-reads": "11861", - "x-ms-routing-request-id": "EASTUS2:20220425T042706Z:0ef9b865-f789-46ed-8109-ab171fe0cdda" + "x-ms-arm-service-request-id": "230a78b5-3df3-4a0d-ab95-158fe31fd300", + "x-ms-correlation-request-id": "3fd8ec01-8e2c-41e5-881a-c75f91872168", + "x-ms-ratelimit-remaining-subscription-reads": "11833", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095851Z:3fd8ec01-8e2c-41e5-881a-c75f91872168" }, "ResponseBody": { "name": "public_ip_address_name", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/publicIPAddresses/public_ip_address_name", - "etag": "W/\u00220e44b877-e0ec-46ae-9201-b337f02d638c\u0022", + "etag": "W/\u0022bc89afee-d6ca-4a97-8bf0-c91249f3c2ba\u0022", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "8c484674-c8ef-4c7c-950e-b774b004dddd", - "ipAddress": "20.115.114.246", + "resourceGuid": "6d4610c6-d9b8-4ba7-8e9f-84d0a8233375", + "ipAddress": "20.124.241.133", "publicIPAddressVersion": "IPv4", "publicIPAllocationMethod": "Static", "idleTimeoutInMinutes": 10, @@ -372,7 +372,7 @@ "Connection": "keep-alive", "Content-Length": "1892", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "eastus", @@ -451,11 +451,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/dc9711f6-bbe0-4ec7-838f-927a16dd6c24?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/6639027d-a78c-486d-8eba-208ba82c1d79?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "6832", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:27:06 GMT", + "Date": "Thu, 28 Apr 2022 09:58:52 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -464,25 +464,25 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "c158df55-95e9-42f3-9947-503466b42244", - "x-ms-correlation-request-id": "1b72c561-5931-4ff0-b667-ccf8162b2351", - "x-ms-ratelimit-remaining-subscription-writes": "1172", - "x-ms-routing-request-id": "EASTUS2:20220425T042706Z:1b72c561-5931-4ff0-b667-ccf8162b2351" + "x-ms-arm-service-request-id": "45b79f23-e8ae-4a31-94af-7aa5572041ac", + "x-ms-correlation-request-id": "47280c07-ebc7-4c15-ab79-7cf91ae3faa3", + "x-ms-ratelimit-remaining-subscription-writes": "1171", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095852Z:47280c07-ebc7-4c15-ab79-7cf91ae3faa3" }, "ResponseBody": { "name": "myLoadBalancer", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer", - "etag": "W/\u0022be92669a-ce19-4c60-85da-2a3781a7429a\u0022", + "etag": "W/\u00220a7f5935-40ae-4903-b5a3-1567d34bb66e\u0022", "type": "Microsoft.Network/loadBalancers", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "ae084d7c-8ee0-405c-848f-f541c89f2ede", + "resourceGuid": "78abbe82-832a-4198-bc6f-91aac6e74455", "frontendIPConfigurations": [ { "name": "myFrontendIpconfiguration", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/frontendIPConfigurations/myFrontendIpconfiguration", - "etag": "W/\u0022be92669a-ce19-4c60-85da-2a3781a7429a\u0022", + "etag": "W/\u00220a7f5935-40ae-4903-b5a3-1567d34bb66e\u0022", "type": "Microsoft.Network/loadBalancers/frontendIPConfigurations", "properties": { "provisioningState": "Succeeded", @@ -507,7 +507,7 @@ { "name": "myBackendAddressPool", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/backendAddressPools/myBackendAddressPool", - "etag": "W/\u0022be92669a-ce19-4c60-85da-2a3781a7429a\u0022", + "etag": "W/\u00220a7f5935-40ae-4903-b5a3-1567d34bb66e\u0022", "properties": { "provisioningState": "Succeeded", "loadBalancerBackendAddresses": [], @@ -529,7 +529,7 @@ { "name": "myLoadBalancingRule", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/loadBalancingRules/myLoadBalancingRule", - "etag": "W/\u0022be92669a-ce19-4c60-85da-2a3781a7429a\u0022", + "etag": "W/\u00220a7f5935-40ae-4903-b5a3-1567d34bb66e\u0022", "type": "Microsoft.Network/loadBalancers/loadBalancingRules", "properties": { "provisioningState": "Succeeded", @@ -564,7 +564,7 @@ { "name": "myProbe", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/probes/myProbe", - "etag": "W/\u0022be92669a-ce19-4c60-85da-2a3781a7429a\u0022", + "etag": "W/\u00220a7f5935-40ae-4903-b5a3-1567d34bb66e\u0022", "properties": { "provisioningState": "Succeeded", "protocol": "Http", @@ -586,7 +586,7 @@ { "name": "myOutboundRule", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/outboundRules/myOutboundRule", - "etag": "W/\u0022be92669a-ce19-4c60-85da-2a3781a7429a\u0022", + "etag": "W/\u00220a7f5935-40ae-4903-b5a3-1567d34bb66e\u0022", "type": "Microsoft.Network/loadBalancers/outboundRules", "properties": { "provisioningState": "Succeeded", @@ -614,13 +614,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/dc9711f6-bbe0-4ec7-838f-927a16dd6c24?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/6639027d-a78c-486d-8eba-208ba82c1d79?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -628,7 +628,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:27:36 GMT", + "Date": "Thu, 28 Apr 2022 09:59:21 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -639,10 +639,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "c27e4dc4-032a-4a27-b056-b5eb0483618a", - "x-ms-correlation-request-id": "f68d0b29-0e7d-4a4d-8dfb-eb52202fc5c7", - "x-ms-ratelimit-remaining-subscription-reads": "11860", - "x-ms-routing-request-id": "EASTUS2:20220425T042736Z:f68d0b29-0e7d-4a4d-8dfb-eb52202fc5c7" + "x-ms-arm-service-request-id": "cb38f6b2-28ea-46a6-bf4b-88109a4cd662", + "x-ms-correlation-request-id": "f8aeef7d-4708-413d-beef-061649b94ad0", + "x-ms-ratelimit-remaining-subscription-reads": "11832", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095922Z:f8aeef7d-4708-413d-beef-061649b94ad0" }, "ResponseBody": { "status": "Succeeded" @@ -655,7 +655,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -663,8 +663,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:27:36 GMT", - "ETag": "W/\u0022be92669a-ce19-4c60-85da-2a3781a7429a\u0022", + "Date": "Thu, 28 Apr 2022 09:59:21 GMT", + "ETag": "W/\u00220a7f5935-40ae-4903-b5a3-1567d34bb66e\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -675,25 +675,25 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "1b11f840-4745-4cb1-a11d-5e82726f76ef", - "x-ms-correlation-request-id": "fc6c26ed-07dd-448c-a133-df764a0e04f2", - "x-ms-ratelimit-remaining-subscription-reads": "11859", - "x-ms-routing-request-id": "EASTUS2:20220425T042736Z:fc6c26ed-07dd-448c-a133-df764a0e04f2" + "x-ms-arm-service-request-id": "e7b9901e-e9ef-4ac5-a8d8-e1dac8586365", + "x-ms-correlation-request-id": "e1da090a-df58-4ab1-91e2-343e44df72a3", + "x-ms-ratelimit-remaining-subscription-reads": "11831", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095922Z:e1da090a-df58-4ab1-91e2-343e44df72a3" }, "ResponseBody": { "name": "myLoadBalancer", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer", - "etag": "W/\u0022be92669a-ce19-4c60-85da-2a3781a7429a\u0022", + "etag": "W/\u00220a7f5935-40ae-4903-b5a3-1567d34bb66e\u0022", "type": "Microsoft.Network/loadBalancers", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "ae084d7c-8ee0-405c-848f-f541c89f2ede", + "resourceGuid": "78abbe82-832a-4198-bc6f-91aac6e74455", "frontendIPConfigurations": [ { "name": "myFrontendIpconfiguration", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/frontendIPConfigurations/myFrontendIpconfiguration", - "etag": "W/\u0022be92669a-ce19-4c60-85da-2a3781a7429a\u0022", + "etag": "W/\u00220a7f5935-40ae-4903-b5a3-1567d34bb66e\u0022", "type": "Microsoft.Network/loadBalancers/frontendIPConfigurations", "properties": { "provisioningState": "Succeeded", @@ -718,7 +718,7 @@ { "name": "myBackendAddressPool", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/backendAddressPools/myBackendAddressPool", - "etag": "W/\u0022be92669a-ce19-4c60-85da-2a3781a7429a\u0022", + "etag": "W/\u00220a7f5935-40ae-4903-b5a3-1567d34bb66e\u0022", "properties": { "provisioningState": "Succeeded", "loadBalancerBackendAddresses": [], @@ -740,7 +740,7 @@ { "name": "myLoadBalancingRule", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/loadBalancingRules/myLoadBalancingRule", - "etag": "W/\u0022be92669a-ce19-4c60-85da-2a3781a7429a\u0022", + "etag": "W/\u00220a7f5935-40ae-4903-b5a3-1567d34bb66e\u0022", "type": "Microsoft.Network/loadBalancers/loadBalancingRules", "properties": { "provisioningState": "Succeeded", @@ -775,7 +775,7 @@ { "name": "myProbe", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/probes/myProbe", - "etag": "W/\u0022be92669a-ce19-4c60-85da-2a3781a7429a\u0022", + "etag": "W/\u00220a7f5935-40ae-4903-b5a3-1567d34bb66e\u0022", "properties": { "provisioningState": "Succeeded", "protocol": "Http", @@ -797,7 +797,7 @@ { "name": "myOutboundRule", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/outboundRules/myOutboundRule", - "etag": "W/\u0022be92669a-ce19-4c60-85da-2a3781a7429a\u0022", + "etag": "W/\u00220a7f5935-40ae-4903-b5a3-1567d34bb66e\u0022", "type": "Microsoft.Network/loadBalancers/outboundRules", "properties": { "provisioningState": "Succeeded", @@ -833,7 +833,7 @@ "Connection": "keep-alive", "Content-Length": "377", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "properties": { @@ -850,11 +850,11 @@ }, "StatusCode": 201, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/c5212a24-4967-4665-9c28-31f9511b635e?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/944bbbf7-2963-40e0-b62a-e7f451aa9c2c?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "890", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:27:36 GMT", + "Date": "Thu, 28 Apr 2022 09:59:22 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -863,15 +863,15 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "f6f6bf6c-97b6-448f-a432-a5f8f0d19a60", - "x-ms-correlation-request-id": "60f4a40c-2366-401b-902f-7a6f14a1fc47", - "x-ms-ratelimit-remaining-subscription-writes": "1171", - "x-ms-routing-request-id": "EASTUS2:20220425T042736Z:60f4a40c-2366-401b-902f-7a6f14a1fc47" + "x-ms-arm-service-request-id": "0bce635d-47e6-4101-b386-d9114be160db", + "x-ms-correlation-request-id": "268d3d79-72e5-4b5a-9b8b-eda93907ea7f", + "x-ms-ratelimit-remaining-subscription-writes": "1170", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095922Z:268d3d79-72e5-4b5a-9b8b-eda93907ea7f" }, "ResponseBody": { "name": "myInboundNatRule", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/inboundNatRules/myInboundNatRule", - "etag": "W/\u00224e62752d-a109-4ebd-bedc-000cc1e1983e\u0022", + "etag": "W/\u00228ee13955-8b78-4176-bd6e-cb527f06c8ed\u0022", "type": "Microsoft.Network/loadBalancers/inboundNatRules", "properties": { "provisioningState": "Succeeded", @@ -890,13 +890,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/c5212a24-4967-4665-9c28-31f9511b635e?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/944bbbf7-2963-40e0-b62a-e7f451aa9c2c?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -904,7 +904,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:06 GMT", + "Date": "Thu, 28 Apr 2022 09:59:51 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -915,10 +915,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "8f04db98-3924-4003-92f6-1fd6ff8ed210", - "x-ms-correlation-request-id": "721c4d2c-b401-49a0-a972-590a721b3991", - "x-ms-ratelimit-remaining-subscription-reads": "11858", - "x-ms-routing-request-id": "EASTUS2:20220425T042806Z:721c4d2c-b401-49a0-a972-590a721b3991" + "x-ms-arm-service-request-id": "2f62c0db-0dc6-4e39-b2c1-8e8f67ee5491", + "x-ms-correlation-request-id": "f56b18e9-3b73-4cf9-a013-12998046ceff", + "x-ms-ratelimit-remaining-subscription-reads": "11830", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095952Z:f56b18e9-3b73-4cf9-a013-12998046ceff" }, "ResponseBody": { "status": "Succeeded" @@ -931,7 +931,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -939,8 +939,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:06 GMT", - "ETag": "W/\u00224e62752d-a109-4ebd-bedc-000cc1e1983e\u0022", + "Date": "Thu, 28 Apr 2022 09:59:52 GMT", + "ETag": "W/\u00228ee13955-8b78-4176-bd6e-cb527f06c8ed\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -951,15 +951,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "cdd26476-346c-4e07-a184-40d012109a0e", - "x-ms-correlation-request-id": "15278f28-83cd-4f11-b760-ea9e219af82a", - "x-ms-ratelimit-remaining-subscription-reads": "11857", - "x-ms-routing-request-id": "EASTUS2:20220425T042807Z:15278f28-83cd-4f11-b760-ea9e219af82a" + "x-ms-arm-service-request-id": "fc3fcccb-c526-42be-8b99-4a7c13138621", + "x-ms-correlation-request-id": "c462f35d-486c-40ef-b421-260ae6c2a605", + "x-ms-ratelimit-remaining-subscription-reads": "11829", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095952Z:c462f35d-486c-40ef-b421-260ae6c2a605" }, "ResponseBody": { "name": "myInboundNatRule", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/inboundNatRules/myInboundNatRule", - "etag": "W/\u00224e62752d-a109-4ebd-bedc-000cc1e1983e\u0022", + "etag": "W/\u00228ee13955-8b78-4176-bd6e-cb527f06c8ed\u0022", "type": "Microsoft.Network/loadBalancers/inboundNatRules", "properties": { "provisioningState": "Succeeded", @@ -984,7 +984,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -992,8 +992,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:06 GMT", - "ETag": "W/\u00224e62752d-a109-4ebd-bedc-000cc1e1983e\u0022", + "Date": "Thu, 28 Apr 2022 09:59:52 GMT", + "ETag": "W/\u00228ee13955-8b78-4176-bd6e-cb527f06c8ed\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1004,15 +1004,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "5553f4ac-a2fe-41b4-9a5d-fab55c464a37", - "x-ms-correlation-request-id": "501be97d-b5d7-459a-914c-56c1ca72ff7f", - "x-ms-ratelimit-remaining-subscription-reads": "11856", - "x-ms-routing-request-id": "EASTUS2:20220425T042807Z:501be97d-b5d7-459a-914c-56c1ca72ff7f" + "x-ms-arm-service-request-id": "73bbb77a-c53e-4a33-b956-2fde31269bd4", + "x-ms-correlation-request-id": "6a08334c-58c7-4369-b745-425ca90d7a17", + "x-ms-ratelimit-remaining-subscription-reads": "11828", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095952Z:6a08334c-58c7-4369-b745-425ca90d7a17" }, "ResponseBody": { "name": "myFrontendIpconfiguration", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/frontendIPConfigurations/myFrontendIpconfiguration", - "etag": "W/\u00224e62752d-a109-4ebd-bedc-000cc1e1983e\u0022", + "etag": "W/\u00228ee13955-8b78-4176-bd6e-cb527f06c8ed\u0022", "type": "Microsoft.Network/loadBalancers/frontendIPConfigurations", "properties": { "provisioningState": "Succeeded", @@ -1045,7 +1045,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1053,8 +1053,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:06 GMT", - "ETag": "W/\u00224e62752d-a109-4ebd-bedc-000cc1e1983e\u0022", + "Date": "Thu, 28 Apr 2022 09:59:52 GMT", + "ETag": "W/\u00228ee13955-8b78-4176-bd6e-cb527f06c8ed\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1065,15 +1065,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "4a18c5e1-d59f-464c-9ea5-e649bdbfd9a1", - "x-ms-correlation-request-id": "e5880dec-5e36-4a79-a33c-ff2bc00db830", - "x-ms-ratelimit-remaining-subscription-reads": "11855", - "x-ms-routing-request-id": "EASTUS2:20220425T042807Z:e5880dec-5e36-4a79-a33c-ff2bc00db830" + "x-ms-arm-service-request-id": "933cfc8c-3c95-477b-9315-50c9c49f430b", + "x-ms-correlation-request-id": "051bc035-54e3-4737-8e49-0ceed91741d8", + "x-ms-ratelimit-remaining-subscription-reads": "11827", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095953Z:051bc035-54e3-4737-8e49-0ceed91741d8" }, "ResponseBody": { "name": "myBackendAddressPool", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/backendAddressPools/myBackendAddressPool", - "etag": "W/\u00224e62752d-a109-4ebd-bedc-000cc1e1983e\u0022", + "etag": "W/\u00228ee13955-8b78-4176-bd6e-cb527f06c8ed\u0022", "properties": { "provisioningState": "Succeeded", "loadBalancerBackendAddresses": [], @@ -1098,7 +1098,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1106,8 +1106,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:06 GMT", - "ETag": "W/\u00224e62752d-a109-4ebd-bedc-000cc1e1983e\u0022", + "Date": "Thu, 28 Apr 2022 09:59:52 GMT", + "ETag": "W/\u00228ee13955-8b78-4176-bd6e-cb527f06c8ed\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1118,15 +1118,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "5794307c-0352-4a5a-a3cc-a9731dfbeabe", - "x-ms-correlation-request-id": "4f42c3ae-810d-4294-8982-ad0072ef6365", - "x-ms-ratelimit-remaining-subscription-reads": "11854", - "x-ms-routing-request-id": "EASTUS2:20220425T042807Z:4f42c3ae-810d-4294-8982-ad0072ef6365" + "x-ms-arm-service-request-id": "29bfe5ec-92a1-41e4-9be3-846364472a55", + "x-ms-correlation-request-id": "b9abea94-be1e-42b4-8834-315c4bf48f92", + "x-ms-ratelimit-remaining-subscription-reads": "11826", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095953Z:b9abea94-be1e-42b4-8834-315c4bf48f92" }, "ResponseBody": { "name": "myLoadBalancingRule", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/loadBalancingRules/myLoadBalancingRule", - "etag": "W/\u00224e62752d-a109-4ebd-bedc-000cc1e1983e\u0022", + "etag": "W/\u00228ee13955-8b78-4176-bd6e-cb527f06c8ed\u0022", "type": "Microsoft.Network/loadBalancers/loadBalancingRules", "properties": { "provisioningState": "Succeeded", @@ -1164,7 +1164,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1172,8 +1172,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:06 GMT", - "ETag": "W/\u00224e62752d-a109-4ebd-bedc-000cc1e1983e\u0022", + "Date": "Thu, 28 Apr 2022 09:59:52 GMT", + "ETag": "W/\u00228ee13955-8b78-4176-bd6e-cb527f06c8ed\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1184,15 +1184,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "092323b8-a5b4-4393-84a3-c560323e0a01", - "x-ms-correlation-request-id": "c0316283-3bb6-4d66-9a66-79cd7e096059", - "x-ms-ratelimit-remaining-subscription-reads": "11853", - "x-ms-routing-request-id": "EASTUS2:20220425T042807Z:c0316283-3bb6-4d66-9a66-79cd7e096059" + "x-ms-arm-service-request-id": "f0c293ef-5541-4bf1-bcc2-b159b1b682f9", + "x-ms-correlation-request-id": "1cda9e1c-ae5c-43be-8ebe-bdbdeb6472c7", + "x-ms-ratelimit-remaining-subscription-reads": "11825", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095953Z:1cda9e1c-ae5c-43be-8ebe-bdbdeb6472c7" }, "ResponseBody": { "name": "myInboundNatRule", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/inboundNatRules/myInboundNatRule", - "etag": "W/\u00224e62752d-a109-4ebd-bedc-000cc1e1983e\u0022", + "etag": "W/\u00228ee13955-8b78-4176-bd6e-cb527f06c8ed\u0022", "type": "Microsoft.Network/loadBalancers/inboundNatRules", "properties": { "provisioningState": "Succeeded", @@ -1217,7 +1217,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1225,8 +1225,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:06 GMT", - "ETag": "W/\u00224e62752d-a109-4ebd-bedc-000cc1e1983e\u0022", + "Date": "Thu, 28 Apr 2022 09:59:52 GMT", + "ETag": "W/\u00228ee13955-8b78-4176-bd6e-cb527f06c8ed\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1237,15 +1237,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "913e4f32-042f-4ae9-9507-3c5767c53fb4", - "x-ms-correlation-request-id": "d3568b7a-343b-4edf-b042-6e08883aaf60", - "x-ms-ratelimit-remaining-subscription-reads": "11852", - "x-ms-routing-request-id": "EASTUS2:20220425T042807Z:d3568b7a-343b-4edf-b042-6e08883aaf60" + "x-ms-arm-service-request-id": "7a65a2f6-433f-49fe-9bde-021f0731d571", + "x-ms-correlation-request-id": "b0078637-9b26-42f0-ae2d-f0b8dda97fd8", + "x-ms-ratelimit-remaining-subscription-reads": "11824", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095953Z:b0078637-9b26-42f0-ae2d-f0b8dda97fd8" }, "ResponseBody": { "name": "myOutboundRule", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/outboundRules/myOutboundRule", - "etag": "W/\u00224e62752d-a109-4ebd-bedc-000cc1e1983e\u0022", + "etag": "W/\u00228ee13955-8b78-4176-bd6e-cb527f06c8ed\u0022", "type": "Microsoft.Network/loadBalancers/outboundRules", "properties": { "provisioningState": "Succeeded", @@ -1271,7 +1271,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1279,8 +1279,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:06 GMT", - "ETag": "W/\u00224e62752d-a109-4ebd-bedc-000cc1e1983e\u0022", + "Date": "Thu, 28 Apr 2022 09:59:52 GMT", + "ETag": "W/\u00228ee13955-8b78-4176-bd6e-cb527f06c8ed\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1291,15 +1291,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "2217883c-fb62-40b5-83fd-46b7ebc9ac60", - "x-ms-correlation-request-id": "9d03c490-492a-400f-aae9-261d0c535888", - "x-ms-ratelimit-remaining-subscription-reads": "11851", - "x-ms-routing-request-id": "EASTUS2:20220425T042807Z:9d03c490-492a-400f-aae9-261d0c535888" + "x-ms-arm-service-request-id": "299bf4f2-348b-4024-bbd8-467d25e334c3", + "x-ms-correlation-request-id": "e9307e27-8da1-4ba7-9b20-a6936072cbd9", + "x-ms-ratelimit-remaining-subscription-reads": "11823", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095953Z:e9307e27-8da1-4ba7-9b20-a6936072cbd9" }, "ResponseBody": { "name": "myProbe", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/probes/myProbe", - "etag": "W/\u00224e62752d-a109-4ebd-bedc-000cc1e1983e\u0022", + "etag": "W/\u00228ee13955-8b78-4176-bd6e-cb527f06c8ed\u0022", "properties": { "provisioningState": "Succeeded", "protocol": "Http", @@ -1323,7 +1323,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1331,8 +1331,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:06 GMT", - "ETag": "W/\u00224e62752d-a109-4ebd-bedc-000cc1e1983e\u0022", + "Date": "Thu, 28 Apr 2022 09:59:52 GMT", + "ETag": "W/\u00228ee13955-8b78-4176-bd6e-cb527f06c8ed\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1343,25 +1343,25 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "f783cb7b-b87f-4ccb-a8e1-17ae2cea6b19", - "x-ms-correlation-request-id": "f25d4fd9-0f9d-4a23-a408-c1d5d34c62fe", - "x-ms-ratelimit-remaining-subscription-reads": "11850", - "x-ms-routing-request-id": "EASTUS2:20220425T042807Z:f25d4fd9-0f9d-4a23-a408-c1d5d34c62fe" + "x-ms-arm-service-request-id": "94f32e4b-2ac5-47f0-bf50-5225f31cfebe", + "x-ms-correlation-request-id": "7e688fcf-eaa9-447e-9e22-03314d901568", + "x-ms-ratelimit-remaining-subscription-reads": "11822", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095953Z:7e688fcf-eaa9-447e-9e22-03314d901568" }, "ResponseBody": { "name": "myLoadBalancer", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer", - "etag": "W/\u00224e62752d-a109-4ebd-bedc-000cc1e1983e\u0022", + "etag": "W/\u00228ee13955-8b78-4176-bd6e-cb527f06c8ed\u0022", "type": "Microsoft.Network/loadBalancers", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "ae084d7c-8ee0-405c-848f-f541c89f2ede", + "resourceGuid": "78abbe82-832a-4198-bc6f-91aac6e74455", "frontendIPConfigurations": [ { "name": "myFrontendIpconfiguration", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/frontendIPConfigurations/myFrontendIpconfiguration", - "etag": "W/\u00224e62752d-a109-4ebd-bedc-000cc1e1983e\u0022", + "etag": "W/\u00228ee13955-8b78-4176-bd6e-cb527f06c8ed\u0022", "type": "Microsoft.Network/loadBalancers/frontendIPConfigurations", "properties": { "provisioningState": "Succeeded", @@ -1391,7 +1391,7 @@ { "name": "myBackendAddressPool", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/backendAddressPools/myBackendAddressPool", - "etag": "W/\u00224e62752d-a109-4ebd-bedc-000cc1e1983e\u0022", + "etag": "W/\u00228ee13955-8b78-4176-bd6e-cb527f06c8ed\u0022", "properties": { "provisioningState": "Succeeded", "loadBalancerBackendAddresses": [], @@ -1413,7 +1413,7 @@ { "name": "myLoadBalancingRule", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/loadBalancingRules/myLoadBalancingRule", - "etag": "W/\u00224e62752d-a109-4ebd-bedc-000cc1e1983e\u0022", + "etag": "W/\u00228ee13955-8b78-4176-bd6e-cb527f06c8ed\u0022", "type": "Microsoft.Network/loadBalancers/loadBalancingRules", "properties": { "provisioningState": "Succeeded", @@ -1448,7 +1448,7 @@ { "name": "myProbe", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/probes/myProbe", - "etag": "W/\u00224e62752d-a109-4ebd-bedc-000cc1e1983e\u0022", + "etag": "W/\u00228ee13955-8b78-4176-bd6e-cb527f06c8ed\u0022", "properties": { "provisioningState": "Succeeded", "protocol": "Http", @@ -1469,7 +1469,7 @@ { "name": "myInboundNatRule", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/inboundNatRules/myInboundNatRule", - "etag": "W/\u00224e62752d-a109-4ebd-bedc-000cc1e1983e\u0022", + "etag": "W/\u00228ee13955-8b78-4176-bd6e-cb527f06c8ed\u0022", "type": "Microsoft.Network/loadBalancers/inboundNatRules", "properties": { "provisioningState": "Succeeded", @@ -1491,7 +1491,7 @@ { "name": "myOutboundRule", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/outboundRules/myOutboundRule", - "etag": "W/\u00224e62752d-a109-4ebd-bedc-000cc1e1983e\u0022", + "etag": "W/\u00228ee13955-8b78-4176-bd6e-cb527f06c8ed\u0022", "type": "Microsoft.Network/loadBalancers/outboundRules", "properties": { "provisioningState": "Succeeded", @@ -1527,7 +1527,7 @@ "Connection": "keep-alive", "Content-Length": "46", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "tags": { @@ -1541,7 +1541,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:07 GMT", + "Date": "Thu, 28 Apr 2022 09:59:53 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1552,15 +1552,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "62e39f46-b968-4980-ad40-295fe571075a", - "x-ms-correlation-request-id": "c6c2bc30-fdfa-4b3f-a0ff-2bb1358a4068", - "x-ms-ratelimit-remaining-subscription-writes": "1170", - "x-ms-routing-request-id": "EASTUS2:20220425T042807Z:c6c2bc30-fdfa-4b3f-a0ff-2bb1358a4068" + "x-ms-arm-service-request-id": "b10b5b6c-1813-4167-8510-3023cbd3b954", + "x-ms-correlation-request-id": "aff3d9c6-65ec-4b39-a1dd-f74a401f9539", + "x-ms-ratelimit-remaining-subscription-writes": "1169", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095953Z:aff3d9c6-65ec-4b39-a1dd-f74a401f9539" }, "ResponseBody": { "name": "myLoadBalancer", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer", - "etag": "W/\u0022628815ba-00e0-4caa-bec2-80fb81d11b7f\u0022", + "etag": "W/\u0022534f9931-c84e-4e26-9c3f-aaecc5fd3461\u0022", "type": "Microsoft.Network/loadBalancers", "location": "eastus", "tags": { @@ -1569,12 +1569,12 @@ }, "properties": { "provisioningState": "Succeeded", - "resourceGuid": "ae084d7c-8ee0-405c-848f-f541c89f2ede", + "resourceGuid": "78abbe82-832a-4198-bc6f-91aac6e74455", "frontendIPConfigurations": [ { "name": "myFrontendIpconfiguration", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/frontendIPConfigurations/myFrontendIpconfiguration", - "etag": "W/\u0022628815ba-00e0-4caa-bec2-80fb81d11b7f\u0022", + "etag": "W/\u0022534f9931-c84e-4e26-9c3f-aaecc5fd3461\u0022", "type": "Microsoft.Network/loadBalancers/frontendIPConfigurations", "properties": { "provisioningState": "Succeeded", @@ -1604,7 +1604,7 @@ { "name": "myBackendAddressPool", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/backendAddressPools/myBackendAddressPool", - "etag": "W/\u0022628815ba-00e0-4caa-bec2-80fb81d11b7f\u0022", + "etag": "W/\u0022534f9931-c84e-4e26-9c3f-aaecc5fd3461\u0022", "properties": { "provisioningState": "Succeeded", "loadBalancerBackendAddresses": [], @@ -1626,7 +1626,7 @@ { "name": "myLoadBalancingRule", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/loadBalancingRules/myLoadBalancingRule", - "etag": "W/\u0022628815ba-00e0-4caa-bec2-80fb81d11b7f\u0022", + "etag": "W/\u0022534f9931-c84e-4e26-9c3f-aaecc5fd3461\u0022", "type": "Microsoft.Network/loadBalancers/loadBalancingRules", "properties": { "provisioningState": "Succeeded", @@ -1661,7 +1661,7 @@ { "name": "myProbe", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/probes/myProbe", - "etag": "W/\u0022628815ba-00e0-4caa-bec2-80fb81d11b7f\u0022", + "etag": "W/\u0022534f9931-c84e-4e26-9c3f-aaecc5fd3461\u0022", "properties": { "provisioningState": "Succeeded", "protocol": "Http", @@ -1682,7 +1682,7 @@ { "name": "myInboundNatRule", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/inboundNatRules/myInboundNatRule", - "etag": "W/\u0022628815ba-00e0-4caa-bec2-80fb81d11b7f\u0022", + "etag": "W/\u0022534f9931-c84e-4e26-9c3f-aaecc5fd3461\u0022", "type": "Microsoft.Network/loadBalancers/inboundNatRules", "properties": { "provisioningState": "Succeeded", @@ -1704,7 +1704,7 @@ { "name": "myOutboundRule", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/loadBalancers/myLoadBalancer/outboundRules/myOutboundRule", - "etag": "W/\u0022628815ba-00e0-4caa-bec2-80fb81d11b7f\u0022", + "etag": "W/\u0022534f9931-c84e-4e26-9c3f-aaecc5fd3461\u0022", "type": "Microsoft.Network/loadBalancers/outboundRules", "properties": { "provisioningState": "Succeeded", @@ -1739,17 +1739,17 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/7cfe658c-4a63-433e-a1a0-a4ac43d75fde?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/2d2a6218-1d5e-4f0f-a02b-b7f35790235d?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 04:28:07 GMT", + "Date": "Thu, 28 Apr 2022 09:59:53 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/7cfe658c-4a63-433e-a1a0-a4ac43d75fde?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/2d2a6218-1d5e-4f0f-a02b-b7f35790235d?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -1758,21 +1758,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "d25969f2-ab97-476f-8535-205e71d25f35", - "x-ms-correlation-request-id": "d2f0069d-d858-4dc9-9f60-3e5db3e848ef", - "x-ms-ratelimit-remaining-subscription-deletes": "14981", - "x-ms-routing-request-id": "EASTUS2:20220425T042807Z:d2f0069d-d858-4dc9-9f60-3e5db3e848ef" + "x-ms-arm-service-request-id": "217bee72-9e2f-4300-8f39-ea9614385770", + "x-ms-correlation-request-id": "4790c588-4532-4293-abc7-1e6a20dece38", + "x-ms-ratelimit-remaining-subscription-deletes": "14977", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T095954Z:4790c588-4532-4293-abc7-1e6a20dece38" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/7cfe658c-4a63-433e-a1a0-a4ac43d75fde?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/2d2a6218-1d5e-4f0f-a02b-b7f35790235d?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1780,7 +1780,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:16 GMT", + "Date": "Thu, 28 Apr 2022 10:00:03 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1791,33 +1791,33 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "acf8b1f8-0e9d-4d3f-9446-71abaf1b3203", - "x-ms-correlation-request-id": "bbaebef9-5b4d-4c49-96e3-2c51e8d1cacf", - "x-ms-ratelimit-remaining-subscription-reads": "11849", - "x-ms-routing-request-id": "EASTUS2:20220425T042817Z:bbaebef9-5b4d-4c49-96e3-2c51e8d1cacf" + "x-ms-arm-service-request-id": "2fb9da9e-f8bf-465e-b182-b6b7bc208db4", + "x-ms-correlation-request-id": "9b7f7a1f-ff8c-4203-8039-d3270080aff9", + "x-ms-ratelimit-remaining-subscription-reads": "11848", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100004Z:9b7f7a1f-ff8c-4203-8039-d3270080aff9" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/7cfe658c-4a63-433e-a1a0-a4ac43d75fde?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/2d2a6218-1d5e-4f0f-a02b-b7f35790235d?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/7cfe658c-4a63-433e-a1a0-a4ac43d75fde?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/2d2a6218-1d5e-4f0f-a02b-b7f35790235d?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:18 GMT", + "Date": "Thu, 28 Apr 2022 10:00:03 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/7cfe658c-4a63-433e-a1a0-a4ac43d75fde?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/2d2a6218-1d5e-4f0f-a02b-b7f35790235d?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -1825,10 +1825,10 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "d25969f2-ab97-476f-8535-205e71d25f35", - "x-ms-correlation-request-id": "d2f0069d-d858-4dc9-9f60-3e5db3e848ef", - "x-ms-ratelimit-remaining-subscription-reads": "11848", - "x-ms-routing-request-id": "EASTUS2:20220425T042818Z:287b2bc9-ffaa-4481-8f41-150797e294af" + "x-ms-arm-service-request-id": "217bee72-9e2f-4300-8f39-ea9614385770", + "x-ms-correlation-request-id": "4790c588-4532-4293-abc7-1e6a20dece38", + "x-ms-ratelimit-remaining-subscription-reads": "11847", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100004Z:e46576f1-840b-448f-974c-74d59ead2cc4" }, "ResponseBody": null }, @@ -1840,18 +1840,18 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/845186c0-20e9-417b-b7ff-7263c32ab831?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/5a3d2376-0a8c-4119-8692-ad5b8f60b71e?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 04:28:18 GMT", + "Date": "Thu, 28 Apr 2022 10:00:03 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/845186c0-20e9-417b-b7ff-7263c32ab831?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/5a3d2376-0a8c-4119-8692-ad5b8f60b71e?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -1860,21 +1860,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "5ecf0f40-9ffc-43bd-98cb-5674c18e40b1", - "x-ms-correlation-request-id": "42af577f-aeb3-44f5-a2c1-ce04c75b743e", - "x-ms-ratelimit-remaining-subscription-deletes": "14980", - "x-ms-routing-request-id": "EASTUS2:20220425T042818Z:42af577f-aeb3-44f5-a2c1-ce04c75b743e" + "x-ms-arm-service-request-id": "10cba766-4725-423f-840a-d7137a0b89fc", + "x-ms-correlation-request-id": "79cf132e-5fd0-4ea1-b414-09e292615cef", + "x-ms-ratelimit-remaining-subscription-deletes": "14976", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100004Z:79cf132e-5fd0-4ea1-b414-09e292615cef" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/845186c0-20e9-417b-b7ff-7263c32ab831?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/5a3d2376-0a8c-4119-8692-ad5b8f60b71e?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -1882,7 +1882,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:28 GMT", + "Date": "Thu, 28 Apr 2022 10:00:14 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1893,34 +1893,34 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "1c86b5e3-0876-477f-93a2-5b8df32d2b5e", - "x-ms-correlation-request-id": "f68cd036-03c5-4adb-80c6-e17612691e3f", - "x-ms-ratelimit-remaining-subscription-reads": "11847", - "x-ms-routing-request-id": "EASTUS2:20220425T042828Z:f68cd036-03c5-4adb-80c6-e17612691e3f" + "x-ms-arm-service-request-id": "e725aa8a-bb9e-4cc6-8aaf-8b6114da8462", + "x-ms-correlation-request-id": "a38e3be2-a6b7-4e3e-aa71-09c034f291d1", + "x-ms-ratelimit-remaining-subscription-reads": "11846", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100014Z:a38e3be2-a6b7-4e3e-aa71-09c034f291d1" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/845186c0-20e9-417b-b7ff-7263c32ab831?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/5a3d2376-0a8c-4119-8692-ad5b8f60b71e?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/845186c0-20e9-417b-b7ff-7263c32ab831?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/5a3d2376-0a8c-4119-8692-ad5b8f60b71e?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:28 GMT", + "Date": "Thu, 28 Apr 2022 10:00:14 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/845186c0-20e9-417b-b7ff-7263c32ab831?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/5a3d2376-0a8c-4119-8692-ad5b8f60b71e?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -1928,10 +1928,10 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "5ecf0f40-9ffc-43bd-98cb-5674c18e40b1", - "x-ms-correlation-request-id": "42af577f-aeb3-44f5-a2c1-ce04c75b743e", - "x-ms-ratelimit-remaining-subscription-reads": "11846", - "x-ms-routing-request-id": "EASTUS2:20220425T042828Z:c760cf72-f92e-4c39-b669-de971210c4b0" + "x-ms-arm-service-request-id": "10cba766-4725-423f-840a-d7137a0b89fc", + "x-ms-correlation-request-id": "79cf132e-5fd0-4ea1-b414-09e292615cef", + "x-ms-ratelimit-remaining-subscription-reads": "11845", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100014Z:f71d034c-1072-45c9-ac82-15b8ee413727" }, "ResponseBody": null } diff --git a/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_nat.pyTestMgmtNetworktest_network.json b/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_nat.pyTestMgmtNetworktest_network.json index 06d206162d18..4ae9232d6ee3 100644 --- a/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_nat.pyTestMgmtNetworktest_network.json +++ b/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_nat.pyTestMgmtNetworktest_network.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -17,12 +17,12 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "1753", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:29 GMT", + "Date": "Thu, 28 Apr 2022 10:00:15 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12651.7 - NCUS ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - SCUS ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -101,7 +101,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -111,12 +111,12 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "945", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:30 GMT", + "Date": "Thu, 28 Apr 2022 10:00:15 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12651.7 - NCUS ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - WUS2 ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -172,12 +172,12 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "client-request-id": "5c9b669b-6089-4616-96c9-23326b16b4e4", + "client-request-id": "7a819a57-b72e-47a1-8b2a-356f6d7763f4", "Connection": "keep-alive", "Content-Length": "286", "Content-Type": "application/x-www-form-urlencoded", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", @@ -190,10 +190,10 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "client-request-id": "5c9b669b-6089-4616-96c9-23326b16b4e4", + "client-request-id": "7a819a57-b72e-47a1-8b2a-356f6d7763f4", "Content-Length": "93", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:30 GMT", + "Date": "Thu, 28 Apr 2022 10:00:15 GMT", "Expires": "-1", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Pragma": "no-cache", @@ -201,7 +201,7 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", - "x-ms-ests-server": "2.1.12651.7 - NCUS ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - NCUS ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -220,7 +220,7 @@ "Connection": "keep-alive", "Content-Length": "132", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "eastus", @@ -235,11 +235,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/301b2d40-db82-4d75-ae2b-ac0aa7f911e8?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/1e9e74cb-0877-4dd6-a5fa-510eb5540f28?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "636", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:30 GMT", + "Date": "Thu, 28 Apr 2022 10:00:16 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "1", @@ -249,19 +249,19 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "524f5d2d-9995-4f0d-b74a-a1eff20a8670", - "x-ms-correlation-request-id": "d58fdbb4-1176-42fd-92b9-39d149cdd574", - "x-ms-ratelimit-remaining-subscription-writes": "1169", - "x-ms-routing-request-id": "EASTUS2:20220425T042830Z:d58fdbb4-1176-42fd-92b9-39d149cdd574" + "x-ms-arm-service-request-id": "928361bf-335b-4f43-bb55-ffc6d7a2dac5", + "x-ms-correlation-request-id": "7008506b-7d53-4b8f-879b-8ef8b1a77174", + "x-ms-ratelimit-remaining-subscription-writes": "1168", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100016Z:7008506b-7d53-4b8f-879b-8ef8b1a77174" }, "ResponseBody": { "name": "publicipaddress", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/publicIPAddresses/publicipaddress", - "etag": "W/\u002294c9cb35-51d0-4826-a573-fb6f36f772ce\u0022", + "etag": "W/\u0022d249cacc-fabc-4e2d-82bc-4117daf1cb33\u0022", "location": "eastus", "properties": { "provisioningState": "Updating", - "resourceGuid": "8a85fcbc-1856-4faf-8535-a4e72df01170", + "resourceGuid": "a30a48a8-0d1f-401a-a7e6-8f2071296905", "publicIPAddressVersion": "IPv4", "publicIPAllocationMethod": "Static", "idleTimeoutInMinutes": 4, @@ -275,13 +275,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/301b2d40-db82-4d75-ae2b-ac0aa7f911e8?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/1e9e74cb-0877-4dd6-a5fa-510eb5540f28?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -289,7 +289,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:31 GMT", + "Date": "Thu, 28 Apr 2022 10:00:17 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -300,10 +300,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "35fd6f09-aa4c-40a2-bbea-9c369e80887f", - "x-ms-correlation-request-id": "9325f5b2-eb54-4a4e-9dff-83cea0a0ccae", - "x-ms-ratelimit-remaining-subscription-reads": "11845", - "x-ms-routing-request-id": "EASTUS2:20220425T042831Z:9325f5b2-eb54-4a4e-9dff-83cea0a0ccae" + "x-ms-arm-service-request-id": "f3fa3c43-1ceb-4940-82a4-524d4387a65b", + "x-ms-correlation-request-id": "ac8f138d-0686-481d-9a28-c78a213910b8", + "x-ms-ratelimit-remaining-subscription-reads": "11844", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100018Z:ac8f138d-0686-481d-9a28-c78a213910b8" }, "ResponseBody": { "status": "Succeeded" @@ -316,7 +316,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -324,8 +324,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:31 GMT", - "ETag": "W/\u00224b962e04-25b9-4c9b-95da-56f384dc96e3\u0022", + "Date": "Thu, 28 Apr 2022 10:00:18 GMT", + "ETag": "W/\u0022bb459cba-5945-4f16-89dd-b1053de9eeb9\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -336,20 +336,20 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "e9b865d8-b353-40f2-b4eb-8f6b99f4d413", - "x-ms-correlation-request-id": "8fe5ec86-33eb-4f36-a8d7-18830a85913f", - "x-ms-ratelimit-remaining-subscription-reads": "11844", - "x-ms-routing-request-id": "EASTUS2:20220425T042831Z:8fe5ec86-33eb-4f36-a8d7-18830a85913f" + "x-ms-arm-service-request-id": "18de064e-1d39-4f39-b314-3270905571db", + "x-ms-correlation-request-id": "6c881ec7-021c-4673-bc4c-1894f0d9d313", + "x-ms-ratelimit-remaining-subscription-reads": "11843", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100018Z:6c881ec7-021c-4673-bc4c-1894f0d9d313" }, "ResponseBody": { "name": "publicipaddress", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/publicIPAddresses/publicipaddress", - "etag": "W/\u00224b962e04-25b9-4c9b-95da-56f384dc96e3\u0022", + "etag": "W/\u0022bb459cba-5945-4f16-89dd-b1053de9eeb9\u0022", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "8a85fcbc-1856-4faf-8535-a4e72df01170", - "ipAddress": "20.115.115.225", + "resourceGuid": "a30a48a8-0d1f-401a-a7e6-8f2071296905", + "ipAddress": "20.121.190.126", "publicIPAddressVersion": "IPv4", "publicIPAllocationMethod": "Static", "idleTimeoutInMinutes": 4, @@ -371,7 +371,7 @@ "Connection": "keep-alive", "Content-Length": "87", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "eastus", @@ -385,11 +385,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/c06d73e7-3f60-4958-9f57-4a1c4ff3cb22?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/bff54925-6dfe-4e50-825d-5946db6afacc?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "582", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:32 GMT", + "Date": "Thu, 28 Apr 2022 10:00:18 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "3", @@ -399,20 +399,20 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "3a04cf9e-6bd9-40a5-a1ac-80692417b3be", - "x-ms-correlation-request-id": "55d81568-12e0-43e7-8e9f-94e8110a289e", - "x-ms-ratelimit-remaining-subscription-writes": "1168", - "x-ms-routing-request-id": "EASTUS2:20220425T042832Z:55d81568-12e0-43e7-8e9f-94e8110a289e" + "x-ms-arm-service-request-id": "fde83c2a-12de-4060-a6b9-25adec5d70e6", + "x-ms-correlation-request-id": "51038745-f6f1-45a9-ace7-b9f78c8277d0", + "x-ms-ratelimit-remaining-subscription-writes": "1167", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100018Z:51038745-f6f1-45a9-ace7-b9f78c8277d0" }, "ResponseBody": { "name": "publicipprefix", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/publicIPPrefixes/publicipprefix", - "etag": "W/\u0022106cd6ba-df3a-4ad7-b896-95f6adb0b670\u0022", + "etag": "W/\u002207ff45f2-aa48-42b1-a2ed-b094164662b3\u0022", "type": "Microsoft.Network/publicIPPrefixes", "location": "eastus", "properties": { "provisioningState": "Updating", - "resourceGuid": "1e44b8c9-c416-4560-bd0b-d8aacd33f85f", + "resourceGuid": "14cbde04-3d0e-4873-b33f-004057500545", "prefixLength": 30, "publicIPAddressVersion": "IPv4", "ipTags": [] @@ -424,13 +424,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/c06d73e7-3f60-4958-9f57-4a1c4ff3cb22?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/bff54925-6dfe-4e50-825d-5946db6afacc?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -438,7 +438,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:35 GMT", + "Date": "Thu, 28 Apr 2022 10:00:21 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -449,10 +449,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "89829bc8-7ad8-4938-baf8-b79f54a0615f", - "x-ms-correlation-request-id": "504188f4-3e78-4997-9f0c-c8da1c2a364d", - "x-ms-ratelimit-remaining-subscription-reads": "11843", - "x-ms-routing-request-id": "EASTUS2:20220425T042835Z:504188f4-3e78-4997-9f0c-c8da1c2a364d" + "x-ms-arm-service-request-id": "9f35acb2-5a64-4b21-8768-c41257f46de5", + "x-ms-correlation-request-id": "e4e4545a-cb0a-4cba-8ddb-8735c317cb09", + "x-ms-ratelimit-remaining-subscription-reads": "11842", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100021Z:e4e4545a-cb0a-4cba-8ddb-8735c317cb09" }, "ResponseBody": { "status": "Succeeded" @@ -465,7 +465,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -473,8 +473,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:35 GMT", - "ETag": "W/\u00224618411b-2e37-4ed9-b374-0451d069062a\u0022", + "Date": "Thu, 28 Apr 2022 10:00:21 GMT", + "ETag": "W/\u00227429c985-e794-47ca-8ac8-f317c9112b77\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -485,23 +485,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "cab36366-6a24-4eec-9644-46eb1d4f64ce", - "x-ms-correlation-request-id": "45e51c1e-e031-46d2-bf43-0ae0c3fd2d73", - "x-ms-ratelimit-remaining-subscription-reads": "11842", - "x-ms-routing-request-id": "EASTUS2:20220425T042835Z:45e51c1e-e031-46d2-bf43-0ae0c3fd2d73" + "x-ms-arm-service-request-id": "3f89b74a-5fc5-4381-8211-81a5f0d22ee4", + "x-ms-correlation-request-id": "0dbebfc3-fba6-44c1-b950-f9662e7a18d9", + "x-ms-ratelimit-remaining-subscription-reads": "11841", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100021Z:0dbebfc3-fba6-44c1-b950-f9662e7a18d9" }, "ResponseBody": { "name": "publicipprefix", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/publicIPPrefixes/publicipprefix", - "etag": "W/\u00224618411b-2e37-4ed9-b374-0451d069062a\u0022", + "etag": "W/\u00227429c985-e794-47ca-8ac8-f317c9112b77\u0022", "type": "Microsoft.Network/publicIPPrefixes", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "1e44b8c9-c416-4560-bd0b-d8aacd33f85f", + "resourceGuid": "14cbde04-3d0e-4873-b33f-004057500545", "prefixLength": 30, "publicIPAddressVersion": "IPv4", - "ipPrefix": "20.124.254.140/30", + "ipPrefix": "20.185.151.184/30", "ipTags": [] }, "sku": { @@ -519,7 +519,7 @@ "Connection": "keep-alive", "Content-Length": "404", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "eastus", @@ -542,11 +542,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/69afed10-b3ff-4820-bdde-fca66729727a?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/e93f2908-9316-482c-9718-dc4b79e3a02f?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "928", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:35 GMT", + "Date": "Thu, 28 Apr 2022 10:00:22 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -556,20 +556,20 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "107daf51-5e0d-44f8-9f94-4fa498df1ee3", - "x-ms-correlation-request-id": "59a9b9eb-19f9-414b-87c1-ca5c4eec5e70", - "x-ms-ratelimit-remaining-subscription-writes": "1167", - "x-ms-routing-request-id": "EASTUS2:20220425T042835Z:59a9b9eb-19f9-414b-87c1-ca5c4eec5e70" + "x-ms-arm-service-request-id": "45cee0b5-d056-4ec7-9284-1775c323a5b3", + "x-ms-correlation-request-id": "0cc3856a-f39e-491b-8874-bbc44e222b87", + "x-ms-ratelimit-remaining-subscription-writes": "1166", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100022Z:0cc3856a-f39e-491b-8874-bbc44e222b87" }, "ResponseBody": { "name": "myNatGateway", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/natGateways/myNatGateway", - "etag": "W/\u0022c1c2be89-617a-4280-b922-3e6ff66bb24f\u0022", + "etag": "W/\u0022c0209c53-6d26-4043-9adb-24e7edb6d9df\u0022", "type": "Microsoft.Network/natGateways", "location": "eastus", "properties": { "provisioningState": "Updating", - "resourceGuid": "687f885f-cc78-4775-b174-a9736b4d128d", + "resourceGuid": "a429d74d-a042-4940-bbe3-360afb8689d2", "idleTimeoutInMinutes": 4, "publicIpAddresses": [ { @@ -589,13 +589,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/69afed10-b3ff-4820-bdde-fca66729727a?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/e93f2908-9316-482c-9718-dc4b79e3a02f?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -603,7 +603,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:45 GMT", + "Date": "Thu, 28 Apr 2022 10:00:32 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -614,10 +614,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "6e947e7d-f95c-4b99-aa0b-96ca4e87d988", - "x-ms-correlation-request-id": "22afdbe2-db13-4db4-91a1-42af1903bdeb", - "x-ms-ratelimit-remaining-subscription-reads": "11841", - "x-ms-routing-request-id": "EASTUS2:20220425T042845Z:22afdbe2-db13-4db4-91a1-42af1903bdeb" + "x-ms-arm-service-request-id": "e00c6fd8-515d-4f9e-b262-313975d416b9", + "x-ms-correlation-request-id": "e204c595-ffc5-46de-a9f8-0ecea58e4cf8", + "x-ms-ratelimit-remaining-subscription-reads": "11840", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100032Z:e204c595-ffc5-46de-a9f8-0ecea58e4cf8" }, "ResponseBody": { "status": "Succeeded" @@ -630,7 +630,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -638,8 +638,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:45 GMT", - "ETag": "W/\u0022d1620751-3aa5-42dd-b8de-5cb9dd916bc5\u0022", + "Date": "Thu, 28 Apr 2022 10:00:32 GMT", + "ETag": "W/\u0022f1c0a691-2b8b-4af0-a8a6-a9aab4531c26\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -650,20 +650,20 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "f4b55c07-0ee7-402a-a7f9-5d0efbe2ed7d", - "x-ms-correlation-request-id": "479eb1ce-11dc-4a74-bba9-1022db79de22", - "x-ms-ratelimit-remaining-subscription-reads": "11840", - "x-ms-routing-request-id": "EASTUS2:20220425T042845Z:479eb1ce-11dc-4a74-bba9-1022db79de22" + "x-ms-arm-service-request-id": "9df3995a-9bf4-4d41-a5f2-d7b0da57915b", + "x-ms-correlation-request-id": "6729f9c7-4f84-49e6-8aff-45a7cdc437b8", + "x-ms-ratelimit-remaining-subscription-reads": "11839", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100032Z:6729f9c7-4f84-49e6-8aff-45a7cdc437b8" }, "ResponseBody": { "name": "myNatGateway", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/natGateways/myNatGateway", - "etag": "W/\u0022d1620751-3aa5-42dd-b8de-5cb9dd916bc5\u0022", + "etag": "W/\u0022f1c0a691-2b8b-4af0-a8a6-a9aab4531c26\u0022", "type": "Microsoft.Network/natGateways", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "687f885f-cc78-4775-b174-a9736b4d128d", + "resourceGuid": "a429d74d-a042-4940-bbe3-360afb8689d2", "idleTimeoutInMinutes": 4, "publicIpAddresses": [ { @@ -689,7 +689,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -697,8 +697,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:45 GMT", - "ETag": "W/\u0022d1620751-3aa5-42dd-b8de-5cb9dd916bc5\u0022", + "Date": "Thu, 28 Apr 2022 10:00:32 GMT", + "ETag": "W/\u0022f1c0a691-2b8b-4af0-a8a6-a9aab4531c26\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -709,20 +709,20 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "d35a7e55-d8e0-4b3e-9cde-12d4038e6340", - "x-ms-correlation-request-id": "1ce857e9-5924-4df7-a363-165743566ec9", - "x-ms-ratelimit-remaining-subscription-reads": "11839", - "x-ms-routing-request-id": "EASTUS2:20220425T042845Z:1ce857e9-5924-4df7-a363-165743566ec9" + "x-ms-arm-service-request-id": "027b467a-7d11-4f9a-affd-b53454aea876", + "x-ms-correlation-request-id": "ad680c21-79a4-44b8-b896-9f39f7d83465", + "x-ms-ratelimit-remaining-subscription-reads": "11838", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100032Z:ad680c21-79a4-44b8-b896-9f39f7d83465" }, "ResponseBody": { "name": "myNatGateway", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/natGateways/myNatGateway", - "etag": "W/\u0022d1620751-3aa5-42dd-b8de-5cb9dd916bc5\u0022", + "etag": "W/\u0022f1c0a691-2b8b-4af0-a8a6-a9aab4531c26\u0022", "type": "Microsoft.Network/natGateways", "location": "eastus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "687f885f-cc78-4775-b174-a9736b4d128d", + "resourceGuid": "a429d74d-a042-4940-bbe3-360afb8689d2", "idleTimeoutInMinutes": 4, "publicIpAddresses": [ { @@ -750,7 +750,7 @@ "Connection": "keep-alive", "Content-Length": "46", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "tags": { @@ -764,7 +764,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:45 GMT", + "Date": "Thu, 28 Apr 2022 10:00:32 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -775,15 +775,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "c00ec921-f1fc-4f7e-ba1a-3e3fd8eee9da", - "x-ms-correlation-request-id": "7c042480-28bc-4437-98d9-1613058f08f9", - "x-ms-ratelimit-remaining-subscription-writes": "1166", - "x-ms-routing-request-id": "EASTUS2:20220425T042846Z:7c042480-28bc-4437-98d9-1613058f08f9" + "x-ms-arm-service-request-id": "40f1b053-8d0c-49f3-b32d-5fa77f2155e8", + "x-ms-correlation-request-id": "b037b253-0954-4ddf-ab90-7bcc88c62a34", + "x-ms-ratelimit-remaining-subscription-writes": "1165", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100033Z:b037b253-0954-4ddf-ab90-7bcc88c62a34" }, "ResponseBody": { "name": "myNatGateway", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/natGateways/myNatGateway", - "etag": "W/\u0022b475172a-e1e4-47a9-a7c7-c94ac10bab93\u0022", + "etag": "W/\u0022908e8bfb-0604-4ea7-950e-b8755cd6d6d9\u0022", "type": "Microsoft.Network/natGateways", "location": "eastus", "tags": { @@ -792,7 +792,7 @@ }, "properties": { "provisioningState": "Succeeded", - "resourceGuid": "687f885f-cc78-4775-b174-a9736b4d128d", + "resourceGuid": "a429d74d-a042-4940-bbe3-360afb8689d2", "idleTimeoutInMinutes": 4, "publicIpAddresses": [ { @@ -819,18 +819,18 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/eb95de23-56c0-4bc2-b917-65e97ffd1ca3?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/6ea12142-21ea-4f84-8aef-b75f75420ac2?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 04:28:45 GMT", + "Date": "Thu, 28 Apr 2022 10:00:32 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/eb95de23-56c0-4bc2-b917-65e97ffd1ca3?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/6ea12142-21ea-4f84-8aef-b75f75420ac2?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -839,21 +839,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "3c746f96-f43b-4a58-9652-49f8b210f54d", - "x-ms-correlation-request-id": "19640379-5b02-4877-b6e0-2c04a3d2b500", - "x-ms-ratelimit-remaining-subscription-deletes": "14979", - "x-ms-routing-request-id": "EASTUS2:20220425T042846Z:19640379-5b02-4877-b6e0-2c04a3d2b500" + "x-ms-arm-service-request-id": "ea288950-bbd6-4783-b54b-ff04cb608d91", + "x-ms-correlation-request-id": "c3a6d9c7-51e6-4acb-9ff4-03ca78e2021f", + "x-ms-ratelimit-remaining-subscription-deletes": "14975", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100033Z:c3a6d9c7-51e6-4acb-9ff4-03ca78e2021f" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/eb95de23-56c0-4bc2-b917-65e97ffd1ca3?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/6ea12142-21ea-4f84-8aef-b75f75420ac2?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -861,7 +861,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:55 GMT", + "Date": "Thu, 28 Apr 2022 10:00:42 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -872,34 +872,34 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "f430e156-6d8f-4665-896c-a032ff412212", - "x-ms-correlation-request-id": "8aed67cd-c9d9-4b8b-98ce-cd71a53c4419", - "x-ms-ratelimit-remaining-subscription-reads": "11838", - "x-ms-routing-request-id": "EASTUS2:20220425T042856Z:8aed67cd-c9d9-4b8b-98ce-cd71a53c4419" + "x-ms-arm-service-request-id": "f606a7d7-110a-485b-b6ba-c77a6b5c3466", + "x-ms-correlation-request-id": "4a7533ae-5194-4c38-8228-9ff8dc61d072", + "x-ms-ratelimit-remaining-subscription-reads": "11837", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100043Z:4a7533ae-5194-4c38-8228-9ff8dc61d072" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/eb95de23-56c0-4bc2-b917-65e97ffd1ca3?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/6ea12142-21ea-4f84-8aef-b75f75420ac2?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/eb95de23-56c0-4bc2-b917-65e97ffd1ca3?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/6ea12142-21ea-4f84-8aef-b75f75420ac2?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:55 GMT", + "Date": "Thu, 28 Apr 2022 10:00:42 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/eb95de23-56c0-4bc2-b917-65e97ffd1ca3?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/6ea12142-21ea-4f84-8aef-b75f75420ac2?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -907,10 +907,10 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "3c746f96-f43b-4a58-9652-49f8b210f54d", - "x-ms-correlation-request-id": "19640379-5b02-4877-b6e0-2c04a3d2b500", - "x-ms-ratelimit-remaining-subscription-reads": "11837", - "x-ms-routing-request-id": "EASTUS2:20220425T042856Z:a4fa88a4-cada-40d1-a009-8e5ab41d64c5" + "x-ms-arm-service-request-id": "ea288950-bbd6-4783-b54b-ff04cb608d91", + "x-ms-correlation-request-id": "c3a6d9c7-51e6-4acb-9ff4-03ca78e2021f", + "x-ms-ratelimit-remaining-subscription-reads": "11836", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100043Z:02479792-587c-4afb-a6e7-71a8265217b9" }, "ResponseBody": null } diff --git a/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_route_filter.pyTestMgmtNetworktest_network.json b/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_route_filter.pyTestMgmtNetworktest_network.json index 28f93f17c399..eaba0fa99438 100644 --- a/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_route_filter.pyTestMgmtNetworktest_network.json +++ b/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_route_filter.pyTestMgmtNetworktest_network.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -17,12 +17,12 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "1753", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:59 GMT", + "Date": "Thu, 28 Apr 2022 10:00:45 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12651.7 - WUS2 ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - NCUS ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -101,7 +101,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -111,12 +111,12 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "945", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:59 GMT", + "Date": "Thu, 28 Apr 2022 10:00:45 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12651.7 - NCUS ProdSlices", + "x-ms-ests-server": "2.1.12651.7 - WUS2 ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -172,12 +172,12 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "client-request-id": "c7b503b0-ba2e-4779-bc86-2ead80322eed", + "client-request-id": "07fd1470-5411-49f2-a449-16b0eacd3d22", "Connection": "keep-alive", "Content-Length": "286", "Content-Type": "application/x-www-form-urlencoded", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", @@ -190,10 +190,10 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "client-request-id": "c7b503b0-ba2e-4779-bc86-2ead80322eed", + "client-request-id": "07fd1470-5411-49f2-a449-16b0eacd3d22", "Content-Length": "93", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:59 GMT", + "Date": "Thu, 28 Apr 2022 10:00:45 GMT", "Expires": "-1", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Pragma": "no-cache", @@ -201,7 +201,7 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", - "x-ms-ests-server": "2.1.12651.7 - NCUS ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - WUS2 ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -220,7 +220,7 @@ "Connection": "keep-alive", "Content-Length": "79", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "eastus", @@ -234,11 +234,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/c05070d0-e049-44a5-9bb1-7fb9f5e83d2e?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/4ee62285-7f77-474d-9786-ba99c69343b4?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "420", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:28:59 GMT", + "Date": "Thu, 28 Apr 2022 10:00:46 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -248,15 +248,15 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "85f69329-7856-484e-905d-b48799c5d013", - "x-ms-correlation-request-id": "f49ef645-01dc-4987-b293-2f32b8bd9342", - "x-ms-ratelimit-remaining-subscription-writes": "1165", - "x-ms-routing-request-id": "EASTUS2:20220425T042859Z:f49ef645-01dc-4987-b293-2f32b8bd9342" + "x-ms-arm-service-request-id": "d924cc00-b204-4505-95ee-e287879d7e19", + "x-ms-correlation-request-id": "7bfca3bf-64ce-4da1-ac2e-a21e03b14eae", + "x-ms-ratelimit-remaining-subscription-writes": "1164", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100046Z:7bfca3bf-64ce-4da1-ac2e-a21e03b14eae" }, "ResponseBody": { "name": "myRouteFilter", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/routeFilters/myRouteFilter", - "etag": "W/\u002201a2f9cb-e53c-49f2-94f6-271f016b67e1\u0022", + "etag": "W/\u0022a259e20d-6c5d-446e-b5d4-0491bc4c6d52\u0022", "type": "Microsoft.Network/routeFilters", "location": "eastus", "tags": { @@ -269,13 +269,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/c05070d0-e049-44a5-9bb1-7fb9f5e83d2e?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/4ee62285-7f77-474d-9786-ba99c69343b4?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -283,7 +283,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:09 GMT", + "Date": "Thu, 28 Apr 2022 10:00:56 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -294,10 +294,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "8923debb-15fe-464e-ba5e-d6cd4168ed0c", - "x-ms-correlation-request-id": "1f63317e-2aff-43a4-af5d-77f242f8c068", - "x-ms-ratelimit-remaining-subscription-reads": "11836", - "x-ms-routing-request-id": "EASTUS2:20220425T042909Z:1f63317e-2aff-43a4-af5d-77f242f8c068" + "x-ms-arm-service-request-id": "5efd982f-f7b0-4709-8f8a-36886ed836b4", + "x-ms-correlation-request-id": "8c022e99-8f1d-4d66-9914-286a9a469a24", + "x-ms-ratelimit-remaining-subscription-reads": "11835", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100057Z:8c022e99-8f1d-4d66-9914-286a9a469a24" }, "ResponseBody": { "status": "Succeeded" @@ -310,7 +310,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -318,8 +318,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:09 GMT", - "ETag": "W/\u0022409df41c-5ef6-44d4-b56c-aaf1c7fe6cf1\u0022", + "Date": "Thu, 28 Apr 2022 10:00:56 GMT", + "ETag": "W/\u00227fae80c9-8f49-4e00-b240-a1a7e6dadf9f\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -330,15 +330,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "037e4955-b05b-4840-95aa-762d2297b68a", - "x-ms-correlation-request-id": "775cb99a-80d1-4d3a-b114-f8ef66c854b7", - "x-ms-ratelimit-remaining-subscription-reads": "11835", - "x-ms-routing-request-id": "EASTUS2:20220425T042910Z:775cb99a-80d1-4d3a-b114-f8ef66c854b7" + "x-ms-arm-service-request-id": "eb281770-a905-4b89-a74b-75bcd148be40", + "x-ms-correlation-request-id": "47ee9654-ecbc-418f-a6a0-693d73ff03c7", + "x-ms-ratelimit-remaining-subscription-reads": "11834", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100057Z:47ee9654-ecbc-418f-a6a0-693d73ff03c7" }, "ResponseBody": { "name": "myRouteFilter", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/routeFilters/myRouteFilter", - "etag": "W/\u0022409df41c-5ef6-44d4-b56c-aaf1c7fe6cf1\u0022", + "etag": "W/\u00227fae80c9-8f49-4e00-b240-a1a7e6dadf9f\u0022", "type": "Microsoft.Network/routeFilters", "location": "eastus", "tags": { @@ -357,7 +357,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -365,7 +365,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:10 GMT", + "Date": "Thu, 28 Apr 2022 10:00:56 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -376,10 +376,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "9e966c88-9f81-405d-8e2f-f414c2be8f11", - "x-ms-correlation-request-id": "41ac654d-7ac7-49f1-9a31-6fe2db7a280b", - "x-ms-ratelimit-remaining-subscription-reads": "11834", - "x-ms-routing-request-id": "EASTUS2:20220425T042910Z:41ac654d-7ac7-49f1-9a31-6fe2db7a280b" + "x-ms-arm-service-request-id": "225458cb-e6dc-46e8-a249-296fe5835b74", + "x-ms-correlation-request-id": "b87377b4-88ff-4303-9362-2b36a2f0d5f6", + "x-ms-ratelimit-remaining-subscription-reads": "11833", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100057Z:b87377b4-88ff-4303-9362-2b36a2f0d5f6" }, "ResponseBody": { "name": "Public", @@ -60613,7 +60613,7 @@ "Connection": "keep-alive", "Content-Length": "103", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "properties": { @@ -60626,11 +60626,11 @@ }, "StatusCode": 201, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/8bc5dd10-1cc0-46e8-b051-f4fb48e1f66a?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/7d11d439-45ec-4ee3-96a2-3dbc13d37f4e?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "486", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:10 GMT", + "Date": "Thu, 28 Apr 2022 10:00:57 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -60640,15 +60640,15 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "509e245e-8217-4cf4-a61d-b0e972d54089", - "x-ms-correlation-request-id": "f73e39f5-037c-421f-92c2-45ff069fcd4d", - "x-ms-ratelimit-remaining-subscription-writes": "1164", - "x-ms-routing-request-id": "EASTUS2:20220425T042910Z:f73e39f5-037c-421f-92c2-45ff069fcd4d" + "x-ms-arm-service-request-id": "d24ce578-c5b8-4d23-93a9-91488d36f498", + "x-ms-correlation-request-id": "8ae64a7d-39ee-4a1c-8bed-067ba1053287", + "x-ms-ratelimit-remaining-subscription-writes": "1163", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100057Z:8ae64a7d-39ee-4a1c-8bed-067ba1053287" }, "ResponseBody": { "name": "myRule", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/routeFilters/myRouteFilter/routeFilterRules/myRule", - "etag": "W/\u00229c8cefc2-a70e-4a3c-810a-42ee80e17224\u0022", + "etag": "W/\u002221277fc6-baf4-4d0f-b970-ddb8c7de1cba\u0022", "properties": { "provisioningState": "Updating", "access": "Allow", @@ -60661,13 +60661,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/8bc5dd10-1cc0-46e8-b051-f4fb48e1f66a?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/7d11d439-45ec-4ee3-96a2-3dbc13d37f4e?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -60675,7 +60675,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:20 GMT", + "Date": "Thu, 28 Apr 2022 10:01:07 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -60686,10 +60686,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "21fa8722-5c88-4fa7-be4e-0ced74e77ed1", - "x-ms-correlation-request-id": "944f4dcc-c7ce-4b7a-be93-8d6d1eb0a3d6", - "x-ms-ratelimit-remaining-subscription-reads": "11833", - "x-ms-routing-request-id": "EASTUS2:20220425T042920Z:944f4dcc-c7ce-4b7a-be93-8d6d1eb0a3d6" + "x-ms-arm-service-request-id": "0e6cf19a-c251-486c-8e52-e57fc903c335", + "x-ms-correlation-request-id": "8581662d-1638-4df3-822d-602e2e527ef6", + "x-ms-ratelimit-remaining-subscription-reads": "11832", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100108Z:8581662d-1638-4df3-822d-602e2e527ef6" }, "ResponseBody": { "status": "Succeeded" @@ -60702,7 +60702,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -60710,8 +60710,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:20 GMT", - "ETag": "W/\u0022fddc01d3-8c61-4766-990b-75b33f8b1a65\u0022", + "Date": "Thu, 28 Apr 2022 10:01:07 GMT", + "ETag": "W/\u0022c7fea123-0ca8-4ed0-8741-9a6bef2437e0\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -60722,15 +60722,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "85e9a5c5-056d-4aee-ac2c-604b095774b6", - "x-ms-correlation-request-id": "f05f2c47-5588-40e9-91be-fd06d4b9e1ca", - "x-ms-ratelimit-remaining-subscription-reads": "11832", - "x-ms-routing-request-id": "EASTUS2:20220425T042920Z:f05f2c47-5588-40e9-91be-fd06d4b9e1ca" + "x-ms-arm-service-request-id": "2e41a368-8b9f-43f0-b6fa-1dbdf21be92f", + "x-ms-correlation-request-id": "1330c133-d36e-4ea9-a0b5-97dd5ebafaaf", + "x-ms-ratelimit-remaining-subscription-reads": "11831", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100108Z:1330c133-d36e-4ea9-a0b5-97dd5ebafaaf" }, "ResponseBody": { "name": "myRule", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/routeFilters/myRouteFilter/routeFilterRules/myRule", - "etag": "W/\u0022fddc01d3-8c61-4766-990b-75b33f8b1a65\u0022", + "etag": "W/\u0022c7fea123-0ca8-4ed0-8741-9a6bef2437e0\u0022", "properties": { "provisioningState": "Succeeded", "access": "Allow", @@ -60749,7 +60749,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -60757,8 +60757,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:20 GMT", - "ETag": "W/\u0022fddc01d3-8c61-4766-990b-75b33f8b1a65\u0022", + "Date": "Thu, 28 Apr 2022 10:01:07 GMT", + "ETag": "W/\u0022c7fea123-0ca8-4ed0-8741-9a6bef2437e0\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -60769,15 +60769,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "e46bd9e5-ccf8-44e7-8414-2f2027a79f81", - "x-ms-correlation-request-id": "ebeb89ee-e9b8-4b46-9068-c468ead4c5cb", - "x-ms-ratelimit-remaining-subscription-reads": "11831", - "x-ms-routing-request-id": "EASTUS2:20220425T042920Z:ebeb89ee-e9b8-4b46-9068-c468ead4c5cb" + "x-ms-arm-service-request-id": "ce3ce924-cde4-48ab-9016-fcd7c29918d2", + "x-ms-correlation-request-id": "d5c90fea-ddd5-4cdc-82e1-95fdd8b7ad08", + "x-ms-ratelimit-remaining-subscription-reads": "11830", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100108Z:d5c90fea-ddd5-4cdc-82e1-95fdd8b7ad08" }, "ResponseBody": { "name": "myRule", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/routeFilters/myRouteFilter/routeFilterRules/myRule", - "etag": "W/\u0022fddc01d3-8c61-4766-990b-75b33f8b1a65\u0022", + "etag": "W/\u0022c7fea123-0ca8-4ed0-8741-9a6bef2437e0\u0022", "properties": { "provisioningState": "Succeeded", "access": "Allow", @@ -60796,7 +60796,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -60804,8 +60804,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:20 GMT", - "ETag": "W/\u0022fddc01d3-8c61-4766-990b-75b33f8b1a65\u0022", + "Date": "Thu, 28 Apr 2022 10:01:07 GMT", + "ETag": "W/\u0022c7fea123-0ca8-4ed0-8741-9a6bef2437e0\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -60816,15 +60816,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "516f71bb-cc1e-4c64-97de-7204c33e94b0", - "x-ms-correlation-request-id": "c4e90d6a-0e23-477b-9e9b-86aaa3840ef2", - "x-ms-ratelimit-remaining-subscription-reads": "11830", - "x-ms-routing-request-id": "EASTUS2:20220425T042920Z:c4e90d6a-0e23-477b-9e9b-86aaa3840ef2" + "x-ms-arm-service-request-id": "9927c781-c7e9-4c44-961d-b6b814123ddd", + "x-ms-correlation-request-id": "8acf7a25-0de2-44ab-b899-80ab5be0f9d0", + "x-ms-ratelimit-remaining-subscription-reads": "11829", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100108Z:8acf7a25-0de2-44ab-b899-80ab5be0f9d0" }, "ResponseBody": { "name": "myRouteFilter", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/routeFilters/myRouteFilter", - "etag": "W/\u0022fddc01d3-8c61-4766-990b-75b33f8b1a65\u0022", + "etag": "W/\u0022c7fea123-0ca8-4ed0-8741-9a6bef2437e0\u0022", "type": "Microsoft.Network/routeFilters", "location": "eastus", "tags": { @@ -60836,7 +60836,7 @@ { "name": "myRule", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/routeFilters/myRouteFilter/routeFilterRules/myRule", - "etag": "W/\u0022fddc01d3-8c61-4766-990b-75b33f8b1a65\u0022", + "etag": "W/\u0022c7fea123-0ca8-4ed0-8741-9a6bef2437e0\u0022", "properties": { "provisioningState": "Succeeded", "access": "Allow", @@ -60860,7 +60860,7 @@ "Connection": "keep-alive", "Content-Length": "28", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "tags": { @@ -60873,7 +60873,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:20 GMT", + "Date": "Thu, 28 Apr 2022 10:01:07 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -60884,15 +60884,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "35e710bf-3e17-47d8-a329-2676f921b064", - "x-ms-correlation-request-id": "e26c96ad-2c21-4a02-b21f-8bcc7a5429f4", - "x-ms-ratelimit-remaining-subscription-writes": "1163", - "x-ms-routing-request-id": "EASTUS2:20220425T042921Z:e26c96ad-2c21-4a02-b21f-8bcc7a5429f4" + "x-ms-arm-service-request-id": "82320e27-65fb-44e8-8135-335dc325f0a3", + "x-ms-correlation-request-id": "a35c7d48-45f7-41d4-a493-c93abfd4e9f6", + "x-ms-ratelimit-remaining-subscription-writes": "1162", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100108Z:a35c7d48-45f7-41d4-a493-c93abfd4e9f6" }, "ResponseBody": { "name": "myRouteFilter", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/routeFilters/myRouteFilter", - "etag": "W/\u0022af89d470-decd-46e3-b31b-dbb873495fef\u0022", + "etag": "W/\u0022abdfc5ec-1b68-466a-980e-f8191d88c125\u0022", "type": "Microsoft.Network/routeFilters", "location": "eastus", "tags": { @@ -60904,7 +60904,7 @@ { "name": "myRule", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/routeFilters/myRouteFilter/routeFilterRules/myRule", - "etag": "W/\u0022af89d470-decd-46e3-b31b-dbb873495fef\u0022", + "etag": "W/\u0022abdfc5ec-1b68-466a-980e-f8191d88c125\u0022", "properties": { "provisioningState": "Succeeded", "access": "Allow", @@ -60927,17 +60927,17 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/85e6c13e-1f05-4478-8619-5e9a1cba38a5?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b94c2f3d-71cb-4f54-bb03-fd9cdf4ced75?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 04:29:20 GMT", + "Date": "Thu, 28 Apr 2022 10:01:07 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/85e6c13e-1f05-4478-8619-5e9a1cba38a5?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/b94c2f3d-71cb-4f54-bb03-fd9cdf4ced75?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -60946,21 +60946,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "db7e251c-8551-44d5-b363-146a1c88d5e9", - "x-ms-correlation-request-id": "fe679eb3-450e-444d-9532-ce2da8d2cc5a", - "x-ms-ratelimit-remaining-subscription-deletes": "14978", - "x-ms-routing-request-id": "EASTUS2:20220425T042921Z:fe679eb3-450e-444d-9532-ce2da8d2cc5a" + "x-ms-arm-service-request-id": "a8190446-5992-4f49-b937-78c9c71df9d8", + "x-ms-correlation-request-id": "6e4390cc-0ef1-46ed-b083-b3a21c6c7d1f", + "x-ms-ratelimit-remaining-subscription-deletes": "14974", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100108Z:6e4390cc-0ef1-46ed-b083-b3a21c6c7d1f" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/85e6c13e-1f05-4478-8619-5e9a1cba38a5?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b94c2f3d-71cb-4f54-bb03-fd9cdf4ced75?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -60968,7 +60968,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:30 GMT", + "Date": "Thu, 28 Apr 2022 10:01:18 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -60979,33 +60979,33 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "b24e8d2d-244a-402b-81fc-6b17898e12b0", - "x-ms-correlation-request-id": "c535e231-a939-42e7-a03e-efb49575aba5", - "x-ms-ratelimit-remaining-subscription-reads": "11829", - "x-ms-routing-request-id": "EASTUS2:20220425T042931Z:c535e231-a939-42e7-a03e-efb49575aba5" + "x-ms-arm-service-request-id": "21ea5ecf-b27b-45d3-bc39-8d4ca4fe6f84", + "x-ms-correlation-request-id": "a1d58556-0142-4336-83c1-a58d34660389", + "x-ms-ratelimit-remaining-subscription-reads": "11828", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100118Z:a1d58556-0142-4336-83c1-a58d34660389" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/85e6c13e-1f05-4478-8619-5e9a1cba38a5?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/b94c2f3d-71cb-4f54-bb03-fd9cdf4ced75?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/85e6c13e-1f05-4478-8619-5e9a1cba38a5?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/b94c2f3d-71cb-4f54-bb03-fd9cdf4ced75?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:30 GMT", + "Date": "Thu, 28 Apr 2022 10:01:18 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/85e6c13e-1f05-4478-8619-5e9a1cba38a5?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/b94c2f3d-71cb-4f54-bb03-fd9cdf4ced75?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -61013,10 +61013,10 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "db7e251c-8551-44d5-b363-146a1c88d5e9", - "x-ms-correlation-request-id": "fe679eb3-450e-444d-9532-ce2da8d2cc5a", - "x-ms-ratelimit-remaining-subscription-reads": "11828", - "x-ms-routing-request-id": "EASTUS2:20220425T042931Z:9975dba7-49ea-4526-a13f-f4a37e6bc9b2" + "x-ms-arm-service-request-id": "a8190446-5992-4f49-b937-78c9c71df9d8", + "x-ms-correlation-request-id": "6e4390cc-0ef1-46ed-b083-b3a21c6c7d1f", + "x-ms-ratelimit-remaining-subscription-reads": "11827", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100118Z:15f9dca9-a939-4ad2-8692-7dd8a37c4c6d" }, "ResponseBody": null }, @@ -61028,18 +61028,18 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3786235c-b81a-47d0-98c2-ef2145e1253c?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/edb947e1-7ea5-4407-96d7-98d2e9e34e4b?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 04:29:31 GMT", + "Date": "Thu, 28 Apr 2022 10:01:19 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/3786235c-b81a-47d0-98c2-ef2145e1253c?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/edb947e1-7ea5-4407-96d7-98d2e9e34e4b?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -61048,21 +61048,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "b08f5d43-604c-47f2-8b04-e99cc08793ed", - "x-ms-correlation-request-id": "9b04d913-2d84-4563-a9ff-a98795273ca9", - "x-ms-ratelimit-remaining-subscription-deletes": "14977", - "x-ms-routing-request-id": "EASTUS2:20220425T042931Z:9b04d913-2d84-4563-a9ff-a98795273ca9" + "x-ms-arm-service-request-id": "2c92b096-1235-4e12-bdf8-baf6240025ee", + "x-ms-correlation-request-id": "b930d9c1-8f3d-44a5-8b5f-0697f0ecbe5e", + "x-ms-ratelimit-remaining-subscription-deletes": "14973", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100119Z:b930d9c1-8f3d-44a5-8b5f-0697f0ecbe5e" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3786235c-b81a-47d0-98c2-ef2145e1253c?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/edb947e1-7ea5-4407-96d7-98d2e9e34e4b?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -61070,7 +61070,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:40 GMT", + "Date": "Thu, 28 Apr 2022 10:01:29 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -61081,34 +61081,34 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "49e3e0d1-8bfe-4146-a507-2c866a66385e", - "x-ms-correlation-request-id": "5b6c4860-93cf-47fc-87f5-d400a4975cd7", - "x-ms-ratelimit-remaining-subscription-reads": "11827", - "x-ms-routing-request-id": "EASTUS2:20220425T042941Z:5b6c4860-93cf-47fc-87f5-d400a4975cd7" + "x-ms-arm-service-request-id": "c85a73fa-4310-42b1-934a-dbfc5f3ea471", + "x-ms-correlation-request-id": "d9d59f36-abe3-460c-8805-9440c2e4709f", + "x-ms-ratelimit-remaining-subscription-reads": "11826", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100129Z:d9d59f36-abe3-460c-8805-9440c2e4709f" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/3786235c-b81a-47d0-98c2-ef2145e1253c?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/edb947e1-7ea5-4407-96d7-98d2e9e34e4b?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/3786235c-b81a-47d0-98c2-ef2145e1253c?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/edb947e1-7ea5-4407-96d7-98d2e9e34e4b?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:41 GMT", + "Date": "Thu, 28 Apr 2022 10:01:29 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/3786235c-b81a-47d0-98c2-ef2145e1253c?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/edb947e1-7ea5-4407-96d7-98d2e9e34e4b?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -61116,10 +61116,10 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "b08f5d43-604c-47f2-8b04-e99cc08793ed", - "x-ms-correlation-request-id": "9b04d913-2d84-4563-a9ff-a98795273ca9", - "x-ms-ratelimit-remaining-subscription-reads": "11826", - "x-ms-routing-request-id": "EASTUS2:20220425T042941Z:78879557-980b-4ed2-b423-7b51abddb1bd" + "x-ms-arm-service-request-id": "2c92b096-1235-4e12-bdf8-baf6240025ee", + "x-ms-correlation-request-id": "b930d9c1-8f3d-44a5-8b5f-0697f0ecbe5e", + "x-ms-ratelimit-remaining-subscription-reads": "11825", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100129Z:b3cee83e-3acc-4f46-a387-fb3506babe6c" }, "ResponseBody": null } diff --git a/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_route_table.pyTestMgmtNetworktest_network.json b/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_route_table.pyTestMgmtNetworktest_network.json index 42531c41b669..8c36cfee51f3 100644 --- a/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_route_table.pyTestMgmtNetworktest_network.json +++ b/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_route_table.pyTestMgmtNetworktest_network.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -17,12 +17,12 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "1753", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:43 GMT", + "Date": "Thu, 28 Apr 2022 10:01:30 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12651.7 - WUS2 ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - SCUS ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -101,7 +101,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -111,12 +111,12 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "945", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:43 GMT", + "Date": "Thu, 28 Apr 2022 10:01:30 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12651.7 - NCUS ProdSlices", + "x-ms-ests-server": "2.1.12651.7 - WUS2 ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -172,12 +172,12 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "client-request-id": "cd89fa3c-ae97-43a1-a7ac-1e1ffe9b33e3", + "client-request-id": "dcd2f509-553f-411b-99dc-7c8f670ec7af", "Connection": "keep-alive", "Content-Length": "286", "Content-Type": "application/x-www-form-urlencoded", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", @@ -190,10 +190,10 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "client-request-id": "cd89fa3c-ae97-43a1-a7ac-1e1ffe9b33e3", + "client-request-id": "dcd2f509-553f-411b-99dc-7c8f670ec7af", "Content-Length": "93", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:43 GMT", + "Date": "Thu, 28 Apr 2022 10:01:30 GMT", "Expires": "-1", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Pragma": "no-cache", @@ -201,7 +201,7 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", - "x-ms-ests-server": "2.1.12651.7 - WUS2 ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - EUS ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -220,7 +220,7 @@ "Connection": "keep-alive", "Content-Length": "22", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "westus" @@ -228,11 +228,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/093a31c9-a5db-473d-b455-f7c2a6b87770?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/da1ccd82-a6e1-40b3-95a4-6185b1c0fce2?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "479", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:43 GMT", + "Date": "Thu, 28 Apr 2022 10:01:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "2", @@ -242,33 +242,33 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "b3226f18-5f6c-4481-83ca-eac3b4edd49f", - "x-ms-correlation-request-id": "7af82038-ef59-40f7-90d3-4003ef19aef4", - "x-ms-ratelimit-remaining-subscription-writes": "1162", - "x-ms-routing-request-id": "EASTUS2:20220425T042944Z:7af82038-ef59-40f7-90d3-4003ef19aef4" + "x-ms-arm-service-request-id": "2c7f603b-aea9-40dc-8430-e5846d5b6c8f", + "x-ms-correlation-request-id": "c4d83a3c-34d0-4d4f-84fe-cfcc60dbf3f6", + "x-ms-ratelimit-remaining-subscription-writes": "1161", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100131Z:c4d83a3c-34d0-4d4f-84fe-cfcc60dbf3f6" }, "ResponseBody": { "name": "myRouteTable", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/routeTables/myRouteTable", - "etag": "W/\u0022ef54f537-c904-4e0b-b175-50399b8a5534\u0022", + "etag": "W/\u0022e4363369-4215-49e9-8bfa-83e06f90b249\u0022", "type": "Microsoft.Network/routeTables", "location": "westus", "properties": { "provisioningState": "Updating", - "resourceGuid": "0de03c51-f2b4-45cb-9043-c0e0d7323178", + "resourceGuid": "887eac69-810e-473d-b272-984a1a172a47", "disableBgpRoutePropagation": false, "routes": [] } } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/093a31c9-a5db-473d-b455-f7c2a6b87770?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/da1ccd82-a6e1-40b3-95a4-6185b1c0fce2?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -276,7 +276,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:45 GMT", + "Date": "Thu, 28 Apr 2022 10:01:33 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -287,10 +287,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "4d4d685c-9250-414a-85b6-71f66b2a41a1", - "x-ms-correlation-request-id": "9c1263fc-85ef-4ed7-8420-bed27c855c26", - "x-ms-ratelimit-remaining-subscription-reads": "11825", - "x-ms-routing-request-id": "EASTUS2:20220425T042946Z:9c1263fc-85ef-4ed7-8420-bed27c855c26" + "x-ms-arm-service-request-id": "190ed088-58a1-4f4a-b2bf-74c0a8403bbd", + "x-ms-correlation-request-id": "a51e1b0e-74ff-4b1f-be99-3fda0d1764dd", + "x-ms-ratelimit-remaining-subscription-reads": "11824", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100133Z:a51e1b0e-74ff-4b1f-be99-3fda0d1764dd" }, "ResponseBody": { "status": "Succeeded" @@ -303,7 +303,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -311,8 +311,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:45 GMT", - "ETag": "W/\u0022b334e83c-7686-4858-bf71-0744bf3221a9\u0022", + "Date": "Thu, 28 Apr 2022 10:01:33 GMT", + "ETag": "W/\u00221ae62916-53f2-4ab7-ae01-96ebed7545a3\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -323,20 +323,20 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "e6951876-db0a-4326-bc80-073c3b3a0093", - "x-ms-correlation-request-id": "cb7ee2ce-3ce9-4989-a6fd-14e4b1308cd3", - "x-ms-ratelimit-remaining-subscription-reads": "11824", - "x-ms-routing-request-id": "EASTUS2:20220425T042946Z:cb7ee2ce-3ce9-4989-a6fd-14e4b1308cd3" + "x-ms-arm-service-request-id": "32a8f346-36cd-4d86-869a-c2699502004a", + "x-ms-correlation-request-id": "322ef38b-c7a3-463c-bb90-59d9068fc45f", + "x-ms-ratelimit-remaining-subscription-reads": "11823", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100133Z:322ef38b-c7a3-463c-bb90-59d9068fc45f" }, "ResponseBody": { "name": "myRouteTable", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/routeTables/myRouteTable", - "etag": "W/\u0022b334e83c-7686-4858-bf71-0744bf3221a9\u0022", + "etag": "W/\u00221ae62916-53f2-4ab7-ae01-96ebed7545a3\u0022", "type": "Microsoft.Network/routeTables", "location": "westus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "0de03c51-f2b4-45cb-9043-c0e0d7323178", + "resourceGuid": "887eac69-810e-473d-b272-984a1a172a47", "disableBgpRoutePropagation": false, "routes": [] } @@ -351,7 +351,7 @@ "Connection": "keep-alive", "Content-Length": "88", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "properties": { @@ -361,11 +361,11 @@ }, "StatusCode": 201, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e63908c5-e5dc-4f7d-b093-f3496841bcf7?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b6581493-615a-4261-bc28-c96d7f6c210f?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "461", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:45 GMT", + "Date": "Thu, 28 Apr 2022 10:01:33 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "2", @@ -375,15 +375,15 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "4cf1972c-5375-4ff3-9cfb-6ea6ad342aae", - "x-ms-correlation-request-id": "7729fee8-8ed3-4d0a-b301-7284efb60d7c", - "x-ms-ratelimit-remaining-subscription-writes": "1161", - "x-ms-routing-request-id": "EASTUS2:20220425T042946Z:7729fee8-8ed3-4d0a-b301-7284efb60d7c" + "x-ms-arm-service-request-id": "826db0e9-21c5-4ef0-9264-7d35e9094426", + "x-ms-correlation-request-id": "d01c8ffc-8e69-41b3-af0e-7cd31ac0d55f", + "x-ms-ratelimit-remaining-subscription-writes": "1160", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100134Z:d01c8ffc-8e69-41b3-af0e-7cd31ac0d55f" }, "ResponseBody": { "name": "myRoute", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/routeTables/myRouteTable/routes/myRoute", - "etag": "W/\u002229086b09-c1b1-4468-a7c5-e99e80101532\u0022", + "etag": "W/\u0022b99d3f8b-4406-4871-a39f-3e586d331a2a\u0022", "properties": { "provisioningState": "Updating", "addressPrefix": "10.0.3.0/24", @@ -394,13 +394,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e63908c5-e5dc-4f7d-b093-f3496841bcf7?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b6581493-615a-4261-bc28-c96d7f6c210f?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -408,7 +408,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:47 GMT", + "Date": "Thu, 28 Apr 2022 10:01:35 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -419,10 +419,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "9a3cd738-2dd6-4430-9bd8-4392604035bd", - "x-ms-correlation-request-id": "0bf8923f-ee80-4c18-a23b-73a130b9f772", - "x-ms-ratelimit-remaining-subscription-reads": "11823", - "x-ms-routing-request-id": "EASTUS2:20220425T042948Z:0bf8923f-ee80-4c18-a23b-73a130b9f772" + "x-ms-arm-service-request-id": "17d509b7-c812-4609-9eab-5b5a0140beb9", + "x-ms-correlation-request-id": "5a0f0f82-072b-4319-9753-4e3079f6b625", + "x-ms-ratelimit-remaining-subscription-reads": "11822", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100136Z:5a0f0f82-072b-4319-9753-4e3079f6b625" }, "ResponseBody": { "status": "Succeeded" @@ -435,7 +435,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -443,8 +443,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:47 GMT", - "ETag": "W/\u00228f746be3-8fe1-4996-9ec5-fd046b12e5d7\u0022", + "Date": "Thu, 28 Apr 2022 10:01:36 GMT", + "ETag": "W/\u002259fc8367-739e-41f5-8242-8f3ae552b43b\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -455,15 +455,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "f920334e-0c64-4e33-9341-882a3e0cefcf", - "x-ms-correlation-request-id": "931241c0-3d02-44ce-b280-c46dc26c8940", - "x-ms-ratelimit-remaining-subscription-reads": "11822", - "x-ms-routing-request-id": "EASTUS2:20220425T042948Z:931241c0-3d02-44ce-b280-c46dc26c8940" + "x-ms-arm-service-request-id": "56b2367d-9324-431a-ab7e-ed70a628be94", + "x-ms-correlation-request-id": "195d8d24-e5c4-413e-9c53-e5d321a94abb", + "x-ms-ratelimit-remaining-subscription-reads": "11821", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100136Z:195d8d24-e5c4-413e-9c53-e5d321a94abb" }, "ResponseBody": { "name": "myRoute", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/routeTables/myRouteTable/routes/myRoute", - "etag": "W/\u00228f746be3-8fe1-4996-9ec5-fd046b12e5d7\u0022", + "etag": "W/\u002259fc8367-739e-41f5-8242-8f3ae552b43b\u0022", "properties": { "provisioningState": "Succeeded", "addressPrefix": "10.0.3.0/24", @@ -480,7 +480,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -488,8 +488,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:47 GMT", - "ETag": "W/\u00228f746be3-8fe1-4996-9ec5-fd046b12e5d7\u0022", + "Date": "Thu, 28 Apr 2022 10:01:36 GMT", + "ETag": "W/\u002259fc8367-739e-41f5-8242-8f3ae552b43b\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -500,15 +500,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "d2a335a2-5723-44d6-b50b-0b7e29eca284", - "x-ms-correlation-request-id": "3e763cca-e0ab-4df8-93b3-ef0f50bb8890", - "x-ms-ratelimit-remaining-subscription-reads": "11821", - "x-ms-routing-request-id": "EASTUS2:20220425T042948Z:3e763cca-e0ab-4df8-93b3-ef0f50bb8890" + "x-ms-arm-service-request-id": "970d490f-3c3c-465b-9337-4e6527a642ce", + "x-ms-correlation-request-id": "fc25b522-252f-40ae-89db-ed60e2fab93a", + "x-ms-ratelimit-remaining-subscription-reads": "11820", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100136Z:fc25b522-252f-40ae-89db-ed60e2fab93a" }, "ResponseBody": { "name": "myRoute", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/routeTables/myRouteTable/routes/myRoute", - "etag": "W/\u00228f746be3-8fe1-4996-9ec5-fd046b12e5d7\u0022", + "etag": "W/\u002259fc8367-739e-41f5-8242-8f3ae552b43b\u0022", "properties": { "provisioningState": "Succeeded", "addressPrefix": "10.0.3.0/24", @@ -525,7 +525,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -533,8 +533,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:49 GMT", - "ETag": "W/\u00228f746be3-8fe1-4996-9ec5-fd046b12e5d7\u0022", + "Date": "Thu, 28 Apr 2022 10:01:36 GMT", + "ETag": "W/\u002259fc8367-739e-41f5-8242-8f3ae552b43b\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -545,26 +545,26 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "504df1a4-055b-4a6d-8f4a-24749a7f4970", - "x-ms-correlation-request-id": "6bb33f76-c825-4ba9-830d-53da6a7e9bb3", - "x-ms-ratelimit-remaining-subscription-reads": "11820", - "x-ms-routing-request-id": "EASTUS2:20220425T042949Z:6bb33f76-c825-4ba9-830d-53da6a7e9bb3" + "x-ms-arm-service-request-id": "b87b06aa-0c11-4a5c-94e7-1ded63abce02", + "x-ms-correlation-request-id": "2f86b103-afd5-42e6-a3e9-11a2c6faf5eb", + "x-ms-ratelimit-remaining-subscription-reads": "11819", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100136Z:2f86b103-afd5-42e6-a3e9-11a2c6faf5eb" }, "ResponseBody": { "name": "myRouteTable", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/routeTables/myRouteTable", - "etag": "W/\u00228f746be3-8fe1-4996-9ec5-fd046b12e5d7\u0022", + "etag": "W/\u002259fc8367-739e-41f5-8242-8f3ae552b43b\u0022", "type": "Microsoft.Network/routeTables", "location": "westus", "properties": { "provisioningState": "Succeeded", - "resourceGuid": "0de03c51-f2b4-45cb-9043-c0e0d7323178", + "resourceGuid": "887eac69-810e-473d-b272-984a1a172a47", "disableBgpRoutePropagation": false, "routes": [ { "name": "myRoute", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/routeTables/myRouteTable/routes/myRoute", - "etag": "W/\u00228f746be3-8fe1-4996-9ec5-fd046b12e5d7\u0022", + "etag": "W/\u002259fc8367-739e-41f5-8242-8f3ae552b43b\u0022", "properties": { "provisioningState": "Succeeded", "addressPrefix": "10.0.3.0/24", @@ -586,7 +586,7 @@ "Connection": "keep-alive", "Content-Length": "46", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "tags": { @@ -600,7 +600,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:49 GMT", + "Date": "Thu, 28 Apr 2022 10:01:36 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -611,15 +611,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "f38712d9-9666-4828-b34f-520ac41406c7", - "x-ms-correlation-request-id": "34602364-c207-488e-a607-4b8a8caad2e4", - "x-ms-ratelimit-remaining-subscription-writes": "1160", - "x-ms-routing-request-id": "EASTUS2:20220425T042949Z:34602364-c207-488e-a607-4b8a8caad2e4" + "x-ms-arm-service-request-id": "1316d494-bd0b-441c-95fe-42d453003324", + "x-ms-correlation-request-id": "5bb561b1-737c-47bc-a037-18f4f0796d50", + "x-ms-ratelimit-remaining-subscription-writes": "1159", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100137Z:5bb561b1-737c-47bc-a037-18f4f0796d50" }, "ResponseBody": { "name": "myRouteTable", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/routeTables/myRouteTable", - "etag": "W/\u00228637d41d-f14a-45d1-b1a5-dc3dcc7297da\u0022", + "etag": "W/\u0022e5afd7be-5f7d-4266-b5dd-dcb9a4a11c86\u0022", "type": "Microsoft.Network/routeTables", "location": "westus", "tags": { @@ -628,13 +628,13 @@ }, "properties": { "provisioningState": "Succeeded", - "resourceGuid": "0de03c51-f2b4-45cb-9043-c0e0d7323178", + "resourceGuid": "887eac69-810e-473d-b272-984a1a172a47", "disableBgpRoutePropagation": false, "routes": [ { "name": "myRoute", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/routeTables/myRouteTable/routes/myRoute", - "etag": "W/\u00228637d41d-f14a-45d1-b1a5-dc3dcc7297da\u0022", + "etag": "W/\u0022e5afd7be-5f7d-4266-b5dd-dcb9a4a11c86\u0022", "properties": { "provisioningState": "Succeeded", "addressPrefix": "10.0.3.0/24", @@ -655,17 +655,17 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3085a56b-742d-455a-89fa-be26ac161d41?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/2cdb640c-0500-4da6-b63a-2840e7b44fbb?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 04:29:49 GMT", + "Date": "Thu, 28 Apr 2022 10:01:36 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/3085a56b-742d-455a-89fa-be26ac161d41?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/2cdb640c-0500-4da6-b63a-2840e7b44fbb?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "2", "Server": [ @@ -674,21 +674,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "14a3a0fc-4f74-409d-b55e-20267c03f1d8", - "x-ms-correlation-request-id": "a2627764-25a7-4f8e-829f-4fd00069425e", - "x-ms-ratelimit-remaining-subscription-deletes": "14976", - "x-ms-routing-request-id": "EASTUS2:20220425T042949Z:a2627764-25a7-4f8e-829f-4fd00069425e" + "x-ms-arm-service-request-id": "f6af3342-8c15-4e5a-b606-accb9191b53b", + "x-ms-correlation-request-id": "5665beec-eb86-4d49-b0a8-4179b7178ec1", + "x-ms-ratelimit-remaining-subscription-deletes": "14972", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100137Z:5665beec-eb86-4d49-b0a8-4179b7178ec1" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3085a56b-742d-455a-89fa-be26ac161d41?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/2cdb640c-0500-4da6-b63a-2840e7b44fbb?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -696,7 +696,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:51 GMT", + "Date": "Thu, 28 Apr 2022 10:01:39 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -707,33 +707,33 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "1ff90141-3fce-4f18-b850-666678660019", - "x-ms-correlation-request-id": "1a707e37-9eb4-4e76-849c-3d178b6627ad", - "x-ms-ratelimit-remaining-subscription-reads": "11819", - "x-ms-routing-request-id": "EASTUS2:20220425T042951Z:1a707e37-9eb4-4e76-849c-3d178b6627ad" + "x-ms-arm-service-request-id": "eda6b355-9290-46a8-bab0-2987161bb64b", + "x-ms-correlation-request-id": "e6d7465e-44c0-4ed8-8f26-f8a12b020536", + "x-ms-ratelimit-remaining-subscription-reads": "11818", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100139Z:e6d7465e-44c0-4ed8-8f26-f8a12b020536" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/3085a56b-742d-455a-89fa-be26ac161d41?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/2cdb640c-0500-4da6-b63a-2840e7b44fbb?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3085a56b-742d-455a-89fa-be26ac161d41?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/2cdb640c-0500-4da6-b63a-2840e7b44fbb?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:51 GMT", + "Date": "Thu, 28 Apr 2022 10:01:39 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/3085a56b-742d-455a-89fa-be26ac161d41?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/2cdb640c-0500-4da6-b63a-2840e7b44fbb?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -741,10 +741,10 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "14a3a0fc-4f74-409d-b55e-20267c03f1d8", - "x-ms-correlation-request-id": "a2627764-25a7-4f8e-829f-4fd00069425e", - "x-ms-ratelimit-remaining-subscription-reads": "11818", - "x-ms-routing-request-id": "EASTUS2:20220425T042951Z:0bd99ca3-8caa-440c-b468-5f9b79df17f1" + "x-ms-arm-service-request-id": "f6af3342-8c15-4e5a-b606-accb9191b53b", + "x-ms-correlation-request-id": "5665beec-eb86-4d49-b0a8-4179b7178ec1", + "x-ms-ratelimit-remaining-subscription-reads": "11817", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100139Z:1dada3e3-6a39-4afd-aea2-50e4b8c4b6d5" }, "ResponseBody": null }, @@ -756,18 +756,18 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f503d241-ee85-4cb0-8894-d26324ef5c40?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/cb117644-f2a7-4e24-bafe-a1753c491936?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 04:29:51 GMT", + "Date": "Thu, 28 Apr 2022 10:01:39 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/f503d241-ee85-4cb0-8894-d26324ef5c40?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/cb117644-f2a7-4e24-bafe-a1753c491936?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "2", "Server": [ @@ -776,21 +776,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "6600ec3e-f254-4409-ba65-2906cfaa333a", - "x-ms-correlation-request-id": "d93e19cb-2d0d-4a75-bf06-a51459c73d8a", - "x-ms-ratelimit-remaining-subscription-deletes": "14975", - "x-ms-routing-request-id": "EASTUS2:20220425T042951Z:d93e19cb-2d0d-4a75-bf06-a51459c73d8a" + "x-ms-arm-service-request-id": "c3ae967e-53e0-49b2-9366-d43f0861f167", + "x-ms-correlation-request-id": "66aa590a-0415-4e2e-a84d-5e543c65eed7", + "x-ms-ratelimit-remaining-subscription-deletes": "14971", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100139Z:66aa590a-0415-4e2e-a84d-5e543c65eed7" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f503d241-ee85-4cb0-8894-d26324ef5c40?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/cb117644-f2a7-4e24-bafe-a1753c491936?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -798,7 +798,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:54 GMT", + "Date": "Thu, 28 Apr 2022 10:01:41 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -809,34 +809,34 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "31599978-f979-4475-ae71-c7376c6db25f", - "x-ms-correlation-request-id": "434f67ac-e7e9-4ad2-a3db-007d1bcb1a96", - "x-ms-ratelimit-remaining-subscription-reads": "11817", - "x-ms-routing-request-id": "EASTUS2:20220425T042954Z:434f67ac-e7e9-4ad2-a3db-007d1bcb1a96" + "x-ms-arm-service-request-id": "bd20e3a3-fc4b-465e-8d91-d738cf09e1e9", + "x-ms-correlation-request-id": "cc9810c0-8bcc-4a8c-9b92-b684dbd46cda", + "x-ms-ratelimit-remaining-subscription-reads": "11816", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100141Z:cc9810c0-8bcc-4a8c-9b92-b684dbd46cda" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/f503d241-ee85-4cb0-8894-d26324ef5c40?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/cb117644-f2a7-4e24-bafe-a1753c491936?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f503d241-ee85-4cb0-8894-d26324ef5c40?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/cb117644-f2a7-4e24-bafe-a1753c491936?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:54 GMT", + "Date": "Thu, 28 Apr 2022 10:01:41 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/f503d241-ee85-4cb0-8894-d26324ef5c40?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/cb117644-f2a7-4e24-bafe-a1753c491936?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -844,10 +844,10 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "6600ec3e-f254-4409-ba65-2906cfaa333a", - "x-ms-correlation-request-id": "d93e19cb-2d0d-4a75-bf06-a51459c73d8a", - "x-ms-ratelimit-remaining-subscription-reads": "11816", - "x-ms-routing-request-id": "EASTUS2:20220425T042954Z:ee1f9dbe-ffde-46f4-a89d-4ad28d4d1a39" + "x-ms-arm-service-request-id": "c3ae967e-53e0-49b2-9366-d43f0861f167", + "x-ms-correlation-request-id": "66aa590a-0415-4e2e-a84d-5e543c65eed7", + "x-ms-ratelimit-remaining-subscription-reads": "11815", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T100142Z:d430edfc-51e1-4fe6-b72d-fbf8dbac1bb3" }, "ResponseBody": null } diff --git a/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_wan_hub.pyTestMgmtNetworktest_network.json b/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_wan_hub.pyTestMgmtNetworktest_network.json index 167949a879fb..68289317eeb2 100644 --- a/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_wan_hub.pyTestMgmtNetworktest_network.json +++ b/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_wan_hub.pyTestMgmtNetworktest_network.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -17,12 +17,12 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "1753", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:55 GMT", + "Date": "Fri, 29 Apr 2022 03:50:01 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12651.7 - SCUS ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - NCUS ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -101,7 +101,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -111,12 +111,12 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "945", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:55 GMT", + "Date": "Fri, 29 Apr 2022 03:50:01 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12651.7 - EUS ProdSlices", + "x-ms-ests-server": "2.1.12707.9 - KRSLR2 ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -172,28 +172,28 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "client-request-id": "8aa4af64-8658-45a5-b554-4efdb0f8ae40", + "client-request-id": "28de8017-2f13-4612-9ac3-741ab1abfc56", "Connection": "keep-alive", - "Content-Length": "286", + "Content-Length": "291", "Content-Type": "application/x-www-form-urlencoded", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", + "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.6.8 (Windows-10-10.0.19041-SP0)", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", - "x-client-os": "linux", + "x-client-os": "win32", "x-client-sku": "MSAL.Python", "x-client-ver": "1.17.0", "x-ms-lib-capability": "retry-after, h429" }, - "RequestBody": "client_id=8c41a920-007a-4844-a189-2d0efe39f51e\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=o0XWF_siD-FhI.5AE83-u0GaQHW_GP7cjy\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q%7EIsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "client-request-id": "8aa4af64-8658-45a5-b554-4efdb0f8ae40", + "client-request-id": "28de8017-2f13-4612-9ac3-741ab1abfc56", "Content-Length": "93", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:55 GMT", + "Date": "Fri, 29 Apr 2022 03:50:01 GMT", "Expires": "-1", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Pragma": "no-cache", @@ -201,7 +201,7 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", - "x-ms-ests-server": "2.1.12651.7 - NCUS ProdSlices", + "x-ms-ests-server": "2.1.12707.9 - WUS2 ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -220,7 +220,7 @@ "Connection": "keep-alive", "Content-Length": "115", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": { "location": "West US", @@ -235,11 +235,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/82901f39-cc1e-43d7-b083-9cbe42103803?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/aba7a33f-de3e-496a-b3d4-6ac5536639a9?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "556", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:29:56 GMT", + "Date": "Fri, 29 Apr 2022 03:50:11 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -249,15 +249,15 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "0a4f8591-ab54-4a73-b2ea-34ffe9a7fced", - "x-ms-correlation-request-id": "e1110f04-5f42-4c67-947d-84f43432da42", - "x-ms-ratelimit-remaining-subscription-writes": "1159", - "x-ms-routing-request-id": "EASTUS2:20220425T042956Z:e1110f04-5f42-4c67-947d-84f43432da42" + "x-ms-arm-service-request-id": "9bc223aa-f51c-472e-8eb0-a0a68953cba9", + "x-ms-correlation-request-id": "f1a7eb99-e016-4fd1-ad97-8b04cec66ee8", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T035011Z:f1a7eb99-e016-4fd1-ad97-8b04cec66ee8" }, "ResponseBody": { "name": "virtualwanf36329e7", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualWans/virtualwanf36329e7", - "etag": "W/\u002215690873-5f76-4656-984d-1f6c35a1e19a\u0022", + "etag": "W/\u002217b38575-5e20-4b50-b2ea-eb26ad0ebf56\u0022", "type": "Microsoft.Network/virtualWans", "location": "westus", "tags": { @@ -273,13 +273,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/82901f39-cc1e-43d7-b083-9cbe42103803?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/aba7a33f-de3e-496a-b3d4-6ac5536639a9?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -287,7 +287,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:30:06 GMT", + "Date": "Fri, 29 Apr 2022 03:50:21 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -298,10 +298,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "74c4e3c6-a08a-4ff5-a09d-0105f5f2b853", - "x-ms-correlation-request-id": "5bc9612c-63ee-4a7f-8f22-2beb1f04ba34", - "x-ms-ratelimit-remaining-subscription-reads": "11822", - "x-ms-routing-request-id": "EASTUS2:20220425T043006Z:5bc9612c-63ee-4a7f-8f22-2beb1f04ba34" + "x-ms-arm-service-request-id": "ccea2e3d-8102-4e51-83e3-7d9b272d96fc", + "x-ms-correlation-request-id": "9a3dd462-9ba2-4417-b19d-1ba8c8a09347", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T035022Z:9a3dd462-9ba2-4417-b19d-1ba8c8a09347" }, "ResponseBody": { "status": "Succeeded" @@ -314,7 +314,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -322,8 +322,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:30:06 GMT", - "ETag": "W/\u0022e96ef3ba-1d5d-4c99-9cd5-5068007a9b29\u0022", + "Date": "Fri, 29 Apr 2022 03:50:21 GMT", + "ETag": "W/\u0022e9ecbc6e-ef59-4885-af3f-1a025eee9223\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -334,15 +334,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "e0742f64-17b0-4150-9a99-a9881d9f6b01", - "x-ms-correlation-request-id": "94171658-59c6-49ca-9a38-d9d1b26edd96", - "x-ms-ratelimit-remaining-subscription-reads": "11821", - "x-ms-routing-request-id": "EASTUS2:20220425T043006Z:94171658-59c6-49ca-9a38-d9d1b26edd96" + "x-ms-arm-service-request-id": "3dc98c50-c358-4120-8a1d-a20419627829", + "x-ms-correlation-request-id": "d963cab2-d83c-4a2b-affb-0b8b9da3cdc0", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T035022Z:d963cab2-d83c-4a2b-affb-0b8b9da3cdc0" }, "ResponseBody": { "name": "virtualwanf36329e7", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualWans/virtualwanf36329e7", - "etag": "W/\u0022e96ef3ba-1d5d-4c99-9cd5-5068007a9b29\u0022", + "etag": "W/\u0022e9ecbc6e-ef59-4885-af3f-1a025eee9223\u0022", "type": "Microsoft.Network/virtualWans", "location": "westus", "tags": { @@ -366,7 +366,7 @@ "Connection": "keep-alive", "Content-Length": "533", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": { "location": "West US", @@ -404,11 +404,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e2283dc3-0e08-43c4-b457-e38497dc7859?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b01a2657-4d3f-4ddd-8cc7-14874ff63019?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "1642", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:30:07 GMT", + "Date": "Fri, 29 Apr 2022 03:50:27 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -418,15 +418,15 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "a3d87cc3-50b7-4261-b7ae-c20793621190", - "x-ms-correlation-request-id": "9e073a7e-3559-44c4-841c-c8f69ee93f89", - "x-ms-ratelimit-remaining-subscription-writes": "1158", - "x-ms-routing-request-id": "EASTUS2:20220425T043007Z:9e073a7e-3559-44c4-841c-c8f69ee93f89" + "x-ms-arm-service-request-id": "bbdb0bda-8920-4988-b8a1-c639beb0b7e2", + "x-ms-correlation-request-id": "e576a7a8-40e0-407e-82dd-e9ff7383625d", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T035028Z:e576a7a8-40e0-407e-82dd-e9ff7383625d" }, "ResponseBody": { "name": "vnpsitef36329e7", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/vpnSites/vnpsitef36329e7", - "etag": "W/\u0022bf519263-0d7c-46b7-87df-bbe601839536\u0022", + "etag": "W/\u00227eb18a30-5185-4560-bd95-a80ed5c25da6\u0022", "type": "Microsoft.Network/vpnSites", "location": "westus", "tags": { @@ -457,7 +457,7 @@ { "name": "vpnSiteLink1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/vpnSites/vnpsitef36329e7/vpnSiteLinks/vpnSiteLink1", - "etag": "W/\u0022bf519263-0d7c-46b7-87df-bbe601839536\u0022", + "etag": "W/\u00227eb18a30-5185-4560-bd95-a80ed5c25da6\u0022", "properties": { "provisioningState": "Updating", "ipAddress": "50.50.50.56", @@ -477,13 +477,49 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e2283dc3-0e08-43c4-b457-e38497dc7859?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b01a2657-4d3f-4ddd-8cc7-14874ff63019?api-version=2021-08-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 29 Apr 2022 03:50:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "10", + "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": "1e5b6be8-7fb7-404f-a5c8-b2926672defa", + "x-ms-correlation-request-id": "0372221a-8146-4fca-86e3-da31b0880cb2", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T035038Z:0372221a-8146-4fca-86e3-da31b0880cb2" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b01a2657-4d3f-4ddd-8cc7-14874ff63019?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -491,7 +527,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:30:17 GMT", + "Date": "Fri, 29 Apr 2022 03:50:49 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -502,10 +538,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "9472a4f3-abf8-45fe-91ca-b20562212438", - "x-ms-correlation-request-id": "47b9ae29-54af-44a0-8cbf-b94a82a384b8", - "x-ms-ratelimit-remaining-subscription-reads": "11820", - "x-ms-routing-request-id": "EASTUS2:20220425T043017Z:47b9ae29-54af-44a0-8cbf-b94a82a384b8" + "x-ms-arm-service-request-id": "931660bf-c508-46ac-8ae2-a72ed890795e", + "x-ms-correlation-request-id": "f91b6ac4-6a76-4150-bbb0-b3b6561ea11c", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T035049Z:f91b6ac4-6a76-4150-bbb0-b3b6561ea11c" }, "ResponseBody": { "status": "Succeeded" @@ -518,7 +554,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -526,8 +562,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:30:17 GMT", - "ETag": "W/\u0022b4a43a31-4ee1-4916-9a3b-03ef9c4281ba\u0022", + "Date": "Fri, 29 Apr 2022 03:50:49 GMT", + "ETag": "W/\u0022c68ab7c7-e741-4700-b996-515df571c84b\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -538,15 +574,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "086137f7-f252-4e3f-b136-d9ca767e5df8", - "x-ms-correlation-request-id": "21b8f697-db85-4e75-aefd-6a45688ceae9", - "x-ms-ratelimit-remaining-subscription-reads": "11819", - "x-ms-routing-request-id": "EASTUS2:20220425T043017Z:21b8f697-db85-4e75-aefd-6a45688ceae9" + "x-ms-arm-service-request-id": "eb2f9a7a-27e5-4b97-9973-7713b1d5ccf1", + "x-ms-correlation-request-id": "659c7698-0a11-45eb-9c40-6b20722a0cfc", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T035049Z:659c7698-0a11-45eb-9c40-6b20722a0cfc" }, "ResponseBody": { "name": "vnpsitef36329e7", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/vpnSites/vnpsitef36329e7", - "etag": "W/\u0022b4a43a31-4ee1-4916-9a3b-03ef9c4281ba\u0022", + "etag": "W/\u0022c68ab7c7-e741-4700-b996-515df571c84b\u0022", "type": "Microsoft.Network/vpnSites", "location": "westus", "tags": { @@ -577,7 +613,7 @@ { "name": "vpnSiteLink1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/vpnSites/vnpsitef36329e7/vpnSiteLinks/vpnSiteLink1", - "etag": "W/\u0022b4a43a31-4ee1-4916-9a3b-03ef9c4281ba\u0022", + "etag": "W/\u0022c68ab7c7-e741-4700-b996-515df571c84b\u0022", "properties": { "provisioningState": "Succeeded", "ipAddress": "50.50.50.56", @@ -605,7 +641,7 @@ "Connection": "keep-alive", "Content-Length": "275", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": { "location": "West US", @@ -623,11 +659,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/2d34935a-5442-4e18-8a73-e75c0d832e07?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/58d395d1-2691-4cac-b350-133972a8fd1f?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "1070", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:30:18 GMT", + "Date": "Fri, 29 Apr 2022 03:50:53 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -637,15 +673,15 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "0c8a71e9-0542-44a6-8403-a60b42ab682d", - "x-ms-correlation-request-id": "1295a660-8e1e-4985-84b9-76bcc1b3d63b", - "x-ms-ratelimit-remaining-subscription-writes": "1157", - "x-ms-routing-request-id": "EASTUS2:20220425T043018Z:1295a660-8e1e-4985-84b9-76bcc1b3d63b" + "x-ms-arm-service-request-id": "0a9ab6cb-c859-4bd2-bda1-415d0ef32a4b", + "x-ms-correlation-request-id": "14724eca-a4eb-4870-b19d-e0bc3d61d469", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T035053Z:14724eca-a4eb-4870-b19d-e0bc3d61d469" }, "ResponseBody": { "name": "virtualhubxf36329e7", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualHubs/virtualhubxf36329e7", - "etag": "W/\u0022ec7e48ef-409e-46ae-ba47-8e6539bafd0e\u0022", + "etag": "W/\u00227e5209e1-7118-4134-81ce-ac181536d028\u0022", "type": "Microsoft.Network/virtualHubs", "location": "westus", "tags": { @@ -676,13 +712,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/2d34935a-5442-4e18-8a73-e75c0d832e07?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/58d395d1-2691-4cac-b350-133972a8fd1f?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -690,7 +726,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:30:27 GMT", + "Date": "Fri, 29 Apr 2022 03:51:03 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -702,23 +738,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "4c0ae12f-7f1c-4280-8b09-c870f235f93a", - "x-ms-correlation-request-id": "0493da9b-4cbe-4f27-9a61-27bb86b61847", - "x-ms-ratelimit-remaining-subscription-reads": "11818", - "x-ms-routing-request-id": "EASTUS2:20220425T043028Z:0493da9b-4cbe-4f27-9a61-27bb86b61847" + "x-ms-arm-service-request-id": "68c20cc2-5daa-4f36-b896-612e9b69dc9d", + "x-ms-correlation-request-id": "59ce4afe-e512-4d83-86fa-a168cec5b849", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T035103Z:59ce4afe-e512-4d83-86fa-a168cec5b849" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/2d34935a-5442-4e18-8a73-e75c0d832e07?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/58d395d1-2691-4cac-b350-133972a8fd1f?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -726,7 +762,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:30:38 GMT", + "Date": "Fri, 29 Apr 2022 03:51:14 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "20", @@ -738,23 +774,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "7b65333a-6a95-4840-8d0c-c31c3c9b0d51", - "x-ms-correlation-request-id": "36b39923-188f-4ea7-8e0f-758711e6ae4f", - "x-ms-ratelimit-remaining-subscription-reads": "11817", - "x-ms-routing-request-id": "EASTUS2:20220425T043038Z:36b39923-188f-4ea7-8e0f-758711e6ae4f" + "x-ms-arm-service-request-id": "ecf2a4c4-1ce1-41a1-96eb-9c7d30a967f4", + "x-ms-correlation-request-id": "739124d0-d3a9-4de9-ba09-789379cd628b", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T035114Z:739124d0-d3a9-4de9-ba09-789379cd628b" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/2d34935a-5442-4e18-8a73-e75c0d832e07?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/58d395d1-2691-4cac-b350-133972a8fd1f?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -762,7 +798,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:30:58 GMT", + "Date": "Fri, 29 Apr 2022 03:51:34 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "20", @@ -774,23 +810,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "e6469d33-c4cd-4b30-add2-6a4ca08720e6", - "x-ms-correlation-request-id": "9ca8d2a1-38f2-45fe-a9aa-d80bfeb13ae6", - "x-ms-ratelimit-remaining-subscription-reads": "11816", - "x-ms-routing-request-id": "EASTUS2:20220425T043058Z:9ca8d2a1-38f2-45fe-a9aa-d80bfeb13ae6" + "x-ms-arm-service-request-id": "54ac4886-f44c-4fc5-a1aa-daed6ae5db29", + "x-ms-correlation-request-id": "66ecf038-1528-42c4-aed6-6a320222a6a2", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T035134Z:66ecf038-1528-42c4-aed6-6a320222a6a2" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/2d34935a-5442-4e18-8a73-e75c0d832e07?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/58d395d1-2691-4cac-b350-133972a8fd1f?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -798,7 +834,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:31:18 GMT", + "Date": "Fri, 29 Apr 2022 03:51:54 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "40", @@ -810,23 +846,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "e4323241-fb6e-46c8-8bff-dd7a8d3c719e", - "x-ms-correlation-request-id": "df0a0cc8-e43b-4732-8d0a-f3332070091a", - "x-ms-ratelimit-remaining-subscription-reads": "11815", - "x-ms-routing-request-id": "EASTUS2:20220425T043119Z:df0a0cc8-e43b-4732-8d0a-f3332070091a" + "x-ms-arm-service-request-id": "51bf7511-57bb-4424-97a2-2f9a0b961168", + "x-ms-correlation-request-id": "8315f5c3-a7e4-4cc6-b22b-14189a071e78", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T035154Z:8315f5c3-a7e4-4cc6-b22b-14189a071e78" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/2d34935a-5442-4e18-8a73-e75c0d832e07?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/58d395d1-2691-4cac-b350-133972a8fd1f?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -834,7 +870,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:31:58 GMT", + "Date": "Fri, 29 Apr 2022 03:52:34 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "40", @@ -846,23 +882,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "55b789d7-a038-42d4-bb63-4ef01acd8e5e", - "x-ms-correlation-request-id": "c1f95ef5-0af6-46f6-b666-940f01447e6a", - "x-ms-ratelimit-remaining-subscription-reads": "11814", - "x-ms-routing-request-id": "EASTUS2:20220425T043159Z:c1f95ef5-0af6-46f6-b666-940f01447e6a" + "x-ms-arm-service-request-id": "b77c298a-4506-4404-9271-19b95ced3c13", + "x-ms-correlation-request-id": "842e63e2-08d5-4394-89c0-897d54ff5a01", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T035235Z:842e63e2-08d5-4394-89c0-897d54ff5a01" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/2d34935a-5442-4e18-8a73-e75c0d832e07?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/58d395d1-2691-4cac-b350-133972a8fd1f?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -870,7 +906,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:32:38 GMT", + "Date": "Fri, 29 Apr 2022 03:53:15 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "80", @@ -882,23 +918,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "ec1c6942-d392-41f8-aa21-ded75641ab0f", - "x-ms-correlation-request-id": "31cc166e-bce3-4005-9cc0-7324d8bd90e9", - "x-ms-ratelimit-remaining-subscription-reads": "11813", - "x-ms-routing-request-id": "EASTUS2:20220425T043239Z:31cc166e-bce3-4005-9cc0-7324d8bd90e9" + "x-ms-arm-service-request-id": "0d924c0b-0a4e-4458-978f-d0e07f7e7cf9", + "x-ms-correlation-request-id": "7975f0e5-09ed-40b6-a450-c38f6550053d", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T035315Z:7975f0e5-09ed-40b6-a450-c38f6550053d" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/2d34935a-5442-4e18-8a73-e75c0d832e07?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/58d395d1-2691-4cac-b350-133972a8fd1f?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -906,7 +942,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:33:59 GMT", + "Date": "Fri, 29 Apr 2022 03:54:35 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "160", @@ -918,23 +954,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "e7826d60-505b-4c67-97a4-ca1cb69128c4", - "x-ms-correlation-request-id": "d7f7a8be-8780-49b8-87a3-b83ad567ae8c", + "x-ms-arm-service-request-id": "831fbfcc-dcaf-4a13-bd23-bc1c25b7bedc", + "x-ms-correlation-request-id": "de19e58b-3263-4dc0-96c9-9e87ec87db3c", "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-routing-request-id": "EASTUS2:20220425T043359Z:d7f7a8be-8780-49b8-87a3-b83ad567ae8c" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T035436Z:de19e58b-3263-4dc0-96c9-9e87ec87db3c" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/2d34935a-5442-4e18-8a73-e75c0d832e07?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/58d395d1-2691-4cac-b350-133972a8fd1f?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -942,7 +978,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:36:40 GMT", + "Date": "Fri, 29 Apr 2022 03:57:17 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -953,10 +989,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "4c98f5d7-10fc-4fee-944c-41def9fe44b1", - "x-ms-correlation-request-id": "239a844b-110d-41ea-b680-89c5307307b2", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-routing-request-id": "EASTUS2:20220425T043640Z:239a844b-110d-41ea-b680-89c5307307b2" + "x-ms-arm-service-request-id": "f4b925c7-e5a3-4115-b781-26304eced6a6", + "x-ms-correlation-request-id": "13307ad3-90d2-47f1-9907-b166490939bd", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T035717Z:13307ad3-90d2-47f1-9907-b166490939bd" }, "ResponseBody": { "status": "Succeeded" @@ -969,7 +1005,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -977,7 +1013,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:36:40 GMT", + "Date": "Fri, 29 Apr 2022 03:57:17 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -988,15 +1024,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "d78e9283-6120-4d28-9122-3fbba5193187", - "x-ms-correlation-request-id": "244717fa-d241-4907-a250-cce4d505e1cb", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-routing-request-id": "EASTUS2:20220425T043640Z:244717fa-d241-4907-a250-cce4d505e1cb" + "x-ms-arm-service-request-id": "86b31f63-d1ff-4927-a810-4874fa783ed1", + "x-ms-correlation-request-id": "280eda7b-e48b-4ea0-a706-4649041d1564", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T035718Z:280eda7b-e48b-4ea0-a706-4649041d1564" }, "ResponseBody": { "name": "virtualhubxf36329e7", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualHubs/virtualhubxf36329e7", - "etag": "W/\u00229033689b-6403-40e5-a74e-366b1db75032\u0022", + "etag": "W/\u002245c49039-6498-4013-ba65-df63133c9677\u0022", "type": "Microsoft.Network/virtualHubs", "location": "westus", "tags": { @@ -1035,7 +1071,7 @@ "Connection": "keep-alive", "Content-Length": "825", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": { "location": "West US", @@ -1078,11 +1114,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1fc4c7fe-c228-40ff-be88-63d26ea0242d?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a35ca9b-c294-49b6-9f78-be3d2cddb1ae?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "3976", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:36:41 GMT", + "Date": "Fri, 29 Apr 2022 03:57:24 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -1092,15 +1128,15 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "02e83e20-3479-4688-8012-3157244a0c18", - "x-ms-correlation-request-id": "02f9ce05-870d-4d6b-813d-31cbdc99a02f", + "x-ms-arm-service-request-id": "dbabf7c8-77ef-47d8-8a80-d5bab0219b1a", + "x-ms-correlation-request-id": "1ae51ab4-636e-4354-b965-ff71df142e80", "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-routing-request-id": "EASTUS2:20220425T043641Z:02f9ce05-870d-4d6b-813d-31cbdc99a02f" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T035724Z:1ae51ab4-636e-4354-b965-ff71df142e80" }, "ResponseBody": { "name": "vpngatewayf36329e7", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/vpnGateways/vpngatewayf36329e7", - "etag": "W/\u0022ade1c9af-14ed-4c2e-9d60-405e0e958143\u0022", + "etag": "W/\u00228b8ec3a8-26d2-4e45-bb2f-4d77d7a4a6a2\u0022", "type": "Microsoft.Network/vpnGateways", "location": "westus", "tags": { @@ -1112,7 +1148,7 @@ { "name": "vpnConnection1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/vpnGateways/vpngatewayf36329e7/vpnConnections/vpnConnection1", - "etag": "W/\u0022ade1c9af-14ed-4c2e-9d60-405e0e958143\u0022", + "etag": "W/\u00228b8ec3a8-26d2-4e45-bb2f-4d77d7a4a6a2\u0022", "type": "Microsoft.Network/vpnGateways/vpnConnections", "properties": { "provisioningState": "Updating", @@ -1142,7 +1178,7 @@ { "name": "Connection-Link1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/vpnGateways/vpngatewayf36329e7/vpnConnections/vpnConnection1/vpnLinkConnections/Connection-Link1", - "etag": "W/\u0022ade1c9af-14ed-4c2e-9d60-405e0e958143\u0022", + "etag": "W/\u00228b8ec3a8-26d2-4e45-bb2f-4d77d7a4a6a2\u0022", "properties": { "provisioningState": "Updating", "vpnSiteLink": { @@ -1189,13 +1225,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1fc4c7fe-c228-40ff-be88-63d26ea0242d?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a35ca9b-c294-49b6-9f78-be3d2cddb1ae?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -1203,7 +1239,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:36:50 GMT", + "Date": "Fri, 29 Apr 2022 03:57:34 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -1215,23 +1251,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "2aef7794-baf3-4abc-8e73-109ac8d4198e", - "x-ms-correlation-request-id": "0bf16c4f-75ea-4114-b29a-c4feedf00652", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-routing-request-id": "EASTUS2:20220425T043651Z:0bf16c4f-75ea-4114-b29a-c4feedf00652" + "x-ms-arm-service-request-id": "92c81723-7e2c-49d7-87b7-95262ddde27a", + "x-ms-correlation-request-id": "96dd35d7-5434-474d-ba89-f1bd8fd671de", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T035734Z:96dd35d7-5434-474d-ba89-f1bd8fd671de" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1fc4c7fe-c228-40ff-be88-63d26ea0242d?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a35ca9b-c294-49b6-9f78-be3d2cddb1ae?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -1239,7 +1275,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:37:00 GMT", + "Date": "Fri, 29 Apr 2022 03:57:44 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "20", @@ -1251,23 +1287,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "b08db055-2638-4145-8b87-0bdf392637b1", - "x-ms-correlation-request-id": "3ab2b3c6-8387-4658-81b7-e6aa6ff79924", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-routing-request-id": "EASTUS2:20220425T043701Z:3ab2b3c6-8387-4658-81b7-e6aa6ff79924" + "x-ms-arm-service-request-id": "7578c863-5271-46e7-9262-2bd0e8dc3702", + "x-ms-correlation-request-id": "7d02f600-733c-456e-9076-9dbc652d167c", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T035745Z:7d02f600-733c-456e-9076-9dbc652d167c" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1fc4c7fe-c228-40ff-be88-63d26ea0242d?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a35ca9b-c294-49b6-9f78-be3d2cddb1ae?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -1275,7 +1311,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:37:21 GMT", + "Date": "Fri, 29 Apr 2022 03:58:04 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "20", @@ -1287,23 +1323,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "2094e31b-f6a8-4920-bb91-2d1bd84df731", - "x-ms-correlation-request-id": "881bc17d-0d52-4165-bd78-36e96f4c2227", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-routing-request-id": "EASTUS2:20220425T043721Z:881bc17d-0d52-4165-bd78-36e96f4c2227" + "x-ms-arm-service-request-id": "a370a8ed-368e-47b5-bdf3-fe89aa5e1e30", + "x-ms-correlation-request-id": "d69dbcf7-ec9a-4e1d-aeed-d9207c735783", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T035805Z:d69dbcf7-ec9a-4e1d-aeed-d9207c735783" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1fc4c7fe-c228-40ff-be88-63d26ea0242d?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a35ca9b-c294-49b6-9f78-be3d2cddb1ae?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -1311,7 +1347,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:37:41 GMT", + "Date": "Fri, 29 Apr 2022 03:58:26 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "40", @@ -1323,23 +1359,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "9e155dc4-1663-4434-94e7-a530352cb1a1", - "x-ms-correlation-request-id": "6e63f702-3119-4132-a60e-613ab336c96a", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-routing-request-id": "EASTUS2:20220425T043741Z:6e63f702-3119-4132-a60e-613ab336c96a" + "x-ms-arm-service-request-id": "412850c3-c3e8-40ed-a55c-d04678fac512", + "x-ms-correlation-request-id": "6f0e62ca-1495-4d90-9924-819943c67f26", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T035826Z:6f0e62ca-1495-4d90-9924-819943c67f26" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1fc4c7fe-c228-40ff-be88-63d26ea0242d?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a35ca9b-c294-49b6-9f78-be3d2cddb1ae?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -1347,7 +1383,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:38:21 GMT", + "Date": "Fri, 29 Apr 2022 03:59:06 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "40", @@ -1359,23 +1395,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "cc6e7f52-914f-4a83-8b6a-8501ac980afc", - "x-ms-correlation-request-id": "0f7f281d-c178-4e40-aa30-132a6bdea07f", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-routing-request-id": "EASTUS2:20220425T043821Z:0f7f281d-c178-4e40-aa30-132a6bdea07f" + "x-ms-arm-service-request-id": "86c491f9-2b8e-4a2b-b5a3-652003af4040", + "x-ms-correlation-request-id": "71001973-90cb-47aa-8827-c77ece2dfe6c", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T035906Z:71001973-90cb-47aa-8827-c77ece2dfe6c" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1fc4c7fe-c228-40ff-be88-63d26ea0242d?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a35ca9b-c294-49b6-9f78-be3d2cddb1ae?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -1383,7 +1419,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:39:01 GMT", + "Date": "Fri, 29 Apr 2022 03:59:46 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "80", @@ -1395,23 +1431,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "ab19ca6e-ec2e-4569-857c-bc5aaf50bc84", - "x-ms-correlation-request-id": "837f0e56-020d-4308-b404-1514323e969b", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-routing-request-id": "EASTUS2:20220425T043901Z:837f0e56-020d-4308-b404-1514323e969b" + "x-ms-arm-service-request-id": "aa8e09f7-8ba8-4098-a153-838b22d501a9", + "x-ms-correlation-request-id": "42713129-644a-4dab-95b1-40f61a99f6d2", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T035946Z:42713129-644a-4dab-95b1-40f61a99f6d2" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1fc4c7fe-c228-40ff-be88-63d26ea0242d?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a35ca9b-c294-49b6-9f78-be3d2cddb1ae?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -1419,7 +1455,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:40:21 GMT", + "Date": "Fri, 29 Apr 2022 04:01:07 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "160", @@ -1431,23 +1467,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "ae2dba02-ca8d-4638-bb26-eebb9ad15bd2", - "x-ms-correlation-request-id": "e273f1c2-3380-437c-afe0-cc0e1dd031d5", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-routing-request-id": "EASTUS2:20220425T044022Z:e273f1c2-3380-437c-afe0-cc0e1dd031d5" + "x-ms-arm-service-request-id": "c059f84b-6dd2-450c-ab04-98f016f4cd85", + "x-ms-correlation-request-id": "1711dabb-021b-4459-8d59-b22caed54092", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T040108Z:1711dabb-021b-4459-8d59-b22caed54092" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1fc4c7fe-c228-40ff-be88-63d26ea0242d?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a35ca9b-c294-49b6-9f78-be3d2cddb1ae?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -1455,7 +1491,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:43:01 GMT", + "Date": "Fri, 29 Apr 2022 04:03:49 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -1467,23 +1503,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "74db0d9f-9c21-4d19-8e98-73f1982d456d", - "x-ms-correlation-request-id": "4db60ef4-21d1-4743-b8e0-da37aded0109", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-routing-request-id": "EASTUS2:20220425T044302Z:4db60ef4-21d1-4743-b8e0-da37aded0109" + "x-ms-arm-service-request-id": "ac478e71-e568-443f-b203-0f5c60cc7139", + "x-ms-correlation-request-id": "8b2940f1-9646-48ad-bde2-e062334ef683", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T040350Z:8b2940f1-9646-48ad-bde2-e062334ef683" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1fc4c7fe-c228-40ff-be88-63d26ea0242d?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a35ca9b-c294-49b6-9f78-be3d2cddb1ae?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -1491,7 +1527,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:44:42 GMT", + "Date": "Fri, 29 Apr 2022 04:05:30 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -1503,23 +1539,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "86787154-44d8-48ce-839a-c8878c17a7fe", - "x-ms-correlation-request-id": "5997d243-8604-43a8-8bac-1190605f50e8", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-routing-request-id": "EASTUS2:20220425T044442Z:5997d243-8604-43a8-8bac-1190605f50e8" + "x-ms-arm-service-request-id": "e7131775-914d-47f2-ba21-c8dcb31f3070", + "x-ms-correlation-request-id": "f608ebba-6790-4648-be4a-4d8c352fa080", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T040531Z:f608ebba-6790-4648-be4a-4d8c352fa080" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1fc4c7fe-c228-40ff-be88-63d26ea0242d?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a35ca9b-c294-49b6-9f78-be3d2cddb1ae?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -1527,7 +1563,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:46:22 GMT", + "Date": "Fri, 29 Apr 2022 04:07:12 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -1539,23 +1575,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "ffd62d9e-01a0-466e-ad78-7f93476fd943", - "x-ms-correlation-request-id": "719598ae-63a8-4a96-9431-714d02d4bfba", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-routing-request-id": "EASTUS2:20220425T044622Z:719598ae-63a8-4a96-9431-714d02d4bfba" + "x-ms-arm-service-request-id": "0bc30a91-3ef3-437a-99fd-6eb4f3ebb322", + "x-ms-correlation-request-id": "782b8174-99fd-4aff-bbab-29bbd2b1a0d4", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T040712Z:782b8174-99fd-4aff-bbab-29bbd2b1a0d4" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1fc4c7fe-c228-40ff-be88-63d26ea0242d?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a35ca9b-c294-49b6-9f78-be3d2cddb1ae?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -1563,7 +1599,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:48:02 GMT", + "Date": "Fri, 29 Apr 2022 04:08:53 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -1575,23 +1611,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "32c4e965-4212-4605-b82a-3aa36abe3aa2", - "x-ms-correlation-request-id": "02c95ad0-a6b2-4dca-8cd8-069062992898", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-routing-request-id": "EASTUS2:20220425T044802Z:02c95ad0-a6b2-4dca-8cd8-069062992898" + "x-ms-arm-service-request-id": "94b92bc0-2c63-455f-bc9d-e3e781b2a61e", + "x-ms-correlation-request-id": "7a11bbe9-1f74-42bc-8457-f9549823a391", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T040853Z:7a11bbe9-1f74-42bc-8457-f9549823a391" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1fc4c7fe-c228-40ff-be88-63d26ea0242d?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a35ca9b-c294-49b6-9f78-be3d2cddb1ae?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -1599,7 +1635,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:49:42 GMT", + "Date": "Fri, 29 Apr 2022 04:10:35 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -1611,23 +1647,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "bd101698-5167-4d48-8b50-f5e54525bd97", - "x-ms-correlation-request-id": "ec312e5c-af12-4497-bf54-f797234fb317", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-routing-request-id": "EASTUS2:20220425T044943Z:ec312e5c-af12-4497-bf54-f797234fb317" + "x-ms-arm-service-request-id": "708c84ee-7b65-4ab7-b749-9f0167f7c9ed", + "x-ms-correlation-request-id": "de8fddc5-de3d-4351-9a1c-1e9dd23f0321", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T041035Z:de8fddc5-de3d-4351-9a1c-1e9dd23f0321" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1fc4c7fe-c228-40ff-be88-63d26ea0242d?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a35ca9b-c294-49b6-9f78-be3d2cddb1ae?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -1635,7 +1671,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:51:22 GMT", + "Date": "Fri, 29 Apr 2022 04:12:15 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -1647,23 +1683,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "1e4f5c59-73e1-41b4-8de6-70247ebdc403", - "x-ms-correlation-request-id": "19ca13d8-14bf-4807-aefa-104ed2f3a528", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-routing-request-id": "EASTUS2:20220425T045123Z:19ca13d8-14bf-4807-aefa-104ed2f3a528" + "x-ms-arm-service-request-id": "f92bf90d-84e4-4ac4-8b0b-3f02d8b94040", + "x-ms-correlation-request-id": "4781b215-bd16-4231-98cb-67574bd6cbb2", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T041216Z:4781b215-bd16-4231-98cb-67574bd6cbb2" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1fc4c7fe-c228-40ff-be88-63d26ea0242d?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a35ca9b-c294-49b6-9f78-be3d2cddb1ae?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -1671,7 +1707,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:53:03 GMT", + "Date": "Fri, 29 Apr 2022 04:13:57 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -1683,31 +1719,31 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "e39689e0-caf1-43d3-a057-63e97e3974f6", - "x-ms-correlation-request-id": "07bac574-430f-470e-b908-9e3c26399497", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-routing-request-id": "EASTUS2:20220425T045303Z:07bac574-430f-470e-b908-9e3c26399497" + "x-ms-arm-service-request-id": "68438624-5ef3-4309-872c-e324c046d920", + "x-ms-correlation-request-id": "8fc4f7b3-4550-4217-a8f7-e7e253030d39", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T041357Z:8fc4f7b3-4550-4217-a8f7-e7e253030d39" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1fc4c7fe-c228-40ff-be88-63d26ea0242d?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a35ca9b-c294-49b6-9f78-be3d2cddb1ae?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Encoding": "gzip", + "Content-Length": "30", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:54:43 GMT", + "Date": "Fri, 29 Apr 2022 04:15:38 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -1716,26 +1752,24 @@ "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": "cf7d4b1c-26e9-4321-9760-891118fa905f", - "x-ms-correlation-request-id": "8aac91ac-bc38-4ec3-bc17-d16c8d74a013", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-routing-request-id": "EASTUS2:20220425T045444Z:8aac91ac-bc38-4ec3-bc17-d16c8d74a013" + "x-ms-arm-service-request-id": "09f511a8-3b9e-42fe-bb3f-6e5b32a39a64", + "x-ms-correlation-request-id": "7f247380-c520-45cb-aa4b-75f8a803e327", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T041539Z:7f247380-c520-45cb-aa4b-75f8a803e327" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1fc4c7fe-c228-40ff-be88-63d26ea0242d?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a35ca9b-c294-49b6-9f78-be3d2cddb1ae?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -1743,7 +1777,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:56:23 GMT", + "Date": "Fri, 29 Apr 2022 04:17:19 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -1755,23 +1789,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "95b1d484-996d-4224-adc7-97b40b34fd31", - "x-ms-correlation-request-id": "655d96b8-124a-4c13-95e3-59fcbb9aeaef", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-routing-request-id": "EASTUS2:20220425T045624Z:655d96b8-124a-4c13-95e3-59fcbb9aeaef" + "x-ms-arm-service-request-id": "05de3459-478b-4287-81a4-f0e3fe008ca2", + "x-ms-correlation-request-id": "9ded086f-0196-46ea-8ae9-821362d8ee7f", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T041720Z:9ded086f-0196-46ea-8ae9-821362d8ee7f" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1fc4c7fe-c228-40ff-be88-63d26ea0242d?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a35ca9b-c294-49b6-9f78-be3d2cddb1ae?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -1779,7 +1813,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:58:03 GMT", + "Date": "Fri, 29 Apr 2022 04:19:01 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -1791,23 +1825,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "0e7da97a-512b-4c3a-899e-85f7a334110e", - "x-ms-correlation-request-id": "23c8965f-84e8-431d-904b-b21c5b91d1cd", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-routing-request-id": "EASTUS2:20220425T045804Z:23c8965f-84e8-431d-904b-b21c5b91d1cd" + "x-ms-arm-service-request-id": "e8c03dff-43c7-45f3-aa59-613dd101b808", + "x-ms-correlation-request-id": "06cf49e3-b953-4adb-a59c-2360b3871dba", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T041901Z:06cf49e3-b953-4adb-a59c-2360b3871dba" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1fc4c7fe-c228-40ff-be88-63d26ea0242d?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a35ca9b-c294-49b6-9f78-be3d2cddb1ae?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -1815,7 +1849,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 04:59:43 GMT", + "Date": "Fri, 29 Apr 2022 04:20:43 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -1827,23 +1861,57 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "f6229a9b-2374-4a00-8a52-ed72de6684ec", - "x-ms-correlation-request-id": "d95e287f-2531-453f-9e1d-f9076b894988", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-routing-request-id": "EASTUS2:20220425T045944Z:d95e287f-2531-453f-9e1d-f9076b894988" + "x-ms-arm-service-request-id": "7064e25f-0cd0-4d7c-b232-826d36d3dbbe", + "x-ms-correlation-request-id": "0df1af08-0466-482e-a65b-a112e4ea55db", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T042043Z:0df1af08-0466-482e-a65b-a112e4ea55db" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a35ca9b-c294-49b6-9f78-be3d2cddb1ae?api-version=2021-08-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "30", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 29 Apr 2022 04:22:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "100", + "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": "f3d68bea-b9f3-4c69-b408-db2a2089e93e", + "x-ms-correlation-request-id": "30aac616-d4a2-4b3a-a49d-ba4dc1ac0fd2", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T042224Z:30aac616-d4a2-4b3a-a49d-ba4dc1ac0fd2" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1fc4c7fe-c228-40ff-be88-63d26ea0242d?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a35ca9b-c294-49b6-9f78-be3d2cddb1ae?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -1851,7 +1919,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:01:23 GMT", + "Date": "Fri, 29 Apr 2022 04:24:05 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -1863,23 +1931,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "9088bd56-1a89-4554-87c5-148230914147", - "x-ms-correlation-request-id": "30b4aa9f-a553-4476-a040-480051031578", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-routing-request-id": "EASTUS2:20220425T050124Z:30b4aa9f-a553-4476-a040-480051031578" + "x-ms-arm-service-request-id": "311decc0-ac30-4dfd-9c3e-ab91a50fac13", + "x-ms-correlation-request-id": "810150dd-7cbc-4b3f-b7d2-7265b8b34ebf", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T042405Z:810150dd-7cbc-4b3f-b7d2-7265b8b34ebf" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1fc4c7fe-c228-40ff-be88-63d26ea0242d?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a35ca9b-c294-49b6-9f78-be3d2cddb1ae?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -1887,7 +1955,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:03:05 GMT", + "Date": "Fri, 29 Apr 2022 04:25:46 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -1899,23 +1967,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "e99a3a77-40be-4045-867f-2141ce0d4912", - "x-ms-correlation-request-id": "0eb6f529-2ae4-4e71-81fe-5c78d4f25c1c", - "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-routing-request-id": "EASTUS2:20220425T050305Z:0eb6f529-2ae4-4e71-81fe-5c78d4f25c1c" + "x-ms-arm-service-request-id": "56ec5d1e-7225-4903-b98d-62994f6b0375", + "x-ms-correlation-request-id": "fb7160c3-de09-4729-a949-ac1bfb3e9d57", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T042547Z:fb7160c3-de09-4729-a949-ac1bfb3e9d57" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1fc4c7fe-c228-40ff-be88-63d26ea0242d?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a35ca9b-c294-49b6-9f78-be3d2cddb1ae?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -1923,7 +1991,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:04:44 GMT", + "Date": "Fri, 29 Apr 2022 04:27:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1934,10 +2002,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "2565eabe-0ec9-47de-bf92-6ab1e55aed5c", - "x-ms-correlation-request-id": "796d4d8e-ae53-4889-8d36-fe9a5842b574", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-routing-request-id": "EASTUS2:20220425T050445Z:796d4d8e-ae53-4889-8d36-fe9a5842b574" + "x-ms-arm-service-request-id": "6d499fad-a371-43f4-bb6d-d042fecd680d", + "x-ms-correlation-request-id": "f68ba4f9-ca93-4010-8443-2fce45fb30b3", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T042728Z:f68ba4f9-ca93-4010-8443-2fce45fb30b3" }, "ResponseBody": { "status": "Succeeded" @@ -1950,7 +2018,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -1958,7 +2026,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:04:44 GMT", + "Date": "Fri, 29 Apr 2022 04:27:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -1969,15 +2037,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "2b80b1f7-374c-49fb-8401-3d873fbfc5af", - "x-ms-correlation-request-id": "82c5dd5f-8757-40eb-bb44-63a7655303a6", - "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-routing-request-id": "EASTUS2:20220425T050445Z:82c5dd5f-8757-40eb-bb44-63a7655303a6" + "x-ms-arm-service-request-id": "8f1881c4-0c11-4a02-81f4-7cc3eda90ed2", + "x-ms-correlation-request-id": "03d1b044-af4d-46bb-bb12-b97662f980b7", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T042728Z:03d1b044-af4d-46bb-bb12-b97662f980b7" }, "ResponseBody": { "name": "vpngatewayf36329e7", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/vpnGateways/vpngatewayf36329e7", - "etag": "W/\u00227f2b5c97-280e-42f5-9d81-32f3050cebba\u0022", + "etag": "W/\u00228f46f8f4-6ed1-451a-ae6d-38f9e7b3b361\u0022", "type": "Microsoft.Network/vpnGateways", "location": "westus", "tags": { @@ -1989,7 +2057,7 @@ { "name": "vpnConnection1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/vpnGateways/vpngatewayf36329e7/vpnConnections/vpnConnection1", - "etag": "W/\u00227f2b5c97-280e-42f5-9d81-32f3050cebba\u0022", + "etag": "W/\u00228f46f8f4-6ed1-451a-ae6d-38f9e7b3b361\u0022", "type": "Microsoft.Network/vpnGateways/vpnConnections", "properties": { "provisioningState": "Succeeded", @@ -2019,7 +2087,7 @@ { "name": "Connection-Link1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/vpnGateways/vpngatewayf36329e7/vpnConnections/vpnConnection1/vpnLinkConnections/Connection-Link1", - "etag": "W/\u00227f2b5c97-280e-42f5-9d81-32f3050cebba\u0022", + "etag": "W/\u00228f46f8f4-6ed1-451a-ae6d-38f9e7b3b361\u0022", "properties": { "provisioningState": "Succeeded", "vpnSiteLink": { @@ -2059,22 +2127,22 @@ { "ipconfigurationId": "Instance0", "defaultBgpIpAddresses": [ - "10.168.0.13" + "10.168.0.12" ], "customBgpIpAddresses": [], "tunnelIpAddresses": [ - "13.64.132.253", + "13.64.97.61", "10.168.0.4" ] }, { "ipconfigurationId": "Instance1", "defaultBgpIpAddresses": [ - "10.168.0.12" + "10.168.0.13" ], "customBgpIpAddresses": [], "tunnelIpAddresses": [ - "13.64.130.90", + "13.64.97.128", "10.168.0.5" ] } @@ -2085,12 +2153,12 @@ "ipConfigurations": [ { "id": "Instance0", - "publicIpAddress": "13.64.132.253", + "publicIpAddress": "13.64.97.61", "privateIpAddress": "10.168.0.4" }, { "id": "Instance1", - "publicIpAddress": "13.64.130.90", + "publicIpAddress": "13.64.97.128", "privateIpAddress": "10.168.0.5" } ], @@ -2109,7 +2177,7 @@ "Connection": "keep-alive", "Content-Length": "261", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": { "location": "West US", @@ -2126,11 +2194,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/73427af1-4bea-43bb-8587-9ed709c40dfc?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/7597730a-b8e3-4381-bbe2-48723f989fbc?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "684", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:04:45 GMT", + "Date": "Fri, 29 Apr 2022 04:27:34 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -2140,15 +2208,15 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "16cc3739-06e1-43b5-9e33-6b174788ecb7", - "x-ms-correlation-request-id": "386dfcbf-4bb1-476d-823e-09965ee8c5b9", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-routing-request-id": "EASTUS2:20220425T050446Z:386dfcbf-4bb1-476d-823e-09965ee8c5b9" + "x-ms-arm-service-request-id": "26ed74e5-4e95-4433-825e-cc4823951ec0", + "x-ms-correlation-request-id": "b755f8d5-165d-4ad8-805e-639c89b8b27b", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T042734Z:b755f8d5-165d-4ad8-805e-639c89b8b27b" }, "ResponseBody": { "name": "mySecurityPartnerProviderf36329e7", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/securityPartnerProviders/mySecurityPartnerProviderf36329e7", - "etag": "W/\u0022247b713c-77e0-473f-8ff3-2246adb721b8\u0022", + "etag": "W/\u0022ee338115-fa79-4ee9-8239-fc3426b78011\u0022", "type": "Microsoft.Network/securityPartnerProviders", "location": "westus", "tags": { @@ -2164,13 +2232,13 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/73427af1-4bea-43bb-8587-9ed709c40dfc?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/7597730a-b8e3-4381-bbe2-48723f989fbc?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -2178,7 +2246,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:04:55 GMT", + "Date": "Fri, 29 Apr 2022 04:27:45 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -2189,10 +2257,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "6c766fa0-b245-44f5-b65e-7f8df57f7950", - "x-ms-correlation-request-id": "2e80067b-f053-40e7-857b-57e4a6361ef9", - "x-ms-ratelimit-remaining-subscription-reads": "11974", - "x-ms-routing-request-id": "EASTUS2:20220425T050456Z:2e80067b-f053-40e7-857b-57e4a6361ef9" + "x-ms-arm-service-request-id": "34405819-0a84-4e12-953a-223434f95863", + "x-ms-correlation-request-id": "a5ade20e-c9fb-4f49-b942-cf4e852775f3", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T042745Z:a5ade20e-c9fb-4f49-b942-cf4e852775f3" }, "ResponseBody": { "status": "Succeeded" @@ -2205,7 +2273,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -2213,7 +2281,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:04:55 GMT", + "Date": "Fri, 29 Apr 2022 04:27:45 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -2224,15 +2292,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "2b63e888-cb6e-42ea-8726-7264cdbaa0cb", - "x-ms-correlation-request-id": "b4e75b0f-f288-4ae1-9feb-eb5d4676d46d", - "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-routing-request-id": "EASTUS2:20220425T050456Z:b4e75b0f-f288-4ae1-9feb-eb5d4676d46d" + "x-ms-arm-service-request-id": "0b8b97e9-13af-40e0-a763-ead2caa234bd", + "x-ms-correlation-request-id": "d4f1db9d-11f2-43af-99bb-efa084d3a87d", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T042746Z:d4f1db9d-11f2-43af-99bb-efa084d3a87d" }, "ResponseBody": { "name": "mySecurityPartnerProviderf36329e7", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/securityPartnerProviders/mySecurityPartnerProviderf36329e7", - "etag": "W/\u0022efb6d778-6e44-4f63-82ca-9b6295c0c61f\u0022", + "etag": "W/\u0022b0419b80-163c-424f-9b5e-9f0347590b39\u0022", "type": "Microsoft.Network/securityPartnerProviders", "location": "westus", "tags": { @@ -2254,7 +2322,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -2262,7 +2330,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:04:55 GMT", + "Date": "Fri, 29 Apr 2022 04:27:45 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -2273,15 +2341,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "84d64f98-d113-4866-9f0d-6d0f392ae475", - "x-ms-correlation-request-id": "b96c1817-dbad-436f-8e54-4d4fddaf5fb6", - "x-ms-ratelimit-remaining-subscription-reads": "11972", - "x-ms-routing-request-id": "EASTUS2:20220425T050456Z:b96c1817-dbad-436f-8e54-4d4fddaf5fb6" + "x-ms-arm-service-request-id": "6a987613-a8fc-40e0-933d-c97b28bfd940", + "x-ms-correlation-request-id": "03c451cd-eafd-4a4c-98bb-f7e5b2c7ce42", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T042746Z:03c451cd-eafd-4a4c-98bb-f7e5b2c7ce42" }, "ResponseBody": { "name": "virtualhubxf36329e7", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualHubs/virtualhubxf36329e7", - "etag": "W/\u0022cda2bba9-1162-451b-98dd-7513deb6c511\u0022", + "etag": "W/\u00221df8b48c-b972-4706-8093-1aa1368aec89\u0022", "type": "Microsoft.Network/virtualHubs", "location": "westus", "tags": { @@ -2293,8 +2361,8 @@ "addressPrefix": "10.168.0.0/24", "virtualRouterAsn": 65515, "virtualRouterIps": [ - "10.168.0.69", - "10.168.0.68" + "10.168.0.68", + "10.168.0.69" ], "routeTable": { "routes": [] @@ -2328,7 +2396,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -2336,7 +2404,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:04:55 GMT", + "Date": "Fri, 29 Apr 2022 04:27:46 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -2347,15 +2415,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "d95e2013-7112-4079-9cc3-09d551ca0f64", - "x-ms-correlation-request-id": "80ffcba3-78f0-4b1f-b027-f8946814813f", - "x-ms-ratelimit-remaining-subscription-reads": "11971", - "x-ms-routing-request-id": "EASTUS2:20220425T050456Z:80ffcba3-78f0-4b1f-b027-f8946814813f" + "x-ms-arm-service-request-id": "d52b4d49-5d81-4727-aaea-4b94662298d0", + "x-ms-correlation-request-id": "9fa280dd-50a6-4594-9079-f48fbc7c952f", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T042746Z:9fa280dd-50a6-4594-9079-f48fbc7c952f" }, "ResponseBody": { "name": "vpngatewayf36329e7", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/vpnGateways/vpngatewayf36329e7", - "etag": "W/\u00227f2b5c97-280e-42f5-9d81-32f3050cebba\u0022", + "etag": "W/\u00228f46f8f4-6ed1-451a-ae6d-38f9e7b3b361\u0022", "type": "Microsoft.Network/vpnGateways", "location": "westus", "tags": { @@ -2367,7 +2435,7 @@ { "name": "vpnConnection1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/vpnGateways/vpngatewayf36329e7/vpnConnections/vpnConnection1", - "etag": "W/\u00227f2b5c97-280e-42f5-9d81-32f3050cebba\u0022", + "etag": "W/\u00228f46f8f4-6ed1-451a-ae6d-38f9e7b3b361\u0022", "type": "Microsoft.Network/vpnGateways/vpnConnections", "properties": { "provisioningState": "Succeeded", @@ -2397,7 +2465,7 @@ { "name": "Connection-Link1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/vpnGateways/vpngatewayf36329e7/vpnConnections/vpnConnection1/vpnLinkConnections/Connection-Link1", - "etag": "W/\u00227f2b5c97-280e-42f5-9d81-32f3050cebba\u0022", + "etag": "W/\u00228f46f8f4-6ed1-451a-ae6d-38f9e7b3b361\u0022", "properties": { "provisioningState": "Succeeded", "vpnSiteLink": { @@ -2437,22 +2505,22 @@ { "ipconfigurationId": "Instance0", "defaultBgpIpAddresses": [ - "10.168.0.13" + "10.168.0.12" ], "customBgpIpAddresses": [], "tunnelIpAddresses": [ - "13.64.132.253", + "13.64.97.61", "10.168.0.4" ] }, { "ipconfigurationId": "Instance1", "defaultBgpIpAddresses": [ - "10.168.0.12" + "10.168.0.13" ], "customBgpIpAddresses": [], "tunnelIpAddresses": [ - "13.64.130.90", + "13.64.97.128", "10.168.0.5" ] } @@ -2463,12 +2531,12 @@ "ipConfigurations": [ { "id": "Instance0", - "publicIpAddress": "13.64.132.253", + "publicIpAddress": "13.64.97.61", "privateIpAddress": "10.168.0.4" }, { "id": "Instance1", - "publicIpAddress": "13.64.130.90", + "publicIpAddress": "13.64.97.128", "privateIpAddress": "10.168.0.5" } ], @@ -2485,7 +2553,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -2493,8 +2561,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:04:55 GMT", - "ETag": "W/\u0022b1fab2a7-7ab5-4cb0-8328-99d7a045353f\u0022", + "Date": "Fri, 29 Apr 2022 04:27:46 GMT", + "ETag": "W/\u002258fac2ab-cfd3-47bf-a079-cd237bcbcdb3\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -2505,15 +2573,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "06083711-bf41-41c6-bf2b-6eb7031114df", - "x-ms-correlation-request-id": "9a50179d-987d-4f6c-975c-0c4bb72105c1", - "x-ms-ratelimit-remaining-subscription-reads": "11970", - "x-ms-routing-request-id": "EASTUS2:20220425T050456Z:9a50179d-987d-4f6c-975c-0c4bb72105c1" + "x-ms-arm-service-request-id": "c0911cdc-9540-4f07-9587-30826b3a6ceb", + "x-ms-correlation-request-id": "21a293f0-3c8a-4a31-b651-9764b8ff70a0", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T042746Z:21a293f0-3c8a-4a31-b651-9764b8ff70a0" }, "ResponseBody": { "name": "virtualwanf36329e7", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualWans/virtualwanf36329e7", - "etag": "W/\u0022b1fab2a7-7ab5-4cb0-8328-99d7a045353f\u0022", + "etag": "W/\u002258fac2ab-cfd3-47bf-a079-cd237bcbcdb3\u0022", "type": "Microsoft.Network/virtualWans", "location": "westus", "tags": { @@ -2545,7 +2613,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -2553,8 +2621,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:04:55 GMT", - "ETag": "W/\u0022b4a43a31-4ee1-4916-9a3b-03ef9c4281ba\u0022", + "Date": "Fri, 29 Apr 2022 04:27:46 GMT", + "ETag": "W/\u0022c68ab7c7-e741-4700-b996-515df571c84b\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -2565,15 +2633,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "14849219-cfd8-4161-9258-0cf932dcc860", - "x-ms-correlation-request-id": "8172074e-5c60-4c39-8f4e-977bf4c2ef37", - "x-ms-ratelimit-remaining-subscription-reads": "11969", - "x-ms-routing-request-id": "EASTUS2:20220425T050456Z:8172074e-5c60-4c39-8f4e-977bf4c2ef37" + "x-ms-arm-service-request-id": "42ec6e2c-3047-4ee7-ae5b-8e37f62420fb", + "x-ms-correlation-request-id": "b3206554-0363-4b12-9f38-8beb96267e2f", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T042747Z:b3206554-0363-4b12-9f38-8beb96267e2f" }, "ResponseBody": { "name": "vpnSiteLink1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/vpnSites/vnpsitef36329e7/vpnSiteLinks/vpnSiteLink1", - "etag": "W/\u0022b4a43a31-4ee1-4916-9a3b-03ef9c4281ba\u0022", + "etag": "W/\u0022c68ab7c7-e741-4700-b996-515df571c84b\u0022", "properties": { "provisioningState": "Succeeded", "ipAddress": "50.50.50.56", @@ -2596,7 +2664,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -2604,7 +2672,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:04:56 GMT", + "Date": "Fri, 29 Apr 2022 04:27:47 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -2615,15 +2683,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "b137f7ee-231b-448a-8f5d-347b6cc1306f", - "x-ms-correlation-request-id": "b579f0e4-6c7a-47d3-bf9f-233296c29293", - "x-ms-ratelimit-remaining-subscription-reads": "11968", - "x-ms-routing-request-id": "EASTUS2:20220425T050456Z:b579f0e4-6c7a-47d3-bf9f-233296c29293" + "x-ms-arm-service-request-id": "eba2306f-2975-4047-8308-d2cd7909ce43", + "x-ms-correlation-request-id": "385ff21c-9f52-4dbc-9696-21cf43e728b1", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T042747Z:385ff21c-9f52-4dbc-9696-21cf43e728b1" }, "ResponseBody": { "name": "mySecurityPartnerProviderf36329e7", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/securityPartnerProviders/mySecurityPartnerProviderf36329e7", - "etag": "W/\u0022ab9d9511-5b86-48cf-bc9b-257f60aac0e2\u0022", + "etag": "W/\u002292b5291b-a889-475e-9bbf-928210ebc983\u0022", "type": "Microsoft.Network/securityPartnerProviders", "location": "westus", "tags": { @@ -2646,17 +2714,17 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e76202ad-b025-4b8f-af3c-59a607a641cf?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bf39582e-b4a8-444d-aca5-376bfc7242ed?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 05:04:56 GMT", + "Date": "Fri, 29 Apr 2022 04:27:47 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/e76202ad-b025-4b8f-af3c-59a607a641cf?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/bf39582e-b4a8-444d-aca5-376bfc7242ed?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -2665,21 +2733,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "ee80787a-7d67-4d19-b09b-8fadc803c74b", - "x-ms-correlation-request-id": "c4798635-672e-4cc4-a160-63755e6d7a29", + "x-ms-arm-service-request-id": "642827d2-cf7f-4105-a60d-59997ae0e8c8", + "x-ms-correlation-request-id": "8f5b3b02-f7c2-4962-88d9-97023dccc72a", "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-routing-request-id": "EASTUS2:20220425T050457Z:c4798635-672e-4cc4-a160-63755e6d7a29" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T042747Z:8f5b3b02-f7c2-4962-88d9-97023dccc72a" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e76202ad-b025-4b8f-af3c-59a607a641cf?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bf39582e-b4a8-444d-aca5-376bfc7242ed?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -2687,7 +2755,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:05:07 GMT", + "Date": "Fri, 29 Apr 2022 04:27:57 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -2699,23 +2767,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "c3fd2f4d-8327-4b35-993b-056cdb694418", - "x-ms-correlation-request-id": "41bacd9d-4aa5-4b56-9426-fcaabdeafbe5", - "x-ms-ratelimit-remaining-subscription-reads": "11967", - "x-ms-routing-request-id": "EASTUS2:20220425T050507Z:41bacd9d-4aa5-4b56-9426-fcaabdeafbe5" + "x-ms-arm-service-request-id": "445e7180-68d2-4c49-b84c-ba8fe6b8d51d", + "x-ms-correlation-request-id": "77acbdf4-b60c-4544-89ef-9714210afd26", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T042758Z:77acbdf4-b60c-4544-89ef-9714210afd26" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e76202ad-b025-4b8f-af3c-59a607a641cf?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bf39582e-b4a8-444d-aca5-376bfc7242ed?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -2723,7 +2791,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:05:17 GMT", + "Date": "Fri, 29 Apr 2022 04:28:07 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "20", @@ -2735,23 +2803,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "b15e9a7f-0cf0-4d11-a507-bf58b9b26f15", - "x-ms-correlation-request-id": "7ce4d88c-e779-459f-af70-e8f2df22f831", - "x-ms-ratelimit-remaining-subscription-reads": "11966", - "x-ms-routing-request-id": "EASTUS2:20220425T050517Z:7ce4d88c-e779-459f-af70-e8f2df22f831" + "x-ms-arm-service-request-id": "85a3b74d-2c49-440c-9de2-a2f0ac993555", + "x-ms-correlation-request-id": "b5f592b5-6744-466f-aed4-9b4d0a3077cc", + "x-ms-ratelimit-remaining-subscription-reads": "11987", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T042808Z:b5f592b5-6744-466f-aed4-9b4d0a3077cc" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e76202ad-b025-4b8f-af3c-59a607a641cf?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bf39582e-b4a8-444d-aca5-376bfc7242ed?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -2759,7 +2827,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:05:37 GMT", + "Date": "Fri, 29 Apr 2022 04:28:27 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "40", @@ -2771,23 +2839,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "8d3cddd6-7536-48e1-abee-ff52bdaf7894", - "x-ms-correlation-request-id": "957a1cac-17d1-4be6-a197-c75427ce9621", - "x-ms-ratelimit-remaining-subscription-reads": "11965", - "x-ms-routing-request-id": "EASTUS2:20220425T050537Z:957a1cac-17d1-4be6-a197-c75427ce9621" + "x-ms-arm-service-request-id": "212d95b8-8170-4164-b9fc-850acd0563a1", + "x-ms-correlation-request-id": "79b1c49a-06e0-4d39-8482-93e1f047bd30", + "x-ms-ratelimit-remaining-subscription-reads": "11986", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T042828Z:79b1c49a-06e0-4d39-8482-93e1f047bd30" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e76202ad-b025-4b8f-af3c-59a607a641cf?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bf39582e-b4a8-444d-aca5-376bfc7242ed?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -2795,7 +2863,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:06:17 GMT", + "Date": "Fri, 29 Apr 2022 04:29:08 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "80", @@ -2807,23 +2875,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "b40dca9e-8941-4f81-832f-2473210b293c", - "x-ms-correlation-request-id": "1e06116b-e8b5-429a-b619-07dd24caff95", - "x-ms-ratelimit-remaining-subscription-reads": "11964", - "x-ms-routing-request-id": "EASTUS2:20220425T050617Z:1e06116b-e8b5-429a-b619-07dd24caff95" + "x-ms-arm-service-request-id": "b398c128-426d-4e42-a59e-f386ce049a82", + "x-ms-correlation-request-id": "5d771688-f582-49d3-aea4-957f6a142f4a", + "x-ms-ratelimit-remaining-subscription-reads": "11985", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T042909Z:5d771688-f582-49d3-aea4-957f6a142f4a" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e76202ad-b025-4b8f-af3c-59a607a641cf?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bf39582e-b4a8-444d-aca5-376bfc7242ed?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -2831,7 +2899,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:07:37 GMT", + "Date": "Fri, 29 Apr 2022 04:30:29 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "160", @@ -2843,23 +2911,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "fbc2fe1d-57bc-4880-97da-5e9a4b7b1d80", - "x-ms-correlation-request-id": "054eb4a8-f872-423d-9047-05ea8e2aef96", - "x-ms-ratelimit-remaining-subscription-reads": "11963", - "x-ms-routing-request-id": "EASTUS2:20220425T050737Z:054eb4a8-f872-423d-9047-05ea8e2aef96" + "x-ms-arm-service-request-id": "183e494f-62f4-4463-9a27-847f7deb4d81", + "x-ms-correlation-request-id": "070572ec-14f1-4ce2-b21f-0135694ed93d", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T043030Z:070572ec-14f1-4ce2-b21f-0135694ed93d" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e76202ad-b025-4b8f-af3c-59a607a641cf?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bf39582e-b4a8-444d-aca5-376bfc7242ed?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -2867,7 +2935,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:10:18 GMT", + "Date": "Fri, 29 Apr 2022 04:33:11 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -2879,23 +2947,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "f695479d-fe47-4b96-b409-96c38f3ad4cb", - "x-ms-correlation-request-id": "963a4059-f37f-4b33-8ab3-2d7db1569fe6", - "x-ms-ratelimit-remaining-subscription-reads": "11962", - "x-ms-routing-request-id": "EASTUS2:20220425T051018Z:963a4059-f37f-4b33-8ab3-2d7db1569fe6" + "x-ms-arm-service-request-id": "1394ea88-1301-4053-909e-085adf8cf925", + "x-ms-correlation-request-id": "d2d86e19-e0ab-4fbd-9725-12548c8705c6", + "x-ms-ratelimit-remaining-subscription-reads": "11984", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T043312Z:d2d86e19-e0ab-4fbd-9725-12548c8705c6" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e76202ad-b025-4b8f-af3c-59a607a641cf?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bf39582e-b4a8-444d-aca5-376bfc7242ed?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -2903,7 +2971,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:11:57 GMT", + "Date": "Fri, 29 Apr 2022 04:34:53 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -2915,23 +2983,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "f775b16a-6050-49ff-8000-7e313c0acb83", - "x-ms-correlation-request-id": "ea4acb6e-3881-4f30-85d1-2401f6f835bb", - "x-ms-ratelimit-remaining-subscription-reads": "11961", - "x-ms-routing-request-id": "EASTUS2:20220425T051158Z:ea4acb6e-3881-4f30-85d1-2401f6f835bb" + "x-ms-arm-service-request-id": "d1fd718b-0cd7-45f7-83ea-fee96ef354bd", + "x-ms-correlation-request-id": "c22e6582-b0dc-47d9-b4d5-46d34e733dfb", + "x-ms-ratelimit-remaining-subscription-reads": "11983", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T043453Z:c22e6582-b0dc-47d9-b4d5-46d34e733dfb" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e76202ad-b025-4b8f-af3c-59a607a641cf?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bf39582e-b4a8-444d-aca5-376bfc7242ed?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -2939,7 +3007,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:13:38 GMT", + "Date": "Fri, 29 Apr 2022 04:36:34 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -2951,23 +3019,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "bdbf2582-73f8-4a15-9cad-3627d0a521cb", - "x-ms-correlation-request-id": "693b862e-79b5-447e-9cd2-04e8d491f0d0", - "x-ms-ratelimit-remaining-subscription-reads": "11960", - "x-ms-routing-request-id": "EASTUS2:20220425T051338Z:693b862e-79b5-447e-9cd2-04e8d491f0d0" + "x-ms-arm-service-request-id": "fb8b6e3b-8f7e-418e-82e8-a85fc174111a", + "x-ms-correlation-request-id": "9bfc6f5a-2f54-4dc3-981a-da5719c6a66e", + "x-ms-ratelimit-remaining-subscription-reads": "11982", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T043635Z:9bfc6f5a-2f54-4dc3-981a-da5719c6a66e" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e76202ad-b025-4b8f-af3c-59a607a641cf?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bf39582e-b4a8-444d-aca5-376bfc7242ed?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -2975,7 +3043,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:15:18 GMT", + "Date": "Fri, 29 Apr 2022 04:38:17 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -2987,23 +3055,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "055abab4-6e72-4ea0-aed2-0fd757ff9439", - "x-ms-correlation-request-id": "959269c9-2aa4-49e4-8a9a-c03f96992319", - "x-ms-ratelimit-remaining-subscription-reads": "11959", - "x-ms-routing-request-id": "EASTUS2:20220425T051518Z:959269c9-2aa4-49e4-8a9a-c03f96992319" + "x-ms-arm-service-request-id": "f5d34c51-d48b-4a86-8802-01a7d5851052", + "x-ms-correlation-request-id": "efdc4920-5ab7-452d-a8c0-298b18bfb90c", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T043818Z:efdc4920-5ab7-452d-a8c0-298b18bfb90c" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e76202ad-b025-4b8f-af3c-59a607a641cf?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bf39582e-b4a8-444d-aca5-376bfc7242ed?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -3011,7 +3079,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:16:59 GMT", + "Date": "Fri, 29 Apr 2022 04:39:58 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -3023,23 +3091,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "ebdd66de-560e-45a4-a78e-fbe14fb30b79", - "x-ms-correlation-request-id": "29661b39-e756-4bb6-9321-4d04123712c0", - "x-ms-ratelimit-remaining-subscription-reads": "11958", - "x-ms-routing-request-id": "EASTUS2:20220425T051659Z:29661b39-e756-4bb6-9321-4d04123712c0" + "x-ms-arm-service-request-id": "ce2d34f1-68a0-4ee9-b8cd-d2b84f05198b", + "x-ms-correlation-request-id": "7a922fdb-9e09-4eac-a0dd-40e86cfccd79", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T043959Z:7a922fdb-9e09-4eac-a0dd-40e86cfccd79" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e76202ad-b025-4b8f-af3c-59a607a641cf?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bf39582e-b4a8-444d-aca5-376bfc7242ed?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -3047,7 +3115,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:18:39 GMT", + "Date": "Fri, 29 Apr 2022 04:41:40 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -3059,23 +3127,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "c1495d2d-0a1e-4625-b0c0-988601f54e71", - "x-ms-correlation-request-id": "6b688ea8-b9c8-4ac2-b516-e3be9a0d9684", - "x-ms-ratelimit-remaining-subscription-reads": "11957", - "x-ms-routing-request-id": "EASTUS2:20220425T051839Z:6b688ea8-b9c8-4ac2-b516-e3be9a0d9684" + "x-ms-arm-service-request-id": "57668664-474a-4f84-9602-47b3c1460814", + "x-ms-correlation-request-id": "30aa95cf-c7dc-47a1-90d4-6e48ff6b6c33", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T044140Z:30aa95cf-c7dc-47a1-90d4-6e48ff6b6c33" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e76202ad-b025-4b8f-af3c-59a607a641cf?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bf39582e-b4a8-444d-aca5-376bfc7242ed?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -3083,7 +3151,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:20:20 GMT", + "Date": "Fri, 29 Apr 2022 04:43:21 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -3095,23 +3163,68 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "74e93887-2443-466a-9dc4-ce41dfa80d83", - "x-ms-correlation-request-id": "9f82d2a2-3f4e-4cfa-8246-4a8051cedb51", - "x-ms-ratelimit-remaining-subscription-reads": "11956", - "x-ms-routing-request-id": "EASTUS2:20220425T052020Z:9f82d2a2-3f4e-4cfa-8246-4a8051cedb51" + "x-ms-arm-service-request-id": "59613cc9-4bbe-483e-882c-1d9a2382c5fd", + "x-ms-correlation-request-id": "dc608360-218a-4735-83c8-25870697d8c4", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T044322Z:dc608360-218a-4735-83c8-25870697d8c4" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e76202ad-b025-4b8f-af3c-59a607a641cf?api-version=2021-08-01", + "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "413009f6-cc2d-49e8-a089-937b7a9bfd4a", + "Connection": "keep-alive", + "Content-Length": "291", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "cookie;", + "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.6.8 (Windows-10-10.0.19041-SP0)", + "x-client-cpu": "x64", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.17.0", + "x-ms-lib-capability": "retry-after, h429" + }, + "RequestBody": "client_id=a2df54d5-ab03-4725-9b80-9a00b3b1967f\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=0vj7Q%7EIsFayrD0V_8oyOfygU-GE3ELOabq95a\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "413009f6-cc2d-49e8-a089-937b7a9bfd4a", + "Content-Length": "93", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 29 Apr 2022 04:45:03 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": "[set-cookie;]", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.12651.9 - EUS ProdSlices", + "X-XSS-Protection": "0" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 3599, + "ext_expires_in": 3599, + "access_token": "access_token" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bf39582e-b4a8-444d-aca5-376bfc7242ed?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -3119,7 +3232,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:21:59 GMT", + "Date": "Fri, 29 Apr 2022 04:45:04 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -3131,23 +3244,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "968ceb93-cf1c-46f0-b350-aeded5143572", - "x-ms-correlation-request-id": "4cd1ddb3-cd82-4df4-9c6c-c4297faaa499", - "x-ms-ratelimit-remaining-subscription-reads": "11955", - "x-ms-routing-request-id": "EASTUS2:20220425T052200Z:4cd1ddb3-cd82-4df4-9c6c-c4297faaa499" + "x-ms-arm-service-request-id": "78943cfb-732c-422a-aa5c-a6c02d08b5b6", + "x-ms-correlation-request-id": "b90bf819-a332-4e69-8c67-f9c18ef0b5a3", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T044504Z:b90bf819-a332-4e69-8c67-f9c18ef0b5a3" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e76202ad-b025-4b8f-af3c-59a607a641cf?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bf39582e-b4a8-444d-aca5-376bfc7242ed?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -3155,7 +3268,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:23:39 GMT", + "Date": "Fri, 29 Apr 2022 04:46:45 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -3167,68 +3280,95 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "3d912bbd-25fe-4f76-aa84-f7a6a85d9dce", - "x-ms-correlation-request-id": "4cbb26b4-d82d-4643-b356-f09bd3df4359", - "x-ms-ratelimit-remaining-subscription-reads": "11954", - "x-ms-routing-request-id": "EASTUS2:20220425T052340Z:4cbb26b4-d82d-4643-b356-f09bd3df4359" + "x-ms-arm-service-request-id": "88d540cf-96a0-4080-9815-9c0687d26734", + "x-ms-correlation-request-id": "e3ccfc48-67d4-4cf1-b511-194e2e0a3e29", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T044646Z:e3ccfc48-67d4-4cf1-b511-194e2e0a3e29" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/oauth2/v2.0/token", - "RequestMethod": "POST", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bf39582e-b4a8-444d-aca5-376bfc7242ed?api-version=2021-08-01", + "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json", + "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "client-request-id": "b929fd68-0c12-449e-a0ad-ac4a35824f0d", "Connection": "keep-alive", - "Content-Length": "286", - "Content-Type": "application/x-www-form-urlencoded", - "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", - "x-client-cpu": "x64", - "x-client-current-telemetry": "4|730,0|", - "x-client-last-telemetry": "4|0|||", - "x-client-os": "linux", - "x-client-sku": "MSAL.Python", - "x-client-ver": "1.17.0", - "x-ms-lib-capability": "retry-after, h429" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, - "RequestBody": "client_id=8c41a920-007a-4844-a189-2d0efe39f51e\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=o0XWF_siD-FhI.5AE83-u0GaQHW_GP7cjy\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fmanagement.azure.com%2F.default", + "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "client-request-id": "b929fd68-0c12-449e-a0ad-ac4a35824f0d", - "Content-Length": "93", + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:25:20 GMT", + "Date": "Fri, 29 Apr 2022 04:48:26 GMT", "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Pragma": "no-cache", - "Set-Cookie": "[set-cookie;]", + "Retry-After": "100", + "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-clitelem": "1,0,0,,", - "x-ms-ests-server": "2.1.12651.7 - NCUS ProdSlices", - "X-XSS-Protection": "0" + "x-ms-arm-service-request-id": "56f03ebb-b12d-4ba8-bcf2-6eda8629a74d", + "x-ms-correlation-request-id": "7f2a6f71-3264-4273-bb75-a606466c0e17", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T044827Z:7f2a6f71-3264-4273-bb75-a606466c0e17" }, "ResponseBody": { - "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, - "access_token": "access_token" + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bf39582e-b4a8-444d-aca5-376bfc7242ed?api-version=2021-08-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 29 Apr 2022 04:50:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Retry-After": "100", + "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": "09b729fb-ac56-494b-8570-067753480156", + "x-ms-correlation-request-id": "841bb7ee-79ac-43a5-b31e-43db8e5eea96", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T045008Z:841bb7ee-79ac-43a5-b31e-43db8e5eea96" + }, + "ResponseBody": { + "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e76202ad-b025-4b8f-af3c-59a607a641cf?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bf39582e-b4a8-444d-aca5-376bfc7242ed?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -3236,7 +3376,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:25:21 GMT", + "Date": "Fri, 29 Apr 2022 04:51:49 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -3248,23 +3388,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "5e96db4c-a1c4-4437-be58-dabbf9a82bf3", - "x-ms-correlation-request-id": "ff33cd3a-188e-4b31-8d04-b0bdd757287b", - "x-ms-ratelimit-remaining-subscription-reads": "11953", - "x-ms-routing-request-id": "EASTUS2:20220425T052521Z:ff33cd3a-188e-4b31-8d04-b0bdd757287b" + "x-ms-arm-service-request-id": "37b6ab83-4d38-4e10-a570-d52d79ea360c", + "x-ms-correlation-request-id": "28026d89-ee43-481a-8677-aab6764a0489", + "x-ms-ratelimit-remaining-subscription-reads": "11981", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T045150Z:28026d89-ee43-481a-8677-aab6764a0489" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e76202ad-b025-4b8f-af3c-59a607a641cf?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bf39582e-b4a8-444d-aca5-376bfc7242ed?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -3272,7 +3412,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:27:00 GMT", + "Date": "Fri, 29 Apr 2022 04:53:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -3284,23 +3424,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "9165695b-56f5-4e7c-b6a2-fb1f20796a0a", - "x-ms-correlation-request-id": "8c301449-c079-4b2e-bde1-4c68afb987cc", - "x-ms-ratelimit-remaining-subscription-reads": "11952", - "x-ms-routing-request-id": "EASTUS2:20220425T052701Z:8c301449-c079-4b2e-bde1-4c68afb987cc" + "x-ms-arm-service-request-id": "36d6e9b6-9f87-4a6c-b8d5-fd30c5d58fb3", + "x-ms-correlation-request-id": "9fead144-6b61-45b3-a6d4-1aed65bd3840", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T045331Z:9fead144-6b61-45b3-a6d4-1aed65bd3840" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e76202ad-b025-4b8f-af3c-59a607a641cf?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bf39582e-b4a8-444d-aca5-376bfc7242ed?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -3308,7 +3448,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:28:41 GMT", + "Date": "Fri, 29 Apr 2022 04:55:12 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -3320,23 +3460,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "5a9796c6-0069-47df-87ab-a1557c2ad1bc", - "x-ms-correlation-request-id": "f6645049-6707-4ca0-9435-28d179be4bcb", - "x-ms-ratelimit-remaining-subscription-reads": "11951", - "x-ms-routing-request-id": "EASTUS2:20220425T052841Z:f6645049-6707-4ca0-9435-28d179be4bcb" + "x-ms-arm-service-request-id": "149b0929-f371-487d-bdf3-f9c7d3cca850", + "x-ms-correlation-request-id": "1c4f7ca0-5eb1-4826-b6bc-264d3ba4c579", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T045512Z:1c4f7ca0-5eb1-4826-b6bc-264d3ba4c579" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e76202ad-b025-4b8f-af3c-59a607a641cf?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bf39582e-b4a8-444d-aca5-376bfc7242ed?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -3344,7 +3484,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:30:20 GMT", + "Date": "Fri, 29 Apr 2022 04:56:53 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -3356,23 +3496,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "5318015c-cc90-4e98-99cc-2c0c7a6febf7", - "x-ms-correlation-request-id": "7d1f99a3-5424-4330-9772-bb7b05b19207", - "x-ms-ratelimit-remaining-subscription-reads": "11950", - "x-ms-routing-request-id": "EASTUS2:20220425T053021Z:7d1f99a3-5424-4330-9772-bb7b05b19207" + "x-ms-arm-service-request-id": "c831230d-81d1-4041-9af0-0caa1e4e3b2a", + "x-ms-correlation-request-id": "bc156370-ed2a-4094-843b-e1a4c347c94a", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T045654Z:bc156370-ed2a-4094-843b-e1a4c347c94a" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e76202ad-b025-4b8f-af3c-59a607a641cf?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bf39582e-b4a8-444d-aca5-376bfc7242ed?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -3380,7 +3520,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:32:01 GMT", + "Date": "Fri, 29 Apr 2022 04:58:34 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -3392,23 +3532,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "db8dd914-c9e1-49b5-8d0a-56a93baacd20", - "x-ms-correlation-request-id": "f081842c-0aa8-4b8a-bb87-c496f716c991", - "x-ms-ratelimit-remaining-subscription-reads": "11949", - "x-ms-routing-request-id": "EASTUS2:20220425T053201Z:f081842c-0aa8-4b8a-bb87-c496f716c991" + "x-ms-arm-service-request-id": "f73d04b3-fb63-49e5-a3dd-bb160fa18e99", + "x-ms-correlation-request-id": "1eff05d3-f356-4715-af70-49f3e7a4d0ac", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T045835Z:1eff05d3-f356-4715-af70-49f3e7a4d0ac" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e76202ad-b025-4b8f-af3c-59a607a641cf?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bf39582e-b4a8-444d-aca5-376bfc7242ed?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -3416,7 +3556,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:33:42 GMT", + "Date": "Fri, 29 Apr 2022 05:00:17 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -3427,10 +3567,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "77e1718a-4dd2-497e-bce9-b642e35ca51d", - "x-ms-correlation-request-id": "7d6f04db-5a9c-496b-9689-be2be49a3e14", - "x-ms-ratelimit-remaining-subscription-reads": "11948", - "x-ms-routing-request-id": "EASTUS2:20220425T053342Z:7d6f04db-5a9c-496b-9689-be2be49a3e14" + "x-ms-arm-service-request-id": "1ffc9a11-575c-4fb2-a883-2274a89c2403", + "x-ms-correlation-request-id": "472764af-638b-4e98-aa67-e14f959a8df1", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T050017Z:472764af-638b-4e98-aa67-e14f959a8df1" }, "ResponseBody": { "status": "Succeeded", @@ -3438,24 +3578,24 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/e76202ad-b025-4b8f-af3c-59a607a641cf?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/bf39582e-b4a8-444d-aca5-376bfc7242ed?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e76202ad-b025-4b8f-af3c-59a607a641cf?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bf39582e-b4a8-444d-aca5-376bfc7242ed?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:33:42 GMT", + "Date": "Fri, 29 Apr 2022 05:00:17 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/e76202ad-b025-4b8f-af3c-59a607a641cf?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/bf39582e-b4a8-444d-aca5-376bfc7242ed?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -3465,10 +3605,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "ee80787a-7d67-4d19-b09b-8fadc803c74b", - "x-ms-correlation-request-id": "c4798635-672e-4cc4-a160-63755e6d7a29", - "x-ms-ratelimit-remaining-subscription-reads": "11947", - "x-ms-routing-request-id": "EASTUS2:20220425T053342Z:fdff36aa-d976-4459-99b8-12494c062d55" + "x-ms-arm-service-request-id": "642827d2-cf7f-4105-a60d-59997ae0e8c8", + "x-ms-correlation-request-id": "8f5b3b02-f7c2-4962-88d9-97023dccc72a", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T050017Z:42c029fc-01b5-403d-a59c-335a9e9afca4" }, "ResponseBody": "null" }, @@ -3481,7 +3621,7 @@ "Connection": "keep-alive", "Content-Length": "46", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": { "tags": { @@ -3495,7 +3635,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:33:42 GMT", + "Date": "Fri, 29 Apr 2022 05:00:23 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -3507,15 +3647,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "e131bd02-8335-4e69-b0da-518801410b33", - "x-ms-correlation-request-id": "eba536b2-32a5-4898-82e2-a75d0a47fca9", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-routing-request-id": "EASTUS2:20220425T053342Z:eba536b2-32a5-4898-82e2-a75d0a47fca9" + "x-ms-arm-service-request-id": "72299635-6bf6-4d3f-bd88-6ecf2f855674", + "x-ms-correlation-request-id": "82ab18a9-c23b-40b2-b5ef-d9bbf01b736b", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T050023Z:82ab18a9-c23b-40b2-b5ef-d9bbf01b736b" }, "ResponseBody": { "name": "virtualhubxf36329e7", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualHubs/virtualhubxf36329e7", - "etag": "W/\u0022689b1775-20e8-4bb9-9cdf-653f19a31bae\u0022", + "etag": "W/\u002267a5bf51-dad3-4883-a34b-bf1ded3c1aa3\u0022", "type": "Microsoft.Network/virtualHubs", "location": "westus", "tags": { @@ -3528,8 +3668,8 @@ "addressPrefix": "10.168.0.0/24", "virtualRouterAsn": 65515, "virtualRouterIps": [ - "10.168.0.69", - "10.168.0.68" + "10.168.0.68", + "10.168.0.69" ], "routeTable": { "routes": [] @@ -3565,7 +3705,7 @@ "Connection": "keep-alive", "Content-Length": "46", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": { "tags": { @@ -3579,7 +3719,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:33:42 GMT", + "Date": "Fri, 29 Apr 2022 05:00:26 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -3590,15 +3730,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "79745863-23e5-483c-b6a7-28e74e525f49", - "x-ms-correlation-request-id": "f72d6029-a75d-44e1-8015-f46514a14e84", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-routing-request-id": "EASTUS2:20220425T053343Z:f72d6029-a75d-44e1-8015-f46514a14e84" + "x-ms-arm-service-request-id": "111d02a0-06e7-4fe3-8baf-410c2e70d6e2", + "x-ms-correlation-request-id": "54d319c5-47c0-48dd-8f2a-ab8d52694646", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T050027Z:54d319c5-47c0-48dd-8f2a-ab8d52694646" }, "ResponseBody": { "name": "virtualwanf36329e7", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualWans/virtualwanf36329e7", - "etag": "W/\u002290944434-4f00-499a-a15a-84f149135c32\u0022", + "etag": "W/\u00227000c958-70fe-4e9c-842f-ac46bde0d101\u0022", "type": "Microsoft.Network/virtualWans", "location": "westus", "tags": { @@ -3633,7 +3773,7 @@ "Connection": "keep-alive", "Content-Length": "46", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": { "tags": { @@ -3647,7 +3787,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:33:43 GMT", + "Date": "Fri, 29 Apr 2022 05:00:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -3658,15 +3798,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "04b04d26-0382-4b55-8529-70b47192ae2f", - "x-ms-correlation-request-id": "b33c2796-e9eb-4247-9653-164768136b6d", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-routing-request-id": "EASTUS2:20220425T053343Z:b33c2796-e9eb-4247-9653-164768136b6d" + "x-ms-arm-service-request-id": "72055566-563d-4552-9de4-0e35bd6bdfde", + "x-ms-correlation-request-id": "2d886f14-710c-4e67-a9d7-c49a898e1159", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T050029Z:2d886f14-710c-4e67-a9d7-c49a898e1159" }, "ResponseBody": { "name": "vnpsitef36329e7", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/vpnSites/vnpsitef36329e7", - "etag": "W/\u0022c634004c-8ce7-4949-af7a-c07991b537e8\u0022", + "etag": "W/\u0022fd2dd8ed-b560-4076-aa88-a57793514496\u0022", "type": "Microsoft.Network/vpnSites", "location": "westus", "tags": { @@ -3698,7 +3838,7 @@ { "name": "vpnSiteLink1", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/vpnSites/vnpsitef36329e7/vpnSiteLinks/vpnSiteLink1", - "etag": "W/\u0022c634004c-8ce7-4949-af7a-c07991b537e8\u0022", + "etag": "W/\u0022fd2dd8ed-b560-4076-aa88-a57793514496\u0022", "properties": { "provisioningState": "Succeeded", "ipAddress": "50.50.50.56", @@ -3726,7 +3866,7 @@ "Connection": "keep-alive", "Content-Length": "46", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": { "tags": { @@ -3740,7 +3880,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:33:43 GMT", + "Date": "Fri, 29 Apr 2022 05:00:36 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -3751,15 +3891,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "738f0654-bec7-47b2-aeb5-8099930d6591", - "x-ms-correlation-request-id": "a6cce421-fd2e-4e25-92f2-9aed9335fa1b", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-routing-request-id": "EASTUS2:20220425T053343Z:a6cce421-fd2e-4e25-92f2-9aed9335fa1b" + "x-ms-arm-service-request-id": "f7d5deff-668f-4ba6-b856-52bba0d2fe39", + "x-ms-correlation-request-id": "699d69af-1a80-4443-9093-bbc2a8c06928", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T050036Z:699d69af-1a80-4443-9093-bbc2a8c06928" }, "ResponseBody": { "name": "mySecurityPartnerProviderf36329e7", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/securityPartnerProviders/mySecurityPartnerProviderf36329e7", - "etag": "W/\u0022ae00bb6d-6e71-485e-9c53-2cf2111effd9\u0022", + "etag": "W/\u0022da9c29ab-afd6-497e-8aa7-e17f8feddefd\u0022", "type": "Microsoft.Network/securityPartnerProviders", "location": "westus", "tags": { @@ -3783,18 +3923,18 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/cd31d867-9f32-41e4-8e2b-d4c8b16e802a?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/796e5793-357b-4c91-ab40-3fa72cd19f80?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 05:33:43 GMT", + "Date": "Fri, 29 Apr 2022 05:00:37 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/cd31d867-9f32-41e4-8e2b-d4c8b16e802a?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/796e5793-357b-4c91-ab40-3fa72cd19f80?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -3803,21 +3943,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "f6288873-7fd2-4b91-bd2a-a473b02fd9d8", - "x-ms-correlation-request-id": "16fdecdb-aa71-4105-ba0a-ed9265f878b5", + "x-ms-arm-service-request-id": "98ac1c6f-52aa-4cfc-bc1d-c6e583d93149", + "x-ms-correlation-request-id": "589ef31b-57af-4947-88bb-d1c33cce9db5", "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-routing-request-id": "EASTUS2:20220425T053344Z:16fdecdb-aa71-4105-ba0a-ed9265f878b5" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T050037Z:589ef31b-57af-4947-88bb-d1c33cce9db5" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/cd31d867-9f32-41e4-8e2b-d4c8b16e802a?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/796e5793-357b-4c91-ab40-3fa72cd19f80?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -3825,7 +3965,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:33:53 GMT", + "Date": "Fri, 29 Apr 2022 05:00:47 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -3836,34 +3976,34 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "c92cd084-d70d-4add-8dec-ef9543680ed3", - "x-ms-correlation-request-id": "e00d0bbd-9e35-4413-9483-6b8201b1cb11", - "x-ms-ratelimit-remaining-subscription-reads": "11946", - "x-ms-routing-request-id": "EASTUS2:20220425T053354Z:e00d0bbd-9e35-4413-9483-6b8201b1cb11" + "x-ms-arm-service-request-id": "8d20f0f0-8144-4d1f-a114-ed34f4441ff6", + "x-ms-correlation-request-id": "36a85487-73ad-48c9-bf13-24be87b57983", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T050047Z:36a85487-73ad-48c9-bf13-24be87b57983" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/cd31d867-9f32-41e4-8e2b-d4c8b16e802a?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/796e5793-357b-4c91-ab40-3fa72cd19f80?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/cd31d867-9f32-41e4-8e2b-d4c8b16e802a?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/796e5793-357b-4c91-ab40-3fa72cd19f80?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:33:53 GMT", + "Date": "Fri, 29 Apr 2022 05:00:47 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/cd31d867-9f32-41e4-8e2b-d4c8b16e802a?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/796e5793-357b-4c91-ab40-3fa72cd19f80?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -3871,10 +4011,10 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "f6288873-7fd2-4b91-bd2a-a473b02fd9d8", - "x-ms-correlation-request-id": "16fdecdb-aa71-4105-ba0a-ed9265f878b5", - "x-ms-ratelimit-remaining-subscription-reads": "11945", - "x-ms-routing-request-id": "EASTUS2:20220425T053354Z:ff5e1a4b-c34a-45dc-82d9-9d0f9d8f33ba" + "x-ms-arm-service-request-id": "98ac1c6f-52aa-4cfc-bc1d-c6e583d93149", + "x-ms-correlation-request-id": "589ef31b-57af-4947-88bb-d1c33cce9db5", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T050048Z:bd4d13ac-1e84-426c-ad96-b6ab6dfa5aea" }, "ResponseBody": null }, @@ -3886,18 +4026,18 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/51a59874-f2bb-436d-9041-d2f33beeedd9?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c4acee6b-fcee-4a34-87fd-30b2f6534661?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 05:33:53 GMT", + "Date": "Fri, 29 Apr 2022 05:00:48 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/51a59874-f2bb-436d-9041-d2f33beeedd9?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/c4acee6b-fcee-4a34-87fd-30b2f6534661?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -3906,21 +4046,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "80adfaea-7d65-4b98-a9d2-2305e451318d", - "x-ms-correlation-request-id": "01dd626d-f645-41fa-86df-893aedfd064d", + "x-ms-arm-service-request-id": "b003b08e-eeb3-4606-80d3-30d50b655172", + "x-ms-correlation-request-id": "a64c4ee4-3646-40ec-a7e9-247f49e2e278", "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-routing-request-id": "EASTUS2:20220425T053354Z:01dd626d-f645-41fa-86df-893aedfd064d" + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T050049Z:a64c4ee4-3646-40ec-a7e9-247f49e2e278" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/51a59874-f2bb-436d-9041-d2f33beeedd9?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c4acee6b-fcee-4a34-87fd-30b2f6534661?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -3928,7 +4068,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:34:03 GMT", + "Date": "Fri, 29 Apr 2022 05:00:58 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -3940,23 +4080,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "483186df-6cd5-4979-9143-cad4f55d40e1", - "x-ms-correlation-request-id": "ec132272-2162-4ff7-b3c5-d2dd0cf80d43", - "x-ms-ratelimit-remaining-subscription-reads": "11944", - "x-ms-routing-request-id": "EASTUS2:20220425T053404Z:ec132272-2162-4ff7-b3c5-d2dd0cf80d43" + "x-ms-arm-service-request-id": "10441930-0672-418d-8d2e-329b8b70f2f9", + "x-ms-correlation-request-id": "d00e18ad-d81c-4309-a319-1902ffede96a", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T050059Z:d00e18ad-d81c-4309-a319-1902ffede96a" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/51a59874-f2bb-436d-9041-d2f33beeedd9?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c4acee6b-fcee-4a34-87fd-30b2f6534661?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -3964,7 +4104,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:34:14 GMT", + "Date": "Fri, 29 Apr 2022 05:01:08 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "20", @@ -3976,23 +4116,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "7ae06217-f17b-4cf3-96b8-a4d317fc498b", - "x-ms-correlation-request-id": "b28658b3-4630-4829-a5a1-36b0ff9b4a64", - "x-ms-ratelimit-remaining-subscription-reads": "11943", - "x-ms-routing-request-id": "EASTUS2:20220425T053414Z:b28658b3-4630-4829-a5a1-36b0ff9b4a64" + "x-ms-arm-service-request-id": "15eb8675-0f61-488a-a6eb-1a99dc0eb8bd", + "x-ms-correlation-request-id": "d5ac5cf2-a98f-40bc-8f37-6ba2d5477cef", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T050109Z:d5ac5cf2-a98f-40bc-8f37-6ba2d5477cef" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/51a59874-f2bb-436d-9041-d2f33beeedd9?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c4acee6b-fcee-4a34-87fd-30b2f6534661?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -4000,7 +4140,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:34:34 GMT", + "Date": "Fri, 29 Apr 2022 05:01:29 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "20", @@ -4012,23 +4152,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "209123ad-e11a-4b2c-8a27-ed9bb2bcc173", - "x-ms-correlation-request-id": "df6bef27-6f28-4ed9-ba8e-c9b63b0501e7", - "x-ms-ratelimit-remaining-subscription-reads": "11942", - "x-ms-routing-request-id": "EASTUS2:20220425T053434Z:df6bef27-6f28-4ed9-ba8e-c9b63b0501e7" + "x-ms-arm-service-request-id": "e65f3f58-900b-42af-964f-2bae8468495c", + "x-ms-correlation-request-id": "96cd5843-0510-4f87-a558-6802f3589fb5", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T050130Z:96cd5843-0510-4f87-a558-6802f3589fb5" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/51a59874-f2bb-436d-9041-d2f33beeedd9?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c4acee6b-fcee-4a34-87fd-30b2f6534661?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -4036,7 +4176,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:34:55 GMT", + "Date": "Fri, 29 Apr 2022 05:01:49 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "40", @@ -4048,23 +4188,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "3c14d03c-1511-42a3-9832-b0d968ce75b4", - "x-ms-correlation-request-id": "9ad28ce7-4268-4ff4-9eb2-46e4e30b3303", - "x-ms-ratelimit-remaining-subscription-reads": "11941", - "x-ms-routing-request-id": "EASTUS2:20220425T053455Z:9ad28ce7-4268-4ff4-9eb2-46e4e30b3303" + "x-ms-arm-service-request-id": "e2850e02-dd70-4332-9172-e4a21b66c458", + "x-ms-correlation-request-id": "f3c7146b-3712-47be-bcc0-081090bb86fd", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T050150Z:f3c7146b-3712-47be-bcc0-081090bb86fd" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/51a59874-f2bb-436d-9041-d2f33beeedd9?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c4acee6b-fcee-4a34-87fd-30b2f6534661?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -4072,7 +4212,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:35:34 GMT", + "Date": "Fri, 29 Apr 2022 05:02:30 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "40", @@ -4084,23 +4224,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "ba09e704-df0d-41e6-a1a7-170c7a273d1d", - "x-ms-correlation-request-id": "12718c6b-a563-4ec1-871d-fb122ed84452", - "x-ms-ratelimit-remaining-subscription-reads": "11941", - "x-ms-routing-request-id": "EASTUS2:20220425T053535Z:12718c6b-a563-4ec1-871d-fb122ed84452" + "x-ms-arm-service-request-id": "05249d19-01cd-445d-95fa-b0355d9ed214", + "x-ms-correlation-request-id": "4e0b94f5-dfd7-4d86-bbc4-6eb933772c10", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T050230Z:4e0b94f5-dfd7-4d86-bbc4-6eb933772c10" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/51a59874-f2bb-436d-9041-d2f33beeedd9?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c4acee6b-fcee-4a34-87fd-30b2f6534661?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -4108,7 +4248,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:36:15 GMT", + "Date": "Fri, 29 Apr 2022 05:03:10 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "80", @@ -4120,23 +4260,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "5403563b-403d-4690-bed2-c5717f41fb2d", - "x-ms-correlation-request-id": "1f33ef7c-af5e-4afe-95ac-db3e4a4edd14", - "x-ms-ratelimit-remaining-subscription-reads": "11940", - "x-ms-routing-request-id": "EASTUS2:20220425T053615Z:1f33ef7c-af5e-4afe-95ac-db3e4a4edd14" + "x-ms-arm-service-request-id": "c1aa7452-7477-4a40-b2e8-4f1cfb7ec4fa", + "x-ms-correlation-request-id": "efbca1fd-03fc-466f-bd46-aa94627f28b1", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T050311Z:efbca1fd-03fc-466f-bd46-aa94627f28b1" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/51a59874-f2bb-436d-9041-d2f33beeedd9?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c4acee6b-fcee-4a34-87fd-30b2f6534661?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -4144,7 +4284,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:37:35 GMT", + "Date": "Fri, 29 Apr 2022 05:04:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "160", @@ -4156,23 +4296,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "522db156-d474-4627-ba07-fc5a8d90d41b", - "x-ms-correlation-request-id": "d5987a38-be07-4753-8569-0f5663723623", - "x-ms-ratelimit-remaining-subscription-reads": "11939", - "x-ms-routing-request-id": "EASTUS2:20220425T053736Z:d5987a38-be07-4753-8569-0f5663723623" + "x-ms-arm-service-request-id": "ca566b5d-81f3-4455-8ba3-61bfe6204260", + "x-ms-correlation-request-id": "b2461e34-5f8c-497a-8a46-b7509014faf6", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T050432Z:b2461e34-5f8c-497a-8a46-b7509014faf6" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/51a59874-f2bb-436d-9041-d2f33beeedd9?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c4acee6b-fcee-4a34-87fd-30b2f6534661?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -4180,7 +4320,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:40:15 GMT", + "Date": "Fri, 29 Apr 2022 05:07:13 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -4192,23 +4332,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "f92a3de4-6da5-45f7-bc49-8081c085ab03", - "x-ms-correlation-request-id": "6288c0ab-9491-4b4d-b23c-8fb8b0e810e2", - "x-ms-ratelimit-remaining-subscription-reads": "11946", - "x-ms-routing-request-id": "EASTUS2:20220425T054016Z:6288c0ab-9491-4b4d-b23c-8fb8b0e810e2" + "x-ms-arm-service-request-id": "e011c8ec-4afa-4d58-97d1-b6c15209e51b", + "x-ms-correlation-request-id": "bab0870b-f605-497c-a616-78417737e2c4", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T050713Z:bab0870b-f605-497c-a616-78417737e2c4" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/51a59874-f2bb-436d-9041-d2f33beeedd9?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c4acee6b-fcee-4a34-87fd-30b2f6534661?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -4216,7 +4356,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:41:56 GMT", + "Date": "Fri, 29 Apr 2022 05:08:54 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -4228,23 +4368,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "6dda85af-e6f4-48ff-9061-537b90339509", - "x-ms-correlation-request-id": "6bba5a7f-d7a0-4619-a761-df25f25ec531", - "x-ms-ratelimit-remaining-subscription-reads": "11945", - "x-ms-routing-request-id": "EASTUS2:20220425T054156Z:6bba5a7f-d7a0-4619-a761-df25f25ec531" + "x-ms-arm-service-request-id": "6758a2b2-07a5-467c-98fa-89954f5cc72d", + "x-ms-correlation-request-id": "5037e600-605f-4deb-851d-5c0fce529b86", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T050854Z:5037e600-605f-4deb-851d-5c0fce529b86" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/51a59874-f2bb-436d-9041-d2f33beeedd9?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c4acee6b-fcee-4a34-87fd-30b2f6534661?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -4252,7 +4392,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:43:36 GMT", + "Date": "Fri, 29 Apr 2022 05:10:35 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -4264,23 +4404,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "a3e95ecd-9c27-4354-a4a6-fdba70764730", - "x-ms-correlation-request-id": "29c68038-a6a3-401f-ab17-227fd80c275d", - "x-ms-ratelimit-remaining-subscription-reads": "11944", - "x-ms-routing-request-id": "EASTUS2:20220425T054336Z:29c68038-a6a3-401f-ab17-227fd80c275d" + "x-ms-arm-service-request-id": "b19f3ead-86f5-4940-a4e8-86f66d4dd00c", + "x-ms-correlation-request-id": "f9c5189a-ab19-4002-a2d7-7ac82ca4bf9b", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T051036Z:f9c5189a-ab19-4002-a2d7-7ac82ca4bf9b" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/51a59874-f2bb-436d-9041-d2f33beeedd9?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c4acee6b-fcee-4a34-87fd-30b2f6534661?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -4288,7 +4428,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:45:16 GMT", + "Date": "Fri, 29 Apr 2022 05:12:16 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -4300,23 +4440,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "67e27e17-349f-4cb2-99ea-d2e94001d83c", - "x-ms-correlation-request-id": "6007364a-f285-48c2-bfe6-70266ff656a4", - "x-ms-ratelimit-remaining-subscription-reads": "11946", - "x-ms-routing-request-id": "EASTUS2:20220425T054516Z:6007364a-f285-48c2-bfe6-70266ff656a4" + "x-ms-arm-service-request-id": "c4132d48-6e5a-4ddf-8dd6-4c7dfe6b5b02", + "x-ms-correlation-request-id": "dcc2e4f6-0a96-4728-94fb-bc94e50bfc6d", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T051217Z:dcc2e4f6-0a96-4728-94fb-bc94e50bfc6d" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/51a59874-f2bb-436d-9041-d2f33beeedd9?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c4acee6b-fcee-4a34-87fd-30b2f6534661?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -4324,7 +4464,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:46:56 GMT", + "Date": "Fri, 29 Apr 2022 05:13:57 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -4336,31 +4476,31 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "cd9594ea-8014-4ac8-981c-23c4d86fd51d", - "x-ms-correlation-request-id": "35bad2ac-4368-4ca7-ba65-39fec4e3341b", - "x-ms-ratelimit-remaining-subscription-reads": "11945", - "x-ms-routing-request-id": "EASTUS2:20220425T054657Z:35bad2ac-4368-4ca7-ba65-39fec4e3341b" + "x-ms-arm-service-request-id": "ffa6da70-333f-47a2-8519-112a613a8c1c", + "x-ms-correlation-request-id": "ed87edd7-8b49-481f-bf54-caf593b52d63", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T051358Z:ed87edd7-8b49-481f-bf54-caf593b52d63" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/51a59874-f2bb-436d-9041-d2f33beeedd9?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c4acee6b-fcee-4a34-87fd-30b2f6534661?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Encoding": "gzip", + "Content-Length": "29", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:48:37 GMT", + "Date": "Fri, 29 Apr 2022 05:15:39 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -4368,37 +4508,35 @@ "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": "e5664626-a942-4429-bf50-dafc07582397", - "x-ms-correlation-request-id": "508198f6-4ebc-4b75-8e5e-28db92742885", - "x-ms-ratelimit-remaining-subscription-reads": "11944", - "x-ms-routing-request-id": "EASTUS2:20220425T054837Z:508198f6-4ebc-4b75-8e5e-28db92742885" + "x-ms-arm-service-request-id": "72a2c700-015e-408d-bb74-1f9784041351", + "x-ms-correlation-request-id": "02547c30-b082-4093-89ec-cbbd982293c5", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T051540Z:02547c30-b082-4093-89ec-cbbd982293c5" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/51a59874-f2bb-436d-9041-d2f33beeedd9?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/c4acee6b-fcee-4a34-87fd-30b2f6534661?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/51a59874-f2bb-436d-9041-d2f33beeedd9?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c4acee6b-fcee-4a34-87fd-30b2f6534661?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:48:37 GMT", + "Date": "Fri, 29 Apr 2022 05:15:39 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/51a59874-f2bb-436d-9041-d2f33beeedd9?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/c4acee6b-fcee-4a34-87fd-30b2f6534661?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -4406,10 +4544,10 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "80adfaea-7d65-4b98-a9d2-2305e451318d", - "x-ms-correlation-request-id": "01dd626d-f645-41fa-86df-893aedfd064d", - "x-ms-ratelimit-remaining-subscription-reads": "11943", - "x-ms-routing-request-id": "EASTUS2:20220425T054837Z:943e253d-2106-4ada-a2a7-ea13c111703d" + "x-ms-arm-service-request-id": "b003b08e-eeb3-4606-80d3-30d50b655172", + "x-ms-correlation-request-id": "a64c4ee4-3646-40ec-a7e9-247f49e2e278", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T051540Z:8e164cb9-12f6-43e2-86e8-b9fdac682357" }, "ResponseBody": null }, @@ -4421,18 +4559,18 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e046a9ab-6e76-46dc-ab45-723f466ff1ad?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57c9e9a5-e86e-4fbb-a899-2eebc2875306?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 05:48:37 GMT", + "Date": "Fri, 29 Apr 2022 05:15:40 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/e046a9ab-6e76-46dc-ab45-723f466ff1ad?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/57c9e9a5-e86e-4fbb-a899-2eebc2875306?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -4441,29 +4579,29 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "2afe658e-ad6f-4974-a58a-fc4526b391c0", - "x-ms-correlation-request-id": "be6038d3-f47d-49f9-874d-b8881f0a1644", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-routing-request-id": "EASTUS2:20220425T054838Z:be6038d3-f47d-49f9-874d-b8881f0a1644" + "x-ms-arm-service-request-id": "063c53aa-d8ec-40fb-b300-a77efe4d9e94", + "x-ms-correlation-request-id": "ed508309-5eba-4a01-a32a-cfe8b6f67acd", + "x-ms-ratelimit-remaining-subscription-deletes": "14999", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T051541Z:ed508309-5eba-4a01-a32a-cfe8b6f67acd" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e046a9ab-6e76-46dc-ab45-723f466ff1ad?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57c9e9a5-e86e-4fbb-a899-2eebc2875306?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Encoding": "gzip", + "Content-Length": "30", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:48:47 GMT", + "Date": "Fri, 29 Apr 2022 05:15:51 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "10", @@ -4472,34 +4610,32 @@ "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": "395d8b33-8828-4bdd-ad1c-6910be982135", - "x-ms-correlation-request-id": "d4bb95b7-ab79-4f9c-b771-5aa43ac64f1e", - "x-ms-ratelimit-remaining-subscription-reads": "11942", - "x-ms-routing-request-id": "EASTUS2:20220425T054848Z:d4bb95b7-ab79-4f9c-b771-5aa43ac64f1e" + "x-ms-arm-service-request-id": "27afe64e-9afc-403d-bb02-e70eae2a847b", + "x-ms-correlation-request-id": "5bbcf4e5-a5a2-41b1-94e6-8e984dc7d579", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T051551Z:5bbcf4e5-a5a2-41b1-94e6-8e984dc7d579" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e046a9ab-6e76-46dc-ab45-723f466ff1ad?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57c9e9a5-e86e-4fbb-a899-2eebc2875306?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Encoding": "gzip", + "Content-Length": "30", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:48:57 GMT", + "Date": "Fri, 29 Apr 2022 05:16:01 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "20", @@ -4508,34 +4644,32 @@ "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": "0140999b-ae42-40c5-932a-188a40faf2d4", - "x-ms-correlation-request-id": "dc1e1476-3b7a-4556-a5f2-5de50397c17a", - "x-ms-ratelimit-remaining-subscription-reads": "11941", - "x-ms-routing-request-id": "EASTUS2:20220425T054858Z:dc1e1476-3b7a-4556-a5f2-5de50397c17a" + "x-ms-arm-service-request-id": "752f606a-28d1-4d3a-acb4-fa3afa4e962a", + "x-ms-correlation-request-id": "2ece11b2-a843-4053-9d84-f427be37865f", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T051601Z:2ece11b2-a843-4053-9d84-f427be37865f" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e046a9ab-6e76-46dc-ab45-723f466ff1ad?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57c9e9a5-e86e-4fbb-a899-2eebc2875306?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Encoding": "gzip", + "Content-Length": "30", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:49:18 GMT", + "Date": "Fri, 29 Apr 2022 05:16:21 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "20", @@ -4544,34 +4678,32 @@ "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": "67c5f4f7-d077-436a-9678-0ef9405efe3f", - "x-ms-correlation-request-id": "20544dca-6b77-41d4-a7be-2b8c72e52ed8", - "x-ms-ratelimit-remaining-subscription-reads": "11940", - "x-ms-routing-request-id": "EASTUS2:20220425T054918Z:20544dca-6b77-41d4-a7be-2b8c72e52ed8" + "x-ms-arm-service-request-id": "5229b31c-ea1e-499e-9f59-2585fe306660", + "x-ms-correlation-request-id": "36eb3c62-4d54-42b6-84fc-e94a2886752e", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T051622Z:36eb3c62-4d54-42b6-84fc-e94a2886752e" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e046a9ab-6e76-46dc-ab45-723f466ff1ad?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57c9e9a5-e86e-4fbb-a899-2eebc2875306?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Encoding": "gzip", + "Content-Length": "30", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:49:37 GMT", + "Date": "Fri, 29 Apr 2022 05:16:42 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "40", @@ -4580,34 +4712,32 @@ "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": "8c8e91b6-2a99-430e-a649-c2160c853b61", - "x-ms-correlation-request-id": "263ef825-34c4-43a1-b915-6303f9ebf0fe", - "x-ms-ratelimit-remaining-subscription-reads": "11939", - "x-ms-routing-request-id": "EASTUS2:20220425T054938Z:263ef825-34c4-43a1-b915-6303f9ebf0fe" + "x-ms-arm-service-request-id": "8b52eecc-a53f-4936-8065-c773f6532291", + "x-ms-correlation-request-id": "f739a9d5-a355-4a2b-b9de-c47f11b6c869", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T051642Z:f739a9d5-a355-4a2b-b9de-c47f11b6c869" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e046a9ab-6e76-46dc-ab45-723f466ff1ad?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57c9e9a5-e86e-4fbb-a899-2eebc2875306?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Encoding": "gzip", + "Content-Length": "30", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:50:18 GMT", + "Date": "Fri, 29 Apr 2022 05:17:23 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "40", @@ -4616,34 +4746,32 @@ "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": "9691e183-9e7d-49fe-94cb-a34d067e37f9", - "x-ms-correlation-request-id": "ecc86992-2129-4699-8155-1eb387f75293", - "x-ms-ratelimit-remaining-subscription-reads": "11941", - "x-ms-routing-request-id": "EASTUS2:20220425T055018Z:ecc86992-2129-4699-8155-1eb387f75293" + "x-ms-arm-service-request-id": "c6d38648-1ddd-4143-972b-41e1c5e170bd", + "x-ms-correlation-request-id": "92166e3e-7b36-4afc-b6df-8ce0384978a4", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T051723Z:92166e3e-7b36-4afc-b6df-8ce0384978a4" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e046a9ab-6e76-46dc-ab45-723f466ff1ad?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57c9e9a5-e86e-4fbb-a899-2eebc2875306?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Encoding": "gzip", + "Content-Length": "30", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:50:58 GMT", + "Date": "Fri, 29 Apr 2022 05:18:03 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "80", @@ -4652,26 +4780,24 @@ "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": "0aa4bef9-ba94-4dea-a13e-e2158372f10d", - "x-ms-correlation-request-id": "ad92194e-0868-449c-a38d-2e456ecc050f", - "x-ms-ratelimit-remaining-subscription-reads": "11940", - "x-ms-routing-request-id": "EASTUS2:20220425T055058Z:ad92194e-0868-449c-a38d-2e456ecc050f" + "x-ms-arm-service-request-id": "c233adcf-f3c1-45a3-bde9-1bd264b04ca2", + "x-ms-correlation-request-id": "15ad6917-615f-420a-a6cd-cb89893b5048", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T051804Z:15ad6917-615f-420a-a6cd-cb89893b5048" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e046a9ab-6e76-46dc-ab45-723f466ff1ad?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57c9e9a5-e86e-4fbb-a899-2eebc2875306?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -4679,7 +4805,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:52:18 GMT", + "Date": "Fri, 29 Apr 2022 05:19:25 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "160", @@ -4691,23 +4817,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "432394ca-4c51-431e-8edf-b4085a12dd69", - "x-ms-correlation-request-id": "9d37ee38-ca32-4709-88e8-5c342e146a02", - "x-ms-ratelimit-remaining-subscription-reads": "11939", - "x-ms-routing-request-id": "EASTUS2:20220425T055219Z:9d37ee38-ca32-4709-88e8-5c342e146a02" + "x-ms-arm-service-request-id": "eb09e214-5284-4786-a843-f9c3b0ca0787", + "x-ms-correlation-request-id": "fd941897-19cb-4c98-a3cc-d34a545d7d38", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T051925Z:fd941897-19cb-4c98-a3cc-d34a545d7d38" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e046a9ab-6e76-46dc-ab45-723f466ff1ad?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57c9e9a5-e86e-4fbb-a899-2eebc2875306?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -4715,7 +4841,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:54:58 GMT", + "Date": "Fri, 29 Apr 2022 05:22:07 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -4727,23 +4853,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "dea563ab-a131-4598-a3f5-f6c4679af748", - "x-ms-correlation-request-id": "71c3caa9-c03c-4925-8aa3-26bcd2fcf5f4", - "x-ms-ratelimit-remaining-subscription-reads": "11938", - "x-ms-routing-request-id": "EASTUS2:20220425T055459Z:71c3caa9-c03c-4925-8aa3-26bcd2fcf5f4" + "x-ms-arm-service-request-id": "18119f22-b7c8-4767-ab0b-8a4fa919d292", + "x-ms-correlation-request-id": "ba8f76b1-a0d7-4cd5-ada9-031fea749828", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T052207Z:ba8f76b1-a0d7-4cd5-ada9-031fea749828" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e046a9ab-6e76-46dc-ab45-723f466ff1ad?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57c9e9a5-e86e-4fbb-a899-2eebc2875306?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -4751,7 +4877,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:56:39 GMT", + "Date": "Fri, 29 Apr 2022 05:23:47 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -4763,23 +4889,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "4eb3f705-a405-4c5d-b2f1-65e30e112f9d", - "x-ms-correlation-request-id": "1848c387-e3ea-4f62-bac8-9069fb1e7c06", - "x-ms-ratelimit-remaining-subscription-reads": "11940", - "x-ms-routing-request-id": "EASTUS2:20220425T055639Z:1848c387-e3ea-4f62-bac8-9069fb1e7c06" + "x-ms-arm-service-request-id": "786c6cd5-feeb-4439-a1af-f01e63110f8b", + "x-ms-correlation-request-id": "9908c61a-2879-4e45-9cb6-2f8eea87c1fc", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T052348Z:9908c61a-2879-4e45-9cb6-2f8eea87c1fc" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e046a9ab-6e76-46dc-ab45-723f466ff1ad?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57c9e9a5-e86e-4fbb-a899-2eebc2875306?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -4787,7 +4913,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:58:19 GMT", + "Date": "Fri, 29 Apr 2022 05:25:29 GMT", "Expires": "-1", "Pragma": "no-cache", "Retry-After": "100", @@ -4799,23 +4925,23 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "7d48375a-7ea2-4d41-aefc-3b5403426e0d", - "x-ms-correlation-request-id": "6ffc5dd5-9eb5-4f95-aef0-78bc9e6294ac", - "x-ms-ratelimit-remaining-subscription-reads": "11939", - "x-ms-routing-request-id": "EASTUS2:20220425T055819Z:6ffc5dd5-9eb5-4f95-aef0-78bc9e6294ac" + "x-ms-arm-service-request-id": "8136b7d6-eeb3-4986-a674-ca8d77c64621", + "x-ms-correlation-request-id": "fb18b952-8d4e-4b3e-881b-7d61381f5c3a", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T052530Z:fb18b952-8d4e-4b3e-881b-7d61381f5c3a" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e046a9ab-6e76-46dc-ab45-723f466ff1ad?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57c9e9a5-e86e-4fbb-a899-2eebc2875306?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -4823,7 +4949,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 05:59:59 GMT", + "Date": "Fri, 29 Apr 2022 05:27:11 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -4834,34 +4960,34 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "d2b9bcb2-6d64-4b8b-8678-8ced0263dce8", - "x-ms-correlation-request-id": "cab04b61-f33b-4b76-b462-49015d576d30", - "x-ms-ratelimit-remaining-subscription-reads": "11941", - "x-ms-routing-request-id": "EASTUS2:20220425T060000Z:cab04b61-f33b-4b76-b462-49015d576d30" + "x-ms-arm-service-request-id": "3df28c9a-0c66-425b-8fcc-1ad94d48e20d", + "x-ms-correlation-request-id": "01997e82-5ce6-47ac-9a04-e3c70a76fccc", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T052711Z:01997e82-5ce6-47ac-9a04-e3c70a76fccc" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/e046a9ab-6e76-46dc-ab45-723f466ff1ad?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/57c9e9a5-e86e-4fbb-a899-2eebc2875306?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e046a9ab-6e76-46dc-ab45-723f466ff1ad?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57c9e9a5-e86e-4fbb-a899-2eebc2875306?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 06:00:00 GMT", + "Date": "Fri, 29 Apr 2022 05:27:11 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/e046a9ab-6e76-46dc-ab45-723f466ff1ad?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/57c9e9a5-e86e-4fbb-a899-2eebc2875306?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -4869,10 +4995,10 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "2afe658e-ad6f-4974-a58a-fc4526b391c0", - "x-ms-correlation-request-id": "be6038d3-f47d-49f9-874d-b8881f0a1644", - "x-ms-ratelimit-remaining-subscription-reads": "11940", - "x-ms-routing-request-id": "EASTUS2:20220425T060000Z:794be916-c2dd-4e0e-8ca4-72249d53d9f4" + "x-ms-arm-service-request-id": "063c53aa-d8ec-40fb-b300-a77efe4d9e94", + "x-ms-correlation-request-id": "ed508309-5eba-4a01-a32a-cfe8b6f67acd", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T052712Z:ef23ff6b-010b-4d76-94b7-4bba1dfa1dbd" }, "ResponseBody": null }, @@ -4884,18 +5010,18 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/99ed3b5a-840c-4b19-baf5-c69ca14dcf42?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/2043bcbe-07d3-4890-9c40-54adea1255c7?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 06:00:00 GMT", + "Date": "Fri, 29 Apr 2022 05:27:12 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/99ed3b5a-840c-4b19-baf5-c69ca14dcf42?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/2043bcbe-07d3-4890-9c40-54adea1255c7?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -4904,21 +5030,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "32c26faa-429d-408e-a87a-dabf4404bed7", - "x-ms-correlation-request-id": "82c58ab1-9834-4dd9-b014-4ecfbdce44d4", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-routing-request-id": "EASTUS2:20220425T060000Z:82c58ab1-9834-4dd9-b014-4ecfbdce44d4" + "x-ms-arm-service-request-id": "bda85604-50c9-45f6-93c6-95c249f99623", + "x-ms-correlation-request-id": "349aa064-5ecc-49e7-9e44-55a48fd9e3da", + "x-ms-ratelimit-remaining-subscription-deletes": "14999", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T052712Z:349aa064-5ecc-49e7-9e44-55a48fd9e3da" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/99ed3b5a-840c-4b19-baf5-c69ca14dcf42?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/2043bcbe-07d3-4890-9c40-54adea1255c7?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -4926,7 +5052,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 06:00:10 GMT", + "Date": "Fri, 29 Apr 2022 05:27:23 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -4937,34 +5063,34 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "14f80348-44ef-47a1-9c1e-45c28003e7ab", - "x-ms-correlation-request-id": "4b5a1567-5097-482f-9987-7bd75dc79f38", - "x-ms-ratelimit-remaining-subscription-reads": "11939", - "x-ms-routing-request-id": "EASTUS2:20220425T060010Z:4b5a1567-5097-482f-9987-7bd75dc79f38" + "x-ms-arm-service-request-id": "a7e6e2bb-a2f0-4f97-87dc-eff67756c081", + "x-ms-correlation-request-id": "be6a42c8-73fa-4bd7-89cf-f50dce0a8939", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T052723Z:be6a42c8-73fa-4bd7-89cf-f50dce0a8939" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/99ed3b5a-840c-4b19-baf5-c69ca14dcf42?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/2043bcbe-07d3-4890-9c40-54adea1255c7?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/99ed3b5a-840c-4b19-baf5-c69ca14dcf42?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/2043bcbe-07d3-4890-9c40-54adea1255c7?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 06:00:10 GMT", + "Date": "Fri, 29 Apr 2022 05:27:23 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/99ed3b5a-840c-4b19-baf5-c69ca14dcf42?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/2043bcbe-07d3-4890-9c40-54adea1255c7?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -4972,10 +5098,10 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "32c26faa-429d-408e-a87a-dabf4404bed7", - "x-ms-correlation-request-id": "82c58ab1-9834-4dd9-b014-4ecfbdce44d4", - "x-ms-ratelimit-remaining-subscription-reads": "11938", - "x-ms-routing-request-id": "EASTUS2:20220425T060010Z:37195bd2-fb5b-45be-a524-4847eafb3790" + "x-ms-arm-service-request-id": "bda85604-50c9-45f6-93c6-95c249f99623", + "x-ms-correlation-request-id": "349aa064-5ecc-49e7-9e44-55a48fd9e3da", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T052723Z:3a752baa-fde3-4916-bb16-066ba641e597" }, "ResponseBody": null }, @@ -4987,18 +5113,18 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/db4dc369-265e-4409-8bfb-ed2d3ee7560a?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c45494ad-6f1b-4431-af71-0ae3f3df07fc?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 06:00:10 GMT", + "Date": "Fri, 29 Apr 2022 05:27:24 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/db4dc369-265e-4409-8bfb-ed2d3ee7560a?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/c45494ad-6f1b-4431-af71-0ae3f3df07fc?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -5007,21 +5133,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "0e248b14-7c25-48d3-a066-85a134f4195a", - "x-ms-correlation-request-id": "69c0db2f-d70f-4069-867f-9d773de1f30e", - "x-ms-ratelimit-remaining-subscription-deletes": "14995", - "x-ms-routing-request-id": "EASTUS2:20220425T060011Z:69c0db2f-d70f-4069-867f-9d773de1f30e" + "x-ms-arm-service-request-id": "fe7fb812-1458-49c8-bcc8-d987c4f7910b", + "x-ms-correlation-request-id": "f5fb9a3e-baf2-4d63-83ea-47addeb0866e", + "x-ms-ratelimit-remaining-subscription-deletes": "14998", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T052724Z:f5fb9a3e-baf2-4d63-83ea-47addeb0866e" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/db4dc369-265e-4409-8bfb-ed2d3ee7560a?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c45494ad-6f1b-4431-af71-0ae3f3df07fc?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -5029,7 +5155,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 06:00:20 GMT", + "Date": "Fri, 29 Apr 2022 05:27:34 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -5040,34 +5166,34 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "bc097bd2-d816-4c33-b77b-fbdc12c65c75", - "x-ms-correlation-request-id": "bd876f5e-1b1e-4157-8578-0773e79cefb3", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-routing-request-id": "EASTUS2:20220425T060021Z:bd876f5e-1b1e-4157-8578-0773e79cefb3" + "x-ms-arm-service-request-id": "06c575e6-b521-44de-8c2a-5d42ed2497dc", + "x-ms-correlation-request-id": "84f774a7-2864-4a6a-9b5b-0268ec01c538", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T052734Z:84f774a7-2864-4a6a-9b5b-0268ec01c538" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/db4dc369-265e-4409-8bfb-ed2d3ee7560a?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/c45494ad-6f1b-4431-af71-0ae3f3df07fc?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.6.8 (Windows-10-10.0.19041-SP0)" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/db4dc369-265e-4409-8bfb-ed2d3ee7560a?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c45494ad-6f1b-4431-af71-0ae3f3df07fc?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 06:00:20 GMT", + "Date": "Fri, 29 Apr 2022 05:27:34 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/db4dc369-265e-4409-8bfb-ed2d3ee7560a?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/c45494ad-6f1b-4431-af71-0ae3f3df07fc?api-version=2021-08-01", "Pragma": "no-cache", "Server": [ "Microsoft-HTTPAPI/2.0", @@ -5075,10 +5201,10 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "0e248b14-7c25-48d3-a066-85a134f4195a", - "x-ms-correlation-request-id": "69c0db2f-d70f-4069-867f-9d773de1f30e", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-routing-request-id": "EASTUS2:20220425T060021Z:8261e593-3db0-410d-9c78-22729f509eb2" + "x-ms-arm-service-request-id": "fe7fb812-1458-49c8-bcc8-d987c4f7910b", + "x-ms-correlation-request-id": "f5fb9a3e-baf2-4d63-83ea-47addeb0866e", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220429T052735Z:8a660008-d697-421a-ad24-e8f9984005d4" }, "ResponseBody": null } diff --git a/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_web_application_firewall_policy.pyTestMgmtNetworktest_network.json b/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_web_application_firewall_policy.pyTestMgmtNetworktest_network.json index afba7c49df3d..ed19d3db4063 100644 --- a/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_web_application_firewall_policy.pyTestMgmtNetworktest_network.json +++ b/sdk/network/azure-mgmt-network/tests/recordings/test_cli_mgmt_network_web_application_firewall_policy.pyTestMgmtNetworktest_network.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -17,12 +17,12 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "1753", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 06:55:28 GMT", + "Date": "Thu, 28 Apr 2022 11:11:01 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12651.7 - EUS ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - SCUS ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -101,7 +101,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -111,12 +111,12 @@ "Cache-Control": "max-age=86400, private", "Content-Length": "945", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 06:55:29 GMT", + "Date": "Thu, 28 Apr 2022 11:11:01 GMT", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Set-Cookie": "[set-cookie;]", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12651.7 - SCUS ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - SCUS ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -172,12 +172,12 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "client-request-id": "aa7609ae-69a7-45c6-962c-f72a2eb096d1", + "client-request-id": "5f98aed9-4b5c-422f-8d05-db25040c83b6", "Connection": "keep-alive", "Content-Length": "286", "Content-Type": "application/x-www-form-urlencoded", "Cookie": "cookie;", - "User-Agent": "azsdk-python-identity/1.10.0b2 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", + "User-Agent": "azsdk-python-identity/1.10.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", @@ -190,10 +190,10 @@ "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "client-request-id": "aa7609ae-69a7-45c6-962c-f72a2eb096d1", + "client-request-id": "5f98aed9-4b5c-422f-8d05-db25040c83b6", "Content-Length": "93", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 06:55:29 GMT", + "Date": "Thu, 28 Apr 2022 11:11:01 GMT", "Expires": "-1", "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", "Pragma": "no-cache", @@ -201,7 +201,7 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", - "x-ms-ests-server": "2.1.12651.7 - NCUS ProdSlices", + "x-ms-ests-server": "2.1.12651.9 - WUS2 ProdSlices", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -220,7 +220,7 @@ "Connection": "keep-alive", "Content-Length": "147", "Content-Type": "application/json", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": { "location": "WestUs", @@ -239,11 +239,11 @@ "StatusCode": 201, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c4a3881f-c9aa-432f-b565-61cbd796f0d1?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/4436b746-5266-474a-9463-bd097f2a5ed9?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "863", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 06:55:29 GMT", + "Date": "Thu, 28 Apr 2022 11:11:02 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -252,15 +252,15 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "122f0a4e-d59b-4949-8b6c-e9fe44129808", - "x-ms-correlation-request-id": "6552b27e-89b5-43b8-b8ef-7ef2acd6d768", - "x-ms-ratelimit-remaining-subscription-writes": "1180", - "x-ms-routing-request-id": "EASTUS2:20220425T065530Z:6552b27e-89b5-43b8-b8ef-7ef2acd6d768" + "x-ms-arm-service-request-id": "4b3d0c96-a5b7-4588-ad43-a16b5c3c7924", + "x-ms-correlation-request-id": "51e26825-f252-4a1d-857f-5f97b5456cca", + "x-ms-ratelimit-remaining-subscription-writes": "1194", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T111102Z:51e26825-f252-4a1d-857f-5f97b5456cca" }, "ResponseBody": { "name": "myPolicy", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/myPolicy", - "etag": "W/\u0022f7da352e-dd5c-403c-9b05-32cec27a8850\u0022", + "etag": "W/\u002234a1a3e7-910b-43c7-92ee-9ee1f98d4783\u0022", "type": "Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies", "location": "westus", "properties": { @@ -293,7 +293,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -301,8 +301,8 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 06:55:29 GMT", - "ETag": "W/\u0022bb993057-703b-4184-8b25-05140add5dbb\u0022", + "Date": "Thu, 28 Apr 2022 11:11:02 GMT", + "ETag": "W/\u002228ba5807-e3eb-4224-b582-21335a9a37cd\u0022", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -313,15 +313,15 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "07e25700-41b7-480d-94c3-ef45b3dd2fc3", - "x-ms-correlation-request-id": "dc5a283b-f4d1-45e1-a927-7f7f8472d87a", - "x-ms-ratelimit-remaining-subscription-reads": "11912", - "x-ms-routing-request-id": "EASTUS2:20220425T065530Z:dc5a283b-f4d1-45e1-a927-7f7f8472d87a" + "x-ms-arm-service-request-id": "5b9a553f-adc7-4b5e-8fb1-d19c9a72ad08", + "x-ms-correlation-request-id": "577b17d6-bcbf-4ecc-b58b-e19ad5102978", + "x-ms-ratelimit-remaining-subscription-reads": "11948", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T111102Z:577b17d6-bcbf-4ecc-b58b-e19ad5102978" }, "ResponseBody": { "name": "myPolicy", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/myPolicy", - "etag": "W/\u0022bb993057-703b-4184-8b25-05140add5dbb\u0022", + "etag": "W/\u002228ba5807-e3eb-4224-b582-21335a9a37cd\u0022", "type": "Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies", "location": "westus", "properties": { @@ -355,18 +355,18 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/a8d14082-1f92-4b09-9207-491596353916?api-version=2021-08-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/cc95fb1c-da90-41a4-a4bd-386966dad437?api-version=2021-08-01", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 25 Apr 2022 06:55:29 GMT", + "Date": "Thu, 28 Apr 2022 11:11:02 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/a8d14082-1f92-4b09-9207-491596353916?api-version=2021-08-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/cc95fb1c-da90-41a4-a4bd-386966dad437?api-version=2021-08-01", "Pragma": "no-cache", "Retry-After": "10", "Server": [ @@ -375,21 +375,21 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "055a99af-73e2-41c0-b1b3-ffccf8075b84", - "x-ms-correlation-request-id": "d99179b2-175f-4826-a30e-2144f29bf9ea", + "x-ms-arm-service-request-id": "0c5780ad-bb57-435a-8949-96cdc83fadfa", + "x-ms-correlation-request-id": "14203ff9-06ff-464a-a94d-4aac21c7a0eb", "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-routing-request-id": "EASTUS2:20220425T065530Z:d99179b2-175f-4826-a30e-2144f29bf9ea" + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T111103Z:14203ff9-06ff-464a-a94d-4aac21c7a0eb" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/a8d14082-1f92-4b09-9207-491596353916?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/cc95fb1c-da90-41a4-a4bd-386966dad437?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 200, @@ -397,7 +397,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 06:55:40 GMT", + "Date": "Thu, 28 Apr 2022 11:11:12 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -408,30 +408,30 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "6f98a797-652a-4402-b840-342b43a38f7e", - "x-ms-correlation-request-id": "d1ea6e8f-2a22-4622-8892-aeb0bf8fa3f7", - "x-ms-ratelimit-remaining-subscription-reads": "11911", - "x-ms-routing-request-id": "EASTUS2:20220425T065540Z:d1ea6e8f-2a22-4622-8892-aeb0bf8fa3f7" + "x-ms-arm-service-request-id": "b26281d5-0296-4a5d-8dc4-be1b2bcde9a1", + "x-ms-correlation-request-id": "b11089dd-a46e-4a98-b8a0-6725ca2a21af", + "x-ms-ratelimit-remaining-subscription-reads": "11947", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T111113Z:b11089dd-a46e-4a98-b8a0-6725ca2a21af" }, "ResponseBody": { "status": "Succeeded" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/a8d14082-1f92-4b09-9207-491596353916?api-version=2021-08-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/cc95fb1c-da90-41a4-a4bd-386966dad437?api-version=2021-08-01", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1021-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" + "User-Agent": "azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.12 (Linux-5.13.0-1022-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2500_0" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 25 Apr 2022 06:55:40 GMT", + "Date": "Thu, 28 Apr 2022 11:11:12 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": [ @@ -440,10 +440,10 @@ ], "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "055a99af-73e2-41c0-b1b3-ffccf8075b84", - "x-ms-correlation-request-id": "d99179b2-175f-4826-a30e-2144f29bf9ea", - "x-ms-ratelimit-remaining-subscription-reads": "11910", - "x-ms-routing-request-id": "EASTUS2:20220425T065540Z:bdfd5a47-9980-455f-b41c-dec1a27031da" + "x-ms-arm-service-request-id": "0c5780ad-bb57-435a-8949-96cdc83fadfa", + "x-ms-correlation-request-id": "14203ff9-06ff-464a-a94d-4aac21c7a0eb", + "x-ms-ratelimit-remaining-subscription-reads": "11946", + "x-ms-routing-request-id": "NORTHCENTRALUS:20220428T111113Z:26fd0613-fd73-40d9-946a-09c4c94d9c9d" }, "ResponseBody": null } diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/CHANGELOG.md b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/CHANGELOG.md index ba5f6d80f222..a992eaede955 100644 --- a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/CHANGELOG.md +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/CHANGELOG.md @@ -1,5 +1,18 @@ # Release History +## 1.1.0 (2022-05-10) + +**Features** + + - Added operation OpenShiftClustersOperations.list_admin_credentials + - Model ClusterProfile has a new parameter fips_validated_modules + - Model MasterProfile has a new parameter disk_encryption_set_id + - Model MasterProfile has a new parameter encryption_at_host + - Model OpenShiftCluster has a new parameter system_data + - Model OpenShiftClusterUpdate has a new parameter system_data + - Model WorkerProfile has a new parameter disk_encryption_set_id + - Model WorkerProfile has a new parameter encryption_at_host + ## 1.0.0 (2021-05-20) - GA release diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/_meta.json b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/_meta.json index cd5964bbe160..c521420e8823 100644 --- a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/_meta.json +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/_meta.json @@ -1,11 +1,11 @@ { - "autorest": "3.4.2", + "autorest": "3.7.2", "use": [ - "@autorest/python@5.8.0", - "@autorest/modelerfour@4.19.1" + "@autorest/python@5.13.0", + "@autorest/modelerfour@4.19.3" ], - "commit": "790522f1d12ec3de2274bd65bd623e99399571b9", + "commit": "50ed15bd61ac79f2368d769df0c207a00b9e099f", "repository_url": "https://github.com/Azure/azure-rest-api-specs", - "autorest_command": "autorest specification/redhatopenshift/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/redhatopenshift/resource-manager/readme.md --multiapi --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.13.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2", "readme": "specification/redhatopenshift/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/__init__.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/__init__.py index d14390eec7a3..580098c41dd4 100644 --- a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/__init__.py +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/__init__.py @@ -6,8 +6,8 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._azure_red_hat_open_shift4_client import AzureRedHatOpenShift4Client -__all__ = ['AzureRedHatOpenShift4Client'] +from ._azure_red_hat_open_shift_client import AzureRedHatOpenShiftClient +__all__ = ['AzureRedHatOpenShiftClient'] try: from ._patch import patch_sdk # type: ignore diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/_azure_red_hat_open_shift4_client.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/_azure_red_hat_open_shift_client.py similarity index 72% rename from sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/_azure_red_hat_open_shift4_client.py rename to sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/_azure_red_hat_open_shift_client.py index aac283a34cb2..23b5f929e52b 100644 --- a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/_azure_red_hat_open_shift4_client.py +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/_azure_red_hat_open_shift_client.py @@ -11,19 +11,19 @@ from typing import TYPE_CHECKING +from msrest import Deserializer, Serializer + 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 AzureRedHatOpenShift4ClientConfiguration +from ._configuration import AzureRedHatOpenShiftClientConfiguration 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): @@ -32,7 +32,7 @@ def __init__(self, *args, **kwargs): """ pass -class AzureRedHatOpenShift4Client(MultiApiClientMixin, _SDKClient): +class AzureRedHatOpenShiftClient(MultiApiClientMixin, _SDKClient): """Rest API for Azure Red Hat OpenShift 4. This ready contains multiple API versions, to help you deal with all of the Azure clouds @@ -56,8 +56,8 @@ class AzureRedHatOpenShift4Client(MultiApiClientMixin, _SDKClient): :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ - DEFAULT_API_VERSION = '2020-04-30' - _PROFILE_TAG = "azure.mgmt.redhatopenshift.AzureRedHatOpenShift4Client" + DEFAULT_API_VERSION = '2022-04-01' + _PROFILE_TAG = "azure.mgmt.redhatopenshift.AzureRedHatOpenShiftClient" LATEST_PROFILE = ProfileDefinition({ _PROFILE_TAG: { None: DEFAULT_API_VERSION, @@ -70,15 +70,13 @@ def __init__( credential, # type: "TokenCredential" subscription_id, # type: str api_version=None, # type: Optional[str] - base_url=None, # type: Optional[str] + base_url="https://management.azure.com", # type: str profile=KnownProfiles.default, # type: KnownProfiles **kwargs # type: Any ): - if not base_url: - base_url = 'https://management.azure.com' - self._config = AzureRedHatOpenShift4ClientConfiguration(credential, subscription_id, **kwargs) + self._config = AzureRedHatOpenShiftClientConfiguration(credential, subscription_id, **kwargs) self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs) - super(AzureRedHatOpenShift4Client, self).__init__( + super(AzureRedHatOpenShiftClient, self).__init__( api_version=api_version, profile=profile ) @@ -92,10 +90,18 @@ def models(cls, api_version=DEFAULT_API_VERSION): """Module depends on the API version: * 2020-04-30: :mod:`v2020_04_30.models` + * 2021-09-01-preview: :mod:`v2021_09_01_preview.models` + * 2022-04-01: :mod:`v2022_04_01.models` """ if api_version == '2020-04-30': from .v2020_04_30 import models return models + elif api_version == '2021-09-01-preview': + from .v2021_09_01_preview import models + return models + elif api_version == '2022-04-01': + from .v2022_04_01 import models + return models raise ValueError("API version {} is not available".format(api_version)) @property @@ -103,10 +109,16 @@ def open_shift_clusters(self): """Instance depends on the API version: * 2020-04-30: :class:`OpenShiftClustersOperations` + * 2021-09-01-preview: :class:`OpenShiftClustersOperations` + * 2022-04-01: :class:`OpenShiftClustersOperations` """ api_version = self._get_api_version('open_shift_clusters') if api_version == '2020-04-30': from .v2020_04_30.operations import OpenShiftClustersOperations as OperationClass + elif api_version == '2021-09-01-preview': + from .v2021_09_01_preview.operations import OpenShiftClustersOperations as OperationClass + elif api_version == '2022-04-01': + from .v2022_04_01.operations import OpenShiftClustersOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'open_shift_clusters'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -116,10 +128,16 @@ def operations(self): """Instance depends on the API version: * 2020-04-30: :class:`Operations` + * 2021-09-01-preview: :class:`Operations` + * 2022-04-01: :class:`Operations` """ api_version = self._get_api_version('operations') if api_version == '2020-04-30': from .v2020_04_30.operations import Operations as OperationClass + elif api_version == '2021-09-01-preview': + from .v2021_09_01_preview.operations import Operations as OperationClass + elif api_version == '2022-04-01': + from .v2022_04_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))) diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/_configuration.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/_configuration.py index 64d076af141e..33bbccb96e67 100644 --- a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/_configuration.py +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/_configuration.py @@ -12,7 +12,7 @@ from azure.core.configuration import Configuration from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy from ._version import VERSION @@ -22,8 +22,8 @@ from azure.core.credentials import TokenCredential -class AzureRedHatOpenShift4ClientConfiguration(Configuration): - """Configuration for AzureRedHatOpenShift4Client. +class AzureRedHatOpenShiftClientConfiguration(Configuration): + """Configuration for AzureRedHatOpenShiftClient. Note that all parameters used to create this instance are saved as instance attributes. @@ -45,7 +45,7 @@ def __init__( raise ValueError("Parameter 'credential' must not be None.") if subscription_id is None: raise ValueError("Parameter 'subscription_id' must not be None.") - super(AzureRedHatOpenShift4ClientConfiguration, self).__init__(**kwargs) + super(AzureRedHatOpenShiftClientConfiguration, self).__init__(**kwargs) self.credential = credential self.subscription_id = subscription_id @@ -68,4 +68,4 @@ def _configure( 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) + self.authentication_policy = ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/_version.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/_version.py index 6fbca6ef56c6..4ed38d239ed7 100644 --- a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/_version.py +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/_version.py @@ -6,5 +6,5 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "1.0.0" +VERSION = "1.1.0" diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/aio/__init__.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/aio/__init__.py index e9ab58f8e74d..f1c73a4bb9e1 100644 --- a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/aio/__init__.py +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/aio/__init__.py @@ -6,5 +6,5 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._azure_red_hat_open_shift4_client import AzureRedHatOpenShift4Client -__all__ = ['AzureRedHatOpenShift4Client'] +from ._azure_red_hat_open_shift_client import AzureRedHatOpenShiftClient +__all__ = ['AzureRedHatOpenShiftClient'] diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/aio/_azure_red_hat_open_shift4_client.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/aio/_azure_red_hat_open_shift_client.py similarity index 72% rename from sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/aio/_azure_red_hat_open_shift4_client.py rename to sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/aio/_azure_red_hat_open_shift_client.py index fa2f4f744697..11ba3a9e93ec 100644 --- a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/aio/_azure_red_hat_open_shift4_client.py +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/aio/_azure_red_hat_open_shift_client.py @@ -11,16 +11,17 @@ from typing import Any, Optional, TYPE_CHECKING -from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from msrest import Deserializer, Serializer + 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 AzureRedHatOpenShift4ClientConfiguration +from ._configuration import AzureRedHatOpenShiftClientConfiguration if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials import TokenCredential from azure.core.credentials_async import AsyncTokenCredential class _SDKClient(object): @@ -30,7 +31,7 @@ def __init__(self, *args, **kwargs): """ pass -class AzureRedHatOpenShift4Client(MultiApiClientMixin, _SDKClient): +class AzureRedHatOpenShiftClient(MultiApiClientMixin, _SDKClient): """Rest API for Azure Red Hat OpenShift 4. This ready contains multiple API versions, to help you deal with all of the Azure clouds @@ -54,8 +55,8 @@ class AzureRedHatOpenShift4Client(MultiApiClientMixin, _SDKClient): :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ - DEFAULT_API_VERSION = '2020-04-30' - _PROFILE_TAG = "azure.mgmt.redhatopenshift.AzureRedHatOpenShift4Client" + DEFAULT_API_VERSION = '2022-04-01' + _PROFILE_TAG = "azure.mgmt.redhatopenshift.AzureRedHatOpenShiftClient" LATEST_PROFILE = ProfileDefinition({ _PROFILE_TAG: { None: DEFAULT_API_VERSION, @@ -68,15 +69,13 @@ def __init__( credential: "AsyncTokenCredential", subscription_id: str, api_version: Optional[str] = None, - base_url: Optional[str] = None, + base_url: str = "https://management.azure.com", profile: KnownProfiles = KnownProfiles.default, **kwargs # type: Any ) -> None: - if not base_url: - base_url = 'https://management.azure.com' - self._config = AzureRedHatOpenShift4ClientConfiguration(credential, subscription_id, **kwargs) + self._config = AzureRedHatOpenShiftClientConfiguration(credential, subscription_id, **kwargs) self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs) - super(AzureRedHatOpenShift4Client, self).__init__( + super(AzureRedHatOpenShiftClient, self).__init__( api_version=api_version, profile=profile ) @@ -90,10 +89,18 @@ def models(cls, api_version=DEFAULT_API_VERSION): """Module depends on the API version: * 2020-04-30: :mod:`v2020_04_30.models` + * 2021-09-01-preview: :mod:`v2021_09_01_preview.models` + * 2022-04-01: :mod:`v2022_04_01.models` """ if api_version == '2020-04-30': from ..v2020_04_30 import models return models + elif api_version == '2021-09-01-preview': + from ..v2021_09_01_preview import models + return models + elif api_version == '2022-04-01': + from ..v2022_04_01 import models + return models raise ValueError("API version {} is not available".format(api_version)) @property @@ -101,10 +108,16 @@ def open_shift_clusters(self): """Instance depends on the API version: * 2020-04-30: :class:`OpenShiftClustersOperations` + * 2021-09-01-preview: :class:`OpenShiftClustersOperations` + * 2022-04-01: :class:`OpenShiftClustersOperations` """ api_version = self._get_api_version('open_shift_clusters') if api_version == '2020-04-30': from ..v2020_04_30.aio.operations import OpenShiftClustersOperations as OperationClass + elif api_version == '2021-09-01-preview': + from ..v2021_09_01_preview.aio.operations import OpenShiftClustersOperations as OperationClass + elif api_version == '2022-04-01': + from ..v2022_04_01.aio.operations import OpenShiftClustersOperations as OperationClass else: raise ValueError("API version {} does not have operation group 'open_shift_clusters'".format(api_version)) return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -114,10 +127,16 @@ def operations(self): """Instance depends on the API version: * 2020-04-30: :class:`Operations` + * 2021-09-01-preview: :class:`Operations` + * 2022-04-01: :class:`Operations` """ api_version = self._get_api_version('operations') if api_version == '2020-04-30': from ..v2020_04_30.aio.operations import Operations as OperationClass + elif api_version == '2021-09-01-preview': + from ..v2021_09_01_preview.aio.operations import Operations as OperationClass + elif api_version == '2022-04-01': + from ..v2022_04_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))) diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/aio/_configuration.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/aio/_configuration.py index 2e592152d002..42e2e0d943f3 100644 --- a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/aio/_configuration.py +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/aio/_configuration.py @@ -12,7 +12,7 @@ from azure.core.configuration import Configuration from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy from .._version import VERSION @@ -20,8 +20,8 @@ # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -class AzureRedHatOpenShift4ClientConfiguration(Configuration): - """Configuration for AzureRedHatOpenShift4Client. +class AzureRedHatOpenShiftClientConfiguration(Configuration): + """Configuration for AzureRedHatOpenShiftClient. Note that all parameters used to create this instance are saved as instance attributes. @@ -42,7 +42,7 @@ def __init__( raise ValueError("Parameter 'credential' must not be None.") if subscription_id is None: raise ValueError("Parameter 'subscription_id' must not be None.") - super(AzureRedHatOpenShift4ClientConfiguration, self).__init__(**kwargs) + super(AzureRedHatOpenShiftClientConfiguration, self).__init__(**kwargs) self.credential = credential self.subscription_id = subscription_id @@ -64,4 +64,4 @@ def _configure( 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) + self.authentication_policy = AsyncARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/models.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/models.py index a93a3fa97f8d..7d9f8183c1a9 100644 --- a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/models.py +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/models.py @@ -4,4 +4,4 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- -from .v2020_04_30.models import * +from .v2022_04_01.models import * diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/__init__.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/__init__.py index 4881b1a062e9..a3faaf238d96 100644 --- a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/__init__.py +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/__init__.py @@ -12,8 +12,7 @@ __version__ = VERSION __all__ = ['AzureRedHatOpenShift4Client'] -try: - from ._patch import patch_sdk # type: ignore - patch_sdk() -except ImportError: - pass +# `._patch.py` is used for handwritten extensions to the generated code +# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md +from ._patch import patch_sdk +patch_sdk() diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/_azure_red_hat_open_shift4_client.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/_azure_red_hat_open_shift4_client.py index d006295a72c0..8104e033c8fd 100644 --- a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/_azure_red_hat_open_shift4_client.py +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/_azure_red_hat_open_shift4_client.py @@ -6,79 +6,86 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import TYPE_CHECKING +from copy import deepcopy +from typing import Any, 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 azure.core.rest import HttpRequest, HttpResponse +from azure.mgmt.core import ARMPipelineClient -from ._configuration import AzureRedHatOpenShift4ClientConfiguration -from .operations import Operations -from .operations import OpenShiftClustersOperations from . import models +from ._configuration import AzureRedHatOpenShift4ClientConfiguration +from .operations import OpenShiftClustersOperations, Operations +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials import TokenCredential -class AzureRedHatOpenShift4Client(object): +class AzureRedHatOpenShift4Client: """Rest API for Azure Red Hat OpenShift 4. :ivar operations: Operations operations :vartype operations: azure.mgmt.redhatopenshift.v2020_04_30.operations.Operations :ivar open_shift_clusters: OpenShiftClustersOperations operations - :vartype open_shift_clusters: azure.mgmt.redhatopenshift.v2020_04_30.operations.OpenShiftClustersOperations + :vartype open_shift_clusters: + azure.mgmt.redhatopenshift.v2020_04_30.operations.OpenShiftClustersOperations :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. + :param base_url: Service URL. Default value is "https://management.azure.com". + :type base_url: str + :keyword api_version: Api Version. Default value is "2020-04-30". Note that overriding this + default value may result in unsupported behavior. + :paramtype api_version: str + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. """ def __init__( self, - credential, # type: "TokenCredential" - 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 = AzureRedHatOpenShift4ClientConfiguration(credential, subscription_id, **kwargs) + credential: "TokenCredential", + subscription_id: str, + base_url: str = "https://management.azure.com", + **kwargs: Any + ) -> None: + self._config = AzureRedHatOpenShift4ClientConfiguration(credential=credential, subscription_id=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._serialize.client_side_validation = False + self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) + self.open_shift_clusters = OpenShiftClustersOperations(self._client, self._config, self._serialize, self._deserialize) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize) - self.open_shift_clusters = OpenShiftClustersOperations( - self._client, self._config, self._serialize, self._deserialize) - def _send_request(self, http_request, **kwargs): - # type: (HttpRequest, Any) -> HttpResponse + def _send_request( + self, + request: HttpRequest, + **kwargs: 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. + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest("GET", "https://www.example.org/") + + >>> 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.pipeline.transport.HttpResponse + :rtype: ~azure.core.rest.HttpResponse """ - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - } - 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 + + request_copy = deepcopy(request) + request_copy.url = self._client.format_url(request_copy.url) + return self._client.send_request(request_copy, **kwargs) def close(self): # type: () -> None diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/_configuration.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/_configuration.py index 37a59f32d7cd..62f655748855 100644 --- a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/_configuration.py +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/_configuration.py @@ -6,22 +6,20 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import TYPE_CHECKING +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 azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, 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 AzureRedHatOpenShift4ClientConfiguration(Configuration): +class AzureRedHatOpenShift4ClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AzureRedHatOpenShift4Client. Note that all parameters used to create this instance are saved as instance @@ -31,24 +29,28 @@ class AzureRedHatOpenShift4ClientConfiguration(Configuration): :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The ID of the target subscription. :type subscription_id: str + :keyword api_version: Api Version. Default value is "2020-04-30". Note that overriding this + default value may result in unsupported behavior. + :paramtype api_version: str """ def __init__( self, - credential, # type: "TokenCredential" - subscription_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> None + credential: "TokenCredential", + subscription_id: str, + **kwargs: Any + ) -> None: + super(AzureRedHatOpenShift4ClientConfiguration, self).__init__(**kwargs) + api_version = kwargs.pop('api_version', "2020-04-30") # type: str + 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(AzureRedHatOpenShift4ClientConfiguration, self).__init__(**kwargs) self.credential = credential self.subscription_id = subscription_id - self.api_version = "2020-04-30" + self.api_version = api_version self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-redhatopenshift/{}'.format(VERSION)) self._configure(**kwargs) @@ -68,4 +70,4 @@ def _configure( 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) + self.authentication_policy = ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/_metadata.json b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/_metadata.json index d1234382bc8b..c36c43a96eca 100644 --- a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/_metadata.json +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/_metadata.json @@ -5,13 +5,13 @@ "name": "AzureRedHatOpenShift4Client", "filename": "_azure_red_hat_open_shift4_client", "description": "Rest API for Azure Red Hat OpenShift 4.", - "base_url": "\u0027https://management.azure.com\u0027", - "custom_base_url": null, + "host_value": "\"https://management.azure.com\"", + "parameterized_host_template": 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\": [\"AzureRedHatOpenShift4ClientConfiguration\"]}}, \"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\": [\"AzureRedHatOpenShift4ClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AzureRedHatOpenShift4ClientConfiguration\"]}, \"thirdparty\": {\"msrest\": [\"Deserializer\", \"Serializer\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"], \"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AzureRedHatOpenShift4ClientConfiguration\"]}, \"thirdparty\": {\"msrest\": [\"Deserializer\", \"Serializer\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" }, "global_parameters": { "sync": { @@ -54,7 +54,7 @@ "required": false }, "base_url": { - "signature": "base_url=None, # type: Optional[str]", + "signature": "base_url=\"https://management.azure.com\", # type: str", "description": "Service URL", "docstring_type": "str", "required": false @@ -74,7 +74,7 @@ "required": false }, "base_url": { - "signature": "base_url: Optional[str] = None,", + "signature": "base_url: str = \"https://management.azure.com\",", "description": "Service URL", "docstring_type": "str", "required": false @@ -91,11 +91,10 @@ "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\"]}}}" + "credential_call_sync": "ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)", + "credential_call_async": "AsyncARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)", + "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMChallengeAuthenticationPolicy\", \"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\", \"AsyncARMChallengeAuthenticationPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}" }, "operation_groups": { "operations": "Operations", diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/_patch.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/_patch.py new file mode 100644 index 000000000000..74e48ecd07cf --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/_patch.py @@ -0,0 +1,31 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# +# 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. +# +# -------------------------------------------------------------------------- + +# This file is used for handwritten extensions to the generated code. Example: +# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md +def patch_sdk(): + pass \ No newline at end of file diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/_vendor.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/_vendor.py new file mode 100644 index 000000000000..138f663c53a4 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/_vendor.py @@ -0,0 +1,27 @@ +# -------------------------------------------------------------------------- +# 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.pipeline.transport import HttpRequest + +def _convert_request(request, files=None): + data = request.content if not files else None + request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) + if files: + request.set_formdata_body(files) + return request + +def _format_url_section(template, **kwargs): + components = template.split("/") + while components: + try: + return template.format(**kwargs) + except KeyError as key: + formatted_components = template.split("/") + components = [ + c for c in formatted_components if "{}".format(key.args[0]) not in c + ] + template = "/".join(components) diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/_version.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/_version.py index dfa6ee022f15..59deb8c7263b 100644 --- a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/_version.py +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "1.0.0b2" +VERSION = "1.1.0" diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/aio/__init__.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/aio/__init__.py index e9ab58f8e74d..eccb1597054c 100644 --- a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/aio/__init__.py +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/aio/__init__.py @@ -8,3 +8,8 @@ from ._azure_red_hat_open_shift4_client import AzureRedHatOpenShift4Client __all__ = ['AzureRedHatOpenShift4Client'] + +# `._patch.py` is used for handwritten extensions to the generated code +# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md +from ._patch import patch_sdk +patch_sdk() diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/aio/_azure_red_hat_open_shift4_client.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/aio/_azure_red_hat_open_shift4_client.py index 98bba34694fe..faebbdd00c5b 100644 --- a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/aio/_azure_red_hat_open_shift4_client.py +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/aio/_azure_red_hat_open_shift4_client.py @@ -6,75 +6,86 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Any, Optional, TYPE_CHECKING +from copy import deepcopy +from typing import Any, Awaitable, 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 azure.core.rest import AsyncHttpResponse, HttpRequest +from azure.mgmt.core import AsyncARMPipelineClient -from ._configuration import AzureRedHatOpenShift4ClientConfiguration -from .operations import Operations -from .operations import OpenShiftClustersOperations from .. import models +from ._configuration import AzureRedHatOpenShift4ClientConfiguration +from .operations import OpenShiftClustersOperations, Operations +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials_async import AsyncTokenCredential -class AzureRedHatOpenShift4Client(object): +class AzureRedHatOpenShift4Client: """Rest API for Azure Red Hat OpenShift 4. :ivar operations: Operations operations :vartype operations: azure.mgmt.redhatopenshift.v2020_04_30.aio.operations.Operations :ivar open_shift_clusters: OpenShiftClustersOperations operations - :vartype open_shift_clusters: azure.mgmt.redhatopenshift.v2020_04_30.aio.operations.OpenShiftClustersOperations + :vartype open_shift_clusters: + azure.mgmt.redhatopenshift.v2020_04_30.aio.operations.OpenShiftClustersOperations :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. + :param base_url: Service URL. Default value is "https://management.azure.com". + :type base_url: str + :keyword api_version: Api Version. Default value is "2020-04-30". Note that overriding this + default value may result in unsupported behavior. + :paramtype api_version: str + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. """ def __init__( self, credential: "AsyncTokenCredential", subscription_id: str, - base_url: Optional[str] = None, + base_url: str = "https://management.azure.com", **kwargs: Any ) -> None: - if not base_url: - base_url = 'https://management.azure.com' - self._config = AzureRedHatOpenShift4ClientConfiguration(credential, subscription_id, **kwargs) + self._config = AzureRedHatOpenShift4ClientConfiguration(credential=credential, subscription_id=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._serialize.client_side_validation = False + self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) + self.open_shift_clusters = OpenShiftClustersOperations(self._client, self._config, self._serialize, self._deserialize) - self.operations = Operations( - self._client, self._config, self._serialize, self._deserialize) - self.open_shift_clusters = OpenShiftClustersOperations( - self._client, self._config, self._serialize, self._deserialize) - async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + def _send_request( + self, + request: HttpRequest, + **kwargs: Any + ) -> Awaitable[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. + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest("GET", "https://www.example.org/") + + >>> 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.pipeline.transport.AsyncHttpResponse + :rtype: ~azure.core.rest.AsyncHttpResponse """ - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - } - 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 + + 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() diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/aio/_configuration.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/aio/_configuration.py index 82ea0cd50204..c40446cd2aca 100644 --- a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/aio/_configuration.py +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/aio/_configuration.py @@ -10,7 +10,7 @@ from azure.core.configuration import Configuration from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy from .._version import VERSION @@ -19,7 +19,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class AzureRedHatOpenShift4ClientConfiguration(Configuration): +class AzureRedHatOpenShift4ClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for AzureRedHatOpenShift4Client. Note that all parameters used to create this instance are saved as instance @@ -29,6 +29,9 @@ class AzureRedHatOpenShift4ClientConfiguration(Configuration): :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The ID of the target subscription. :type subscription_id: str + :keyword api_version: Api Version. Default value is "2020-04-30". Note that overriding this + default value may result in unsupported behavior. + :paramtype api_version: str """ def __init__( @@ -37,15 +40,17 @@ def __init__( subscription_id: str, **kwargs: Any ) -> None: + super(AzureRedHatOpenShift4ClientConfiguration, self).__init__(**kwargs) + api_version = kwargs.pop('api_version', "2020-04-30") # type: str + 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(AzureRedHatOpenShift4ClientConfiguration, self).__init__(**kwargs) self.credential = credential self.subscription_id = subscription_id - self.api_version = "2020-04-30" + self.api_version = api_version self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-redhatopenshift/{}'.format(VERSION)) self._configure(**kwargs) @@ -64,4 +69,4 @@ def _configure( 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) + self.authentication_policy = AsyncARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/aio/_patch.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/aio/_patch.py new file mode 100644 index 000000000000..74e48ecd07cf --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/aio/_patch.py @@ -0,0 +1,31 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# +# 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. +# +# -------------------------------------------------------------------------- + +# This file is used for handwritten extensions to the generated code. Example: +# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md +def patch_sdk(): + pass \ No newline at end of file diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/aio/operations/_open_shift_clusters_operations.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/aio/operations/_open_shift_clusters_operations.py index d9a7a8792d1e..27db914f96ca 100644 --- a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/aio/operations/_open_shift_clusters_operations.py +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/aio/operations/_open_shift_clusters_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,19 +6,22 @@ # 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 typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union 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.pipeline.transport import AsyncHttpResponse from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace +from azure.core.tracing.decorator_async import distributed_trace_async from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling from ... import models as _models - +from ..._vendor import _convert_request +from ...operations._open_shift_clusters_operations import build_create_or_update_request_initial, build_delete_request_initial, build_get_request, build_list_by_resource_group_request, build_list_credentials_request, build_list_request, build_update_request_initial T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -43,6 +47,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._deserialize = deserializer self._config = config + @distributed_trace def list( self, **kwargs: Any @@ -52,43 +57,44 @@ def list( The operation returns properties of each OpenShift cluster. :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either OpenShiftClusterList or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.redhatopenshift.v2020_04_30.models.OpenShiftClusterList] + :return: An iterator like instance of either OpenShiftClusterList or the result of + cls(response) + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.redhatopenshift.v2020_04_30.models.OpenShiftClusterList] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2020-04-30") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftClusterList"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-04-30" - 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 = { - '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) - # 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) + + request = build_list_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + template_url=self.list.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) + + request = build_list_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" return request async def extract_data(pipeline_response): - deserialized = self._deserialize('OpenShiftClusterList', pipeline_response) + deserialized = self._deserialize("OpenShiftClusterList", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -97,7 +103,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -106,11 +116,13 @@ async def get_next(next_link=None): return pipeline_response + return AsyncItemPaged( get_next, extract_data ) - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.RedHatOpenShift/openShiftClusters'} # type: ignore + list.metadata = {'url': "/subscriptions/{subscriptionId}/providers/Microsoft.RedHatOpenShift/openShiftClusters"} # type: ignore + @distributed_trace def list_by_resource_group( self, resource_group_name: str, @@ -123,44 +135,46 @@ def list_by_resource_group( :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either OpenShiftClusterList or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.redhatopenshift.v2020_04_30.models.OpenShiftClusterList] + :return: An iterator like instance of either OpenShiftClusterList or the result of + cls(response) + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.redhatopenshift.v2020_04_30.models.OpenShiftClusterList] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2020-04-30") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftClusterList"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-04-30" - 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', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - } - 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) + + request = build_list_by_resource_group_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + api_version=api_version, + template_url=self.list_by_resource_group.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) + + request = build_list_by_resource_group_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + api_version=api_version, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" return request async def extract_data(pipeline_response): - deserialized = self._deserialize('OpenShiftClusterList', pipeline_response) + deserialized = self._deserialize("OpenShiftClusterList", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -169,7 +183,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -178,11 +196,13 @@ async def get_next(next_link=None): return pipeline_response + return AsyncItemPaged( get_next, extract_data ) - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters'} # type: ignore + list_by_resource_group.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters"} # type: ignore + @distributed_trace_async async def get( self, resource_group_name: str, @@ -207,28 +227,25 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-04-30" - 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\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_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') + api_version = kwargs.pop('api_version', "2020-04-30") # type: str - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = build_get_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + template_url=self.get.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -241,7 +258,9 @@ async def get( return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}'} # type: ignore + + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + async def _create_or_update_initial( self, @@ -255,33 +274,29 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-04-30" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - 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\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_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(parameters, 'OpenShiftCluster') - 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) + + api_version = kwargs.pop('api_version', "2020-04-30") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + + _json = self._serialize.body(parameters, 'OpenShiftCluster') + + request = build_create_or_update_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + content_type=content_type, + json=_json, + template_url=self._create_or_update_initial.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -298,8 +313,11 @@ async def _create_or_update_initial( return cls(pipeline_response, deserialized, {}) return deserialized - _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}'} # type: ignore + _create_or_update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + + @distributed_trace_async async def begin_create_or_update( self, resource_group_name: str, @@ -307,7 +325,8 @@ async def begin_create_or_update( parameters: "_models.OpenShiftCluster", **kwargs: Any ) -> AsyncLROPoller["_models.OpenShiftCluster"]: - """Creates or updates a OpenShift cluster with the specified subscription, resource group and resource name. + """Creates or updates a OpenShift cluster with the specified subscription, resource group and + resource name. The operation returns properties of a OpenShift cluster. @@ -319,14 +338,20 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.redhatopenshift.v2020_04_30.models.OpenShiftCluster :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. + :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 OpenShiftCluster or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.redhatopenshift.v2020_04_30.models.OpenShiftCluster] - :raises ~azure.core.exceptions.HttpResponseError: + :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 OpenShiftCluster or the result of + cls(response) + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.redhatopenshift.v2020_04_30.models.OpenShiftCluster] + :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2020-04-30") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftCluster"] lro_delay = kwargs.pop( @@ -339,27 +364,22 @@ async def begin_create_or_update( resource_group_name=resource_group_name, resource_name=resource_name, parameters=parameters, + api_version=api_version, + content_type=content_type, cls=lambda x,y,z: x, **kwargs ) - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): + response = pipeline_response.http_response deserialized = self._deserialize('OpenShiftCluster', 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, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str'), - } - if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: @@ -369,11 +389,11 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}'} # type: ignore + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - async def _delete_initial( + begin_create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, resource_name: str, @@ -384,28 +404,25 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-04-30" - 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\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_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') + api_version = kwargs.pop('api_version', "2020-04-30") # type: str - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = build_delete_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + template_url=self._delete_initial.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -415,9 +432,11 @@ async def _delete_initial( if cls: return cls(pipeline_response, None, {}) - _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}'} # type: ignore + _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore - async def begin_delete( + + @distributed_trace_async + async def begin_delete( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, resource_name: str, @@ -433,14 +452,17 @@ async def begin_delete( :type resource_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. + :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. + :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: + :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2020-04-30") # type: str polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( @@ -452,24 +474,18 @@ async def begin_delete( raw_result = await self._delete_initial( resource_group_name=resource_group_name, resource_name=resource_name, + api_version=api_version, 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, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str'), - } - if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: @@ -479,9 +495,9 @@ def get_long_running_output(pipeline_response): 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.RedHatOpenShift/openShiftClusters/{resourceName}'} # type: ignore + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + + begin_delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore async def _update_initial( self, @@ -495,33 +511,29 @@ async def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-04-30" - 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, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_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(parameters, 'OpenShiftClusterUpdate') - 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) + + api_version = kwargs.pop('api_version', "2020-04-30") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + + _json = self._serialize.body(parameters, 'OpenShiftClusterUpdate') + + request = build_update_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + content_type=content_type, + json=_json, + template_url=self._update_initial.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -538,8 +550,11 @@ async def _update_initial( return cls(pipeline_response, deserialized, {}) return deserialized - _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}'} # type: ignore + _update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + + @distributed_trace_async async def begin_update( self, resource_group_name: str, @@ -547,7 +562,8 @@ async def begin_update( parameters: "_models.OpenShiftClusterUpdate", **kwargs: Any ) -> AsyncLROPoller["_models.OpenShiftCluster"]: - """Creates or updates a OpenShift cluster with the specified subscription, resource group and resource name. + """Creates or updates a OpenShift cluster with the specified subscription, resource group and + resource name. The operation returns properties of a OpenShift cluster. @@ -559,14 +575,20 @@ async def begin_update( :type parameters: ~azure.mgmt.redhatopenshift.v2020_04_30.models.OpenShiftClusterUpdate :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. + :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 OpenShiftCluster or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.redhatopenshift.v2020_04_30.models.OpenShiftCluster] - :raises ~azure.core.exceptions.HttpResponseError: + :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 OpenShiftCluster or the result of + cls(response) + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.redhatopenshift.v2020_04_30.models.OpenShiftCluster] + :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2020-04-30") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftCluster"] lro_delay = kwargs.pop( @@ -579,27 +601,22 @@ async def begin_update( resource_group_name=resource_group_name, resource_name=resource_name, parameters=parameters, + api_version=api_version, + content_type=content_type, cls=lambda x,y,z: x, **kwargs ) - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): + response = pipeline_response.http_response deserialized = self._deserialize('OpenShiftCluster', 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, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str'), - } - if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: @@ -609,17 +626,19 @@ def get_long_running_output(pipeline_response): 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.RedHatOpenShift/openShiftClusters/{resourceName}'} # type: ignore + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + + begin_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + @distributed_trace_async async def list_credentials( self, resource_group_name: str, resource_name: str, **kwargs: Any ) -> "_models.OpenShiftClusterCredentials": - """Lists credentials of an OpenShift cluster with the specified subscription, resource group and resource name. + """Lists credentials of an OpenShift cluster with the specified subscription, resource group and + resource name. The operation returns the credentials. @@ -637,28 +656,25 @@ async def list_credentials( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-04-30" - accept = "application/json" - - # Construct URL - url = self.list_credentials.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_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') + api_version = kwargs.pop('api_version', "2020-04-30") # type: str - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = build_list_credentials_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + template_url=self.list_credentials.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) - request = self._client.post(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -671,4 +687,6 @@ async def list_credentials( return cls(pipeline_response, deserialized, {}) return deserialized - list_credentials.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}/listCredentials'} # type: ignore + + list_credentials.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}/listCredentials"} # type: ignore + diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/aio/operations/_operations.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/aio/operations/_operations.py index 1d60d99171b9..cbd2db4e6bf5 100644 --- a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/aio/operations/_operations.py +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/aio/operations/_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,17 +6,19 @@ # 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 typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar 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.pipeline.transport import AsyncHttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace from azure.mgmt.core.exceptions import ARMErrorFormat from ... import models as _models - +from ..._vendor import _convert_request +from ...operations._operations import build_list_request T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -41,6 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._deserialize = deserializer self._config = config + @distributed_trace def list( self, **kwargs: Any @@ -51,38 +55,40 @@ def list( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either OperationList or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.redhatopenshift.v2020_04_30.models.OperationList] + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.redhatopenshift.v2020_04_30.models.OperationList] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2020-04-30") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationList"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-04-30" - 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 - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = build_list_request( + api_version=api_version, + template_url=self.list.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) - 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) + + request = build_list_request( + api_version=api_version, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" return request async def extract_data(pipeline_response): - deserialized = self._deserialize('OperationList', pipeline_response) + deserialized = self._deserialize("OperationList", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -91,7 +97,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -100,7 +110,8 @@ async def get_next(next_link=None): return pipeline_response + return AsyncItemPaged( get_next, extract_data ) - list.metadata = {'url': '/providers/Microsoft.RedHatOpenShift/operations'} # type: ignore + list.metadata = {'url': "/providers/Microsoft.RedHatOpenShift/operations"} # type: ignore diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/models/__init__.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/models/__init__.py index f2512c342011..9a3b9a2f511e 100644 --- a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/models/__init__.py +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/models/__init__.py @@ -6,44 +6,25 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -try: - from ._models_py3 import APIServerProfile - from ._models_py3 import CloudErrorBody - from ._models_py3 import ClusterProfile - from ._models_py3 import ConsoleProfile - from ._models_py3 import Display - from ._models_py3 import IngressProfile - from ._models_py3 import MasterProfile - from ._models_py3 import NetworkProfile - from ._models_py3 import OpenShiftCluster - from ._models_py3 import OpenShiftClusterCredentials - from ._models_py3 import OpenShiftClusterList - from ._models_py3 import OpenShiftClusterUpdate - from ._models_py3 import Operation - from ._models_py3 import OperationList - from ._models_py3 import Resource - from ._models_py3 import ServicePrincipalProfile - from ._models_py3 import TrackedResource - from ._models_py3 import WorkerProfile -except (SyntaxError, ImportError): - from ._models import APIServerProfile # type: ignore - from ._models import CloudErrorBody # type: ignore - from ._models import ClusterProfile # type: ignore - from ._models import ConsoleProfile # type: ignore - from ._models import Display # type: ignore - from ._models import IngressProfile # type: ignore - from ._models import MasterProfile # type: ignore - from ._models import NetworkProfile # type: ignore - from ._models import OpenShiftCluster # type: ignore - from ._models import OpenShiftClusterCredentials # type: ignore - from ._models import OpenShiftClusterList # type: ignore - from ._models import OpenShiftClusterUpdate # type: ignore - from ._models import Operation # type: ignore - from ._models import OperationList # type: ignore - from ._models import Resource # type: ignore - from ._models import ServicePrincipalProfile # type: ignore - from ._models import TrackedResource # type: ignore - from ._models import WorkerProfile # type: ignore +from ._models_py3 import APIServerProfile +from ._models_py3 import CloudErrorBody +from ._models_py3 import ClusterProfile +from ._models_py3 import ConsoleProfile +from ._models_py3 import Display +from ._models_py3 import IngressProfile +from ._models_py3 import MasterProfile +from ._models_py3 import NetworkProfile +from ._models_py3 import OpenShiftCluster +from ._models_py3 import OpenShiftClusterCredentials +from ._models_py3 import OpenShiftClusterList +from ._models_py3 import OpenShiftClusterUpdate +from ._models_py3 import Operation +from ._models_py3 import OperationList +from ._models_py3 import Resource +from ._models_py3 import ServicePrincipalProfile +from ._models_py3 import TrackedResource +from ._models_py3 import WorkerProfile + from ._azure_red_hat_open_shift4_client_enums import ( ProvisioningState, diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/models/_azure_red_hat_open_shift4_client_enums.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/models/_azure_red_hat_open_shift4_client_enums.py index adee61661ff7..d88062dfc108 100644 --- a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/models/_azure_red_hat_open_shift4_client_enums.py +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/models/_azure_red_hat_open_shift4_client_enums.py @@ -6,27 +6,12 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from enum import Enum, EnumMeta +from enum import Enum from six import with_metaclass +from azure.core import CaseInsensitiveEnumMeta -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 ProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class ProvisioningState(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """ProvisioningState represents a provisioning state. """ @@ -37,14 +22,14 @@ class ProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): SUCCEEDED = "Succeeded" UPDATING = "Updating" -class Visibility(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class Visibility(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Visibility represents visibility. """ PRIVATE = "Private" PUBLIC = "Public" -class VMSize(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class VMSize(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """VMSize represents a VM size. """ diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/models/_models.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/models/_models.py deleted file mode 100644 index 8d9bec6a3125..000000000000 --- a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/models/_models.py +++ /dev/null @@ -1,605 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -import msrest.serialization - - -class APIServerProfile(msrest.serialization.Model): - """APIServerProfile represents an API server profile. - - :param visibility: API server visibility (immutable). Possible values include: "Private", - "Public". - :type visibility: str or ~azure.mgmt.redhatopenshift.v2020_04_30.models.Visibility - :param url: The URL to access the cluster API server (immutable). - :type url: str - :param ip: The IP of the cluster API server (immutable). - :type ip: str - """ - - _attribute_map = { - 'visibility': {'key': 'visibility', 'type': 'str'}, - 'url': {'key': 'url', 'type': 'str'}, - 'ip': {'key': 'ip', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(APIServerProfile, self).__init__(**kwargs) - self.visibility = kwargs.get('visibility', None) - self.url = kwargs.get('url', None) - self.ip = kwargs.get('ip', None) - - -class CloudErrorBody(msrest.serialization.Model): - """CloudErrorBody represents the body of a cloud error. - - :param code: An identifier for the error. Codes are invariant and are intended to be consumed - programmatically. - :type code: str - :param message: A message describing the error, intended to be suitable for display in a user - interface. - :type message: str - :param target: The target of the particular error. For example, the name of the property in - error. - :type target: str - :param details: A list of additional details about the error. - :type details: list[~azure.mgmt.redhatopenshift.v2020_04_30.models.CloudErrorBody] - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[CloudErrorBody]'}, - } - - def __init__( - self, - **kwargs - ): - super(CloudErrorBody, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) - self.target = kwargs.get('target', None) - self.details = kwargs.get('details', None) - - -class ClusterProfile(msrest.serialization.Model): - """ClusterProfile represents a cluster profile. - - :param pull_secret: The pull secret for the cluster (immutable). - :type pull_secret: str - :param domain: The domain for the cluster (immutable). - :type domain: str - :param version: The version of the cluster (immutable). - :type version: str - :param resource_group_id: The ID of the cluster resource group (immutable). - :type resource_group_id: str - """ - - _attribute_map = { - 'pull_secret': {'key': 'pullSecret', 'type': 'str'}, - 'domain': {'key': 'domain', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - 'resource_group_id': {'key': 'resourceGroupId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ClusterProfile, self).__init__(**kwargs) - self.pull_secret = kwargs.get('pull_secret', None) - self.domain = kwargs.get('domain', None) - self.version = kwargs.get('version', None) - self.resource_group_id = kwargs.get('resource_group_id', None) - - -class ConsoleProfile(msrest.serialization.Model): - """ConsoleProfile represents a console profile. - - :param url: The URL to access the cluster console (immutable). - :type url: str - """ - - _attribute_map = { - 'url': {'key': 'url', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ConsoleProfile, self).__init__(**kwargs) - self.url = kwargs.get('url', None) - - -class Display(msrest.serialization.Model): - """Display represents the display details of an operation. - - :param provider: Friendly name of the resource provider. - :type provider: str - :param resource: Resource type on which the operation is performed. - :type resource: str - :param operation: Operation type: read, write, delete, listKeys/action, etc. - :type operation: str - :param description: Friendly name 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(Display, 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 IngressProfile(msrest.serialization.Model): - """IngressProfile represents an ingress profile. - - :param name: The ingress profile name. Must be "default" (immutable). - :type name: str - :param visibility: Ingress visibility (immutable). Possible values include: "Private", - "Public". - :type visibility: str or ~azure.mgmt.redhatopenshift.v2020_04_30.models.Visibility - :param ip: The IP of the ingress (immutable). - :type ip: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'visibility': {'key': 'visibility', 'type': 'str'}, - 'ip': {'key': 'ip', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(IngressProfile, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.visibility = kwargs.get('visibility', None) - self.ip = kwargs.get('ip', None) - - -class MasterProfile(msrest.serialization.Model): - """MasterProfile represents a master profile. - - :param vm_size: The size of the master VMs (immutable). Possible values include: - "Standard_D2s_v3", "Standard_D4s_v3", "Standard_D8s_v3". - :type vm_size: str or ~azure.mgmt.redhatopenshift.v2020_04_30.models.VMSize - :param subnet_id: The Azure resource ID of the master subnet (immutable). - :type subnet_id: str - """ - - _attribute_map = { - 'vm_size': {'key': 'vmSize', 'type': 'str'}, - 'subnet_id': {'key': 'subnetId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(MasterProfile, self).__init__(**kwargs) - self.vm_size = kwargs.get('vm_size', None) - self.subnet_id = kwargs.get('subnet_id', None) - - -class NetworkProfile(msrest.serialization.Model): - """NetworkProfile represents a network profile. - - :param pod_cidr: The CIDR used for OpenShift/Kubernetes Pods (immutable). - :type pod_cidr: str - :param service_cidr: The CIDR used for OpenShift/Kubernetes Services (immutable). - :type service_cidr: str - """ - - _attribute_map = { - 'pod_cidr': {'key': 'podCidr', 'type': 'str'}, - 'service_cidr': {'key': 'serviceCidr', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(NetworkProfile, self).__init__(**kwargs) - self.pod_cidr = kwargs.get('pod_cidr', None) - self.service_cidr = kwargs.get('service_cidr', None) - - -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 = { - '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: 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 - :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 = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(TrackedResource, self).__init__(**kwargs) - self.tags = kwargs.get('tags', None) - self.location = kwargs['location'] - - -class OpenShiftCluster(TrackedResource): - """OpenShiftCluster represents an Azure Red Hat OpenShift cluster. - - 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: 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 - :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 provisioning_state: The cluster provisioning state (immutable). Possible values include: - "AdminUpdating", "Creating", "Deleting", "Failed", "Succeeded", "Updating". - :type provisioning_state: str or - ~azure.mgmt.redhatopenshift.v2020_04_30.models.ProvisioningState - :param cluster_profile: The cluster profile. - :type cluster_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.ClusterProfile - :param console_profile: The console profile. - :type console_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.ConsoleProfile - :param service_principal_profile: The cluster service principal profile. - :type service_principal_profile: - ~azure.mgmt.redhatopenshift.v2020_04_30.models.ServicePrincipalProfile - :param network_profile: The cluster network profile. - :type network_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.NetworkProfile - :param master_profile: The cluster master profile. - :type master_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.MasterProfile - :param worker_profiles: The cluster worker profiles. - :type worker_profiles: list[~azure.mgmt.redhatopenshift.v2020_04_30.models.WorkerProfile] - :param apiserver_profile: The cluster API server profile. - :type apiserver_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.APIServerProfile - :param ingress_profiles: The cluster ingress profiles. - :type ingress_profiles: list[~azure.mgmt.redhatopenshift.v2020_04_30.models.IngressProfile] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'cluster_profile': {'key': 'properties.clusterProfile', 'type': 'ClusterProfile'}, - 'console_profile': {'key': 'properties.consoleProfile', 'type': 'ConsoleProfile'}, - 'service_principal_profile': {'key': 'properties.servicePrincipalProfile', 'type': 'ServicePrincipalProfile'}, - 'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'}, - 'master_profile': {'key': 'properties.masterProfile', 'type': 'MasterProfile'}, - 'worker_profiles': {'key': 'properties.workerProfiles', 'type': '[WorkerProfile]'}, - 'apiserver_profile': {'key': 'properties.apiserverProfile', 'type': 'APIServerProfile'}, - 'ingress_profiles': {'key': 'properties.ingressProfiles', 'type': '[IngressProfile]'}, - } - - def __init__( - self, - **kwargs - ): - super(OpenShiftCluster, self).__init__(**kwargs) - self.provisioning_state = kwargs.get('provisioning_state', None) - self.cluster_profile = kwargs.get('cluster_profile', None) - self.console_profile = kwargs.get('console_profile', None) - self.service_principal_profile = kwargs.get('service_principal_profile', None) - self.network_profile = kwargs.get('network_profile', None) - self.master_profile = kwargs.get('master_profile', None) - self.worker_profiles = kwargs.get('worker_profiles', None) - self.apiserver_profile = kwargs.get('apiserver_profile', None) - self.ingress_profiles = kwargs.get('ingress_profiles', None) - - -class OpenShiftClusterCredentials(msrest.serialization.Model): - """OpenShiftClusterCredentials represents an OpenShift cluster's credentials. - - :param kubeadmin_username: The username for the kubeadmin user. - :type kubeadmin_username: str - :param kubeadmin_password: The password for the kubeadmin user. - :type kubeadmin_password: str - """ - - _attribute_map = { - 'kubeadmin_username': {'key': 'kubeadminUsername', 'type': 'str'}, - 'kubeadmin_password': {'key': 'kubeadminPassword', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(OpenShiftClusterCredentials, self).__init__(**kwargs) - self.kubeadmin_username = kwargs.get('kubeadmin_username', None) - self.kubeadmin_password = kwargs.get('kubeadmin_password', None) - - -class OpenShiftClusterList(msrest.serialization.Model): - """OpenShiftClusterList represents a list of OpenShift clusters. - - :param value: The list of OpenShift clusters. - :type value: list[~azure.mgmt.redhatopenshift.v2020_04_30.models.OpenShiftCluster] - :param next_link: The link used to get the next page of operations. - :type next_link: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[OpenShiftCluster]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(OpenShiftClusterList, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.next_link = kwargs.get('next_link', None) - - -class OpenShiftClusterUpdate(msrest.serialization.Model): - """OpenShiftCluster represents an Azure Red Hat OpenShift cluster. - - :param tags: A set of tags. The resource tags. - :type tags: dict[str, str] - :param provisioning_state: The cluster provisioning state (immutable). Possible values include: - "AdminUpdating", "Creating", "Deleting", "Failed", "Succeeded", "Updating". - :type provisioning_state: str or - ~azure.mgmt.redhatopenshift.v2020_04_30.models.ProvisioningState - :param cluster_profile: The cluster profile. - :type cluster_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.ClusterProfile - :param console_profile: The console profile. - :type console_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.ConsoleProfile - :param service_principal_profile: The cluster service principal profile. - :type service_principal_profile: - ~azure.mgmt.redhatopenshift.v2020_04_30.models.ServicePrincipalProfile - :param network_profile: The cluster network profile. - :type network_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.NetworkProfile - :param master_profile: The cluster master profile. - :type master_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.MasterProfile - :param worker_profiles: The cluster worker profiles. - :type worker_profiles: list[~azure.mgmt.redhatopenshift.v2020_04_30.models.WorkerProfile] - :param apiserver_profile: The cluster API server profile. - :type apiserver_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.APIServerProfile - :param ingress_profiles: The cluster ingress profiles. - :type ingress_profiles: list[~azure.mgmt.redhatopenshift.v2020_04_30.models.IngressProfile] - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'cluster_profile': {'key': 'properties.clusterProfile', 'type': 'ClusterProfile'}, - 'console_profile': {'key': 'properties.consoleProfile', 'type': 'ConsoleProfile'}, - 'service_principal_profile': {'key': 'properties.servicePrincipalProfile', 'type': 'ServicePrincipalProfile'}, - 'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'}, - 'master_profile': {'key': 'properties.masterProfile', 'type': 'MasterProfile'}, - 'worker_profiles': {'key': 'properties.workerProfiles', 'type': '[WorkerProfile]'}, - 'apiserver_profile': {'key': 'properties.apiserverProfile', 'type': 'APIServerProfile'}, - 'ingress_profiles': {'key': 'properties.ingressProfiles', 'type': '[IngressProfile]'}, - } - - def __init__( - self, - **kwargs - ): - super(OpenShiftClusterUpdate, self).__init__(**kwargs) - self.tags = kwargs.get('tags', None) - self.provisioning_state = kwargs.get('provisioning_state', None) - self.cluster_profile = kwargs.get('cluster_profile', None) - self.console_profile = kwargs.get('console_profile', None) - self.service_principal_profile = kwargs.get('service_principal_profile', None) - self.network_profile = kwargs.get('network_profile', None) - self.master_profile = kwargs.get('master_profile', None) - self.worker_profiles = kwargs.get('worker_profiles', None) - self.apiserver_profile = kwargs.get('apiserver_profile', None) - self.ingress_profiles = kwargs.get('ingress_profiles', None) - - -class Operation(msrest.serialization.Model): - """Operation represents an RP operation. - - :param name: Operation name: {provider}/{resource}/{operation}. - :type name: str - :param display: The object that describes the operation. - :type display: ~azure.mgmt.redhatopenshift.v2020_04_30.models.Display - :param origin: Sources of requests to this operation. Comma separated list with valid values - user or system, e.g. "user,system". - :type origin: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'Display'}, - 'origin': {'key': 'origin', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(Operation, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.display = kwargs.get('display', None) - self.origin = kwargs.get('origin', None) - - -class OperationList(msrest.serialization.Model): - """OperationList represents an RP operation list. - - :param value: List of operations supported by the resource provider. - :type value: list[~azure.mgmt.redhatopenshift.v2020_04_30.models.Operation] - :param next_link: The link used to get the next page of operations. - :type next_link: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[Operation]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(OperationList, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.next_link = kwargs.get('next_link', None) - - -class ServicePrincipalProfile(msrest.serialization.Model): - """ServicePrincipalProfile represents a service principal profile. - - :param client_id: The client ID used for the cluster (immutable). - :type client_id: str - :param client_secret: The client secret used for the cluster (immutable). - :type client_secret: str - """ - - _attribute_map = { - 'client_id': {'key': 'clientId', 'type': 'str'}, - 'client_secret': {'key': 'clientSecret', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ServicePrincipalProfile, self).__init__(**kwargs) - self.client_id = kwargs.get('client_id', None) - self.client_secret = kwargs.get('client_secret', None) - - -class WorkerProfile(msrest.serialization.Model): - """WorkerProfile represents a worker profile. - - :param name: The worker profile name. Must be "worker" (immutable). - :type name: str - :param vm_size: The size of the worker VMs (immutable). Possible values include: - "Standard_D2s_v3", "Standard_D4s_v3", "Standard_D8s_v3". - :type vm_size: str or ~azure.mgmt.redhatopenshift.v2020_04_30.models.VMSize - :param disk_size_gb: The disk size of the worker VMs. Must be 128 or greater (immutable). - :type disk_size_gb: int - :param subnet_id: The Azure resource ID of the worker subnet (immutable). - :type subnet_id: str - :param count: The number of worker VMs. Must be between 3 and 20 (immutable). - :type count: int - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'vm_size': {'key': 'vmSize', 'type': 'str'}, - 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, - 'subnet_id': {'key': 'subnetId', 'type': 'str'}, - 'count': {'key': 'count', 'type': 'int'}, - } - - def __init__( - self, - **kwargs - ): - super(WorkerProfile, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.vm_size = kwargs.get('vm_size', None) - self.disk_size_gb = kwargs.get('disk_size_gb', None) - self.subnet_id = kwargs.get('subnet_id', None) - self.count = kwargs.get('count', None) diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/models/_models_py3.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/models/_models_py3.py index 3011cb69fc63..372d1a7b4e5d 100644 --- a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/models/_models_py3.py +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/models/_models_py3.py @@ -16,13 +16,13 @@ class APIServerProfile(msrest.serialization.Model): """APIServerProfile represents an API server profile. - :param visibility: API server visibility (immutable). Possible values include: "Private", + :ivar visibility: API server visibility (immutable). Possible values include: "Private", "Public". - :type visibility: str or ~azure.mgmt.redhatopenshift.v2020_04_30.models.Visibility - :param url: The URL to access the cluster API server (immutable). - :type url: str - :param ip: The IP of the cluster API server (immutable). - :type ip: str + :vartype visibility: str or ~azure.mgmt.redhatopenshift.v2020_04_30.models.Visibility + :ivar url: The URL to access the cluster API server (immutable). + :vartype url: str + :ivar ip: The IP of the cluster API server (immutable). + :vartype ip: str """ _attribute_map = { @@ -39,6 +39,15 @@ def __init__( ip: Optional[str] = None, **kwargs ): + """ + :keyword visibility: API server visibility (immutable). Possible values include: "Private", + "Public". + :paramtype visibility: str or ~azure.mgmt.redhatopenshift.v2020_04_30.models.Visibility + :keyword url: The URL to access the cluster API server (immutable). + :paramtype url: str + :keyword ip: The IP of the cluster API server (immutable). + :paramtype ip: str + """ super(APIServerProfile, self).__init__(**kwargs) self.visibility = visibility self.url = url @@ -48,17 +57,17 @@ def __init__( class CloudErrorBody(msrest.serialization.Model): """CloudErrorBody represents the body of a cloud error. - :param code: An identifier for the error. Codes are invariant and are intended to be consumed + :ivar code: An identifier for the error. Codes are invariant and are intended to be consumed programmatically. - :type code: str - :param message: A message describing the error, intended to be suitable for display in a user + :vartype code: str + :ivar message: A message describing the error, intended to be suitable for display in a user interface. - :type message: str - :param target: The target of the particular error. For example, the name of the property in + :vartype message: str + :ivar target: The target of the particular error. For example, the name of the property in error. - :type target: str - :param details: A list of additional details about the error. - :type details: list[~azure.mgmt.redhatopenshift.v2020_04_30.models.CloudErrorBody] + :vartype target: str + :ivar details: A list of additional details about the error. + :vartype details: list[~azure.mgmt.redhatopenshift.v2020_04_30.models.CloudErrorBody] """ _attribute_map = { @@ -77,6 +86,19 @@ def __init__( details: Optional[List["CloudErrorBody"]] = None, **kwargs ): + """ + :keyword code: An identifier for the error. Codes are invariant and are intended to be consumed + programmatically. + :paramtype code: str + :keyword message: A message describing the error, intended to be suitable for display in a user + interface. + :paramtype message: str + :keyword target: The target of the particular error. For example, the name of the property in + error. + :paramtype target: str + :keyword details: A list of additional details about the error. + :paramtype details: list[~azure.mgmt.redhatopenshift.v2020_04_30.models.CloudErrorBody] + """ super(CloudErrorBody, self).__init__(**kwargs) self.code = code self.message = message @@ -87,14 +109,14 @@ def __init__( class ClusterProfile(msrest.serialization.Model): """ClusterProfile represents a cluster profile. - :param pull_secret: The pull secret for the cluster (immutable). - :type pull_secret: str - :param domain: The domain for the cluster (immutable). - :type domain: str - :param version: The version of the cluster (immutable). - :type version: str - :param resource_group_id: The ID of the cluster resource group (immutable). - :type resource_group_id: str + :ivar pull_secret: The pull secret for the cluster (immutable). + :vartype pull_secret: str + :ivar domain: The domain for the cluster (immutable). + :vartype domain: str + :ivar version: The version of the cluster (immutable). + :vartype version: str + :ivar resource_group_id: The ID of the cluster resource group (immutable). + :vartype resource_group_id: str """ _attribute_map = { @@ -113,6 +135,16 @@ def __init__( resource_group_id: Optional[str] = None, **kwargs ): + """ + :keyword pull_secret: The pull secret for the cluster (immutable). + :paramtype pull_secret: str + :keyword domain: The domain for the cluster (immutable). + :paramtype domain: str + :keyword version: The version of the cluster (immutable). + :paramtype version: str + :keyword resource_group_id: The ID of the cluster resource group (immutable). + :paramtype resource_group_id: str + """ super(ClusterProfile, self).__init__(**kwargs) self.pull_secret = pull_secret self.domain = domain @@ -123,8 +155,8 @@ def __init__( class ConsoleProfile(msrest.serialization.Model): """ConsoleProfile represents a console profile. - :param url: The URL to access the cluster console (immutable). - :type url: str + :ivar url: The URL to access the cluster console (immutable). + :vartype url: str """ _attribute_map = { @@ -137,6 +169,10 @@ def __init__( url: Optional[str] = None, **kwargs ): + """ + :keyword url: The URL to access the cluster console (immutable). + :paramtype url: str + """ super(ConsoleProfile, self).__init__(**kwargs) self.url = url @@ -144,14 +180,14 @@ def __init__( class Display(msrest.serialization.Model): """Display represents the display details of an operation. - :param provider: Friendly name of the resource provider. - :type provider: str - :param resource: Resource type on which the operation is performed. - :type resource: str - :param operation: Operation type: read, write, delete, listKeys/action, etc. - :type operation: str - :param description: Friendly name of the operation. - :type description: str + :ivar provider: Friendly name of the resource provider. + :vartype provider: str + :ivar resource: Resource type on which the operation is performed. + :vartype resource: str + :ivar operation: Operation type: read, write, delete, listKeys/action, etc. + :vartype operation: str + :ivar description: Friendly name of the operation. + :vartype description: str """ _attribute_map = { @@ -170,6 +206,16 @@ def __init__( description: Optional[str] = None, **kwargs ): + """ + :keyword provider: Friendly name of the resource provider. + :paramtype provider: str + :keyword resource: Resource type on which the operation is performed. + :paramtype resource: str + :keyword operation: Operation type: read, write, delete, listKeys/action, etc. + :paramtype operation: str + :keyword description: Friendly name of the operation. + :paramtype description: str + """ super(Display, self).__init__(**kwargs) self.provider = provider self.resource = resource @@ -180,13 +226,12 @@ def __init__( class IngressProfile(msrest.serialization.Model): """IngressProfile represents an ingress profile. - :param name: The ingress profile name. Must be "default" (immutable). - :type name: str - :param visibility: Ingress visibility (immutable). Possible values include: "Private", - "Public". - :type visibility: str or ~azure.mgmt.redhatopenshift.v2020_04_30.models.Visibility - :param ip: The IP of the ingress (immutable). - :type ip: str + :ivar name: The ingress profile name. Must be "default" (immutable). + :vartype name: str + :ivar visibility: Ingress visibility (immutable). Possible values include: "Private", "Public". + :vartype visibility: str or ~azure.mgmt.redhatopenshift.v2020_04_30.models.Visibility + :ivar ip: The IP of the ingress (immutable). + :vartype ip: str """ _attribute_map = { @@ -203,6 +248,15 @@ def __init__( ip: Optional[str] = None, **kwargs ): + """ + :keyword name: The ingress profile name. Must be "default" (immutable). + :paramtype name: str + :keyword visibility: Ingress visibility (immutable). Possible values include: "Private", + "Public". + :paramtype visibility: str or ~azure.mgmt.redhatopenshift.v2020_04_30.models.Visibility + :keyword ip: The IP of the ingress (immutable). + :paramtype ip: str + """ super(IngressProfile, self).__init__(**kwargs) self.name = name self.visibility = visibility @@ -212,11 +266,11 @@ def __init__( class MasterProfile(msrest.serialization.Model): """MasterProfile represents a master profile. - :param vm_size: The size of the master VMs (immutable). Possible values include: + :ivar vm_size: The size of the master VMs (immutable). Possible values include: "Standard_D2s_v3", "Standard_D4s_v3", "Standard_D8s_v3". - :type vm_size: str or ~azure.mgmt.redhatopenshift.v2020_04_30.models.VMSize - :param subnet_id: The Azure resource ID of the master subnet (immutable). - :type subnet_id: str + :vartype vm_size: str or ~azure.mgmt.redhatopenshift.v2020_04_30.models.VMSize + :ivar subnet_id: The Azure resource ID of the master subnet (immutable). + :vartype subnet_id: str """ _attribute_map = { @@ -231,6 +285,13 @@ def __init__( subnet_id: Optional[str] = None, **kwargs ): + """ + :keyword vm_size: The size of the master VMs (immutable). Possible values include: + "Standard_D2s_v3", "Standard_D4s_v3", "Standard_D8s_v3". + :paramtype vm_size: str or ~azure.mgmt.redhatopenshift.v2020_04_30.models.VMSize + :keyword subnet_id: The Azure resource ID of the master subnet (immutable). + :paramtype subnet_id: str + """ super(MasterProfile, self).__init__(**kwargs) self.vm_size = vm_size self.subnet_id = subnet_id @@ -239,10 +300,10 @@ def __init__( class NetworkProfile(msrest.serialization.Model): """NetworkProfile represents a network profile. - :param pod_cidr: The CIDR used for OpenShift/Kubernetes Pods (immutable). - :type pod_cidr: str - :param service_cidr: The CIDR used for OpenShift/Kubernetes Services (immutable). - :type service_cidr: str + :ivar pod_cidr: The CIDR used for OpenShift/Kubernetes Pods (immutable). + :vartype pod_cidr: str + :ivar service_cidr: The CIDR used for OpenShift/Kubernetes Services (immutable). + :vartype service_cidr: str """ _attribute_map = { @@ -257,6 +318,12 @@ def __init__( service_cidr: Optional[str] = None, **kwargs ): + """ + :keyword pod_cidr: The CIDR used for OpenShift/Kubernetes Pods (immutable). + :paramtype pod_cidr: str + :keyword service_cidr: The CIDR used for OpenShift/Kubernetes Services (immutable). + :paramtype service_cidr: str + """ super(NetworkProfile, self).__init__(**kwargs) self.pod_cidr = pod_cidr self.service_cidr = service_cidr @@ -293,6 +360,8 @@ def __init__( self, **kwargs ): + """ + """ super(Resource, self).__init__(**kwargs) self.id = None self.name = None @@ -314,10 +383,10 @@ class TrackedResource(Resource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :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 + :ivar tags: A set of tags. Resource tags. + :vartype tags: dict[str, str] + :ivar location: Required. The geo-location where the resource lives. + :vartype location: str """ _validation = { @@ -342,6 +411,12 @@ def __init__( tags: Optional[Dict[str, str]] = None, **kwargs ): + """ + :keyword tags: A set of tags. Resource tags. + :paramtype tags: dict[str, str] + :keyword location: Required. The geo-location where the resource lives. + :paramtype location: str + """ super(TrackedResource, self).__init__(**kwargs) self.tags = tags self.location = location @@ -362,31 +437,31 @@ class OpenShiftCluster(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :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 provisioning_state: The cluster provisioning state (immutable). Possible values include: + :ivar tags: A set of tags. Resource tags. + :vartype tags: dict[str, str] + :ivar location: Required. The geo-location where the resource lives. + :vartype location: str + :ivar provisioning_state: The cluster provisioning state (immutable). Possible values include: "AdminUpdating", "Creating", "Deleting", "Failed", "Succeeded", "Updating". - :type provisioning_state: str or + :vartype provisioning_state: str or ~azure.mgmt.redhatopenshift.v2020_04_30.models.ProvisioningState - :param cluster_profile: The cluster profile. - :type cluster_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.ClusterProfile - :param console_profile: The console profile. - :type console_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.ConsoleProfile - :param service_principal_profile: The cluster service principal profile. - :type service_principal_profile: + :ivar cluster_profile: The cluster profile. + :vartype cluster_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.ClusterProfile + :ivar console_profile: The console profile. + :vartype console_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.ConsoleProfile + :ivar service_principal_profile: The cluster service principal profile. + :vartype service_principal_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.ServicePrincipalProfile - :param network_profile: The cluster network profile. - :type network_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.NetworkProfile - :param master_profile: The cluster master profile. - :type master_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.MasterProfile - :param worker_profiles: The cluster worker profiles. - :type worker_profiles: list[~azure.mgmt.redhatopenshift.v2020_04_30.models.WorkerProfile] - :param apiserver_profile: The cluster API server profile. - :type apiserver_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.APIServerProfile - :param ingress_profiles: The cluster ingress profiles. - :type ingress_profiles: list[~azure.mgmt.redhatopenshift.v2020_04_30.models.IngressProfile] + :ivar network_profile: The cluster network profile. + :vartype network_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.NetworkProfile + :ivar master_profile: The cluster master profile. + :vartype master_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.MasterProfile + :ivar worker_profiles: The cluster worker profiles. + :vartype worker_profiles: list[~azure.mgmt.redhatopenshift.v2020_04_30.models.WorkerProfile] + :ivar apiserver_profile: The cluster API server profile. + :vartype apiserver_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.APIServerProfile + :ivar ingress_profiles: The cluster ingress profiles. + :vartype ingress_profiles: list[~azure.mgmt.redhatopenshift.v2020_04_30.models.IngressProfile] """ _validation = { @@ -429,6 +504,34 @@ def __init__( ingress_profiles: Optional[List["IngressProfile"]] = None, **kwargs ): + """ + :keyword tags: A set of tags. Resource tags. + :paramtype tags: dict[str, str] + :keyword location: Required. The geo-location where the resource lives. + :paramtype location: str + :keyword provisioning_state: The cluster provisioning state (immutable). Possible values + include: "AdminUpdating", "Creating", "Deleting", "Failed", "Succeeded", "Updating". + :paramtype provisioning_state: str or + ~azure.mgmt.redhatopenshift.v2020_04_30.models.ProvisioningState + :keyword cluster_profile: The cluster profile. + :paramtype cluster_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.ClusterProfile + :keyword console_profile: The console profile. + :paramtype console_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.ConsoleProfile + :keyword service_principal_profile: The cluster service principal profile. + :paramtype service_principal_profile: + ~azure.mgmt.redhatopenshift.v2020_04_30.models.ServicePrincipalProfile + :keyword network_profile: The cluster network profile. + :paramtype network_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.NetworkProfile + :keyword master_profile: The cluster master profile. + :paramtype master_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.MasterProfile + :keyword worker_profiles: The cluster worker profiles. + :paramtype worker_profiles: list[~azure.mgmt.redhatopenshift.v2020_04_30.models.WorkerProfile] + :keyword apiserver_profile: The cluster API server profile. + :paramtype apiserver_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.APIServerProfile + :keyword ingress_profiles: The cluster ingress profiles. + :paramtype ingress_profiles: + list[~azure.mgmt.redhatopenshift.v2020_04_30.models.IngressProfile] + """ super(OpenShiftCluster, self).__init__(tags=tags, location=location, **kwargs) self.provisioning_state = provisioning_state self.cluster_profile = cluster_profile @@ -444,10 +547,10 @@ def __init__( class OpenShiftClusterCredentials(msrest.serialization.Model): """OpenShiftClusterCredentials represents an OpenShift cluster's credentials. - :param kubeadmin_username: The username for the kubeadmin user. - :type kubeadmin_username: str - :param kubeadmin_password: The password for the kubeadmin user. - :type kubeadmin_password: str + :ivar kubeadmin_username: The username for the kubeadmin user. + :vartype kubeadmin_username: str + :ivar kubeadmin_password: The password for the kubeadmin user. + :vartype kubeadmin_password: str """ _attribute_map = { @@ -462,6 +565,12 @@ def __init__( kubeadmin_password: Optional[str] = None, **kwargs ): + """ + :keyword kubeadmin_username: The username for the kubeadmin user. + :paramtype kubeadmin_username: str + :keyword kubeadmin_password: The password for the kubeadmin user. + :paramtype kubeadmin_password: str + """ super(OpenShiftClusterCredentials, self).__init__(**kwargs) self.kubeadmin_username = kubeadmin_username self.kubeadmin_password = kubeadmin_password @@ -470,10 +579,10 @@ def __init__( class OpenShiftClusterList(msrest.serialization.Model): """OpenShiftClusterList represents a list of OpenShift clusters. - :param value: The list of OpenShift clusters. - :type value: list[~azure.mgmt.redhatopenshift.v2020_04_30.models.OpenShiftCluster] - :param next_link: The link used to get the next page of operations. - :type next_link: str + :ivar value: The list of OpenShift clusters. + :vartype value: list[~azure.mgmt.redhatopenshift.v2020_04_30.models.OpenShiftCluster] + :ivar next_link: The link used to get the next page of operations. + :vartype next_link: str """ _attribute_map = { @@ -488,6 +597,12 @@ def __init__( next_link: Optional[str] = None, **kwargs ): + """ + :keyword value: The list of OpenShift clusters. + :paramtype value: list[~azure.mgmt.redhatopenshift.v2020_04_30.models.OpenShiftCluster] + :keyword next_link: The link used to get the next page of operations. + :paramtype next_link: str + """ super(OpenShiftClusterList, self).__init__(**kwargs) self.value = value self.next_link = next_link @@ -496,29 +611,29 @@ def __init__( class OpenShiftClusterUpdate(msrest.serialization.Model): """OpenShiftCluster represents an Azure Red Hat OpenShift cluster. - :param tags: A set of tags. The resource tags. - :type tags: dict[str, str] - :param provisioning_state: The cluster provisioning state (immutable). Possible values include: + :ivar tags: A set of tags. The resource tags. + :vartype tags: dict[str, str] + :ivar provisioning_state: The cluster provisioning state (immutable). Possible values include: "AdminUpdating", "Creating", "Deleting", "Failed", "Succeeded", "Updating". - :type provisioning_state: str or + :vartype provisioning_state: str or ~azure.mgmt.redhatopenshift.v2020_04_30.models.ProvisioningState - :param cluster_profile: The cluster profile. - :type cluster_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.ClusterProfile - :param console_profile: The console profile. - :type console_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.ConsoleProfile - :param service_principal_profile: The cluster service principal profile. - :type service_principal_profile: + :ivar cluster_profile: The cluster profile. + :vartype cluster_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.ClusterProfile + :ivar console_profile: The console profile. + :vartype console_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.ConsoleProfile + :ivar service_principal_profile: The cluster service principal profile. + :vartype service_principal_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.ServicePrincipalProfile - :param network_profile: The cluster network profile. - :type network_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.NetworkProfile - :param master_profile: The cluster master profile. - :type master_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.MasterProfile - :param worker_profiles: The cluster worker profiles. - :type worker_profiles: list[~azure.mgmt.redhatopenshift.v2020_04_30.models.WorkerProfile] - :param apiserver_profile: The cluster API server profile. - :type apiserver_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.APIServerProfile - :param ingress_profiles: The cluster ingress profiles. - :type ingress_profiles: list[~azure.mgmt.redhatopenshift.v2020_04_30.models.IngressProfile] + :ivar network_profile: The cluster network profile. + :vartype network_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.NetworkProfile + :ivar master_profile: The cluster master profile. + :vartype master_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.MasterProfile + :ivar worker_profiles: The cluster worker profiles. + :vartype worker_profiles: list[~azure.mgmt.redhatopenshift.v2020_04_30.models.WorkerProfile] + :ivar apiserver_profile: The cluster API server profile. + :vartype apiserver_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.APIServerProfile + :ivar ingress_profiles: The cluster ingress profiles. + :vartype ingress_profiles: list[~azure.mgmt.redhatopenshift.v2020_04_30.models.IngressProfile] """ _attribute_map = { @@ -549,6 +664,32 @@ def __init__( ingress_profiles: Optional[List["IngressProfile"]] = None, **kwargs ): + """ + :keyword tags: A set of tags. The resource tags. + :paramtype tags: dict[str, str] + :keyword provisioning_state: The cluster provisioning state (immutable). Possible values + include: "AdminUpdating", "Creating", "Deleting", "Failed", "Succeeded", "Updating". + :paramtype provisioning_state: str or + ~azure.mgmt.redhatopenshift.v2020_04_30.models.ProvisioningState + :keyword cluster_profile: The cluster profile. + :paramtype cluster_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.ClusterProfile + :keyword console_profile: The console profile. + :paramtype console_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.ConsoleProfile + :keyword service_principal_profile: The cluster service principal profile. + :paramtype service_principal_profile: + ~azure.mgmt.redhatopenshift.v2020_04_30.models.ServicePrincipalProfile + :keyword network_profile: The cluster network profile. + :paramtype network_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.NetworkProfile + :keyword master_profile: The cluster master profile. + :paramtype master_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.MasterProfile + :keyword worker_profiles: The cluster worker profiles. + :paramtype worker_profiles: list[~azure.mgmt.redhatopenshift.v2020_04_30.models.WorkerProfile] + :keyword apiserver_profile: The cluster API server profile. + :paramtype apiserver_profile: ~azure.mgmt.redhatopenshift.v2020_04_30.models.APIServerProfile + :keyword ingress_profiles: The cluster ingress profiles. + :paramtype ingress_profiles: + list[~azure.mgmt.redhatopenshift.v2020_04_30.models.IngressProfile] + """ super(OpenShiftClusterUpdate, self).__init__(**kwargs) self.tags = tags self.provisioning_state = provisioning_state @@ -565,13 +706,13 @@ def __init__( class Operation(msrest.serialization.Model): """Operation represents an RP operation. - :param name: Operation name: {provider}/{resource}/{operation}. - :type name: str - :param display: The object that describes the operation. - :type display: ~azure.mgmt.redhatopenshift.v2020_04_30.models.Display - :param origin: Sources of requests to this operation. Comma separated list with valid values + :ivar name: Operation name: {provider}/{resource}/{operation}. + :vartype name: str + :ivar display: The object that describes the operation. + :vartype display: ~azure.mgmt.redhatopenshift.v2020_04_30.models.Display + :ivar origin: Sources of requests to this operation. Comma separated list with valid values user or system, e.g. "user,system". - :type origin: str + :vartype origin: str """ _attribute_map = { @@ -588,6 +729,15 @@ def __init__( origin: Optional[str] = None, **kwargs ): + """ + :keyword name: Operation name: {provider}/{resource}/{operation}. + :paramtype name: str + :keyword display: The object that describes the operation. + :paramtype display: ~azure.mgmt.redhatopenshift.v2020_04_30.models.Display + :keyword origin: Sources of requests to this operation. Comma separated list with valid values + user or system, e.g. "user,system". + :paramtype origin: str + """ super(Operation, self).__init__(**kwargs) self.name = name self.display = display @@ -597,10 +747,10 @@ def __init__( class OperationList(msrest.serialization.Model): """OperationList represents an RP operation list. - :param value: List of operations supported by the resource provider. - :type value: list[~azure.mgmt.redhatopenshift.v2020_04_30.models.Operation] - :param next_link: The link used to get the next page of operations. - :type next_link: str + :ivar value: List of operations supported by the resource provider. + :vartype value: list[~azure.mgmt.redhatopenshift.v2020_04_30.models.Operation] + :ivar next_link: The link used to get the next page of operations. + :vartype next_link: str """ _attribute_map = { @@ -615,6 +765,12 @@ def __init__( next_link: Optional[str] = None, **kwargs ): + """ + :keyword value: List of operations supported by the resource provider. + :paramtype value: list[~azure.mgmt.redhatopenshift.v2020_04_30.models.Operation] + :keyword next_link: The link used to get the next page of operations. + :paramtype next_link: str + """ super(OperationList, self).__init__(**kwargs) self.value = value self.next_link = next_link @@ -623,10 +779,10 @@ def __init__( class ServicePrincipalProfile(msrest.serialization.Model): """ServicePrincipalProfile represents a service principal profile. - :param client_id: The client ID used for the cluster (immutable). - :type client_id: str - :param client_secret: The client secret used for the cluster (immutable). - :type client_secret: str + :ivar client_id: The client ID used for the cluster (immutable). + :vartype client_id: str + :ivar client_secret: The client secret used for the cluster (immutable). + :vartype client_secret: str """ _attribute_map = { @@ -641,6 +797,12 @@ def __init__( client_secret: Optional[str] = None, **kwargs ): + """ + :keyword client_id: The client ID used for the cluster (immutable). + :paramtype client_id: str + :keyword client_secret: The client secret used for the cluster (immutable). + :paramtype client_secret: str + """ super(ServicePrincipalProfile, self).__init__(**kwargs) self.client_id = client_id self.client_secret = client_secret @@ -649,17 +811,17 @@ def __init__( class WorkerProfile(msrest.serialization.Model): """WorkerProfile represents a worker profile. - :param name: The worker profile name. Must be "worker" (immutable). - :type name: str - :param vm_size: The size of the worker VMs (immutable). Possible values include: + :ivar name: The worker profile name. Must be "worker" (immutable). + :vartype name: str + :ivar vm_size: The size of the worker VMs (immutable). Possible values include: "Standard_D2s_v3", "Standard_D4s_v3", "Standard_D8s_v3". - :type vm_size: str or ~azure.mgmt.redhatopenshift.v2020_04_30.models.VMSize - :param disk_size_gb: The disk size of the worker VMs. Must be 128 or greater (immutable). - :type disk_size_gb: int - :param subnet_id: The Azure resource ID of the worker subnet (immutable). - :type subnet_id: str - :param count: The number of worker VMs. Must be between 3 and 20 (immutable). - :type count: int + :vartype vm_size: str or ~azure.mgmt.redhatopenshift.v2020_04_30.models.VMSize + :ivar disk_size_gb: The disk size of the worker VMs. Must be 128 or greater (immutable). + :vartype disk_size_gb: int + :ivar subnet_id: The Azure resource ID of the worker subnet (immutable). + :vartype subnet_id: str + :ivar count: The number of worker VMs. Must be between 3 and 20 (immutable). + :vartype count: int """ _attribute_map = { @@ -680,6 +842,19 @@ def __init__( count: Optional[int] = None, **kwargs ): + """ + :keyword name: The worker profile name. Must be "worker" (immutable). + :paramtype name: str + :keyword vm_size: The size of the worker VMs (immutable). Possible values include: + "Standard_D2s_v3", "Standard_D4s_v3", "Standard_D8s_v3". + :paramtype vm_size: str or ~azure.mgmt.redhatopenshift.v2020_04_30.models.VMSize + :keyword disk_size_gb: The disk size of the worker VMs. Must be 128 or greater (immutable). + :paramtype disk_size_gb: int + :keyword subnet_id: The Azure resource ID of the worker subnet (immutable). + :paramtype subnet_id: str + :keyword count: The number of worker VMs. Must be between 3 and 20 (immutable). + :paramtype count: int + """ super(WorkerProfile, self).__init__(**kwargs) self.name = name self.vm_size = vm_size diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/operations/_open_shift_clusters_operations.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/operations/_open_shift_clusters_operations.py index c09e28883850..2cbc68dd1caa 100644 --- a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/operations/_open_shift_clusters_operations.py +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/operations/_open_shift_clusters_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,25 +6,289 @@ # 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 typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union + +from msrest import Serializer 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.pipeline.transport import HttpResponse from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace 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]] +from .._vendor import _convert_request, _format_url_section +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +_SERIALIZER = Serializer() +_SERIALIZER.client_side_validation = False + +def build_list_request( + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2020-04-30") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.RedHatOpenShift/openShiftClusters") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + + +def build_list_by_resource_group_request( + subscription_id: str, + resource_group_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2020-04-30") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + + +def build_get_request( + subscription_id: str, + resource_group_name: str, + resource_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2020-04-30") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "resourceName": _SERIALIZER.url("resource_name", resource_name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + + +def build_create_or_update_request_initial( + subscription_id: str, + resource_group_name: str, + resource_name: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2020-04-30") # type: str + content_type = kwargs.pop('content_type', None) # type: Optional[str] + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "resourceName": _SERIALIZER.url("resource_name", resource_name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="PUT", + url=_url, + params=_query_parameters, + headers=_header_parameters, + json=json, + content=content, + **kwargs + ) + + +def build_delete_request_initial( + subscription_id: str, + resource_group_name: str, + resource_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2020-04-30") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "resourceName": _SERIALIZER.url("resource_name", resource_name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="DELETE", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + + +def build_update_request_initial( + subscription_id: str, + resource_group_name: str, + resource_name: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2020-04-30") # type: str + content_type = kwargs.pop('content_type', None) # type: Optional[str] + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "resourceName": _SERIALIZER.url("resource_name", resource_name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="PATCH", + url=_url, + params=_query_parameters, + headers=_header_parameters, + json=json, + content=content, + **kwargs + ) + + +def build_list_credentials_request( + subscription_id: str, + resource_group_name: str, + resource_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2020-04-30") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}/listCredentials") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "resourceName": _SERIALIZER.url("resource_name", resource_name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) class OpenShiftClustersOperations(object): """OpenShiftClustersOperations operations. @@ -47,53 +312,54 @@ def __init__(self, client, config, serializer, deserializer): self._deserialize = deserializer self._config = config + @distributed_trace def list( self, - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.OpenShiftClusterList"] + **kwargs: Any + ) -> Iterable["_models.OpenShiftClusterList"]: """Lists OpenShift clusters in the specified subscription. The operation returns properties of each OpenShift cluster. :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either OpenShiftClusterList or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.redhatopenshift.v2020_04_30.models.OpenShiftClusterList] + :return: An iterator like instance of either OpenShiftClusterList or the result of + cls(response) + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.redhatopenshift.v2020_04_30.models.OpenShiftClusterList] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2020-04-30") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftClusterList"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-04-30" - 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 = { - '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) - # 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) + + request = build_list_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + template_url=self.list.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) + + request = build_list_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" return request def extract_data(pipeline_response): - deserialized = self._deserialize('OpenShiftClusterList', pipeline_response) + deserialized = self._deserialize("OpenShiftClusterList", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -102,7 +368,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -111,17 +381,18 @@ def get_next(next_link=None): return pipeline_response + return ItemPaged( get_next, extract_data ) - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.RedHatOpenShift/openShiftClusters'} # type: ignore + list.metadata = {'url': "/subscriptions/{subscriptionId}/providers/Microsoft.RedHatOpenShift/openShiftClusters"} # type: ignore + @distributed_trace def list_by_resource_group( self, - resource_group_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.OpenShiftClusterList"] + resource_group_name: str, + **kwargs: Any + ) -> Iterable["_models.OpenShiftClusterList"]: """Lists OpenShift clusters in the specified subscription and resource group. The operation returns properties of each OpenShift cluster. @@ -129,44 +400,46 @@ def list_by_resource_group( :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either OpenShiftClusterList or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.redhatopenshift.v2020_04_30.models.OpenShiftClusterList] + :return: An iterator like instance of either OpenShiftClusterList or the result of + cls(response) + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.redhatopenshift.v2020_04_30.models.OpenShiftClusterList] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2020-04-30") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftClusterList"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-04-30" - 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', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - } - 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) + + request = build_list_by_resource_group_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + api_version=api_version, + template_url=self.list_by_resource_group.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) + + request = build_list_by_resource_group_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + api_version=api_version, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" return request def extract_data(pipeline_response): - deserialized = self._deserialize('OpenShiftClusterList', pipeline_response) + deserialized = self._deserialize("OpenShiftClusterList", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -175,7 +448,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -184,18 +461,19 @@ def get_next(next_link=None): return pipeline_response + return ItemPaged( get_next, extract_data ) - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters'} # type: ignore + list_by_resource_group.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters"} # type: ignore + @distributed_trace def get( self, - resource_group_name, # type: str - resource_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.OpenShiftCluster" + resource_group_name: str, + resource_name: str, + **kwargs: Any + ) -> "_models.OpenShiftCluster": """Gets a OpenShift cluster with the specified subscription, resource group and resource name. The operation returns properties of a OpenShift cluster. @@ -214,28 +492,25 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-04-30" - 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\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_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') + api_version = kwargs.pop('api_version', "2020-04-30") # type: str - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = build_get_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + template_url=self.get.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -248,48 +523,45 @@ def get( return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}'} # type: ignore + + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + def _create_or_update_initial( self, - resource_group_name, # type: str - resource_name, # type: str - parameters, # type: "_models.OpenShiftCluster" - **kwargs # type: Any - ): - # type: (...) -> "_models.OpenShiftCluster" + resource_group_name: str, + resource_name: str, + parameters: "_models.OpenShiftCluster", + **kwargs: Any + ) -> "_models.OpenShiftCluster": cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftCluster"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-04-30" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - 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\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_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(parameters, 'OpenShiftCluster') - 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) + + api_version = kwargs.pop('api_version', "2020-04-30") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + + _json = self._serialize.body(parameters, 'OpenShiftCluster') + + request = build_create_or_update_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + content_type=content_type, + json=_json, + template_url=self._create_or_update_initial.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -306,17 +578,20 @@ def _create_or_update_initial( return cls(pipeline_response, deserialized, {}) return deserialized - _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}'} # type: ignore + _create_or_update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + + @distributed_trace def begin_create_or_update( self, - resource_group_name, # type: str - resource_name, # type: str - parameters, # type: "_models.OpenShiftCluster" - **kwargs # type: Any - ): - # type: (...) -> LROPoller["_models.OpenShiftCluster"] - """Creates or updates a OpenShift cluster with the specified subscription, resource group and resource name. + resource_group_name: str, + resource_name: str, + parameters: "_models.OpenShiftCluster", + **kwargs: Any + ) -> LROPoller["_models.OpenShiftCluster"]: + """Creates or updates a OpenShift cluster with the specified subscription, resource group and + resource name. The operation returns properties of a OpenShift cluster. @@ -328,14 +603,20 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.redhatopenshift.v2020_04_30.models.OpenShiftCluster :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. + :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 OpenShiftCluster or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.redhatopenshift.v2020_04_30.models.OpenShiftCluster] - :raises ~azure.core.exceptions.HttpResponseError: + :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 OpenShiftCluster or the result of + cls(response) + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.redhatopenshift.v2020_04_30.models.OpenShiftCluster] + :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2020-04-30") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftCluster"] lro_delay = kwargs.pop( @@ -348,27 +629,22 @@ def begin_create_or_update( resource_group_name=resource_group_name, resource_name=resource_name, parameters=parameters, + api_version=api_version, + content_type=content_type, cls=lambda x,y,z: x, **kwargs ) - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): + response = pipeline_response.http_response deserialized = self._deserialize('OpenShiftCluster', 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, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str'), - } - if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling if cont_token: @@ -378,44 +654,40 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}'} # type: ignore + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + + begin_create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore - def _delete_initial( + def _delete_initial( # pylint: disable=inconsistent-return-statements self, - resource_group_name, # type: str - resource_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> None + resource_group_name: str, + resource_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 = "2020-04-30" - 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\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_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') + api_version = kwargs.pop('api_version', "2020-04-30") # type: str - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = build_delete_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + template_url=self._delete_initial.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [202, 204]: @@ -425,15 +697,16 @@ def _delete_initial( if cls: return cls(pipeline_response, None, {}) - _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}'} # type: ignore + _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + - def begin_delete( + @distributed_trace + def begin_delete( # pylint: disable=inconsistent-return-statements self, - resource_group_name, # type: str - resource_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> LROPoller[None] + resource_group_name: str, + resource_name: str, + **kwargs: Any + ) -> LROPoller[None]: """Deletes a OpenShift cluster with the specified subscription, resource group and resource name. The operation returns nothing. @@ -444,14 +717,17 @@ def begin_delete( :type resource_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. + :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. + :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: + :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2020-04-30") # type: str polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType[None] lro_delay = kwargs.pop( @@ -463,24 +739,18 @@ def begin_delete( raw_result = self._delete_initial( resource_group_name=resource_group_name, resource_name=resource_name, + api_version=api_version, 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, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str'), - } - if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling if cont_token: @@ -490,50 +760,45 @@ def get_long_running_output(pipeline_response): 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.RedHatOpenShift/openShiftClusters/{resourceName}'} # type: ignore + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + + begin_delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore def _update_initial( self, - resource_group_name, # type: str - resource_name, # type: str - parameters, # type: "_models.OpenShiftClusterUpdate" - **kwargs # type: Any - ): - # type: (...) -> "_models.OpenShiftCluster" + resource_group_name: str, + resource_name: str, + parameters: "_models.OpenShiftClusterUpdate", + **kwargs: Any + ) -> "_models.OpenShiftCluster": cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftCluster"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-04-30" - 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, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_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(parameters, 'OpenShiftClusterUpdate') - 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) + + api_version = kwargs.pop('api_version', "2020-04-30") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + + _json = self._serialize.body(parameters, 'OpenShiftClusterUpdate') + + request = build_update_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + content_type=content_type, + json=_json, + template_url=self._update_initial.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -550,17 +815,20 @@ def _update_initial( return cls(pipeline_response, deserialized, {}) return deserialized - _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}'} # type: ignore + _update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + + @distributed_trace def begin_update( self, - resource_group_name, # type: str - resource_name, # type: str - parameters, # type: "_models.OpenShiftClusterUpdate" - **kwargs # type: Any - ): - # type: (...) -> LROPoller["_models.OpenShiftCluster"] - """Creates or updates a OpenShift cluster with the specified subscription, resource group and resource name. + resource_group_name: str, + resource_name: str, + parameters: "_models.OpenShiftClusterUpdate", + **kwargs: Any + ) -> LROPoller["_models.OpenShiftCluster"]: + """Creates or updates a OpenShift cluster with the specified subscription, resource group and + resource name. The operation returns properties of a OpenShift cluster. @@ -572,14 +840,20 @@ def begin_update( :type parameters: ~azure.mgmt.redhatopenshift.v2020_04_30.models.OpenShiftClusterUpdate :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. + :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 OpenShiftCluster or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.redhatopenshift.v2020_04_30.models.OpenShiftCluster] - :raises ~azure.core.exceptions.HttpResponseError: + :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 OpenShiftCluster or the result of + cls(response) + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.redhatopenshift.v2020_04_30.models.OpenShiftCluster] + :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2020-04-30") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftCluster"] lro_delay = kwargs.pop( @@ -592,27 +866,22 @@ def begin_update( resource_group_name=resource_group_name, resource_name=resource_name, parameters=parameters, + api_version=api_version, + content_type=content_type, cls=lambda x,y,z: x, **kwargs ) - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): + response = pipeline_response.http_response deserialized = self._deserialize('OpenShiftCluster', 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, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str'), - } - if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling if cont_token: @@ -622,18 +891,19 @@ def get_long_running_output(pipeline_response): 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.RedHatOpenShift/openShiftClusters/{resourceName}'} # type: ignore + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + @distributed_trace def list_credentials( self, - resource_group_name, # type: str - resource_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.OpenShiftClusterCredentials" - """Lists credentials of an OpenShift cluster with the specified subscription, resource group and resource name. + resource_group_name: str, + resource_name: str, + **kwargs: Any + ) -> "_models.OpenShiftClusterCredentials": + """Lists credentials of an OpenShift cluster with the specified subscription, resource group and + resource name. The operation returns the credentials. @@ -651,28 +921,25 @@ def list_credentials( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-04-30" - accept = "application/json" - - # Construct URL - url = self.list_credentials.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_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') + api_version = kwargs.pop('api_version', "2020-04-30") # type: str - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = build_list_credentials_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + template_url=self.list_credentials.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) - request = self._client.post(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -685,4 +952,6 @@ def list_credentials( return cls(pipeline_response, deserialized, {}) return deserialized - list_credentials.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}/listCredentials'} # type: ignore + + list_credentials.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}/listCredentials"} # type: ignore + diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/operations/_operations.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/operations/_operations.py index ab66926ecaa8..ace078e37d1b 100644 --- a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/operations/_operations.py +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2020_04_30/operations/_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,23 +6,50 @@ # 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 typing import Any, Callable, Dict, Iterable, Optional, TypeVar + +from msrest import Serializer 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.pipeline.transport import HttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace 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]] +from .._vendor import _convert_request +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +_SERIALIZER = Serializer() +_SERIALIZER.client_side_validation = False + +def build_list_request( + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2020-04-30") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/providers/Microsoft.RedHatOpenShift/operations") + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) class Operations(object): """Operations operations. @@ -45,49 +73,51 @@ def __init__(self, client, config, serializer, deserializer): self._deserialize = deserializer self._config = config + @distributed_trace def list( self, - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.OperationList"] + **kwargs: Any + ) -> Iterable["_models.OperationList"]: """Lists all of the available RP operations. The operation returns the RP operations. :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either OperationList or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.redhatopenshift.v2020_04_30.models.OperationList] + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.redhatopenshift.v2020_04_30.models.OperationList] :raises: ~azure.core.exceptions.HttpResponseError """ + api_version = kwargs.pop('api_version', "2020-04-30") # type: str + cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationList"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-04-30" - 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 - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = build_list_request( + api_version=api_version, + template_url=self.list.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) - 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) + + request = build_list_request( + api_version=api_version, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" return request def extract_data(pipeline_response): - deserialized = self._deserialize('OperationList', pipeline_response) + deserialized = self._deserialize("OperationList", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -96,7 +126,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -105,7 +139,8 @@ def get_next(next_link=None): return pipeline_response + return ItemPaged( get_next, extract_data ) - list.metadata = {'url': '/providers/Microsoft.RedHatOpenShift/operations'} # type: ignore + list.metadata = {'url': "/providers/Microsoft.RedHatOpenShift/operations"} # type: ignore diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/__init__.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/__init__.py new file mode 100644 index 000000000000..a81e4a399ecf --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/__init__.py @@ -0,0 +1,18 @@ +# 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_red_hat_open_shift_client import AzureRedHatOpenShiftClient +from ._version import VERSION + +__version__ = VERSION +__all__ = ['AzureRedHatOpenShiftClient'] + +# `._patch.py` is used for handwritten extensions to the generated code +# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md +from ._patch import patch_sdk +patch_sdk() diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/_azure_red_hat_open_shift_client.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/_azure_red_hat_open_shift_client.py new file mode 100644 index 000000000000..f1773f04fb8a --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/_azure_red_hat_open_shift_client.py @@ -0,0 +1,101 @@ +# 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 copy import deepcopy +from typing import Any, TYPE_CHECKING + +from msrest import Deserializer, Serializer + +from azure.core.rest import HttpRequest, HttpResponse +from azure.mgmt.core import ARMPipelineClient + +from . import models +from ._configuration import AzureRedHatOpenShiftClientConfiguration +from .operations import OpenShiftClustersOperations, Operations + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials import TokenCredential + +class AzureRedHatOpenShiftClient: + """Rest API for Azure Red Hat OpenShift 4. + + :ivar operations: Operations operations + :vartype operations: azure.mgmt.redhatopenshift.v2021_09_01_preview.operations.Operations + :ivar open_shift_clusters: OpenShiftClustersOperations operations + :vartype open_shift_clusters: + azure.mgmt.redhatopenshift.v2021_09_01_preview.operations.OpenShiftClustersOperations + :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 base_url: Service URL. Default value is "https://management.azure.com". + :type base_url: str + :keyword api_version: Api Version. Default value is "2021-09-01-preview". Note that overriding + this default value may result in unsupported behavior. + :paramtype api_version: str + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. + """ + + def __init__( + self, + credential: "TokenCredential", + subscription_id: str, + base_url: str = "https://management.azure.com", + **kwargs: Any + ) -> None: + self._config = AzureRedHatOpenShiftClientConfiguration(credential=credential, subscription_id=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._deserialize = Deserializer(client_models) + self._serialize.client_side_validation = False + self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) + self.open_shift_clusters = OpenShiftClustersOperations(self._client, self._config, self._serialize, self._deserialize) + + + def _send_request( + self, + request: HttpRequest, + **kwargs: Any + ) -> HttpResponse: + """Runs the network request through the client's chained policies. + + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest("GET", "https://www.example.org/") + + >>> 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) + + def close(self): + # type: () -> None + self._client.close() + + def __enter__(self): + # type: () -> AzureRedHatOpenShiftClient + self._client.__enter__() + return self + + def __exit__(self, *exc_details): + # type: (Any) -> None + self._client.__exit__(*exc_details) diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/_configuration.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/_configuration.py new file mode 100644 index 000000000000..6f67bc712663 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/_configuration.py @@ -0,0 +1,73 @@ +# 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 ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy + +from ._version import VERSION + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials import TokenCredential + + +class AzureRedHatOpenShiftClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes + """Configuration for AzureRedHatOpenShiftClient. + + 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: The ID of the target subscription. + :type subscription_id: str + :keyword api_version: Api Version. Default value is "2021-09-01-preview". Note that overriding + this default value may result in unsupported behavior. + :paramtype api_version: str + """ + + def __init__( + self, + credential: "TokenCredential", + subscription_id: str, + **kwargs: Any + ) -> None: + super(AzureRedHatOpenShiftClientConfiguration, self).__init__(**kwargs) + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + + 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.") + + self.credential = credential + self.subscription_id = subscription_id + self.api_version = api_version + self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) + kwargs.setdefault('sdk_moniker', 'mgmt-redhatopenshift/{}'.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 = ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/_metadata.json b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/_metadata.json new file mode 100644 index 000000000000..ecb242286926 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/_metadata.json @@ -0,0 +1,103 @@ +{ + "chosen_version": "2021-09-01-preview", + "total_api_version_list": ["2021-09-01-preview"], + "client": { + "name": "AzureRedHatOpenShiftClient", + "filename": "_azure_red_hat_open_shift_client", + "description": "Rest API for Azure Red Hat OpenShift 4.", + "host_value": "\"https://management.azure.com\"", + "parameterized_host_template": 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\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AzureRedHatOpenShiftClientConfiguration\"]}, \"thirdparty\": {\"msrest\": [\"Deserializer\", \"Serializer\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"], \"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AzureRedHatOpenShiftClientConfiguration\"]}, \"thirdparty\": {\"msrest\": [\"Deserializer\", \"Serializer\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" + }, + "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": "The ID of the target subscription.", + "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": "The ID of the target subscription.", + "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=\"https://management.azure.com\", # type: 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: str = \"https://management.azure.com\",", + "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_call_sync": "ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)", + "credential_call_async": "AsyncARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)", + "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMChallengeAuthenticationPolicy\", \"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\", \"AsyncARMChallengeAuthenticationPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}" + }, + "operation_groups": { + "operations": "Operations", + "open_shift_clusters": "OpenShiftClustersOperations" + } +} \ No newline at end of file diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/_patch.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/_patch.py new file mode 100644 index 000000000000..74e48ecd07cf --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/_patch.py @@ -0,0 +1,31 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# +# 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. +# +# -------------------------------------------------------------------------- + +# This file is used for handwritten extensions to the generated code. Example: +# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md +def patch_sdk(): + pass \ No newline at end of file diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/_vendor.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/_vendor.py new file mode 100644 index 000000000000..138f663c53a4 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/_vendor.py @@ -0,0 +1,27 @@ +# -------------------------------------------------------------------------- +# 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.pipeline.transport import HttpRequest + +def _convert_request(request, files=None): + data = request.content if not files else None + request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) + if files: + request.set_formdata_body(files) + return request + +def _format_url_section(template, **kwargs): + components = template.split("/") + while components: + try: + return template.format(**kwargs) + except KeyError as key: + formatted_components = template.split("/") + components = [ + c for c in formatted_components if "{}".format(key.args[0]) not in c + ] + template = "/".join(components) diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/_version.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/_version.py new file mode 100644 index 000000000000..59deb8c7263b --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/_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.1.0" diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/aio/__init__.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/aio/__init__.py new file mode 100644 index 000000000000..6be616fa9ec0 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/aio/__init__.py @@ -0,0 +1,15 @@ +# 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_red_hat_open_shift_client import AzureRedHatOpenShiftClient +__all__ = ['AzureRedHatOpenShiftClient'] + +# `._patch.py` is used for handwritten extensions to the generated code +# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md +from ._patch import patch_sdk +patch_sdk() diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/aio/_azure_red_hat_open_shift_client.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/aio/_azure_red_hat_open_shift_client.py new file mode 100644 index 000000000000..9561a6edd8d2 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/aio/_azure_red_hat_open_shift_client.py @@ -0,0 +1,98 @@ +# 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 copy import deepcopy +from typing import Any, Awaitable, TYPE_CHECKING + +from msrest import Deserializer, Serializer + +from azure.core.rest import AsyncHttpResponse, HttpRequest +from azure.mgmt.core import AsyncARMPipelineClient + +from .. import models +from ._configuration import AzureRedHatOpenShiftClientConfiguration +from .operations import OpenShiftClustersOperations, Operations + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials_async import AsyncTokenCredential + +class AzureRedHatOpenShiftClient: + """Rest API for Azure Red Hat OpenShift 4. + + :ivar operations: Operations operations + :vartype operations: azure.mgmt.redhatopenshift.v2021_09_01_preview.aio.operations.Operations + :ivar open_shift_clusters: OpenShiftClustersOperations operations + :vartype open_shift_clusters: + azure.mgmt.redhatopenshift.v2021_09_01_preview.aio.operations.OpenShiftClustersOperations + :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 base_url: Service URL. Default value is "https://management.azure.com". + :type base_url: str + :keyword api_version: Api Version. Default value is "2021-09-01-preview". Note that overriding + this default value may result in unsupported behavior. + :paramtype api_version: str + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. + """ + + def __init__( + self, + credential: "AsyncTokenCredential", + subscription_id: str, + base_url: str = "https://management.azure.com", + **kwargs: Any + ) -> None: + self._config = AzureRedHatOpenShiftClientConfiguration(credential=credential, subscription_id=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._deserialize = Deserializer(client_models) + self._serialize.client_side_validation = False + self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) + self.open_shift_clusters = OpenShiftClustersOperations(self._client, self._config, self._serialize, self._deserialize) + + + def _send_request( + self, + request: HttpRequest, + **kwargs: Any + ) -> Awaitable[AsyncHttpResponse]: + """Runs the network request through the client's chained policies. + + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest("GET", "https://www.example.org/") + + >>> 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) -> "AzureRedHatOpenShiftClient": + await self._client.__aenter__() + return self + + async def __aexit__(self, *exc_details) -> None: + await self._client.__aexit__(*exc_details) diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/aio/_configuration.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/aio/_configuration.py new file mode 100644 index 000000000000..e1c023593a79 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/aio/_configuration.py @@ -0,0 +1,72 @@ +# 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, AsyncARMChallengeAuthenticationPolicy + +from .._version import VERSION + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials_async import AsyncTokenCredential + + +class AzureRedHatOpenShiftClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes + """Configuration for AzureRedHatOpenShiftClient. + + 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: The ID of the target subscription. + :type subscription_id: str + :keyword api_version: Api Version. Default value is "2021-09-01-preview". Note that overriding + this default value may result in unsupported behavior. + :paramtype api_version: str + """ + + def __init__( + self, + credential: "AsyncTokenCredential", + subscription_id: str, + **kwargs: Any + ) -> None: + super(AzureRedHatOpenShiftClientConfiguration, self).__init__(**kwargs) + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + + 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.") + + self.credential = credential + self.subscription_id = subscription_id + self.api_version = api_version + self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) + kwargs.setdefault('sdk_moniker', 'mgmt-redhatopenshift/{}'.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 = AsyncARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/aio/_patch.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/aio/_patch.py new file mode 100644 index 000000000000..74e48ecd07cf --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/aio/_patch.py @@ -0,0 +1,31 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# +# 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. +# +# -------------------------------------------------------------------------- + +# This file is used for handwritten extensions to the generated code. Example: +# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md +def patch_sdk(): + pass \ No newline at end of file diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/aio/operations/__init__.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/aio/operations/__init__.py new file mode 100644 index 000000000000..7ffcf7895ee8 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/aio/operations/__init__.py @@ -0,0 +1,15 @@ +# 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 ._operations import Operations +from ._open_shift_clusters_operations import OpenShiftClustersOperations + +__all__ = [ + 'Operations', + 'OpenShiftClustersOperations', +] diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/aio/operations/_open_shift_clusters_operations.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/aio/operations/_open_shift_clusters_operations.py new file mode 100644 index 000000000000..352e8b995039 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/aio/operations/_open_shift_clusters_operations.py @@ -0,0 +1,753 @@ +# pylint: disable=too-many-lines +# 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, Optional, TypeVar, Union + +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 +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace +from azure.core.tracing.decorator_async import distributed_trace_async +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models +from ..._vendor import _convert_request +from ...operations._open_shift_clusters_operations import build_create_or_update_request_initial, build_delete_request_initial, build_get_request, build_list_admin_credentials_request, build_list_by_resource_group_request, build_list_credentials_request, build_list_request, build_update_request_initial +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class OpenShiftClustersOperations: + """OpenShiftClustersOperations 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.redhatopenshift.v2021_09_01_preview.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 + + @distributed_trace + def list( + self, + **kwargs: Any + ) -> AsyncIterable["_models.OpenShiftClusterList"]: + """Lists OpenShift clusters in the specified subscription. + + The operation returns properties of each OpenShift cluster. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either OpenShiftClusterList or the result of + cls(response) + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.OpenShiftClusterList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftClusterList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + def prepare_request(next_link=None): + if not next_link: + + request = build_list_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + template_url=self.list.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + else: + + request = build_list_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize("OpenShiftClusterList", 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( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': "/subscriptions/{subscriptionId}/providers/Microsoft.RedHatOpenShift/openShiftClusters"} # type: ignore + + @distributed_trace + def list_by_resource_group( + self, + resource_group_name: str, + **kwargs: Any + ) -> AsyncIterable["_models.OpenShiftClusterList"]: + """Lists OpenShift clusters in the specified subscription and resource group. + + The operation returns properties of each OpenShift cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either OpenShiftClusterList or the result of + cls(response) + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.OpenShiftClusterList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftClusterList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + def prepare_request(next_link=None): + if not next_link: + + request = build_list_by_resource_group_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + api_version=api_version, + template_url=self.list_by_resource_group.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + else: + + request = build_list_by_resource_group_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + api_version=api_version, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize("OpenShiftClusterList", 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( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters"} # type: ignore + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + resource_name: str, + **kwargs: Any + ) -> "_models.OpenShiftCluster": + """Gets a OpenShift cluster with the specified subscription, resource group and resource name. + + The operation returns properties of a OpenShift cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param resource_name: The name of the OpenShift cluster resource. + :type resource_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: OpenShiftCluster, or the result of cls(response) + :rtype: ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.OpenShiftCluster + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftCluster"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + + + request = build_get_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + template_url=self.get.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + + async def _create_or_update_initial( + self, + resource_group_name: str, + resource_name: str, + parameters: "_models.OpenShiftCluster", + **kwargs: Any + ) -> "_models.OpenShiftCluster": + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftCluster"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + + _json = self._serialize.body(parameters, 'OpenShiftCluster') + + request = build_create_or_update_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + content_type=content_type, + json=_json, + template_url=self._create_or_update_initial.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + _create_or_update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + resource_name: str, + parameters: "_models.OpenShiftCluster", + **kwargs: Any + ) -> AsyncLROPoller["_models.OpenShiftCluster"]: + """Creates or updates a OpenShift cluster with the specified subscription, resource group and + resource name. + + The operation returns properties of a OpenShift cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param resource_name: The name of the OpenShift cluster resource. + :type resource_name: str + :param parameters: The OpenShift cluster resource. + :type parameters: ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.OpenShiftCluster + :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 OpenShiftCluster or the result of + cls(response) + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.OpenShiftCluster] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftCluster"] + 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_or_update_initial( + resource_group_name=resource_group_name, + resource_name=resource_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x,y,z: x, + **kwargs + ) + kwargs.pop('error_map', None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + + if polling is True: polling_method = AsyncARMPolling(lro_delay, **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 + ) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + + begin_create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + async def _delete_initial( # pylint: disable=inconsistent-return-statements + self, + resource_group_name: str, + resource_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 = kwargs.pop('api_version', "2021-09-01-preview") # type: str + + + request = build_delete_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + template_url=self._delete_initial.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + + @distributed_trace_async + async def begin_delete( # pylint: disable=inconsistent-return-statements + self, + resource_group_name: str, + resource_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes a OpenShift cluster with the specified subscription, resource group and resource name. + + The operation returns nothing. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param resource_name: The name of the OpenShift cluster resource. + :type resource_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 + """ + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + 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, + resource_name=resource_name, + api_version=api_version, + cls=lambda x,y,z: x, + **kwargs + ) + kwargs.pop('error_map', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + + if polling is True: polling_method = AsyncARMPolling(lro_delay, **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 + ) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + + begin_delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + async def _update_initial( + self, + resource_group_name: str, + resource_name: str, + parameters: "_models.OpenShiftClusterUpdate", + **kwargs: Any + ) -> "_models.OpenShiftCluster": + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftCluster"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + + _json = self._serialize.body(parameters, 'OpenShiftClusterUpdate') + + request = build_update_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + content_type=content_type, + json=_json, + template_url=self._update_initial.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + _update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + + @distributed_trace_async + async def begin_update( + self, + resource_group_name: str, + resource_name: str, + parameters: "_models.OpenShiftClusterUpdate", + **kwargs: Any + ) -> AsyncLROPoller["_models.OpenShiftCluster"]: + """Creates or updates a OpenShift cluster with the specified subscription, resource group and + resource name. + + The operation returns properties of a OpenShift cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param resource_name: The name of the OpenShift cluster resource. + :type resource_name: str + :param parameters: The OpenShift cluster resource. + :type parameters: ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.OpenShiftClusterUpdate + :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 OpenShiftCluster or the result of + cls(response) + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.OpenShiftCluster] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftCluster"] + 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, + resource_name=resource_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x,y,z: x, + **kwargs + ) + kwargs.pop('error_map', None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + + if polling is True: polling_method = AsyncARMPolling(lro_delay, **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 + ) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + + begin_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + @distributed_trace_async + async def list_admin_credentials( + self, + resource_group_name: str, + resource_name: str, + **kwargs: Any + ) -> "_models.OpenShiftClusterAdminKubeconfig": + """Lists admin kubeconfig of an OpenShift cluster with the specified subscription, resource group + and resource name. + + The operation returns the admin kubeconfig. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param resource_name: The name of the OpenShift cluster resource. + :type resource_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: OpenShiftClusterAdminKubeconfig, or the result of cls(response) + :rtype: ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.OpenShiftClusterAdminKubeconfig + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftClusterAdminKubeconfig"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + + + request = build_list_admin_credentials_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + template_url=self.list_admin_credentials.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize('OpenShiftClusterAdminKubeconfig', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + list_admin_credentials.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}/listAdminCredentials"} # type: ignore + + + @distributed_trace_async + async def list_credentials( + self, + resource_group_name: str, + resource_name: str, + **kwargs: Any + ) -> "_models.OpenShiftClusterCredentials": + """Lists credentials of an OpenShift cluster with the specified subscription, resource group and + resource name. + + The operation returns the credentials. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param resource_name: The name of the OpenShift cluster resource. + :type resource_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: OpenShiftClusterCredentials, or the result of cls(response) + :rtype: ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.OpenShiftClusterCredentials + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftClusterCredentials"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + + + request = build_list_credentials_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + template_url=self.list_credentials.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize('OpenShiftClusterCredentials', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + list_credentials.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}/listCredentials"} # type: ignore + diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/aio/operations/_operations.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/aio/operations/_operations.py new file mode 100644 index 000000000000..9bc864770ab9 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/aio/operations/_operations.py @@ -0,0 +1,117 @@ +# pylint: disable=too-many-lines +# 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, Optional, TypeVar + +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 +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models +from ..._vendor import _convert_request +from ...operations._operations import build_list_request +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.redhatopenshift.v2021_09_01_preview.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 + + @distributed_trace + def list( + self, + **kwargs: Any + ) -> AsyncIterable["_models.OperationList"]: + """Lists all of the available RP operations. + + The operation returns the RP operations. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either OperationList or the result of cls(response) + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.OperationList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + + cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + def prepare_request(next_link=None): + if not next_link: + + request = build_list_request( + api_version=api_version, + template_url=self.list.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + else: + + request = build_list_request( + api_version=api_version, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize("OperationList", 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( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': "/providers/Microsoft.RedHatOpenShift/operations"} # type: ignore diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/models/__init__.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/models/__init__.py new file mode 100644 index 000000000000..0b20a2573c35 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/models/__init__.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 ._models_py3 import APIServerProfile +from ._models_py3 import CloudErrorBody +from ._models_py3 import ClusterProfile +from ._models_py3 import ConsoleProfile +from ._models_py3 import Display +from ._models_py3 import IngressProfile +from ._models_py3 import MasterProfile +from ._models_py3 import NetworkProfile +from ._models_py3 import OpenShiftCluster +from ._models_py3 import OpenShiftClusterAdminKubeconfig +from ._models_py3 import OpenShiftClusterCredentials +from ._models_py3 import OpenShiftClusterList +from ._models_py3 import OpenShiftClusterUpdate +from ._models_py3 import Operation +from ._models_py3 import OperationList +from ._models_py3 import Resource +from ._models_py3 import ServicePrincipalProfile +from ._models_py3 import SystemData +from ._models_py3 import TrackedResource +from ._models_py3 import WorkerProfile + + +from ._azure_red_hat_open_shift_client_enums import ( + CreatedByType, + EncryptionAtHost, + ProvisioningState, + SoftwareDefinedNetwork, + VMSize, + Visibility, +) + +__all__ = [ + 'APIServerProfile', + 'CloudErrorBody', + 'ClusterProfile', + 'ConsoleProfile', + 'Display', + 'IngressProfile', + 'MasterProfile', + 'NetworkProfile', + 'OpenShiftCluster', + 'OpenShiftClusterAdminKubeconfig', + 'OpenShiftClusterCredentials', + 'OpenShiftClusterList', + 'OpenShiftClusterUpdate', + 'Operation', + 'OperationList', + 'Resource', + 'ServicePrincipalProfile', + 'SystemData', + 'TrackedResource', + 'WorkerProfile', + 'CreatedByType', + 'EncryptionAtHost', + 'ProvisioningState', + 'SoftwareDefinedNetwork', + 'VMSize', + 'Visibility', +] diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/models/_azure_red_hat_open_shift_client_enums.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/models/_azure_red_hat_open_shift_client_enums.py new file mode 100644 index 000000000000..884fe7bbed1c --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/models/_azure_red_hat_open_shift_client_enums.py @@ -0,0 +1,81 @@ +# 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 +from six import with_metaclass +from azure.core import CaseInsensitiveEnumMeta + + +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 EncryptionAtHost(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): + """EncryptionAtHost represents encryption at host state + """ + + DISABLED = "Disabled" + ENABLED = "Enabled" + +class ProvisioningState(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): + """ProvisioningState represents a provisioning state. + """ + + ADMIN_UPDATING = "AdminUpdating" + CREATING = "Creating" + DELETING = "Deleting" + FAILED = "Failed" + SUCCEEDED = "Succeeded" + UPDATING = "Updating" + +class SoftwareDefinedNetwork(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): + """SoftwareDefinedNetwork constants. + """ + + OVN_KUBERNETES = "OVNKubernetes" + OPEN_SHIFT_SDN = "OpenShiftSDN" + +class Visibility(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): + """Visibility represents visibility. + """ + + PRIVATE = "Private" + PUBLIC = "Public" + +class VMSize(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): + """VMSize represents a VM size. + """ + + STANDARD_D16_AS_V4 = "Standard_D16as_v4" + STANDARD_D16_S_V3 = "Standard_D16s_v3" + STANDARD_D2_S_V3 = "Standard_D2s_v3" + STANDARD_D32_AS_V4 = "Standard_D32as_v4" + STANDARD_D32_S_V3 = "Standard_D32s_v3" + STANDARD_D4_AS_V4 = "Standard_D4as_v4" + STANDARD_D4_S_V3 = "Standard_D4s_v3" + STANDARD_D8_AS_V4 = "Standard_D8as_v4" + STANDARD_D8_S_V3 = "Standard_D8s_v3" + STANDARD_E16_S_V3 = "Standard_E16s_v3" + STANDARD_E32_S_V3 = "Standard_E32s_v3" + STANDARD_E4_S_V3 = "Standard_E4s_v3" + STANDARD_E64_I_V3 = "Standard_E64i_v3" + STANDARD_E64_IS_V3 = "Standard_E64is_v3" + STANDARD_E8_S_V3 = "Standard_E8s_v3" + STANDARD_F16_S_V2 = "Standard_F16s_v2" + STANDARD_F32_S_V2 = "Standard_F32s_v2" + STANDARD_F4_S_V2 = "Standard_F4s_v2" + STANDARD_F72_S_V2 = "Standard_F72s_v2" + STANDARD_F8_S_V2 = "Standard_F8s_v2" + STANDARD_G5 = "Standard_G5" + STANDARD_GS5 = "Standard_GS5" + STANDARD_M128_MS = "Standard_M128ms" diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/models/_models_py3.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/models/_models_py3.py new file mode 100644 index 000000000000..b483971cd4bd --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/models/_models_py3.py @@ -0,0 +1,1056 @@ +# 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 Dict, List, Optional, Union + +import msrest.serialization + +from ._azure_red_hat_open_shift_client_enums import * + + +class APIServerProfile(msrest.serialization.Model): + """APIServerProfile represents an API server profile. + + :ivar visibility: API server visibility. Possible values include: "Private", "Public". + :vartype visibility: str or ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.Visibility + :ivar url: The URL to access the cluster API server. + :vartype url: str + :ivar ip: The IP of the cluster API server. + :vartype ip: str + """ + + _attribute_map = { + 'visibility': {'key': 'visibility', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'ip': {'key': 'ip', 'type': 'str'}, + } + + def __init__( + self, + *, + visibility: Optional[Union[str, "Visibility"]] = None, + url: Optional[str] = None, + ip: Optional[str] = None, + **kwargs + ): + """ + :keyword visibility: API server visibility. Possible values include: "Private", "Public". + :paramtype visibility: str or ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.Visibility + :keyword url: The URL to access the cluster API server. + :paramtype url: str + :keyword ip: The IP of the cluster API server. + :paramtype ip: str + """ + super(APIServerProfile, self).__init__(**kwargs) + self.visibility = visibility + self.url = url + self.ip = ip + + +class CloudErrorBody(msrest.serialization.Model): + """CloudErrorBody represents the body of a cloud error. + + :ivar code: An identifier for the error. Codes are invariant and are intended to be consumed + programmatically. + :vartype code: str + :ivar message: A message describing the error, intended to be suitable for display in a user + interface. + :vartype message: str + :ivar target: The target of the particular error. For example, the name of the property in + error. + :vartype target: str + :ivar details: A list of additional details about the error. + :vartype details: list[~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.CloudErrorBody] + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[CloudErrorBody]'}, + } + + def __init__( + self, + *, + code: Optional[str] = None, + message: Optional[str] = None, + target: Optional[str] = None, + details: Optional[List["CloudErrorBody"]] = None, + **kwargs + ): + """ + :keyword code: An identifier for the error. Codes are invariant and are intended to be consumed + programmatically. + :paramtype code: str + :keyword message: A message describing the error, intended to be suitable for display in a user + interface. + :paramtype message: str + :keyword target: The target of the particular error. For example, the name of the property in + error. + :paramtype target: str + :keyword details: A list of additional details about the error. + :paramtype details: list[~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.CloudErrorBody] + """ + super(CloudErrorBody, self).__init__(**kwargs) + self.code = code + self.message = message + self.target = target + self.details = details + + +class ClusterProfile(msrest.serialization.Model): + """ClusterProfile represents a cluster profile. + + :ivar pull_secret: The pull secret for the cluster. + :vartype pull_secret: str + :ivar domain: The domain for the cluster. + :vartype domain: str + :ivar version: The version of the cluster. + :vartype version: str + :ivar resource_group_id: The ID of the cluster resource group. + :vartype resource_group_id: str + """ + + _attribute_map = { + 'pull_secret': {'key': 'pullSecret', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'resource_group_id': {'key': 'resourceGroupId', 'type': 'str'}, + } + + def __init__( + self, + *, + pull_secret: Optional[str] = None, + domain: Optional[str] = None, + version: Optional[str] = None, + resource_group_id: Optional[str] = None, + **kwargs + ): + """ + :keyword pull_secret: The pull secret for the cluster. + :paramtype pull_secret: str + :keyword domain: The domain for the cluster. + :paramtype domain: str + :keyword version: The version of the cluster. + :paramtype version: str + :keyword resource_group_id: The ID of the cluster resource group. + :paramtype resource_group_id: str + """ + super(ClusterProfile, self).__init__(**kwargs) + self.pull_secret = pull_secret + self.domain = domain + self.version = version + self.resource_group_id = resource_group_id + + +class ConsoleProfile(msrest.serialization.Model): + """ConsoleProfile represents a console profile. + + :ivar url: The URL to access the cluster console. + :vartype url: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + } + + def __init__( + self, + *, + url: Optional[str] = None, + **kwargs + ): + """ + :keyword url: The URL to access the cluster console. + :paramtype url: str + """ + super(ConsoleProfile, self).__init__(**kwargs) + self.url = url + + +class Display(msrest.serialization.Model): + """Display represents the display details of an operation. + + :ivar provider: Friendly name of the resource provider. + :vartype provider: str + :ivar resource: Resource type on which the operation is performed. + :vartype resource: str + :ivar operation: Operation type: read, write, delete, listKeys/action, etc. + :vartype operation: str + :ivar description: Friendly name of the operation. + :vartype 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 + ): + """ + :keyword provider: Friendly name of the resource provider. + :paramtype provider: str + :keyword resource: Resource type on which the operation is performed. + :paramtype resource: str + :keyword operation: Operation type: read, write, delete, listKeys/action, etc. + :paramtype operation: str + :keyword description: Friendly name of the operation. + :paramtype description: str + """ + super(Display, self).__init__(**kwargs) + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description + + +class IngressProfile(msrest.serialization.Model): + """IngressProfile represents an ingress profile. + + :ivar name: The ingress profile name. + :vartype name: str + :ivar visibility: Ingress visibility. Possible values include: "Private", "Public". + :vartype visibility: str or ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.Visibility + :ivar ip: The IP of the ingress. + :vartype ip: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'str'}, + 'ip': {'key': 'ip', 'type': 'str'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + visibility: Optional[Union[str, "Visibility"]] = None, + ip: Optional[str] = None, + **kwargs + ): + """ + :keyword name: The ingress profile name. + :paramtype name: str + :keyword visibility: Ingress visibility. Possible values include: "Private", "Public". + :paramtype visibility: str or ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.Visibility + :keyword ip: The IP of the ingress. + :paramtype ip: str + """ + super(IngressProfile, self).__init__(**kwargs) + self.name = name + self.visibility = visibility + self.ip = ip + + +class MasterProfile(msrest.serialization.Model): + """MasterProfile represents a master profile. + + :ivar vm_size: The size of the master VMs. Possible values include: "Standard_D16as_v4", + "Standard_D16s_v3", "Standard_D2s_v3", "Standard_D32as_v4", "Standard_D32s_v3", + "Standard_D4as_v4", "Standard_D4s_v3", "Standard_D8as_v4", "Standard_D8s_v3", + "Standard_E16s_v3", "Standard_E32s_v3", "Standard_E4s_v3", "Standard_E64i_v3", + "Standard_E64is_v3", "Standard_E8s_v3", "Standard_F16s_v2", "Standard_F32s_v2", + "Standard_F4s_v2", "Standard_F72s_v2", "Standard_F8s_v2", "Standard_G5", "Standard_GS5", + "Standard_M128ms". + :vartype vm_size: str or ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.VMSize + :ivar subnet_id: The Azure resource ID of the master subnet. + :vartype subnet_id: str + :ivar encryption_at_host: Whether master virtual machines are encrypted at host. Possible + values include: "Disabled", "Enabled". + :vartype encryption_at_host: str or + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.EncryptionAtHost + :ivar disk_encryption_set_id: The resource ID of an associated DiskEncryptionSet, if + applicable. + :vartype disk_encryption_set_id: str + """ + + _attribute_map = { + 'vm_size': {'key': 'vmSize', 'type': 'str'}, + 'subnet_id': {'key': 'subnetId', 'type': 'str'}, + 'encryption_at_host': {'key': 'encryptionAtHost', 'type': 'str'}, + 'disk_encryption_set_id': {'key': 'diskEncryptionSetId', 'type': 'str'}, + } + + def __init__( + self, + *, + vm_size: Optional[Union[str, "VMSize"]] = None, + subnet_id: Optional[str] = None, + encryption_at_host: Optional[Union[str, "EncryptionAtHost"]] = None, + disk_encryption_set_id: Optional[str] = None, + **kwargs + ): + """ + :keyword vm_size: The size of the master VMs. Possible values include: "Standard_D16as_v4", + "Standard_D16s_v3", "Standard_D2s_v3", "Standard_D32as_v4", "Standard_D32s_v3", + "Standard_D4as_v4", "Standard_D4s_v3", "Standard_D8as_v4", "Standard_D8s_v3", + "Standard_E16s_v3", "Standard_E32s_v3", "Standard_E4s_v3", "Standard_E64i_v3", + "Standard_E64is_v3", "Standard_E8s_v3", "Standard_F16s_v2", "Standard_F32s_v2", + "Standard_F4s_v2", "Standard_F72s_v2", "Standard_F8s_v2", "Standard_G5", "Standard_GS5", + "Standard_M128ms". + :paramtype vm_size: str or ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.VMSize + :keyword subnet_id: The Azure resource ID of the master subnet. + :paramtype subnet_id: str + :keyword encryption_at_host: Whether master virtual machines are encrypted at host. Possible + values include: "Disabled", "Enabled". + :paramtype encryption_at_host: str or + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.EncryptionAtHost + :keyword disk_encryption_set_id: The resource ID of an associated DiskEncryptionSet, if + applicable. + :paramtype disk_encryption_set_id: str + """ + super(MasterProfile, self).__init__(**kwargs) + self.vm_size = vm_size + self.subnet_id = subnet_id + self.encryption_at_host = encryption_at_host + self.disk_encryption_set_id = disk_encryption_set_id + + +class NetworkProfile(msrest.serialization.Model): + """NetworkProfile represents a network profile. + + :ivar software_defined_network: The software defined network (SDN) to use when installing the + cluster. Possible values include: "OVNKubernetes", "OpenShiftSDN". + :vartype software_defined_network: str or + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.SoftwareDefinedNetwork + :ivar pod_cidr: The CIDR used for OpenShift/Kubernetes Pods. + :vartype pod_cidr: str + :ivar service_cidr: The CIDR used for OpenShift/Kubernetes Services. + :vartype service_cidr: str + """ + + _attribute_map = { + 'software_defined_network': {'key': 'softwareDefinedNetwork', 'type': 'str'}, + 'pod_cidr': {'key': 'podCidr', 'type': 'str'}, + 'service_cidr': {'key': 'serviceCidr', 'type': 'str'}, + } + + def __init__( + self, + *, + software_defined_network: Optional[Union[str, "SoftwareDefinedNetwork"]] = None, + pod_cidr: Optional[str] = None, + service_cidr: Optional[str] = None, + **kwargs + ): + """ + :keyword software_defined_network: The software defined network (SDN) to use when installing + the cluster. Possible values include: "OVNKubernetes", "OpenShiftSDN". + :paramtype software_defined_network: str or + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.SoftwareDefinedNetwork + :keyword pod_cidr: The CIDR used for OpenShift/Kubernetes Pods. + :paramtype pod_cidr: str + :keyword service_cidr: The CIDR used for OpenShift/Kubernetes Services. + :paramtype service_cidr: str + """ + super(NetworkProfile, self).__init__(**kwargs) + self.software_defined_network = software_defined_network + self.pod_cidr = pod_cidr + self.service_cidr = service_cidr + + +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 = { + '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: 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 tags: A set of tags. Resource tags. + :vartype tags: dict[str, str] + :ivar location: Required. The geo-location where the resource lives. + :vartype location: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__( + self, + *, + location: str, + tags: Optional[Dict[str, str]] = None, + **kwargs + ): + """ + :keyword tags: A set of tags. Resource tags. + :paramtype tags: dict[str, str] + :keyword location: Required. The geo-location where the resource lives. + :paramtype location: str + """ + super(TrackedResource, self).__init__(**kwargs) + self.tags = tags + self.location = location + + +class OpenShiftCluster(TrackedResource): + """OpenShiftCluster represents an Azure Red Hat OpenShift cluster. + + 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: 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 tags: A set of tags. Resource tags. + :vartype tags: dict[str, str] + :ivar location: Required. The geo-location where the resource lives. + :vartype location: str + :ivar system_data: The system meta data relating to this resource. + :vartype system_data: ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.SystemData + :ivar provisioning_state: The cluster provisioning state. Possible values include: + "AdminUpdating", "Creating", "Deleting", "Failed", "Succeeded", "Updating". + :vartype provisioning_state: str or + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.ProvisioningState + :ivar cluster_profile: The cluster profile. + :vartype cluster_profile: ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.ClusterProfile + :ivar console_profile: The console profile. + :vartype console_profile: ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.ConsoleProfile + :ivar service_principal_profile: The cluster service principal profile. + :vartype service_principal_profile: + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.ServicePrincipalProfile + :ivar network_profile: The cluster network profile. + :vartype network_profile: ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.NetworkProfile + :ivar master_profile: The cluster master profile. + :vartype master_profile: ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.MasterProfile + :ivar worker_profiles: The cluster worker profiles. + :vartype worker_profiles: + list[~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.WorkerProfile] + :ivar apiserver_profile: The cluster API server profile. + :vartype apiserver_profile: + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.APIServerProfile + :ivar ingress_profiles: The cluster ingress profiles. + :vartype ingress_profiles: + list[~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.IngressProfile] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'system_data': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'cluster_profile': {'key': 'properties.clusterProfile', 'type': 'ClusterProfile'}, + 'console_profile': {'key': 'properties.consoleProfile', 'type': 'ConsoleProfile'}, + 'service_principal_profile': {'key': 'properties.servicePrincipalProfile', 'type': 'ServicePrincipalProfile'}, + 'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'}, + 'master_profile': {'key': 'properties.masterProfile', 'type': 'MasterProfile'}, + 'worker_profiles': {'key': 'properties.workerProfiles', 'type': '[WorkerProfile]'}, + 'apiserver_profile': {'key': 'properties.apiserverProfile', 'type': 'APIServerProfile'}, + 'ingress_profiles': {'key': 'properties.ingressProfiles', 'type': '[IngressProfile]'}, + } + + def __init__( + self, + *, + location: str, + tags: Optional[Dict[str, str]] = None, + provisioning_state: Optional[Union[str, "ProvisioningState"]] = None, + cluster_profile: Optional["ClusterProfile"] = None, + console_profile: Optional["ConsoleProfile"] = None, + service_principal_profile: Optional["ServicePrincipalProfile"] = None, + network_profile: Optional["NetworkProfile"] = None, + master_profile: Optional["MasterProfile"] = None, + worker_profiles: Optional[List["WorkerProfile"]] = None, + apiserver_profile: Optional["APIServerProfile"] = None, + ingress_profiles: Optional[List["IngressProfile"]] = None, + **kwargs + ): + """ + :keyword tags: A set of tags. Resource tags. + :paramtype tags: dict[str, str] + :keyword location: Required. The geo-location where the resource lives. + :paramtype location: str + :keyword provisioning_state: The cluster provisioning state. Possible values include: + "AdminUpdating", "Creating", "Deleting", "Failed", "Succeeded", "Updating". + :paramtype provisioning_state: str or + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.ProvisioningState + :keyword cluster_profile: The cluster profile. + :paramtype cluster_profile: + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.ClusterProfile + :keyword console_profile: The console profile. + :paramtype console_profile: + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.ConsoleProfile + :keyword service_principal_profile: The cluster service principal profile. + :paramtype service_principal_profile: + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.ServicePrincipalProfile + :keyword network_profile: The cluster network profile. + :paramtype network_profile: + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.NetworkProfile + :keyword master_profile: The cluster master profile. + :paramtype master_profile: ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.MasterProfile + :keyword worker_profiles: The cluster worker profiles. + :paramtype worker_profiles: + list[~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.WorkerProfile] + :keyword apiserver_profile: The cluster API server profile. + :paramtype apiserver_profile: + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.APIServerProfile + :keyword ingress_profiles: The cluster ingress profiles. + :paramtype ingress_profiles: + list[~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.IngressProfile] + """ + super(OpenShiftCluster, self).__init__(tags=tags, location=location, **kwargs) + self.system_data = None + self.provisioning_state = provisioning_state + self.cluster_profile = cluster_profile + self.console_profile = console_profile + self.service_principal_profile = service_principal_profile + self.network_profile = network_profile + self.master_profile = master_profile + self.worker_profiles = worker_profiles + self.apiserver_profile = apiserver_profile + self.ingress_profiles = ingress_profiles + + +class OpenShiftClusterAdminKubeconfig(msrest.serialization.Model): + """OpenShiftClusterAdminKubeconfig represents an OpenShift cluster's admin kubeconfig. + + :ivar kubeconfig: The base64-encoded kubeconfig file. + :vartype kubeconfig: str + """ + + _attribute_map = { + 'kubeconfig': {'key': 'kubeconfig', 'type': 'str'}, + } + + def __init__( + self, + *, + kubeconfig: Optional[str] = None, + **kwargs + ): + """ + :keyword kubeconfig: The base64-encoded kubeconfig file. + :paramtype kubeconfig: str + """ + super(OpenShiftClusterAdminKubeconfig, self).__init__(**kwargs) + self.kubeconfig = kubeconfig + + +class OpenShiftClusterCredentials(msrest.serialization.Model): + """OpenShiftClusterCredentials represents an OpenShift cluster's credentials. + + :ivar kubeadmin_username: The username for the kubeadmin user. + :vartype kubeadmin_username: str + :ivar kubeadmin_password: The password for the kubeadmin user. + :vartype kubeadmin_password: str + """ + + _attribute_map = { + 'kubeadmin_username': {'key': 'kubeadminUsername', 'type': 'str'}, + 'kubeadmin_password': {'key': 'kubeadminPassword', 'type': 'str'}, + } + + def __init__( + self, + *, + kubeadmin_username: Optional[str] = None, + kubeadmin_password: Optional[str] = None, + **kwargs + ): + """ + :keyword kubeadmin_username: The username for the kubeadmin user. + :paramtype kubeadmin_username: str + :keyword kubeadmin_password: The password for the kubeadmin user. + :paramtype kubeadmin_password: str + """ + super(OpenShiftClusterCredentials, self).__init__(**kwargs) + self.kubeadmin_username = kubeadmin_username + self.kubeadmin_password = kubeadmin_password + + +class OpenShiftClusterList(msrest.serialization.Model): + """OpenShiftClusterList represents a list of OpenShift clusters. + + :ivar value: The list of OpenShift clusters. + :vartype value: list[~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.OpenShiftCluster] + :ivar next_link: The link used to get the next page of operations. + :vartype next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[OpenShiftCluster]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["OpenShiftCluster"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + """ + :keyword value: The list of OpenShift clusters. + :paramtype value: list[~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.OpenShiftCluster] + :keyword next_link: The link used to get the next page of operations. + :paramtype next_link: str + """ + super(OpenShiftClusterList, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class OpenShiftClusterUpdate(msrest.serialization.Model): + """OpenShiftCluster represents an Azure Red Hat OpenShift cluster. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar tags: A set of tags. The resource tags. + :vartype tags: dict[str, str] + :ivar system_data: The system meta data relating to this resource. + :vartype system_data: ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.SystemData + :ivar provisioning_state: The cluster provisioning state. Possible values include: + "AdminUpdating", "Creating", "Deleting", "Failed", "Succeeded", "Updating". + :vartype provisioning_state: str or + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.ProvisioningState + :ivar cluster_profile: The cluster profile. + :vartype cluster_profile: ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.ClusterProfile + :ivar console_profile: The console profile. + :vartype console_profile: ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.ConsoleProfile + :ivar service_principal_profile: The cluster service principal profile. + :vartype service_principal_profile: + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.ServicePrincipalProfile + :ivar network_profile: The cluster network profile. + :vartype network_profile: ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.NetworkProfile + :ivar master_profile: The cluster master profile. + :vartype master_profile: ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.MasterProfile + :ivar worker_profiles: The cluster worker profiles. + :vartype worker_profiles: + list[~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.WorkerProfile] + :ivar apiserver_profile: The cluster API server profile. + :vartype apiserver_profile: + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.APIServerProfile + :ivar ingress_profiles: The cluster ingress profiles. + :vartype ingress_profiles: + list[~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.IngressProfile] + """ + + _validation = { + 'system_data': {'readonly': True}, + } + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'cluster_profile': {'key': 'properties.clusterProfile', 'type': 'ClusterProfile'}, + 'console_profile': {'key': 'properties.consoleProfile', 'type': 'ConsoleProfile'}, + 'service_principal_profile': {'key': 'properties.servicePrincipalProfile', 'type': 'ServicePrincipalProfile'}, + 'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'}, + 'master_profile': {'key': 'properties.masterProfile', 'type': 'MasterProfile'}, + 'worker_profiles': {'key': 'properties.workerProfiles', 'type': '[WorkerProfile]'}, + 'apiserver_profile': {'key': 'properties.apiserverProfile', 'type': 'APIServerProfile'}, + 'ingress_profiles': {'key': 'properties.ingressProfiles', 'type': '[IngressProfile]'}, + } + + def __init__( + self, + *, + tags: Optional[Dict[str, str]] = None, + provisioning_state: Optional[Union[str, "ProvisioningState"]] = None, + cluster_profile: Optional["ClusterProfile"] = None, + console_profile: Optional["ConsoleProfile"] = None, + service_principal_profile: Optional["ServicePrincipalProfile"] = None, + network_profile: Optional["NetworkProfile"] = None, + master_profile: Optional["MasterProfile"] = None, + worker_profiles: Optional[List["WorkerProfile"]] = None, + apiserver_profile: Optional["APIServerProfile"] = None, + ingress_profiles: Optional[List["IngressProfile"]] = None, + **kwargs + ): + """ + :keyword tags: A set of tags. The resource tags. + :paramtype tags: dict[str, str] + :keyword provisioning_state: The cluster provisioning state. Possible values include: + "AdminUpdating", "Creating", "Deleting", "Failed", "Succeeded", "Updating". + :paramtype provisioning_state: str or + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.ProvisioningState + :keyword cluster_profile: The cluster profile. + :paramtype cluster_profile: + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.ClusterProfile + :keyword console_profile: The console profile. + :paramtype console_profile: + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.ConsoleProfile + :keyword service_principal_profile: The cluster service principal profile. + :paramtype service_principal_profile: + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.ServicePrincipalProfile + :keyword network_profile: The cluster network profile. + :paramtype network_profile: + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.NetworkProfile + :keyword master_profile: The cluster master profile. + :paramtype master_profile: ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.MasterProfile + :keyword worker_profiles: The cluster worker profiles. + :paramtype worker_profiles: + list[~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.WorkerProfile] + :keyword apiserver_profile: The cluster API server profile. + :paramtype apiserver_profile: + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.APIServerProfile + :keyword ingress_profiles: The cluster ingress profiles. + :paramtype ingress_profiles: + list[~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.IngressProfile] + """ + super(OpenShiftClusterUpdate, self).__init__(**kwargs) + self.tags = tags + self.system_data = None + self.provisioning_state = provisioning_state + self.cluster_profile = cluster_profile + self.console_profile = console_profile + self.service_principal_profile = service_principal_profile + self.network_profile = network_profile + self.master_profile = master_profile + self.worker_profiles = worker_profiles + self.apiserver_profile = apiserver_profile + self.ingress_profiles = ingress_profiles + + +class Operation(msrest.serialization.Model): + """Operation represents an RP operation. + + :ivar name: Operation name: {provider}/{resource}/{operation}. + :vartype name: str + :ivar display: The object that describes the operation. + :vartype display: ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.Display + :ivar origin: Sources of requests to this operation. Comma separated list with valid values + user or system, e.g. "user,system". + :vartype origin: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'Display'}, + 'origin': {'key': 'origin', 'type': 'str'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + display: Optional["Display"] = None, + origin: Optional[str] = None, + **kwargs + ): + """ + :keyword name: Operation name: {provider}/{resource}/{operation}. + :paramtype name: str + :keyword display: The object that describes the operation. + :paramtype display: ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.Display + :keyword origin: Sources of requests to this operation. Comma separated list with valid values + user or system, e.g. "user,system". + :paramtype origin: str + """ + super(Operation, self).__init__(**kwargs) + self.name = name + self.display = display + self.origin = origin + + +class OperationList(msrest.serialization.Model): + """OperationList represents an RP operation list. + + :ivar value: List of operations supported by the resource provider. + :vartype value: list[~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.Operation] + :ivar next_link: The link used to get the next page of operations. + :vartype next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Operation]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["Operation"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + """ + :keyword value: List of operations supported by the resource provider. + :paramtype value: list[~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.Operation] + :keyword next_link: The link used to get the next page of operations. + :paramtype next_link: str + """ + super(OperationList, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class ServicePrincipalProfile(msrest.serialization.Model): + """ServicePrincipalProfile represents a service principal profile. + + :ivar client_id: The client ID used for the cluster. + :vartype client_id: str + :ivar client_secret: The client secret used for the cluster. + :vartype client_secret: str + """ + + _attribute_map = { + 'client_id': {'key': 'clientId', 'type': 'str'}, + 'client_secret': {'key': 'clientSecret', 'type': 'str'}, + } + + def __init__( + self, + *, + client_id: Optional[str] = None, + client_secret: Optional[str] = None, + **kwargs + ): + """ + :keyword client_id: The client ID used for the cluster. + :paramtype client_id: str + :keyword client_secret: The client secret used for the cluster. + :paramtype client_secret: str + """ + super(ServicePrincipalProfile, self).__init__(**kwargs) + self.client_id = client_id + self.client_secret = client_secret + + +class SystemData(msrest.serialization.Model): + """Metadata pertaining to creation and last modification of the resource. + + :ivar created_by: The identity that created the resource. + :vartype created_by: str + :ivar created_by_type: The type of identity that created the resource. Possible values include: + "User", "Application", "ManagedIdentity", "Key". + :vartype created_by_type: str or + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.CreatedByType + :ivar created_at: The timestamp of resource creation (UTC). + :vartype created_at: ~datetime.datetime + :ivar last_modified_by: The identity that last modified the resource. + :vartype last_modified_by: str + :ivar last_modified_by_type: The type of identity that last modified the resource. Possible + values include: "User", "Application", "ManagedIdentity", "Key". + :vartype last_modified_by_type: str or + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.CreatedByType + :ivar last_modified_at: The timestamp of resource last modification (UTC). + :vartype 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 + ): + """ + :keyword created_by: The identity that created the resource. + :paramtype created_by: str + :keyword created_by_type: The type of identity that created the resource. Possible values + include: "User", "Application", "ManagedIdentity", "Key". + :paramtype created_by_type: str or + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.CreatedByType + :keyword created_at: The timestamp of resource creation (UTC). + :paramtype created_at: ~datetime.datetime + :keyword last_modified_by: The identity that last modified the resource. + :paramtype last_modified_by: str + :keyword last_modified_by_type: The type of identity that last modified the resource. Possible + values include: "User", "Application", "ManagedIdentity", "Key". + :paramtype last_modified_by_type: str or + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.CreatedByType + :keyword last_modified_at: The timestamp of resource last modification (UTC). + :paramtype last_modified_at: ~datetime.datetime + """ + 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 WorkerProfile(msrest.serialization.Model): + """WorkerProfile represents a worker profile. + + :ivar name: The worker profile name. + :vartype name: str + :ivar vm_size: The size of the worker VMs. Possible values include: "Standard_D16as_v4", + "Standard_D16s_v3", "Standard_D2s_v3", "Standard_D32as_v4", "Standard_D32s_v3", + "Standard_D4as_v4", "Standard_D4s_v3", "Standard_D8as_v4", "Standard_D8s_v3", + "Standard_E16s_v3", "Standard_E32s_v3", "Standard_E4s_v3", "Standard_E64i_v3", + "Standard_E64is_v3", "Standard_E8s_v3", "Standard_F16s_v2", "Standard_F32s_v2", + "Standard_F4s_v2", "Standard_F72s_v2", "Standard_F8s_v2", "Standard_G5", "Standard_GS5", + "Standard_M128ms". + :vartype vm_size: str or ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.VMSize + :ivar disk_size_gb: The disk size of the worker VMs. + :vartype disk_size_gb: int + :ivar subnet_id: The Azure resource ID of the worker subnet. + :vartype subnet_id: str + :ivar count: The number of worker VMs. + :vartype count: int + :ivar encryption_at_host: Whether master virtual machines are encrypted at host. Possible + values include: "Disabled", "Enabled". + :vartype encryption_at_host: str or + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.EncryptionAtHost + :ivar disk_encryption_set_id: The resource ID of an associated DiskEncryptionSet, if + applicable. + :vartype disk_encryption_set_id: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'vm_size': {'key': 'vmSize', 'type': 'str'}, + 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, + 'subnet_id': {'key': 'subnetId', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'int'}, + 'encryption_at_host': {'key': 'encryptionAtHost', 'type': 'str'}, + 'disk_encryption_set_id': {'key': 'diskEncryptionSetId', 'type': 'str'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + vm_size: Optional[Union[str, "VMSize"]] = None, + disk_size_gb: Optional[int] = None, + subnet_id: Optional[str] = None, + count: Optional[int] = None, + encryption_at_host: Optional[Union[str, "EncryptionAtHost"]] = None, + disk_encryption_set_id: Optional[str] = None, + **kwargs + ): + """ + :keyword name: The worker profile name. + :paramtype name: str + :keyword vm_size: The size of the worker VMs. Possible values include: "Standard_D16as_v4", + "Standard_D16s_v3", "Standard_D2s_v3", "Standard_D32as_v4", "Standard_D32s_v3", + "Standard_D4as_v4", "Standard_D4s_v3", "Standard_D8as_v4", "Standard_D8s_v3", + "Standard_E16s_v3", "Standard_E32s_v3", "Standard_E4s_v3", "Standard_E64i_v3", + "Standard_E64is_v3", "Standard_E8s_v3", "Standard_F16s_v2", "Standard_F32s_v2", + "Standard_F4s_v2", "Standard_F72s_v2", "Standard_F8s_v2", "Standard_G5", "Standard_GS5", + "Standard_M128ms". + :paramtype vm_size: str or ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.VMSize + :keyword disk_size_gb: The disk size of the worker VMs. + :paramtype disk_size_gb: int + :keyword subnet_id: The Azure resource ID of the worker subnet. + :paramtype subnet_id: str + :keyword count: The number of worker VMs. + :paramtype count: int + :keyword encryption_at_host: Whether master virtual machines are encrypted at host. Possible + values include: "Disabled", "Enabled". + :paramtype encryption_at_host: str or + ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.EncryptionAtHost + :keyword disk_encryption_set_id: The resource ID of an associated DiskEncryptionSet, if + applicable. + :paramtype disk_encryption_set_id: str + """ + super(WorkerProfile, self).__init__(**kwargs) + self.name = name + self.vm_size = vm_size + self.disk_size_gb = disk_size_gb + self.subnet_id = subnet_id + self.count = count + self.encryption_at_host = encryption_at_host + self.disk_encryption_set_id = disk_encryption_set_id diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/operations/__init__.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/operations/__init__.py new file mode 100644 index 000000000000..7ffcf7895ee8 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/operations/__init__.py @@ -0,0 +1,15 @@ +# 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 ._operations import Operations +from ._open_shift_clusters_operations import OpenShiftClustersOperations + +__all__ = [ + 'Operations', + 'OpenShiftClustersOperations', +] diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/operations/_open_shift_clusters_operations.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/operations/_open_shift_clusters_operations.py new file mode 100644 index 000000000000..4b5885701094 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/operations/_open_shift_clusters_operations.py @@ -0,0 +1,1054 @@ +# pylint: disable=too-many-lines +# 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, Iterable, Optional, TypeVar, Union + +from msrest import Serializer + +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 HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models +from .._vendor import _convert_request, _format_url_section +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +_SERIALIZER = Serializer() +_SERIALIZER.client_side_validation = False + +def build_list_request( + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.RedHatOpenShift/openShiftClusters") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + + +def build_list_by_resource_group_request( + subscription_id: str, + resource_group_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + + +def build_get_request( + subscription_id: str, + resource_group_name: str, + resource_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "resourceName": _SERIALIZER.url("resource_name", resource_name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + + +def build_create_or_update_request_initial( + subscription_id: str, + resource_group_name: str, + resource_name: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + content_type = kwargs.pop('content_type', None) # type: Optional[str] + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "resourceName": _SERIALIZER.url("resource_name", resource_name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="PUT", + url=_url, + params=_query_parameters, + headers=_header_parameters, + json=json, + content=content, + **kwargs + ) + + +def build_delete_request_initial( + subscription_id: str, + resource_group_name: str, + resource_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "resourceName": _SERIALIZER.url("resource_name", resource_name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="DELETE", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + + +def build_update_request_initial( + subscription_id: str, + resource_group_name: str, + resource_name: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + content_type = kwargs.pop('content_type', None) # type: Optional[str] + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "resourceName": _SERIALIZER.url("resource_name", resource_name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="PATCH", + url=_url, + params=_query_parameters, + headers=_header_parameters, + json=json, + content=content, + **kwargs + ) + + +def build_list_admin_credentials_request( + subscription_id: str, + resource_group_name: str, + resource_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}/listAdminCredentials") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "resourceName": _SERIALIZER.url("resource_name", resource_name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + + +def build_list_credentials_request( + subscription_id: str, + resource_group_name: str, + resource_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}/listCredentials") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "resourceName": _SERIALIZER.url("resource_name", resource_name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + +class OpenShiftClustersOperations(object): + """OpenShiftClustersOperations 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.redhatopenshift.v2021_09_01_preview.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 + + @distributed_trace + def list( + self, + **kwargs: Any + ) -> Iterable["_models.OpenShiftClusterList"]: + """Lists OpenShift clusters in the specified subscription. + + The operation returns properties of each OpenShift cluster. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either OpenShiftClusterList or the result of + cls(response) + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.OpenShiftClusterList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftClusterList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + def prepare_request(next_link=None): + if not next_link: + + request = build_list_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + template_url=self.list.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + else: + + request = build_list_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize("OpenShiftClusterList", 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( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': "/subscriptions/{subscriptionId}/providers/Microsoft.RedHatOpenShift/openShiftClusters"} # type: ignore + + @distributed_trace + def list_by_resource_group( + self, + resource_group_name: str, + **kwargs: Any + ) -> Iterable["_models.OpenShiftClusterList"]: + """Lists OpenShift clusters in the specified subscription and resource group. + + The operation returns properties of each OpenShift cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either OpenShiftClusterList or the result of + cls(response) + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.OpenShiftClusterList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftClusterList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + def prepare_request(next_link=None): + if not next_link: + + request = build_list_by_resource_group_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + api_version=api_version, + template_url=self.list_by_resource_group.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + else: + + request = build_list_by_resource_group_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + api_version=api_version, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize("OpenShiftClusterList", 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( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + + return ItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters"} # type: ignore + + @distributed_trace + def get( + self, + resource_group_name: str, + resource_name: str, + **kwargs: Any + ) -> "_models.OpenShiftCluster": + """Gets a OpenShift cluster with the specified subscription, resource group and resource name. + + The operation returns properties of a OpenShift cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param resource_name: The name of the OpenShift cluster resource. + :type resource_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: OpenShiftCluster, or the result of cls(response) + :rtype: ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.OpenShiftCluster + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftCluster"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + + + request = build_get_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + template_url=self.get.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + + def _create_or_update_initial( + self, + resource_group_name: str, + resource_name: str, + parameters: "_models.OpenShiftCluster", + **kwargs: Any + ) -> "_models.OpenShiftCluster": + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftCluster"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + + _json = self._serialize.body(parameters, 'OpenShiftCluster') + + request = build_create_or_update_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + content_type=content_type, + json=_json, + template_url=self._create_or_update_initial.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + _create_or_update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + resource_name: str, + parameters: "_models.OpenShiftCluster", + **kwargs: Any + ) -> LROPoller["_models.OpenShiftCluster"]: + """Creates or updates a OpenShift cluster with the specified subscription, resource group and + resource name. + + The operation returns properties of a OpenShift cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param resource_name: The name of the OpenShift cluster resource. + :type resource_name: str + :param parameters: The OpenShift cluster resource. + :type parameters: ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.OpenShiftCluster + :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 OpenShiftCluster or the result of + cls(response) + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.OpenShiftCluster] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftCluster"] + 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_or_update_initial( + resource_group_name=resource_group_name, + resource_name=resource_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x,y,z: x, + **kwargs + ) + kwargs.pop('error_map', None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + + if polling is True: polling_method = ARMPolling(lro_delay, **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 + ) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + + begin_create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + def _delete_initial( # pylint: disable=inconsistent-return-statements + self, + resource_group_name: str, + resource_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 = kwargs.pop('api_version', "2021-09-01-preview") # type: str + + + request = build_delete_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + template_url=self._delete_initial.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + + @distributed_trace + def begin_delete( # pylint: disable=inconsistent-return-statements + self, + resource_group_name: str, + resource_name: str, + **kwargs: Any + ) -> LROPoller[None]: + """Deletes a OpenShift cluster with the specified subscription, resource group and resource name. + + The operation returns nothing. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param resource_name: The name of the OpenShift cluster resource. + :type resource_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 + """ + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + 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, + resource_name=resource_name, + api_version=api_version, + cls=lambda x,y,z: x, + **kwargs + ) + kwargs.pop('error_map', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + + if polling is True: polling_method = ARMPolling(lro_delay, **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 + ) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + + begin_delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + def _update_initial( + self, + resource_group_name: str, + resource_name: str, + parameters: "_models.OpenShiftClusterUpdate", + **kwargs: Any + ) -> "_models.OpenShiftCluster": + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftCluster"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + + _json = self._serialize.body(parameters, 'OpenShiftClusterUpdate') + + request = build_update_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + content_type=content_type, + json=_json, + template_url=self._update_initial.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + _update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + + @distributed_trace + def begin_update( + self, + resource_group_name: str, + resource_name: str, + parameters: "_models.OpenShiftClusterUpdate", + **kwargs: Any + ) -> LROPoller["_models.OpenShiftCluster"]: + """Creates or updates a OpenShift cluster with the specified subscription, resource group and + resource name. + + The operation returns properties of a OpenShift cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param resource_name: The name of the OpenShift cluster resource. + :type resource_name: str + :param parameters: The OpenShift cluster resource. + :type parameters: ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.OpenShiftClusterUpdate + :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 OpenShiftCluster or the result of + cls(response) + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.OpenShiftCluster] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftCluster"] + 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, + resource_name=resource_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x,y,z: x, + **kwargs + ) + kwargs.pop('error_map', None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + + if polling is True: polling_method = ARMPolling(lro_delay, **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 + ) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + + begin_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + @distributed_trace + def list_admin_credentials( + self, + resource_group_name: str, + resource_name: str, + **kwargs: Any + ) -> "_models.OpenShiftClusterAdminKubeconfig": + """Lists admin kubeconfig of an OpenShift cluster with the specified subscription, resource group + and resource name. + + The operation returns the admin kubeconfig. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param resource_name: The name of the OpenShift cluster resource. + :type resource_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: OpenShiftClusterAdminKubeconfig, or the result of cls(response) + :rtype: ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.OpenShiftClusterAdminKubeconfig + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftClusterAdminKubeconfig"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + + + request = build_list_admin_credentials_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + template_url=self.list_admin_credentials.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize('OpenShiftClusterAdminKubeconfig', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + list_admin_credentials.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}/listAdminCredentials"} # type: ignore + + + @distributed_trace + def list_credentials( + self, + resource_group_name: str, + resource_name: str, + **kwargs: Any + ) -> "_models.OpenShiftClusterCredentials": + """Lists credentials of an OpenShift cluster with the specified subscription, resource group and + resource name. + + The operation returns the credentials. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param resource_name: The name of the OpenShift cluster resource. + :type resource_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: OpenShiftClusterCredentials, or the result of cls(response) + :rtype: ~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.OpenShiftClusterCredentials + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftClusterCredentials"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + + + request = build_list_credentials_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + template_url=self.list_credentials.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize('OpenShiftClusterCredentials', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + list_credentials.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}/listCredentials"} # type: ignore + diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/operations/_operations.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/operations/_operations.py new file mode 100644 index 000000000000..1d40f0678698 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/operations/_operations.py @@ -0,0 +1,146 @@ +# pylint: disable=too-many-lines +# 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, Iterable, Optional, TypeVar + +from msrest import Serializer + +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 HttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace +from azure.mgmt.core.exceptions import ARMErrorFormat + +from .. import models as _models +from .._vendor import _convert_request +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +_SERIALIZER = Serializer() +_SERIALIZER.client_side_validation = False + +def build_list_request( + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/providers/Microsoft.RedHatOpenShift/operations") + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + +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.redhatopenshift.v2021_09_01_preview.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 + + @distributed_trace + def list( + self, + **kwargs: Any + ) -> Iterable["_models.OperationList"]: + """Lists all of the available RP operations. + + The operation returns the RP operations. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either OperationList or the result of cls(response) + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.redhatopenshift.v2021_09_01_preview.models.OperationList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = kwargs.pop('api_version', "2021-09-01-preview") # type: str + + cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + def prepare_request(next_link=None): + if not next_link: + + request = build_list_request( + api_version=api_version, + template_url=self.list.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + else: + + request = build_list_request( + api_version=api_version, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize("OperationList", 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( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': "/providers/Microsoft.RedHatOpenShift/operations"} # type: ignore diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/py.typed b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/py.typed new file mode 100644 index 000000000000..e5aff4f83af8 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/py.typed @@ -0,0 +1 @@ +# Marker file for PEP 561. \ No newline at end of file diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/__init__.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/__init__.py new file mode 100644 index 000000000000..a81e4a399ecf --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/__init__.py @@ -0,0 +1,18 @@ +# 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_red_hat_open_shift_client import AzureRedHatOpenShiftClient +from ._version import VERSION + +__version__ = VERSION +__all__ = ['AzureRedHatOpenShiftClient'] + +# `._patch.py` is used for handwritten extensions to the generated code +# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md +from ._patch import patch_sdk +patch_sdk() diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/_azure_red_hat_open_shift_client.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/_azure_red_hat_open_shift_client.py new file mode 100644 index 000000000000..72e55920ca73 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/_azure_red_hat_open_shift_client.py @@ -0,0 +1,101 @@ +# 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 copy import deepcopy +from typing import Any, TYPE_CHECKING + +from msrest import Deserializer, Serializer + +from azure.core.rest import HttpRequest, HttpResponse +from azure.mgmt.core import ARMPipelineClient + +from . import models +from ._configuration import AzureRedHatOpenShiftClientConfiguration +from .operations import OpenShiftClustersOperations, Operations + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials import TokenCredential + +class AzureRedHatOpenShiftClient: + """Rest API for Azure Red Hat OpenShift 4. + + :ivar operations: Operations operations + :vartype operations: azure.mgmt.redhatopenshift.v2022_04_01.operations.Operations + :ivar open_shift_clusters: OpenShiftClustersOperations operations + :vartype open_shift_clusters: + azure.mgmt.redhatopenshift.v2022_04_01.operations.OpenShiftClustersOperations + :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 base_url: Service URL. Default value is "https://management.azure.com". + :type base_url: str + :keyword api_version: Api Version. Default value is "2022-04-01". Note that overriding this + default value may result in unsupported behavior. + :paramtype api_version: str + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. + """ + + def __init__( + self, + credential: "TokenCredential", + subscription_id: str, + base_url: str = "https://management.azure.com", + **kwargs: Any + ) -> None: + self._config = AzureRedHatOpenShiftClientConfiguration(credential=credential, subscription_id=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._deserialize = Deserializer(client_models) + self._serialize.client_side_validation = False + self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) + self.open_shift_clusters = OpenShiftClustersOperations(self._client, self._config, self._serialize, self._deserialize) + + + def _send_request( + self, + request: HttpRequest, + **kwargs: Any + ) -> HttpResponse: + """Runs the network request through the client's chained policies. + + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest("GET", "https://www.example.org/") + + >>> 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) + + def close(self): + # type: () -> None + self._client.close() + + def __enter__(self): + # type: () -> AzureRedHatOpenShiftClient + self._client.__enter__() + return self + + def __exit__(self, *exc_details): + # type: (Any) -> None + self._client.__exit__(*exc_details) diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/_configuration.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/_configuration.py new file mode 100644 index 000000000000..cee01fb8b267 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/_configuration.py @@ -0,0 +1,73 @@ +# 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 ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy + +from ._version import VERSION + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials import TokenCredential + + +class AzureRedHatOpenShiftClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes + """Configuration for AzureRedHatOpenShiftClient. + + 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: The ID of the target subscription. + :type subscription_id: str + :keyword api_version: Api Version. Default value is "2022-04-01". Note that overriding this + default value may result in unsupported behavior. + :paramtype api_version: str + """ + + def __init__( + self, + credential: "TokenCredential", + subscription_id: str, + **kwargs: Any + ) -> None: + super(AzureRedHatOpenShiftClientConfiguration, self).__init__(**kwargs) + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + + 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.") + + self.credential = credential + self.subscription_id = subscription_id + self.api_version = api_version + self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) + kwargs.setdefault('sdk_moniker', 'mgmt-redhatopenshift/{}'.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 = ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/_metadata.json b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/_metadata.json new file mode 100644 index 000000000000..a9507d3224c0 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/_metadata.json @@ -0,0 +1,103 @@ +{ + "chosen_version": "2022-04-01", + "total_api_version_list": ["2022-04-01"], + "client": { + "name": "AzureRedHatOpenShiftClient", + "filename": "_azure_red_hat_open_shift_client", + "description": "Rest API for Azure Red Hat OpenShift 4.", + "host_value": "\"https://management.azure.com\"", + "parameterized_host_template": 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\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AzureRedHatOpenShiftClientConfiguration\"]}, \"thirdparty\": {\"msrest\": [\"Deserializer\", \"Serializer\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"], \"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AzureRedHatOpenShiftClientConfiguration\"]}, \"thirdparty\": {\"msrest\": [\"Deserializer\", \"Serializer\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}" + }, + "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": "The ID of the target subscription.", + "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": "The ID of the target subscription.", + "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=\"https://management.azure.com\", # type: 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: str = \"https://management.azure.com\",", + "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_call_sync": "ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)", + "credential_call_async": "AsyncARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)", + "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMChallengeAuthenticationPolicy\", \"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\", \"AsyncARMChallengeAuthenticationPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}" + }, + "operation_groups": { + "operations": "Operations", + "open_shift_clusters": "OpenShiftClustersOperations" + } +} \ No newline at end of file diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/_patch.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/_patch.py new file mode 100644 index 000000000000..74e48ecd07cf --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/_patch.py @@ -0,0 +1,31 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# +# 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. +# +# -------------------------------------------------------------------------- + +# This file is used for handwritten extensions to the generated code. Example: +# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md +def patch_sdk(): + pass \ No newline at end of file diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/_vendor.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/_vendor.py new file mode 100644 index 000000000000..138f663c53a4 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/_vendor.py @@ -0,0 +1,27 @@ +# -------------------------------------------------------------------------- +# 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.pipeline.transport import HttpRequest + +def _convert_request(request, files=None): + data = request.content if not files else None + request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) + if files: + request.set_formdata_body(files) + return request + +def _format_url_section(template, **kwargs): + components = template.split("/") + while components: + try: + return template.format(**kwargs) + except KeyError as key: + formatted_components = template.split("/") + components = [ + c for c in formatted_components if "{}".format(key.args[0]) not in c + ] + template = "/".join(components) diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/_version.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/_version.py new file mode 100644 index 000000000000..59deb8c7263b --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_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.1.0" diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/aio/__init__.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/aio/__init__.py new file mode 100644 index 000000000000..6be616fa9ec0 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/aio/__init__.py @@ -0,0 +1,15 @@ +# 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_red_hat_open_shift_client import AzureRedHatOpenShiftClient +__all__ = ['AzureRedHatOpenShiftClient'] + +# `._patch.py` is used for handwritten extensions to the generated code +# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md +from ._patch import patch_sdk +patch_sdk() diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/aio/_azure_red_hat_open_shift_client.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/aio/_azure_red_hat_open_shift_client.py new file mode 100644 index 000000000000..20d25618b9aa --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/aio/_azure_red_hat_open_shift_client.py @@ -0,0 +1,98 @@ +# 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 copy import deepcopy +from typing import Any, Awaitable, TYPE_CHECKING + +from msrest import Deserializer, Serializer + +from azure.core.rest import AsyncHttpResponse, HttpRequest +from azure.mgmt.core import AsyncARMPipelineClient + +from .. import models +from ._configuration import AzureRedHatOpenShiftClientConfiguration +from .operations import OpenShiftClustersOperations, Operations + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials_async import AsyncTokenCredential + +class AzureRedHatOpenShiftClient: + """Rest API for Azure Red Hat OpenShift 4. + + :ivar operations: Operations operations + :vartype operations: azure.mgmt.redhatopenshift.v2022_04_01.aio.operations.Operations + :ivar open_shift_clusters: OpenShiftClustersOperations operations + :vartype open_shift_clusters: + azure.mgmt.redhatopenshift.v2022_04_01.aio.operations.OpenShiftClustersOperations + :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 base_url: Service URL. Default value is "https://management.azure.com". + :type base_url: str + :keyword api_version: Api Version. Default value is "2022-04-01". Note that overriding this + default value may result in unsupported behavior. + :paramtype api_version: str + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. + """ + + def __init__( + self, + credential: "AsyncTokenCredential", + subscription_id: str, + base_url: str = "https://management.azure.com", + **kwargs: Any + ) -> None: + self._config = AzureRedHatOpenShiftClientConfiguration(credential=credential, subscription_id=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._deserialize = Deserializer(client_models) + self._serialize.client_side_validation = False + self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) + self.open_shift_clusters = OpenShiftClustersOperations(self._client, self._config, self._serialize, self._deserialize) + + + def _send_request( + self, + request: HttpRequest, + **kwargs: Any + ) -> Awaitable[AsyncHttpResponse]: + """Runs the network request through the client's chained policies. + + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest("GET", "https://www.example.org/") + + >>> 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) -> "AzureRedHatOpenShiftClient": + await self._client.__aenter__() + return self + + async def __aexit__(self, *exc_details) -> None: + await self._client.__aexit__(*exc_details) diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/aio/_configuration.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/aio/_configuration.py new file mode 100644 index 000000000000..3fdb4fa67534 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/aio/_configuration.py @@ -0,0 +1,72 @@ +# 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, AsyncARMChallengeAuthenticationPolicy + +from .._version import VERSION + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials_async import AsyncTokenCredential + + +class AzureRedHatOpenShiftClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes + """Configuration for AzureRedHatOpenShiftClient. + + 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: The ID of the target subscription. + :type subscription_id: str + :keyword api_version: Api Version. Default value is "2022-04-01". Note that overriding this + default value may result in unsupported behavior. + :paramtype api_version: str + """ + + def __init__( + self, + credential: "AsyncTokenCredential", + subscription_id: str, + **kwargs: Any + ) -> None: + super(AzureRedHatOpenShiftClientConfiguration, self).__init__(**kwargs) + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + + 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.") + + self.credential = credential + self.subscription_id = subscription_id + self.api_version = api_version + self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) + kwargs.setdefault('sdk_moniker', 'mgmt-redhatopenshift/{}'.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 = AsyncARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/aio/_patch.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/aio/_patch.py new file mode 100644 index 000000000000..74e48ecd07cf --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/aio/_patch.py @@ -0,0 +1,31 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# +# 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. +# +# -------------------------------------------------------------------------- + +# This file is used for handwritten extensions to the generated code. Example: +# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md +def patch_sdk(): + pass \ No newline at end of file diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/aio/operations/__init__.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/aio/operations/__init__.py new file mode 100644 index 000000000000..7ffcf7895ee8 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/aio/operations/__init__.py @@ -0,0 +1,15 @@ +# 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 ._operations import Operations +from ._open_shift_clusters_operations import OpenShiftClustersOperations + +__all__ = [ + 'Operations', + 'OpenShiftClustersOperations', +] diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/aio/operations/_open_shift_clusters_operations.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/aio/operations/_open_shift_clusters_operations.py new file mode 100644 index 000000000000..4a0f64e03a18 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/aio/operations/_open_shift_clusters_operations.py @@ -0,0 +1,753 @@ +# pylint: disable=too-many-lines +# 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, Optional, TypeVar, Union + +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 +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace +from azure.core.tracing.decorator_async import distributed_trace_async +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models +from ..._vendor import _convert_request +from ...operations._open_shift_clusters_operations import build_create_or_update_request_initial, build_delete_request_initial, build_get_request, build_list_admin_credentials_request, build_list_by_resource_group_request, build_list_credentials_request, build_list_request, build_update_request_initial +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class OpenShiftClustersOperations: + """OpenShiftClustersOperations 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.redhatopenshift.v2022_04_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 + + @distributed_trace + def list( + self, + **kwargs: Any + ) -> AsyncIterable["_models.OpenShiftClusterList"]: + """Lists OpenShift clusters in the specified subscription. + + The operation returns properties of each OpenShift cluster. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either OpenShiftClusterList or the result of + cls(response) + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.redhatopenshift.v2022_04_01.models.OpenShiftClusterList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftClusterList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + def prepare_request(next_link=None): + if not next_link: + + request = build_list_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + template_url=self.list.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + else: + + request = build_list_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize("OpenShiftClusterList", 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( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': "/subscriptions/{subscriptionId}/providers/Microsoft.RedHatOpenShift/openShiftClusters"} # type: ignore + + @distributed_trace + def list_by_resource_group( + self, + resource_group_name: str, + **kwargs: Any + ) -> AsyncIterable["_models.OpenShiftClusterList"]: + """Lists OpenShift clusters in the specified subscription and resource group. + + The operation returns properties of each OpenShift cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either OpenShiftClusterList or the result of + cls(response) + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.redhatopenshift.v2022_04_01.models.OpenShiftClusterList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftClusterList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + def prepare_request(next_link=None): + if not next_link: + + request = build_list_by_resource_group_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + api_version=api_version, + template_url=self.list_by_resource_group.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + else: + + request = build_list_by_resource_group_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + api_version=api_version, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize("OpenShiftClusterList", 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( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters"} # type: ignore + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + resource_name: str, + **kwargs: Any + ) -> "_models.OpenShiftCluster": + """Gets a OpenShift cluster with the specified subscription, resource group and resource name. + + The operation returns properties of a OpenShift cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param resource_name: The name of the OpenShift cluster resource. + :type resource_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: OpenShiftCluster, or the result of cls(response) + :rtype: ~azure.mgmt.redhatopenshift.v2022_04_01.models.OpenShiftCluster + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftCluster"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + + + request = build_get_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + template_url=self.get.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + + async def _create_or_update_initial( + self, + resource_group_name: str, + resource_name: str, + parameters: "_models.OpenShiftCluster", + **kwargs: Any + ) -> "_models.OpenShiftCluster": + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftCluster"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + + _json = self._serialize.body(parameters, 'OpenShiftCluster') + + request = build_create_or_update_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + content_type=content_type, + json=_json, + template_url=self._create_or_update_initial.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + _create_or_update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + + @distributed_trace_async + async def begin_create_or_update( + self, + resource_group_name: str, + resource_name: str, + parameters: "_models.OpenShiftCluster", + **kwargs: Any + ) -> AsyncLROPoller["_models.OpenShiftCluster"]: + """Creates or updates a OpenShift cluster with the specified subscription, resource group and + resource name. + + The operation returns properties of a OpenShift cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param resource_name: The name of the OpenShift cluster resource. + :type resource_name: str + :param parameters: The OpenShift cluster resource. + :type parameters: ~azure.mgmt.redhatopenshift.v2022_04_01.models.OpenShiftCluster + :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 OpenShiftCluster or the result of + cls(response) + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.redhatopenshift.v2022_04_01.models.OpenShiftCluster] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftCluster"] + 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_or_update_initial( + resource_group_name=resource_group_name, + resource_name=resource_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x,y,z: x, + **kwargs + ) + kwargs.pop('error_map', None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + + if polling is True: polling_method = AsyncARMPolling(lro_delay, **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 + ) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + + begin_create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + async def _delete_initial( # pylint: disable=inconsistent-return-statements + self, + resource_group_name: str, + resource_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 = kwargs.pop('api_version', "2022-04-01") # type: str + + + request = build_delete_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + template_url=self._delete_initial.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + + @distributed_trace_async + async def begin_delete( # pylint: disable=inconsistent-return-statements + self, + resource_group_name: str, + resource_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes a OpenShift cluster with the specified subscription, resource group and resource name. + + The operation returns nothing. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param resource_name: The name of the OpenShift cluster resource. + :type resource_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 + """ + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + 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, + resource_name=resource_name, + api_version=api_version, + cls=lambda x,y,z: x, + **kwargs + ) + kwargs.pop('error_map', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + + if polling is True: polling_method = AsyncARMPolling(lro_delay, **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 + ) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + + begin_delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + async def _update_initial( + self, + resource_group_name: str, + resource_name: str, + parameters: "_models.OpenShiftClusterUpdate", + **kwargs: Any + ) -> "_models.OpenShiftCluster": + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftCluster"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + + _json = self._serialize.body(parameters, 'OpenShiftClusterUpdate') + + request = build_update_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + content_type=content_type, + json=_json, + template_url=self._update_initial.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + _update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + + @distributed_trace_async + async def begin_update( + self, + resource_group_name: str, + resource_name: str, + parameters: "_models.OpenShiftClusterUpdate", + **kwargs: Any + ) -> AsyncLROPoller["_models.OpenShiftCluster"]: + """Creates or updates a OpenShift cluster with the specified subscription, resource group and + resource name. + + The operation returns properties of a OpenShift cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param resource_name: The name of the OpenShift cluster resource. + :type resource_name: str + :param parameters: The OpenShift cluster resource. + :type parameters: ~azure.mgmt.redhatopenshift.v2022_04_01.models.OpenShiftClusterUpdate + :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 OpenShiftCluster or the result of + cls(response) + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.redhatopenshift.v2022_04_01.models.OpenShiftCluster] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftCluster"] + 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, + resource_name=resource_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x,y,z: x, + **kwargs + ) + kwargs.pop('error_map', None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + + if polling is True: polling_method = AsyncARMPolling(lro_delay, **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 + ) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + + begin_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + @distributed_trace_async + async def list_admin_credentials( + self, + resource_group_name: str, + resource_name: str, + **kwargs: Any + ) -> "_models.OpenShiftClusterAdminKubeconfig": + """Lists admin kubeconfig of an OpenShift cluster with the specified subscription, resource group + and resource name. + + The operation returns the admin kubeconfig. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param resource_name: The name of the OpenShift cluster resource. + :type resource_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: OpenShiftClusterAdminKubeconfig, or the result of cls(response) + :rtype: ~azure.mgmt.redhatopenshift.v2022_04_01.models.OpenShiftClusterAdminKubeconfig + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftClusterAdminKubeconfig"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + + + request = build_list_admin_credentials_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + template_url=self.list_admin_credentials.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize('OpenShiftClusterAdminKubeconfig', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + list_admin_credentials.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}/listAdminCredentials"} # type: ignore + + + @distributed_trace_async + async def list_credentials( + self, + resource_group_name: str, + resource_name: str, + **kwargs: Any + ) -> "_models.OpenShiftClusterCredentials": + """Lists credentials of an OpenShift cluster with the specified subscription, resource group and + resource name. + + The operation returns the credentials. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param resource_name: The name of the OpenShift cluster resource. + :type resource_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: OpenShiftClusterCredentials, or the result of cls(response) + :rtype: ~azure.mgmt.redhatopenshift.v2022_04_01.models.OpenShiftClusterCredentials + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftClusterCredentials"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + + + request = build_list_credentials_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + template_url=self.list_credentials.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize('OpenShiftClusterCredentials', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + list_credentials.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}/listCredentials"} # type: ignore + diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/aio/operations/_operations.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/aio/operations/_operations.py new file mode 100644 index 000000000000..ceed1f41bf40 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/aio/operations/_operations.py @@ -0,0 +1,117 @@ +# pylint: disable=too-many-lines +# 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, Optional, TypeVar + +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 +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models +from ..._vendor import _convert_request +from ...operations._operations import build_list_request +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.redhatopenshift.v2022_04_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 + + @distributed_trace + def list( + self, + **kwargs: Any + ) -> AsyncIterable["_models.OperationList"]: + """Lists all of the available RP operations. + + The operation returns the RP operations. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either OperationList or the result of cls(response) + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.redhatopenshift.v2022_04_01.models.OperationList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + + cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + def prepare_request(next_link=None): + if not next_link: + + request = build_list_request( + api_version=api_version, + template_url=self.list.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + else: + + request = build_list_request( + api_version=api_version, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize("OperationList", 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( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': "/providers/Microsoft.RedHatOpenShift/operations"} # type: ignore diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/models/__init__.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/models/__init__.py new file mode 100644 index 000000000000..e8fae19c6e76 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/models/__init__.py @@ -0,0 +1,65 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from ._models_py3 import APIServerProfile +from ._models_py3 import CloudErrorBody +from ._models_py3 import ClusterProfile +from ._models_py3 import ConsoleProfile +from ._models_py3 import Display +from ._models_py3 import IngressProfile +from ._models_py3 import MasterProfile +from ._models_py3 import NetworkProfile +from ._models_py3 import OpenShiftCluster +from ._models_py3 import OpenShiftClusterAdminKubeconfig +from ._models_py3 import OpenShiftClusterCredentials +from ._models_py3 import OpenShiftClusterList +from ._models_py3 import OpenShiftClusterUpdate +from ._models_py3 import Operation +from ._models_py3 import OperationList +from ._models_py3 import Resource +from ._models_py3 import ServicePrincipalProfile +from ._models_py3 import SystemData +from ._models_py3 import TrackedResource +from ._models_py3 import WorkerProfile + + +from ._azure_red_hat_open_shift_client_enums import ( + CreatedByType, + EncryptionAtHost, + FipsValidatedModules, + ProvisioningState, + Visibility, +) + +__all__ = [ + 'APIServerProfile', + 'CloudErrorBody', + 'ClusterProfile', + 'ConsoleProfile', + 'Display', + 'IngressProfile', + 'MasterProfile', + 'NetworkProfile', + 'OpenShiftCluster', + 'OpenShiftClusterAdminKubeconfig', + 'OpenShiftClusterCredentials', + 'OpenShiftClusterList', + 'OpenShiftClusterUpdate', + 'Operation', + 'OperationList', + 'Resource', + 'ServicePrincipalProfile', + 'SystemData', + 'TrackedResource', + 'WorkerProfile', + 'CreatedByType', + 'EncryptionAtHost', + 'FipsValidatedModules', + 'ProvisioningState', + 'Visibility', +] diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/models/_azure_red_hat_open_shift_client_enums.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/models/_azure_red_hat_open_shift_client_enums.py new file mode 100644 index 000000000000..aaffb9c2c7b5 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/models/_azure_red_hat_open_shift_client_enums.py @@ -0,0 +1,53 @@ +# 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 +from six import with_metaclass +from azure.core import CaseInsensitiveEnumMeta + + +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 EncryptionAtHost(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): + """EncryptionAtHost represents encryption at host state + """ + + DISABLED = "Disabled" + ENABLED = "Enabled" + +class FipsValidatedModules(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): + """FipsValidatedModules determines if FIPS is used. + """ + + DISABLED = "Disabled" + ENABLED = "Enabled" + +class ProvisioningState(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): + """ProvisioningState represents a provisioning state. + """ + + ADMIN_UPDATING = "AdminUpdating" + CREATING = "Creating" + DELETING = "Deleting" + FAILED = "Failed" + SUCCEEDED = "Succeeded" + UPDATING = "Updating" + +class Visibility(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): + """Visibility represents visibility. + """ + + PRIVATE = "Private" + PUBLIC = "Public" diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/models/_models_py3.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/models/_models_py3.py new file mode 100644 index 000000000000..321b7756128e --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/models/_models_py3.py @@ -0,0 +1,1014 @@ +# 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 Dict, List, Optional, Union + +import msrest.serialization + +from ._azure_red_hat_open_shift_client_enums import * + + +class APIServerProfile(msrest.serialization.Model): + """APIServerProfile represents an API server profile. + + :ivar visibility: API server visibility. Possible values include: "Private", "Public". + :vartype visibility: str or ~azure.mgmt.redhatopenshift.v2022_04_01.models.Visibility + :ivar url: The URL to access the cluster API server. + :vartype url: str + :ivar ip: The IP of the cluster API server. + :vartype ip: str + """ + + _attribute_map = { + 'visibility': {'key': 'visibility', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'ip': {'key': 'ip', 'type': 'str'}, + } + + def __init__( + self, + *, + visibility: Optional[Union[str, "Visibility"]] = None, + url: Optional[str] = None, + ip: Optional[str] = None, + **kwargs + ): + """ + :keyword visibility: API server visibility. Possible values include: "Private", "Public". + :paramtype visibility: str or ~azure.mgmt.redhatopenshift.v2022_04_01.models.Visibility + :keyword url: The URL to access the cluster API server. + :paramtype url: str + :keyword ip: The IP of the cluster API server. + :paramtype ip: str + """ + super(APIServerProfile, self).__init__(**kwargs) + self.visibility = visibility + self.url = url + self.ip = ip + + +class CloudErrorBody(msrest.serialization.Model): + """CloudErrorBody represents the body of a cloud error. + + :ivar code: An identifier for the error. Codes are invariant and are intended to be consumed + programmatically. + :vartype code: str + :ivar message: A message describing the error, intended to be suitable for display in a user + interface. + :vartype message: str + :ivar target: The target of the particular error. For example, the name of the property in + error. + :vartype target: str + :ivar details: A list of additional details about the error. + :vartype details: list[~azure.mgmt.redhatopenshift.v2022_04_01.models.CloudErrorBody] + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[CloudErrorBody]'}, + } + + def __init__( + self, + *, + code: Optional[str] = None, + message: Optional[str] = None, + target: Optional[str] = None, + details: Optional[List["CloudErrorBody"]] = None, + **kwargs + ): + """ + :keyword code: An identifier for the error. Codes are invariant and are intended to be consumed + programmatically. + :paramtype code: str + :keyword message: A message describing the error, intended to be suitable for display in a user + interface. + :paramtype message: str + :keyword target: The target of the particular error. For example, the name of the property in + error. + :paramtype target: str + :keyword details: A list of additional details about the error. + :paramtype details: list[~azure.mgmt.redhatopenshift.v2022_04_01.models.CloudErrorBody] + """ + super(CloudErrorBody, self).__init__(**kwargs) + self.code = code + self.message = message + self.target = target + self.details = details + + +class ClusterProfile(msrest.serialization.Model): + """ClusterProfile represents a cluster profile. + + :ivar pull_secret: The pull secret for the cluster. + :vartype pull_secret: str + :ivar domain: The domain for the cluster. + :vartype domain: str + :ivar version: The version of the cluster. + :vartype version: str + :ivar resource_group_id: The ID of the cluster resource group. + :vartype resource_group_id: str + :ivar fips_validated_modules: If FIPS validated crypto modules are used. Possible values + include: "Disabled", "Enabled". + :vartype fips_validated_modules: str or + ~azure.mgmt.redhatopenshift.v2022_04_01.models.FipsValidatedModules + """ + + _attribute_map = { + 'pull_secret': {'key': 'pullSecret', 'type': 'str'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'resource_group_id': {'key': 'resourceGroupId', 'type': 'str'}, + 'fips_validated_modules': {'key': 'fipsValidatedModules', 'type': 'str'}, + } + + def __init__( + self, + *, + pull_secret: Optional[str] = None, + domain: Optional[str] = None, + version: Optional[str] = None, + resource_group_id: Optional[str] = None, + fips_validated_modules: Optional[Union[str, "FipsValidatedModules"]] = None, + **kwargs + ): + """ + :keyword pull_secret: The pull secret for the cluster. + :paramtype pull_secret: str + :keyword domain: The domain for the cluster. + :paramtype domain: str + :keyword version: The version of the cluster. + :paramtype version: str + :keyword resource_group_id: The ID of the cluster resource group. + :paramtype resource_group_id: str + :keyword fips_validated_modules: If FIPS validated crypto modules are used. Possible values + include: "Disabled", "Enabled". + :paramtype fips_validated_modules: str or + ~azure.mgmt.redhatopenshift.v2022_04_01.models.FipsValidatedModules + """ + super(ClusterProfile, self).__init__(**kwargs) + self.pull_secret = pull_secret + self.domain = domain + self.version = version + self.resource_group_id = resource_group_id + self.fips_validated_modules = fips_validated_modules + + +class ConsoleProfile(msrest.serialization.Model): + """ConsoleProfile represents a console profile. + + :ivar url: The URL to access the cluster console. + :vartype url: str + """ + + _attribute_map = { + 'url': {'key': 'url', 'type': 'str'}, + } + + def __init__( + self, + *, + url: Optional[str] = None, + **kwargs + ): + """ + :keyword url: The URL to access the cluster console. + :paramtype url: str + """ + super(ConsoleProfile, self).__init__(**kwargs) + self.url = url + + +class Display(msrest.serialization.Model): + """Display represents the display details of an operation. + + :ivar provider: Friendly name of the resource provider. + :vartype provider: str + :ivar resource: Resource type on which the operation is performed. + :vartype resource: str + :ivar operation: Operation type: read, write, delete, listKeys/action, etc. + :vartype operation: str + :ivar description: Friendly name of the operation. + :vartype 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 + ): + """ + :keyword provider: Friendly name of the resource provider. + :paramtype provider: str + :keyword resource: Resource type on which the operation is performed. + :paramtype resource: str + :keyword operation: Operation type: read, write, delete, listKeys/action, etc. + :paramtype operation: str + :keyword description: Friendly name of the operation. + :paramtype description: str + """ + super(Display, self).__init__(**kwargs) + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description + + +class IngressProfile(msrest.serialization.Model): + """IngressProfile represents an ingress profile. + + :ivar name: The ingress profile name. + :vartype name: str + :ivar visibility: Ingress visibility. Possible values include: "Private", "Public". + :vartype visibility: str or ~azure.mgmt.redhatopenshift.v2022_04_01.models.Visibility + :ivar ip: The IP of the ingress. + :vartype ip: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'visibility': {'key': 'visibility', 'type': 'str'}, + 'ip': {'key': 'ip', 'type': 'str'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + visibility: Optional[Union[str, "Visibility"]] = None, + ip: Optional[str] = None, + **kwargs + ): + """ + :keyword name: The ingress profile name. + :paramtype name: str + :keyword visibility: Ingress visibility. Possible values include: "Private", "Public". + :paramtype visibility: str or ~azure.mgmt.redhatopenshift.v2022_04_01.models.Visibility + :keyword ip: The IP of the ingress. + :paramtype ip: str + """ + super(IngressProfile, self).__init__(**kwargs) + self.name = name + self.visibility = visibility + self.ip = ip + + +class MasterProfile(msrest.serialization.Model): + """MasterProfile represents a master profile. + + :ivar vm_size: The size of the master VMs. + :vartype vm_size: str + :ivar subnet_id: The Azure resource ID of the master subnet. + :vartype subnet_id: str + :ivar encryption_at_host: Whether master virtual machines are encrypted at host. Possible + values include: "Disabled", "Enabled". + :vartype encryption_at_host: str or + ~azure.mgmt.redhatopenshift.v2022_04_01.models.EncryptionAtHost + :ivar disk_encryption_set_id: The resource ID of an associated DiskEncryptionSet, if + applicable. + :vartype disk_encryption_set_id: str + """ + + _attribute_map = { + 'vm_size': {'key': 'vmSize', 'type': 'str'}, + 'subnet_id': {'key': 'subnetId', 'type': 'str'}, + 'encryption_at_host': {'key': 'encryptionAtHost', 'type': 'str'}, + 'disk_encryption_set_id': {'key': 'diskEncryptionSetId', 'type': 'str'}, + } + + def __init__( + self, + *, + vm_size: Optional[str] = None, + subnet_id: Optional[str] = None, + encryption_at_host: Optional[Union[str, "EncryptionAtHost"]] = None, + disk_encryption_set_id: Optional[str] = None, + **kwargs + ): + """ + :keyword vm_size: The size of the master VMs. + :paramtype vm_size: str + :keyword subnet_id: The Azure resource ID of the master subnet. + :paramtype subnet_id: str + :keyword encryption_at_host: Whether master virtual machines are encrypted at host. Possible + values include: "Disabled", "Enabled". + :paramtype encryption_at_host: str or + ~azure.mgmt.redhatopenshift.v2022_04_01.models.EncryptionAtHost + :keyword disk_encryption_set_id: The resource ID of an associated DiskEncryptionSet, if + applicable. + :paramtype disk_encryption_set_id: str + """ + super(MasterProfile, self).__init__(**kwargs) + self.vm_size = vm_size + self.subnet_id = subnet_id + self.encryption_at_host = encryption_at_host + self.disk_encryption_set_id = disk_encryption_set_id + + +class NetworkProfile(msrest.serialization.Model): + """NetworkProfile represents a network profile. + + :ivar pod_cidr: The CIDR used for OpenShift/Kubernetes Pods. + :vartype pod_cidr: str + :ivar service_cidr: The CIDR used for OpenShift/Kubernetes Services. + :vartype service_cidr: str + """ + + _attribute_map = { + 'pod_cidr': {'key': 'podCidr', 'type': 'str'}, + 'service_cidr': {'key': 'serviceCidr', 'type': 'str'}, + } + + def __init__( + self, + *, + pod_cidr: Optional[str] = None, + service_cidr: Optional[str] = None, + **kwargs + ): + """ + :keyword pod_cidr: The CIDR used for OpenShift/Kubernetes Pods. + :paramtype pod_cidr: str + :keyword service_cidr: The CIDR used for OpenShift/Kubernetes Services. + :paramtype service_cidr: str + """ + super(NetworkProfile, self).__init__(**kwargs) + self.pod_cidr = pod_cidr + self.service_cidr = service_cidr + + +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 = { + '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: 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 tags: A set of tags. Resource tags. + :vartype tags: dict[str, str] + :ivar location: Required. The geo-location where the resource lives. + :vartype location: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__( + self, + *, + location: str, + tags: Optional[Dict[str, str]] = None, + **kwargs + ): + """ + :keyword tags: A set of tags. Resource tags. + :paramtype tags: dict[str, str] + :keyword location: Required. The geo-location where the resource lives. + :paramtype location: str + """ + super(TrackedResource, self).__init__(**kwargs) + self.tags = tags + self.location = location + + +class OpenShiftCluster(TrackedResource): + """OpenShiftCluster represents an Azure Red Hat OpenShift cluster. + + 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: 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 tags: A set of tags. Resource tags. + :vartype tags: dict[str, str] + :ivar location: Required. The geo-location where the resource lives. + :vartype location: str + :ivar system_data: The system meta data relating to this resource. + :vartype system_data: ~azure.mgmt.redhatopenshift.v2022_04_01.models.SystemData + :ivar provisioning_state: The cluster provisioning state. Possible values include: + "AdminUpdating", "Creating", "Deleting", "Failed", "Succeeded", "Updating". + :vartype provisioning_state: str or + ~azure.mgmt.redhatopenshift.v2022_04_01.models.ProvisioningState + :ivar cluster_profile: The cluster profile. + :vartype cluster_profile: ~azure.mgmt.redhatopenshift.v2022_04_01.models.ClusterProfile + :ivar console_profile: The console profile. + :vartype console_profile: ~azure.mgmt.redhatopenshift.v2022_04_01.models.ConsoleProfile + :ivar service_principal_profile: The cluster service principal profile. + :vartype service_principal_profile: + ~azure.mgmt.redhatopenshift.v2022_04_01.models.ServicePrincipalProfile + :ivar network_profile: The cluster network profile. + :vartype network_profile: ~azure.mgmt.redhatopenshift.v2022_04_01.models.NetworkProfile + :ivar master_profile: The cluster master profile. + :vartype master_profile: ~azure.mgmt.redhatopenshift.v2022_04_01.models.MasterProfile + :ivar worker_profiles: The cluster worker profiles. + :vartype worker_profiles: list[~azure.mgmt.redhatopenshift.v2022_04_01.models.WorkerProfile] + :ivar apiserver_profile: The cluster API server profile. + :vartype apiserver_profile: ~azure.mgmt.redhatopenshift.v2022_04_01.models.APIServerProfile + :ivar ingress_profiles: The cluster ingress profiles. + :vartype ingress_profiles: list[~azure.mgmt.redhatopenshift.v2022_04_01.models.IngressProfile] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'system_data': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'cluster_profile': {'key': 'properties.clusterProfile', 'type': 'ClusterProfile'}, + 'console_profile': {'key': 'properties.consoleProfile', 'type': 'ConsoleProfile'}, + 'service_principal_profile': {'key': 'properties.servicePrincipalProfile', 'type': 'ServicePrincipalProfile'}, + 'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'}, + 'master_profile': {'key': 'properties.masterProfile', 'type': 'MasterProfile'}, + 'worker_profiles': {'key': 'properties.workerProfiles', 'type': '[WorkerProfile]'}, + 'apiserver_profile': {'key': 'properties.apiserverProfile', 'type': 'APIServerProfile'}, + 'ingress_profiles': {'key': 'properties.ingressProfiles', 'type': '[IngressProfile]'}, + } + + def __init__( + self, + *, + location: str, + tags: Optional[Dict[str, str]] = None, + provisioning_state: Optional[Union[str, "ProvisioningState"]] = None, + cluster_profile: Optional["ClusterProfile"] = None, + console_profile: Optional["ConsoleProfile"] = None, + service_principal_profile: Optional["ServicePrincipalProfile"] = None, + network_profile: Optional["NetworkProfile"] = None, + master_profile: Optional["MasterProfile"] = None, + worker_profiles: Optional[List["WorkerProfile"]] = None, + apiserver_profile: Optional["APIServerProfile"] = None, + ingress_profiles: Optional[List["IngressProfile"]] = None, + **kwargs + ): + """ + :keyword tags: A set of tags. Resource tags. + :paramtype tags: dict[str, str] + :keyword location: Required. The geo-location where the resource lives. + :paramtype location: str + :keyword provisioning_state: The cluster provisioning state. Possible values include: + "AdminUpdating", "Creating", "Deleting", "Failed", "Succeeded", "Updating". + :paramtype provisioning_state: str or + ~azure.mgmt.redhatopenshift.v2022_04_01.models.ProvisioningState + :keyword cluster_profile: The cluster profile. + :paramtype cluster_profile: ~azure.mgmt.redhatopenshift.v2022_04_01.models.ClusterProfile + :keyword console_profile: The console profile. + :paramtype console_profile: ~azure.mgmt.redhatopenshift.v2022_04_01.models.ConsoleProfile + :keyword service_principal_profile: The cluster service principal profile. + :paramtype service_principal_profile: + ~azure.mgmt.redhatopenshift.v2022_04_01.models.ServicePrincipalProfile + :keyword network_profile: The cluster network profile. + :paramtype network_profile: ~azure.mgmt.redhatopenshift.v2022_04_01.models.NetworkProfile + :keyword master_profile: The cluster master profile. + :paramtype master_profile: ~azure.mgmt.redhatopenshift.v2022_04_01.models.MasterProfile + :keyword worker_profiles: The cluster worker profiles. + :paramtype worker_profiles: list[~azure.mgmt.redhatopenshift.v2022_04_01.models.WorkerProfile] + :keyword apiserver_profile: The cluster API server profile. + :paramtype apiserver_profile: ~azure.mgmt.redhatopenshift.v2022_04_01.models.APIServerProfile + :keyword ingress_profiles: The cluster ingress profiles. + :paramtype ingress_profiles: + list[~azure.mgmt.redhatopenshift.v2022_04_01.models.IngressProfile] + """ + super(OpenShiftCluster, self).__init__(tags=tags, location=location, **kwargs) + self.system_data = None + self.provisioning_state = provisioning_state + self.cluster_profile = cluster_profile + self.console_profile = console_profile + self.service_principal_profile = service_principal_profile + self.network_profile = network_profile + self.master_profile = master_profile + self.worker_profiles = worker_profiles + self.apiserver_profile = apiserver_profile + self.ingress_profiles = ingress_profiles + + +class OpenShiftClusterAdminKubeconfig(msrest.serialization.Model): + """OpenShiftClusterAdminKubeconfig represents an OpenShift cluster's admin kubeconfig. + + :ivar kubeconfig: The base64-encoded kubeconfig file. + :vartype kubeconfig: str + """ + + _attribute_map = { + 'kubeconfig': {'key': 'kubeconfig', 'type': 'str'}, + } + + def __init__( + self, + *, + kubeconfig: Optional[str] = None, + **kwargs + ): + """ + :keyword kubeconfig: The base64-encoded kubeconfig file. + :paramtype kubeconfig: str + """ + super(OpenShiftClusterAdminKubeconfig, self).__init__(**kwargs) + self.kubeconfig = kubeconfig + + +class OpenShiftClusterCredentials(msrest.serialization.Model): + """OpenShiftClusterCredentials represents an OpenShift cluster's credentials. + + :ivar kubeadmin_username: The username for the kubeadmin user. + :vartype kubeadmin_username: str + :ivar kubeadmin_password: The password for the kubeadmin user. + :vartype kubeadmin_password: str + """ + + _attribute_map = { + 'kubeadmin_username': {'key': 'kubeadminUsername', 'type': 'str'}, + 'kubeadmin_password': {'key': 'kubeadminPassword', 'type': 'str'}, + } + + def __init__( + self, + *, + kubeadmin_username: Optional[str] = None, + kubeadmin_password: Optional[str] = None, + **kwargs + ): + """ + :keyword kubeadmin_username: The username for the kubeadmin user. + :paramtype kubeadmin_username: str + :keyword kubeadmin_password: The password for the kubeadmin user. + :paramtype kubeadmin_password: str + """ + super(OpenShiftClusterCredentials, self).__init__(**kwargs) + self.kubeadmin_username = kubeadmin_username + self.kubeadmin_password = kubeadmin_password + + +class OpenShiftClusterList(msrest.serialization.Model): + """OpenShiftClusterList represents a list of OpenShift clusters. + + :ivar value: The list of OpenShift clusters. + :vartype value: list[~azure.mgmt.redhatopenshift.v2022_04_01.models.OpenShiftCluster] + :ivar next_link: The link used to get the next page of operations. + :vartype next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[OpenShiftCluster]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["OpenShiftCluster"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + """ + :keyword value: The list of OpenShift clusters. + :paramtype value: list[~azure.mgmt.redhatopenshift.v2022_04_01.models.OpenShiftCluster] + :keyword next_link: The link used to get the next page of operations. + :paramtype next_link: str + """ + super(OpenShiftClusterList, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class OpenShiftClusterUpdate(msrest.serialization.Model): + """OpenShiftCluster represents an Azure Red Hat OpenShift cluster. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar tags: A set of tags. The resource tags. + :vartype tags: dict[str, str] + :ivar system_data: The system meta data relating to this resource. + :vartype system_data: ~azure.mgmt.redhatopenshift.v2022_04_01.models.SystemData + :ivar provisioning_state: The cluster provisioning state. Possible values include: + "AdminUpdating", "Creating", "Deleting", "Failed", "Succeeded", "Updating". + :vartype provisioning_state: str or + ~azure.mgmt.redhatopenshift.v2022_04_01.models.ProvisioningState + :ivar cluster_profile: The cluster profile. + :vartype cluster_profile: ~azure.mgmt.redhatopenshift.v2022_04_01.models.ClusterProfile + :ivar console_profile: The console profile. + :vartype console_profile: ~azure.mgmt.redhatopenshift.v2022_04_01.models.ConsoleProfile + :ivar service_principal_profile: The cluster service principal profile. + :vartype service_principal_profile: + ~azure.mgmt.redhatopenshift.v2022_04_01.models.ServicePrincipalProfile + :ivar network_profile: The cluster network profile. + :vartype network_profile: ~azure.mgmt.redhatopenshift.v2022_04_01.models.NetworkProfile + :ivar master_profile: The cluster master profile. + :vartype master_profile: ~azure.mgmt.redhatopenshift.v2022_04_01.models.MasterProfile + :ivar worker_profiles: The cluster worker profiles. + :vartype worker_profiles: list[~azure.mgmt.redhatopenshift.v2022_04_01.models.WorkerProfile] + :ivar apiserver_profile: The cluster API server profile. + :vartype apiserver_profile: ~azure.mgmt.redhatopenshift.v2022_04_01.models.APIServerProfile + :ivar ingress_profiles: The cluster ingress profiles. + :vartype ingress_profiles: list[~azure.mgmt.redhatopenshift.v2022_04_01.models.IngressProfile] + """ + + _validation = { + 'system_data': {'readonly': True}, + } + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'cluster_profile': {'key': 'properties.clusterProfile', 'type': 'ClusterProfile'}, + 'console_profile': {'key': 'properties.consoleProfile', 'type': 'ConsoleProfile'}, + 'service_principal_profile': {'key': 'properties.servicePrincipalProfile', 'type': 'ServicePrincipalProfile'}, + 'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'}, + 'master_profile': {'key': 'properties.masterProfile', 'type': 'MasterProfile'}, + 'worker_profiles': {'key': 'properties.workerProfiles', 'type': '[WorkerProfile]'}, + 'apiserver_profile': {'key': 'properties.apiserverProfile', 'type': 'APIServerProfile'}, + 'ingress_profiles': {'key': 'properties.ingressProfiles', 'type': '[IngressProfile]'}, + } + + def __init__( + self, + *, + tags: Optional[Dict[str, str]] = None, + provisioning_state: Optional[Union[str, "ProvisioningState"]] = None, + cluster_profile: Optional["ClusterProfile"] = None, + console_profile: Optional["ConsoleProfile"] = None, + service_principal_profile: Optional["ServicePrincipalProfile"] = None, + network_profile: Optional["NetworkProfile"] = None, + master_profile: Optional["MasterProfile"] = None, + worker_profiles: Optional[List["WorkerProfile"]] = None, + apiserver_profile: Optional["APIServerProfile"] = None, + ingress_profiles: Optional[List["IngressProfile"]] = None, + **kwargs + ): + """ + :keyword tags: A set of tags. The resource tags. + :paramtype tags: dict[str, str] + :keyword provisioning_state: The cluster provisioning state. Possible values include: + "AdminUpdating", "Creating", "Deleting", "Failed", "Succeeded", "Updating". + :paramtype provisioning_state: str or + ~azure.mgmt.redhatopenshift.v2022_04_01.models.ProvisioningState + :keyword cluster_profile: The cluster profile. + :paramtype cluster_profile: ~azure.mgmt.redhatopenshift.v2022_04_01.models.ClusterProfile + :keyword console_profile: The console profile. + :paramtype console_profile: ~azure.mgmt.redhatopenshift.v2022_04_01.models.ConsoleProfile + :keyword service_principal_profile: The cluster service principal profile. + :paramtype service_principal_profile: + ~azure.mgmt.redhatopenshift.v2022_04_01.models.ServicePrincipalProfile + :keyword network_profile: The cluster network profile. + :paramtype network_profile: ~azure.mgmt.redhatopenshift.v2022_04_01.models.NetworkProfile + :keyword master_profile: The cluster master profile. + :paramtype master_profile: ~azure.mgmt.redhatopenshift.v2022_04_01.models.MasterProfile + :keyword worker_profiles: The cluster worker profiles. + :paramtype worker_profiles: list[~azure.mgmt.redhatopenshift.v2022_04_01.models.WorkerProfile] + :keyword apiserver_profile: The cluster API server profile. + :paramtype apiserver_profile: ~azure.mgmt.redhatopenshift.v2022_04_01.models.APIServerProfile + :keyword ingress_profiles: The cluster ingress profiles. + :paramtype ingress_profiles: + list[~azure.mgmt.redhatopenshift.v2022_04_01.models.IngressProfile] + """ + super(OpenShiftClusterUpdate, self).__init__(**kwargs) + self.tags = tags + self.system_data = None + self.provisioning_state = provisioning_state + self.cluster_profile = cluster_profile + self.console_profile = console_profile + self.service_principal_profile = service_principal_profile + self.network_profile = network_profile + self.master_profile = master_profile + self.worker_profiles = worker_profiles + self.apiserver_profile = apiserver_profile + self.ingress_profiles = ingress_profiles + + +class Operation(msrest.serialization.Model): + """Operation represents an RP operation. + + :ivar name: Operation name: {provider}/{resource}/{operation}. + :vartype name: str + :ivar display: The object that describes the operation. + :vartype display: ~azure.mgmt.redhatopenshift.v2022_04_01.models.Display + :ivar origin: Sources of requests to this operation. Comma separated list with valid values + user or system, e.g. "user,system". + :vartype origin: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'Display'}, + 'origin': {'key': 'origin', 'type': 'str'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + display: Optional["Display"] = None, + origin: Optional[str] = None, + **kwargs + ): + """ + :keyword name: Operation name: {provider}/{resource}/{operation}. + :paramtype name: str + :keyword display: The object that describes the operation. + :paramtype display: ~azure.mgmt.redhatopenshift.v2022_04_01.models.Display + :keyword origin: Sources of requests to this operation. Comma separated list with valid values + user or system, e.g. "user,system". + :paramtype origin: str + """ + super(Operation, self).__init__(**kwargs) + self.name = name + self.display = display + self.origin = origin + + +class OperationList(msrest.serialization.Model): + """OperationList represents an RP operation list. + + :ivar value: List of operations supported by the resource provider. + :vartype value: list[~azure.mgmt.redhatopenshift.v2022_04_01.models.Operation] + :ivar next_link: The link used to get the next page of operations. + :vartype next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Operation]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["Operation"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + """ + :keyword value: List of operations supported by the resource provider. + :paramtype value: list[~azure.mgmt.redhatopenshift.v2022_04_01.models.Operation] + :keyword next_link: The link used to get the next page of operations. + :paramtype next_link: str + """ + super(OperationList, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class ServicePrincipalProfile(msrest.serialization.Model): + """ServicePrincipalProfile represents a service principal profile. + + :ivar client_id: The client ID used for the cluster. + :vartype client_id: str + :ivar client_secret: The client secret used for the cluster. + :vartype client_secret: str + """ + + _attribute_map = { + 'client_id': {'key': 'clientId', 'type': 'str'}, + 'client_secret': {'key': 'clientSecret', 'type': 'str'}, + } + + def __init__( + self, + *, + client_id: Optional[str] = None, + client_secret: Optional[str] = None, + **kwargs + ): + """ + :keyword client_id: The client ID used for the cluster. + :paramtype client_id: str + :keyword client_secret: The client secret used for the cluster. + :paramtype client_secret: str + """ + super(ServicePrincipalProfile, self).__init__(**kwargs) + self.client_id = client_id + self.client_secret = client_secret + + +class SystemData(msrest.serialization.Model): + """Metadata pertaining to creation and last modification of the resource. + + :ivar created_by: The identity that created the resource. + :vartype created_by: str + :ivar created_by_type: The type of identity that created the resource. Possible values include: + "User", "Application", "ManagedIdentity", "Key". + :vartype created_by_type: str or ~azure.mgmt.redhatopenshift.v2022_04_01.models.CreatedByType + :ivar created_at: The timestamp of resource creation (UTC). + :vartype created_at: ~datetime.datetime + :ivar last_modified_by: The identity that last modified the resource. + :vartype last_modified_by: str + :ivar last_modified_by_type: The type of identity that last modified the resource. Possible + values include: "User", "Application", "ManagedIdentity", "Key". + :vartype last_modified_by_type: str or + ~azure.mgmt.redhatopenshift.v2022_04_01.models.CreatedByType + :ivar last_modified_at: The timestamp of resource last modification (UTC). + :vartype 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 + ): + """ + :keyword created_by: The identity that created the resource. + :paramtype created_by: str + :keyword created_by_type: The type of identity that created the resource. Possible values + include: "User", "Application", "ManagedIdentity", "Key". + :paramtype created_by_type: str or ~azure.mgmt.redhatopenshift.v2022_04_01.models.CreatedByType + :keyword created_at: The timestamp of resource creation (UTC). + :paramtype created_at: ~datetime.datetime + :keyword last_modified_by: The identity that last modified the resource. + :paramtype last_modified_by: str + :keyword last_modified_by_type: The type of identity that last modified the resource. Possible + values include: "User", "Application", "ManagedIdentity", "Key". + :paramtype last_modified_by_type: str or + ~azure.mgmt.redhatopenshift.v2022_04_01.models.CreatedByType + :keyword last_modified_at: The timestamp of resource last modification (UTC). + :paramtype last_modified_at: ~datetime.datetime + """ + 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 WorkerProfile(msrest.serialization.Model): + """WorkerProfile represents a worker profile. + + :ivar name: The worker profile name. + :vartype name: str + :ivar vm_size: The size of the worker VMs. + :vartype vm_size: str + :ivar disk_size_gb: The disk size of the worker VMs. + :vartype disk_size_gb: int + :ivar subnet_id: The Azure resource ID of the worker subnet. + :vartype subnet_id: str + :ivar count: The number of worker VMs. + :vartype count: int + :ivar encryption_at_host: Whether master virtual machines are encrypted at host. Possible + values include: "Disabled", "Enabled". + :vartype encryption_at_host: str or + ~azure.mgmt.redhatopenshift.v2022_04_01.models.EncryptionAtHost + :ivar disk_encryption_set_id: The resource ID of an associated DiskEncryptionSet, if + applicable. + :vartype disk_encryption_set_id: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'vm_size': {'key': 'vmSize', 'type': 'str'}, + 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, + 'subnet_id': {'key': 'subnetId', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'int'}, + 'encryption_at_host': {'key': 'encryptionAtHost', 'type': 'str'}, + 'disk_encryption_set_id': {'key': 'diskEncryptionSetId', 'type': 'str'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + vm_size: Optional[str] = None, + disk_size_gb: Optional[int] = None, + subnet_id: Optional[str] = None, + count: Optional[int] = None, + encryption_at_host: Optional[Union[str, "EncryptionAtHost"]] = None, + disk_encryption_set_id: Optional[str] = None, + **kwargs + ): + """ + :keyword name: The worker profile name. + :paramtype name: str + :keyword vm_size: The size of the worker VMs. + :paramtype vm_size: str + :keyword disk_size_gb: The disk size of the worker VMs. + :paramtype disk_size_gb: int + :keyword subnet_id: The Azure resource ID of the worker subnet. + :paramtype subnet_id: str + :keyword count: The number of worker VMs. + :paramtype count: int + :keyword encryption_at_host: Whether master virtual machines are encrypted at host. Possible + values include: "Disabled", "Enabled". + :paramtype encryption_at_host: str or + ~azure.mgmt.redhatopenshift.v2022_04_01.models.EncryptionAtHost + :keyword disk_encryption_set_id: The resource ID of an associated DiskEncryptionSet, if + applicable. + :paramtype disk_encryption_set_id: str + """ + super(WorkerProfile, self).__init__(**kwargs) + self.name = name + self.vm_size = vm_size + self.disk_size_gb = disk_size_gb + self.subnet_id = subnet_id + self.count = count + self.encryption_at_host = encryption_at_host + self.disk_encryption_set_id = disk_encryption_set_id diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/operations/__init__.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/operations/__init__.py new file mode 100644 index 000000000000..7ffcf7895ee8 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/operations/__init__.py @@ -0,0 +1,15 @@ +# 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 ._operations import Operations +from ._open_shift_clusters_operations import OpenShiftClustersOperations + +__all__ = [ + 'Operations', + 'OpenShiftClustersOperations', +] diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/operations/_open_shift_clusters_operations.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/operations/_open_shift_clusters_operations.py new file mode 100644 index 000000000000..21e084a8d424 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/operations/_open_shift_clusters_operations.py @@ -0,0 +1,1054 @@ +# pylint: disable=too-many-lines +# 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, Iterable, Optional, TypeVar, Union + +from msrest import Serializer + +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 HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models +from .._vendor import _convert_request, _format_url_section +T = TypeVar('T') +JSONType = Any +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +_SERIALIZER = Serializer() +_SERIALIZER.client_side_validation = False + +def build_list_request( + subscription_id: str, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.RedHatOpenShift/openShiftClusters") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + + +def build_list_by_resource_group_request( + subscription_id: str, + resource_group_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + + +def build_get_request( + subscription_id: str, + resource_group_name: str, + resource_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "resourceName": _SERIALIZER.url("resource_name", resource_name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + + +def build_create_or_update_request_initial( + subscription_id: str, + resource_group_name: str, + resource_name: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + content_type = kwargs.pop('content_type', None) # type: Optional[str] + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "resourceName": _SERIALIZER.url("resource_name", resource_name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="PUT", + url=_url, + params=_query_parameters, + headers=_header_parameters, + json=json, + content=content, + **kwargs + ) + + +def build_delete_request_initial( + subscription_id: str, + resource_group_name: str, + resource_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "resourceName": _SERIALIZER.url("resource_name", resource_name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="DELETE", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + + +def build_update_request_initial( + subscription_id: str, + resource_group_name: str, + resource_name: str, + *, + json: JSONType = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + content_type = kwargs.pop('content_type', None) # type: Optional[str] + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "resourceName": _SERIALIZER.url("resource_name", resource_name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + if content_type is not None: + _header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="PATCH", + url=_url, + params=_query_parameters, + headers=_header_parameters, + json=json, + content=content, + **kwargs + ) + + +def build_list_admin_credentials_request( + subscription_id: str, + resource_group_name: str, + resource_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}/listAdminCredentials") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "resourceName": _SERIALIZER.url("resource_name", resource_name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + + +def build_list_credentials_request( + subscription_id: str, + resource_group_name: str, + resource_name: str, + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}/listCredentials") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "resourceName": _SERIALIZER.url("resource_name", resource_name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="POST", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + +class OpenShiftClustersOperations(object): + """OpenShiftClustersOperations 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.redhatopenshift.v2022_04_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 + + @distributed_trace + def list( + self, + **kwargs: Any + ) -> Iterable["_models.OpenShiftClusterList"]: + """Lists OpenShift clusters in the specified subscription. + + The operation returns properties of each OpenShift cluster. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either OpenShiftClusterList or the result of + cls(response) + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.redhatopenshift.v2022_04_01.models.OpenShiftClusterList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftClusterList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + def prepare_request(next_link=None): + if not next_link: + + request = build_list_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + template_url=self.list.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + else: + + request = build_list_request( + subscription_id=self._config.subscription_id, + api_version=api_version, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize("OpenShiftClusterList", 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( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': "/subscriptions/{subscriptionId}/providers/Microsoft.RedHatOpenShift/openShiftClusters"} # type: ignore + + @distributed_trace + def list_by_resource_group( + self, + resource_group_name: str, + **kwargs: Any + ) -> Iterable["_models.OpenShiftClusterList"]: + """Lists OpenShift clusters in the specified subscription and resource group. + + The operation returns properties of each OpenShift cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either OpenShiftClusterList or the result of + cls(response) + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.redhatopenshift.v2022_04_01.models.OpenShiftClusterList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftClusterList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + def prepare_request(next_link=None): + if not next_link: + + request = build_list_by_resource_group_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + api_version=api_version, + template_url=self.list_by_resource_group.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + else: + + request = build_list_by_resource_group_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + api_version=api_version, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize("OpenShiftClusterList", 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( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + + return ItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters"} # type: ignore + + @distributed_trace + def get( + self, + resource_group_name: str, + resource_name: str, + **kwargs: Any + ) -> "_models.OpenShiftCluster": + """Gets a OpenShift cluster with the specified subscription, resource group and resource name. + + The operation returns properties of a OpenShift cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param resource_name: The name of the OpenShift cluster resource. + :type resource_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: OpenShiftCluster, or the result of cls(response) + :rtype: ~azure.mgmt.redhatopenshift.v2022_04_01.models.OpenShiftCluster + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftCluster"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + + + request = build_get_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + template_url=self.get.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + + def _create_or_update_initial( + self, + resource_group_name: str, + resource_name: str, + parameters: "_models.OpenShiftCluster", + **kwargs: Any + ) -> "_models.OpenShiftCluster": + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftCluster"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + + _json = self._serialize.body(parameters, 'OpenShiftCluster') + + request = build_create_or_update_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + content_type=content_type, + json=_json, + template_url=self._create_or_update_initial.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + _create_or_update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + + @distributed_trace + def begin_create_or_update( + self, + resource_group_name: str, + resource_name: str, + parameters: "_models.OpenShiftCluster", + **kwargs: Any + ) -> LROPoller["_models.OpenShiftCluster"]: + """Creates or updates a OpenShift cluster with the specified subscription, resource group and + resource name. + + The operation returns properties of a OpenShift cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param resource_name: The name of the OpenShift cluster resource. + :type resource_name: str + :param parameters: The OpenShift cluster resource. + :type parameters: ~azure.mgmt.redhatopenshift.v2022_04_01.models.OpenShiftCluster + :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 OpenShiftCluster or the result of + cls(response) + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.redhatopenshift.v2022_04_01.models.OpenShiftCluster] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftCluster"] + 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_or_update_initial( + resource_group_name=resource_group_name, + resource_name=resource_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x,y,z: x, + **kwargs + ) + kwargs.pop('error_map', None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + + if polling is True: polling_method = ARMPolling(lro_delay, **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 + ) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + + begin_create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + def _delete_initial( # pylint: disable=inconsistent-return-statements + self, + resource_group_name: str, + resource_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 = kwargs.pop('api_version', "2022-04-01") # type: str + + + request = build_delete_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + template_url=self._delete_initial.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + + @distributed_trace + def begin_delete( # pylint: disable=inconsistent-return-statements + self, + resource_group_name: str, + resource_name: str, + **kwargs: Any + ) -> LROPoller[None]: + """Deletes a OpenShift cluster with the specified subscription, resource group and resource name. + + The operation returns nothing. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param resource_name: The name of the OpenShift cluster resource. + :type resource_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 + """ + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + 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, + resource_name=resource_name, + api_version=api_version, + cls=lambda x,y,z: x, + **kwargs + ) + kwargs.pop('error_map', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + + if polling is True: polling_method = ARMPolling(lro_delay, **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 + ) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + + begin_delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + def _update_initial( + self, + resource_group_name: str, + resource_name: str, + parameters: "_models.OpenShiftClusterUpdate", + **kwargs: Any + ) -> "_models.OpenShiftCluster": + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftCluster"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + + _json = self._serialize.body(parameters, 'OpenShiftClusterUpdate') + + request = build_update_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + content_type=content_type, + json=_json, + template_url=self._update_initial.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + _update_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + + @distributed_trace + def begin_update( + self, + resource_group_name: str, + resource_name: str, + parameters: "_models.OpenShiftClusterUpdate", + **kwargs: Any + ) -> LROPoller["_models.OpenShiftCluster"]: + """Creates or updates a OpenShift cluster with the specified subscription, resource group and + resource name. + + The operation returns properties of a OpenShift cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param resource_name: The name of the OpenShift cluster resource. + :type resource_name: str + :param parameters: The OpenShift cluster resource. + :type parameters: ~azure.mgmt.redhatopenshift.v2022_04_01.models.OpenShiftClusterUpdate + :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 OpenShiftCluster or the result of + cls(response) + :rtype: + ~azure.core.polling.LROPoller[~azure.mgmt.redhatopenshift.v2022_04_01.models.OpenShiftCluster] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftCluster"] + 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, + resource_name=resource_name, + parameters=parameters, + api_version=api_version, + content_type=content_type, + cls=lambda x,y,z: x, + **kwargs + ) + kwargs.pop('error_map', None) + + def get_long_running_output(pipeline_response): + response = pipeline_response.http_response + deserialized = self._deserialize('OpenShiftCluster', pipeline_response) + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + + if polling is True: polling_method = ARMPolling(lro_delay, **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 + ) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + + begin_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}"} # type: ignore + + @distributed_trace + def list_admin_credentials( + self, + resource_group_name: str, + resource_name: str, + **kwargs: Any + ) -> "_models.OpenShiftClusterAdminKubeconfig": + """Lists admin kubeconfig of an OpenShift cluster with the specified subscription, resource group + and resource name. + + The operation returns the admin kubeconfig. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param resource_name: The name of the OpenShift cluster resource. + :type resource_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: OpenShiftClusterAdminKubeconfig, or the result of cls(response) + :rtype: ~azure.mgmt.redhatopenshift.v2022_04_01.models.OpenShiftClusterAdminKubeconfig + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftClusterAdminKubeconfig"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + + + request = build_list_admin_credentials_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + template_url=self.list_admin_credentials.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize('OpenShiftClusterAdminKubeconfig', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + list_admin_credentials.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}/listAdminCredentials"} # type: ignore + + + @distributed_trace + def list_credentials( + self, + resource_group_name: str, + resource_name: str, + **kwargs: Any + ) -> "_models.OpenShiftClusterCredentials": + """Lists credentials of an OpenShift cluster with the specified subscription, resource group and + resource name. + + The operation returns the credentials. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param resource_name: The name of the OpenShift cluster resource. + :type resource_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: OpenShiftClusterCredentials, or the result of cls(response) + :rtype: ~azure.mgmt.redhatopenshift.v2022_04_01.models.OpenShiftClusterCredentials + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.OpenShiftClusterCredentials"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + + + request = build_list_credentials_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + resource_name=resource_name, + api_version=api_version, + template_url=self.list_credentials.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize('OpenShiftClusterCredentials', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + list_credentials.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RedHatOpenShift/openShiftClusters/{resourceName}/listCredentials"} # type: ignore + diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/operations/_operations.py b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/operations/_operations.py new file mode 100644 index 000000000000..1bb6e4bd3055 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/operations/_operations.py @@ -0,0 +1,146 @@ +# pylint: disable=too-many-lines +# 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, Iterable, Optional, TypeVar + +from msrest import Serializer + +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 HttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace +from azure.mgmt.core.exceptions import ARMErrorFormat + +from .. import models as _models +from .._vendor import _convert_request +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +_SERIALIZER = Serializer() +_SERIALIZER.client_side_validation = False + +def build_list_request( + **kwargs: Any +) -> HttpRequest: + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + + accept = "application/json" + # Construct URL + _url = kwargs.pop("template_url", "/providers/Microsoft.RedHatOpenShift/operations") + + # Construct parameters + _query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] + _query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] + _header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=_url, + params=_query_parameters, + headers=_header_parameters, + **kwargs + ) + +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.redhatopenshift.v2022_04_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 + + @distributed_trace + def list( + self, + **kwargs: Any + ) -> Iterable["_models.OperationList"]: + """Lists all of the available RP operations. + + The operation returns the RP operations. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either OperationList or the result of cls(response) + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.redhatopenshift.v2022_04_01.models.OperationList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = kwargs.pop('api_version', "2022-04-01") # type: str + + cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + def prepare_request(next_link=None): + if not next_link: + + request = build_list_request( + api_version=api_version, + template_url=self.list.metadata['url'], + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + + else: + + request = build_list_request( + api_version=api_version, + template_url=next_link, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) + request.method = "GET" + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize("OperationList", 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( # pylint: disable=protected-access + 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) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': "/providers/Microsoft.RedHatOpenShift/operations"} # type: ignore diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/py.typed b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/py.typed new file mode 100644 index 000000000000..e5aff4f83af8 --- /dev/null +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2022_04_01/py.typed @@ -0,0 +1 @@ +# Marker file for PEP 561. \ No newline at end of file diff --git a/sdk/schemaregistry/azure-schemaregistry-avroencoder/CHANGELOG.md b/sdk/schemaregistry/azure-schemaregistry-avroencoder/CHANGELOG.md index beaa99b66242..fcf2ace37ac0 100644 --- a/sdk/schemaregistry/azure-schemaregistry-avroencoder/CHANGELOG.md +++ b/sdk/schemaregistry/azure-schemaregistry-avroencoder/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.0.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.0 (2022-05-10) **Note:** This is the first stable release of our efforts to create a user-friendly Pythonic Avro Encoder library that integrates with the Python client library for Azure Schema Registry. diff --git a/sdk/schemaregistry/azure-schemaregistry-avroencoder/azure/schemaregistry/encoder/avroencoder/_exceptions.py b/sdk/schemaregistry/azure-schemaregistry-avroencoder/azure/schemaregistry/encoder/avroencoder/_exceptions.py index 4d3321b8464d..16892ce06f71 100644 --- a/sdk/schemaregistry/azure-schemaregistry-avroencoder/azure/schemaregistry/encoder/avroencoder/_exceptions.py +++ b/sdk/schemaregistry/azure-schemaregistry-avroencoder/azure/schemaregistry/encoder/avroencoder/_exceptions.py @@ -27,6 +27,7 @@ class InvalidSchemaError(ValueError): """Error during schema validation. + :param str message: The message object stringified as 'message' attribute :keyword error: The original exception, if any. @@ -43,6 +44,7 @@ def __init__(self, message, *args, **kwargs): class InvalidContentError(ValueError): """Error during encoding or decoding content with a schema. + :param str message: The message object stringified as 'message' attribute :keyword error: The original exception, if any. diff --git a/sdk/schemaregistry/azure-schemaregistry-avroencoder/azure/schemaregistry/encoder/avroencoder/_message_protocol.py b/sdk/schemaregistry/azure-schemaregistry-avroencoder/azure/schemaregistry/encoder/avroencoder/_message_protocol.py index 77848c84cd4d..2b5d62f99134 100644 --- a/sdk/schemaregistry/azure-schemaregistry-avroencoder/azure/schemaregistry/encoder/avroencoder/_message_protocol.py +++ b/sdk/schemaregistry/azure-schemaregistry-avroencoder/azure/schemaregistry/encoder/avroencoder/_message_protocol.py @@ -24,8 +24,7 @@ class MessageType(Protocol): def from_message_content( cls, content: bytes, content_type: str, **kwargs: Any ) -> "MessageType": - """ - Creates an object that is a subtype of MessageType, given content type and + """Creates an object that is a subtype of MessageType, given content type and a content value to be set on the object. :param bytes content: The content value to be set as the body of the message. @@ -35,8 +34,7 @@ def from_message_content( ... def __message_content__(self) -> MessageContent: - """ - A MessageContent object, with `content` and `content_type` set to + """A MessageContent object, with `content` and `content_type` set to the values of their respective properties on the MessageType object. :rtype: ~azure.schemaregistry.encoder.avroencoder.MessageContent diff --git a/sdk/schemaregistry/azure-schemaregistry-avroencoder/azure/schemaregistry/encoder/avroencoder/_schema_registry_avro_encoder.py b/sdk/schemaregistry/azure-schemaregistry-avroencoder/azure/schemaregistry/encoder/avroencoder/_schema_registry_avro_encoder.py index 88bae91ed979..7b0fc38ba202 100644 --- a/sdk/schemaregistry/azure-schemaregistry-avroencoder/azure/schemaregistry/encoder/avroencoder/_schema_registry_avro_encoder.py +++ b/sdk/schemaregistry/azure-schemaregistry-avroencoder/azure/schemaregistry/encoder/avroencoder/_schema_registry_avro_encoder.py @@ -59,14 +59,14 @@ class AvroEncoder(object): """ AvroEncoder provides the ability to encode and decode content according - to the given avro schema. It would automatically register, get and cache the schema. + to the given Avro schema. It would automatically register, get, and cache the schema. :keyword client: Required. The schema registry client which is used to register schema and retrieve schema from the service. :paramtype client: ~azure.schemaregistry.SchemaRegistryClient - :keyword Optional[str] group_name: Required for encoding. Not used for decoding. + :keyword Optional[str] group_name: Required for encoding. Not used when decoding. Schema group under which schema should be registered. - :keyword bool auto_register: When true, register new schemas passed to encode. + :keyword bool auto_register: When true, registers new schemas passed to encode. Otherwise, and by default, encode will fail if the schema has not been pre-registered in the registry. """ @@ -171,8 +171,7 @@ def encode( request_options: Optional[Dict[str, Any]] = None, **kwargs: Any, ) -> Union[MessageType, MessageContent]: - """ - Encode content with the given schema. Create content type value, which consists of the Avro Mime Type string + """Encode content with the given schema. Create content type value, which consists of the Avro Mime Type string and the schema ID corresponding to given schema. If provided with a MessageType subtype, encoded content and content type will be passed to create message object. If not provided, the following dict will be returned: {"content": Avro encoded value, "content_type": Avro mime type string + schema ID}. @@ -240,8 +239,7 @@ def decode( request_options: Dict[str, Any] = None, **kwargs: Any, ) -> Dict[str, Any]: - """ - Decode bytes content using schema ID in the content type field. `message` must be one of the following: + """Decode bytes content using schema ID in the content type field. `message` must be one of the following: 1) An object of subtype of the MessageType protocol. 2) A dict {"content": ..., "content_type": ...}, where "content" is bytes and "content_type" is string. Content must follow format of associated Avro RecordSchema: diff --git a/sdk/schemaregistry/azure-schemaregistry-avroencoder/azure/schemaregistry/encoder/avroencoder/_version.py b/sdk/schemaregistry/azure-schemaregistry-avroencoder/azure/schemaregistry/encoder/avroencoder/_version.py index 01c256eaa2ec..44b53a9ccedf 100644 --- a/sdk/schemaregistry/azure-schemaregistry-avroencoder/azure/schemaregistry/encoder/avroencoder/_version.py +++ b/sdk/schemaregistry/azure-schemaregistry-avroencoder/azure/schemaregistry/encoder/avroencoder/_version.py @@ -24,4 +24,4 @@ # # -------------------------------------------------------------------------- -VERSION = "1.0.0" +VERSION = "1.0.1" diff --git a/sdk/schemaregistry/azure-schemaregistry-avroencoder/azure/schemaregistry/encoder/avroencoder/aio/_schema_registry_avro_encoder_async.py b/sdk/schemaregistry/azure-schemaregistry-avroencoder/azure/schemaregistry/encoder/avroencoder/aio/_schema_registry_avro_encoder_async.py index dbc4f98656a4..25abee7477f8 100644 --- a/sdk/schemaregistry/azure-schemaregistry-avroencoder/azure/schemaregistry/encoder/avroencoder/aio/_schema_registry_avro_encoder_async.py +++ b/sdk/schemaregistry/azure-schemaregistry-avroencoder/azure/schemaregistry/encoder/avroencoder/aio/_schema_registry_avro_encoder_async.py @@ -49,14 +49,14 @@ class AvroEncoder(object): """ AvroEncoder provides the ability to encode and decode content according - to the given avro schema. It would automatically register, get and cache the schema. + to the given avro schema. It would automatically register, get, and cache the schema. :keyword client: Required. The schema registry client which is used to register schema and retrieve schema from the service. :paramtype client: ~azure.schemaregistry.aio.SchemaRegistryClient - :keyword Optional[str] group_name: Required for encoding. Not used for decoding. + :keyword Optional[str] group_name: Required for encoding. Not used when decoding. Schema group under which schema should be registered. - :keyword bool auto_register: When true, register new schemas passed to encode. + :keyword bool auto_register: When true, registers new schemas passed to encode. Otherwise, and by default, encode will fail if the schema has not been pre-registered in the registry. """ @@ -159,8 +159,7 @@ async def encode( **kwargs: Any, ) -> Union[MessageType, MessageContent]: - """ - Encode content with the given schema. Create content type value, which consists of the Avro Mime Type string + """Encode content with the given schema. Create content type value, which consists of the Avro Mime Type string and the schema ID corresponding to given schema. If provided with a MessageType subtype, encoded content and content type will be passed to create message object. If not provided, the following dict will be returned: {"content": Avro encoded value, "content_type": Avro mime type string + schema ID}. @@ -227,8 +226,7 @@ async def decode( request_options: Dict[str, Any] = None, **kwargs: Any, ) -> Dict[str, Any]: - """ - Decode bytes content using schema ID in the content type field. `message` must be one of the following: + """Decode bytes content using schema ID in the content type field. `message` must be one of the following: 1) A object of subtype of the MessageType protocol. 2) A dict {"content": ..., "content_type": ...}, where "content" is bytes and "content_type" is string. Content must follow format of associated Avro RecordSchema: diff --git a/sdk/schemaregistry/azure-schemaregistry/CHANGELOG.md b/sdk/schemaregistry/azure-schemaregistry/CHANGELOG.md index 51369b1c2a68..13036afa2d0f 100644 --- a/sdk/schemaregistry/azure-schemaregistry/CHANGELOG.md +++ b/sdk/schemaregistry/azure-schemaregistry/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.1.0 (2022-05-10) This version and all future versions will require Python 3.6+. Python 2.7 is no longer supported. diff --git a/sdk/schemaregistry/azure-schemaregistry/azure/schemaregistry/_version.py b/sdk/schemaregistry/azure-schemaregistry/azure/schemaregistry/_version.py index 719057e70880..85406c15e0d7 100644 --- a/sdk/schemaregistry/azure-schemaregistry/azure/schemaregistry/_version.py +++ b/sdk/schemaregistry/azure-schemaregistry/azure/schemaregistry/_version.py @@ -24,4 +24,4 @@ # # -------------------------------------------------------------------------- -VERSION = "1.1.0" +VERSION = "1.1.1" diff --git a/sdk/tables/azure-data-tables/CHANGELOG.md b/sdk/tables/azure-data-tables/CHANGELOG.md index db621211ddf8..6a98fffce2f1 100644 --- a/sdk/tables/azure-data-tables/CHANGELOG.md +++ b/sdk/tables/azure-data-tables/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 12.4.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 12.4.0 (2022-05-10) ### Features Added 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 c40634c05faa..37eadd101cab 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.4.0" +VERSION = "12.4.1" diff --git a/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md b/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md index 6a75381bd14b..5dc7299fcf55 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md +++ b/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md @@ -2,7 +2,8 @@ ## 5.2.0b4 (Unreleased) -This version of the client library defaults to the latest supported API version, which currently is `2022-04-01-preview`. +Note that this is the first version of the client library that targets the Azure Cognitive Service for Language APIs which includes the existing text analysis and natural language processing features found in the Text Analytics client library. +In addition, the service API has changed from semantic to date-based versioning. This version of the client library defaults to the latest supported API version, which currently is `2022-04-01-preview`. Support for `v3.2-preview.2` is removed, however, all functionalities are included in the latest version. ### Features Added @@ -11,12 +12,6 @@ This version of the client library defaults to the latest supported API version, - Added property `fhir_bundle` to `AnalyzeHealthcareEntitiesResult`. - Added keyword argument `display_name` to `begin_analyze_healthcare_entities`. -### Breaking Changes - -### Bugs Fixed - -### Other Changes - ## 5.2.0b3 (2022-03-08) ### Bugs Fixed diff --git a/sdk/textanalytics/azure-ai-textanalytics/README.md b/sdk/textanalytics/azure-ai-textanalytics/README.md index e4b48e315441..7ff296c348d1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/README.md +++ b/sdk/textanalytics/azure-ai-textanalytics/README.md @@ -1,6 +1,6 @@ # Azure Text Analytics client library for Python -Text Analytics is a cloud-based service that provides advanced natural language processing over raw text, and includes the following main features: +The Azure Cognitive Service for Language is a cloud-based service that provides Natural Language Processing (NLP) features for understanding and analyzing text, and includes the following main features: - Sentiment Analysis - Entity Recognition (Named, Linked, and Personally Identifiable Information (PII) entities) @@ -9,10 +9,10 @@ Text Analytics is a cloud-based service that provides advanced natural language - Multiple Analysis - Healthcare Entities Analysis - Extractive Text Summarization -- Custom Entity Recognition -- Custom Single and Multi Category Classification +- Custom Named Entity Recognition +- Custom Text Classification -[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][language_product_documentation] | [Samples][ta_samples] ## _Disclaimer_ @@ -24,22 +24,22 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For - Python 3.6 later is required to use this package. - You must have an [Azure subscription][azure_subscription] and a - [Cognitive Services or Language resource][ta_or_cs_resource] to use this package. + [Cognitive Services or Language service resource][ta_or_cs_resource] to use this package. -#### Create a Cognitive Services or Language resource +#### Create a Cognitive Services or Language service resource -Text Analytics supports both [multi-service and single-service access][multi_and_single_service]. -Create a Cognitive Services resource if you plan to access multiple cognitive services under a single endpoint/key. For Text Analytics access only, create a Language resource. +The Language service supports both [multi-service and single-service access][multi_and_single_service]. +Create a Cognitive Services resource if you plan to access multiple cognitive services under a single endpoint/key. For Language service access only, create a Language service resource. You can create the resource using **Option 1:** [Azure Portal][azure_portal_create_ta_resource] **Option 2:** [Azure CLI][azure_cli_create_ta_resource]. -Below is an example of how you can create a Language resource using the CLI: +Below is an example of how you can create a Language service resource using the CLI: ```bash -# Create a new resource group to hold the text analytics resource - +# Create a new resource group to hold the Language service resource - # if using an existing resource group, skip this step az group create --name my-resource-group --location westus2 ``` @@ -55,8 +55,8 @@ az cognitiveservices account create \ --yes ``` -Interaction with this service begins with an instance of a [client](#textanalyticsclient "TextAnalyticsClient"). -To create a client object, you will need the cognitive services or language `endpoint` to +Interaction with the service using the client library begins with a [client](#textanalyticsclient "TextAnalyticsClient"). +To create a client object, you will need the Cognitive Services or Language service `endpoint` to your resource and a `credential` that allows you access: ```python @@ -78,35 +78,36 @@ Install the Azure Text Analytics client library for Python with [pip][pip]: pip install azure-ai-textanalytics --pre ``` -> Note: This version of the client library defaults to the v3.2-preview.2 version of the service +> Note that `5.2.0b4` is the first version of the client library that targets the Azure Cognitive Service for Language APIs which includes the existing text analysis and natural language processing features found in the Text Analytics client library. +In addition, the service API has changed from semantic to date-based versioning. This version of the client library defaults to the latest supported API version, which currently is `2022-04-01-preview`. This table shows the relationship between SDK versions and supported API versions of the service | SDK version | Supported API version of service | | ------------ | --------------------------------- | -| 5.2.0b3 - Latest beta release | 3.0, 3.1, 3.2-preview.2 (default) | -| 5.1.0 - Latest GA release | 3.0, 3.1 (default) | +| 5.2.0b4 - Latest beta release | 3.0, 3.1, 2022-04-01-preview (default) | +| 5.1.0 - Latest stable release | 3.0, 3.1 (default) | | 5.0.0 | 3.0 | API version can be selected by passing the [api_version][text_analytics_client] keyword argument into the client. -For the latest Text Analytics features, consider selecting the most recent preview API version. For production scenarios, the latest GA version is recommended. Setting to an older version may result in reduced feature compatibility. +For the latest Language service features, consider selecting the most recent beta API version. For production scenarios, the latest stable version is recommended. Setting to an older version may result in reduced feature compatibility. ### Authenticate the client #### Get the endpoint -You can find the endpoint for your text analytics resource using the +You can find the endpoint for your Language service resource using the [Azure Portal][azure_portal_get_endpoint] or [Azure CLI][azure_cli_endpoint_lookup]: ```bash -# Get the endpoint for the text analytics resource +# Get the endpoint for the Language service resource az cognitiveservices account show --name "resource-name" --resource-group "resource-group-name" --query "properties.endpoint" ``` #### Get the API Key -You can get the [API key][cognitive_authentication_api_key] from the Cognitive Services or Language resource in the [Azure Portal][azure_portal_get_endpoint]. +You can get the [API key][cognitive_authentication_api_key] from the Cognitive Services or Language service resource in the [Azure Portal][azure_portal_get_endpoint]. Alternatively, you can use [Azure CLI][azure_cli_endpoint_lookup] snippet below to get the API key of your resource. `az cognitiveservices account keys list --name "resource-name" --resource-group "resource-group-name"` @@ -136,7 +137,7 @@ Authentication with AAD requires some initial setup: - [Install azure-identity][install_azure_identity] - [Register a new AAD application][register_aad_app] -- [Grant access][grant_role_access] to Text Analytics by assigning the `"Cognitive Services User"` role to your service principal. +- [Grant access][grant_role_access] to the Language service by assigning the `"Cognitive Services User"` role to your service principal. After setup, you can choose which type of [credential][azure_identity_credentials] from azure.identity to use. As an example, [DefaultAzureCredential][default_azure_credential] @@ -160,11 +161,11 @@ text_analytics_client = TextAnalyticsClient(endpoint="https://.co ### TextAnalyticsClient The Text Analytics client library provides a [TextAnalyticsClient][text_analytics_client] to do analysis on [batches of documents](#examples "Examples"). -It provides both synchronous and asynchronous operations to access a specific use of Text Analytics, such as language detection or key phrase extraction. +It provides both synchronous and asynchronous operations to access a specific use of text analysis, such as language detection or key phrase extraction. ### Input -A **document** is a single unit to be analyzed by the predictive models in the Text Analytics service. +A **document** is a single unit to be analyzed by the predictive models in the Language service. The input for each operation is passed as a **list** of documents. Each document can be passed as a string in the list, e.g. @@ -194,7 +195,7 @@ A heterogeneous list containing a collection of result and error objects is retu These results/errors are index-matched with the order of the provided documents. A **result**, such as [AnalyzeSentimentResult][analyze_sentiment_result], -is the result of a Text Analytics operation and contains a prediction or predictions about a document input. +is the result of a text analysis operation and contains a prediction or predictions about a document input. The **error** object, [DocumentError][document_error], indicates that the service had trouble processing the document and contains the reason it was unsuccessful. @@ -224,7 +225,7 @@ Sample code snippets are provided to illustrate using long-running operations [b ## Examples -The following section provides several code snippets covering some of the most common Text Analytics tasks, including: +The following section provides several code snippets covering some of the most common Language service tasks, including: - [Analyze Sentiment](#analyze-sentiment "Analyze sentiment") - [Recognize Entities](#recognize-entities "Recognize entities") @@ -507,7 +508,7 @@ Note: The Healthcare Entities Analysis service is only available in the Standard ### 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 Language APIs in a single request: - Entities Recognition - PII Entities Recognition @@ -518,6 +519,7 @@ Note: The Healthcare Entities Analysis service is only available in the Standard - Custom Entity Recognition (see sample [here][recognize_custom_entities_sample]) - Custom Single Category Classification (see sample [here][single_category_classify_sample]) - Custom Multi Category Classification (see sample [here][multi_category_classify_sample]) +- Healthcare Entities Analysis ```python from azure.core.credentials import AzureKeyCredential @@ -632,7 +634,7 @@ result = text_analytics_client.analyze_sentiment(documents, logging_enable=True) These code samples show common scenario operations with the Azure Text Analytics client library. -Authenticate the client with a Cognitive Services/Language API key or a token credential from [azure-identity][azure_identity]: +Authenticate the client with a Cognitive Services/Language service API key or a token credential from [azure-identity][azure_identity]: - [sample_authentication.py][sample_authentication] ([async version][sample_authentication_async]) @@ -657,7 +659,7 @@ Advanced scenarios ### Additional documentation -For more extensive documentation on Azure Cognitive Services Text Analytics, see the [Text Analytics documentation][ta_product_documentation] on docs.microsoft.com. +For more extensive documentation on Azure Cognitive Service for Language, see the [Language Service documentation][language_product_documentation] on docs.microsoft.com. ## Contributing @@ -673,7 +675,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con [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/main/sdk/textanalytics/azure-ai-textanalytics/samples -[ta_product_documentation]: https://docs.microsoft.com/azure/cognitive-services/text-analytics/overview +[language_product_documentation]: https://docs.microsoft.com/azure/cognitive-services/language-service [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 [pip]: https://pypi.org/project/pip/ 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 4d3d2553e6ca..6f2a2a2d8543 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 @@ -17,7 +17,7 @@ class TextAnalyticsApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Text Analytics API versions supported by this package""" + """Cognitive Service for Language or Text Analytics API versions supported by this package""" #: this is the default version V2022_04_01_PREVIEW = "2022-04-01-preview" diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v2022_04_01_preview/models/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v2022_04_01_preview/models/__init__.py index c80dddb963cd..ca7155f29622 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v2022_04_01_preview/models/__init__.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v2022_04_01_preview/models/__init__.py @@ -142,6 +142,7 @@ DocumentSentimentValue, ErrorCode, ExtractiveSummarizationSortingCriteria, + FhirVersion, HealthcareEntityCategory, InnerErrorCode, PiiCategory, @@ -289,6 +290,7 @@ 'DocumentSentimentValue', 'ErrorCode', 'ExtractiveSummarizationSortingCriteria', + 'FhirVersion', 'HealthcareEntityCategory', 'InnerErrorCode', 'PiiCategory', diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v2022_04_01_preview/models/_models_py3.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v2022_04_01_preview/models/_models_py3.py index 37c983d65b12..5ca5942bde3a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v2022_04_01_preview/models/_models_py3.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v2022_04_01_preview/models/_models_py3.py @@ -4150,9 +4150,9 @@ class HealthcareTaskParameters(PreBuiltTaskParameters): :ivar model_version: :vartype model_version: str :ivar fhir_version: The FHIR Spec version that the result will use to format the fhirBundle. - For additional information see https://www.hl7.org/fhir/overview.html. The only acceptable - values to pass in are None and "4.0.1". The default value is None. - :vartype fhir_version: str + For additional information see https://www.hl7.org/fhir/overview.html. Possible values include: + "4.0.1". + :vartype fhir_version: str or ~azure.ai.textanalytics.v2022_04_01_preview.models.FhirVersion :ivar string_index_type: 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. Possible values include: "TextElements_v8", @@ -4173,7 +4173,7 @@ def __init__( *, logging_opt_out: Optional[bool] = False, model_version: Optional[str] = "latest", - fhir_version: Optional[str] = None, + fhir_version: Optional[Union[str, "FhirVersion"]] = None, string_index_type: Optional[Union[str, "StringIndexType"]] = "TextElements_v8", **kwargs ): @@ -4183,9 +4183,9 @@ def __init__( :keyword model_version: :paramtype model_version: str :keyword fhir_version: The FHIR Spec version that the result will use to format the fhirBundle. - For additional information see https://www.hl7.org/fhir/overview.html. The only acceptable - values to pass in are None and "4.0.1". The default value is None. - :paramtype fhir_version: str + For additional information see https://www.hl7.org/fhir/overview.html. Possible values include: + "4.0.1". + :paramtype fhir_version: str or ~azure.ai.textanalytics.v2022_04_01_preview.models.FhirVersion :keyword string_index_type: 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. Possible values include: "TextElements_v8", diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v2022_04_01_preview/models/_text_analytics_client_enums.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v2022_04_01_preview/models/_text_analytics_client_enums.py index 6653c4ce6107..78a8565a630a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v2022_04_01_preview/models/_text_analytics_client_enums.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v2022_04_01_preview/models/_text_analytics_client_enums.py @@ -125,6 +125,13 @@ class ExtractiveSummarizationSortingCriteria(with_metaclass(CaseInsensitiveEnumM #: the model. RANK = "Rank" +class FhirVersion(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): + """The FHIR Spec version that the result will use to format the fhirBundle. For additional + information see https://www.hl7.org/fhir/overview.html. + """ + + FOUR0_1 = "4.0.1" + class HealthcareEntityCategory(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): """Healthcare Entity Category. """ 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 0d47eca333be..303fd136c649 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_models.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_models.py @@ -1796,9 +1796,9 @@ class RecognizeEntitiesAction(DictMixin): you can also pass in `Utf16CodeUnit` 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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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 @@ -1809,9 +1809,9 @@ class RecognizeEntitiesAction(DictMixin): you can also pass in `Utf16CodeUnit` 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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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 @@ -1870,9 +1870,9 @@ class AnalyzeSentimentAction(DictMixin): you can also pass in `Utf16CodeUnit` 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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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 @@ -1888,9 +1888,9 @@ class AnalyzeSentimentAction(DictMixin): you can also pass in `Utf16CodeUnit` 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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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 @@ -1956,10 +1956,10 @@ class RecognizePiiEntitiesAction(DictMixin): `UnicodeCodePoint`, the Python encoding, is the default. To override the Python default, you can also pass in `Utf16CodeUnit` 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 + :keyword bool disable_service_logs: Defaults to true, meaning that the Language service will not log your + input text on the service side for troubleshooting. If set to False, the Language service logs your input text for 48 hours, solely to allow for troubleshooting issues in providing you with - the Text Analytics natural language processing functions. Please see + the service's 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. @@ -1975,10 +1975,10 @@ class RecognizePiiEntitiesAction(DictMixin): `UnicodeCodePoint`, the Python encoding, is the default. To override the Python default, you can also pass in `Utf16CodeUnit` or TextElement_v8`. For additional information see https://aka.ms/text-analytics-offsets - :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 + :ivar bool disable_service_logs: Defaults to true, meaning that the Language service will not log your + input text on the service side for troubleshooting. If set to False, the Language service logs your input text for 48 hours, solely to allow for troubleshooting issues in providing you with - the Text Analytics natural language processing functions. Please see + the service's 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. @@ -2038,18 +2038,18 @@ class ExtractKeyPhrasesAction(DictMixin): :keyword str model_version: The model version to use for the analysis. :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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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/ai/responsible-ai. :ivar str model_version: The model version to use for the analysis. :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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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 @@ -2100,9 +2100,9 @@ class RecognizeLinkedEntitiesAction(DictMixin): you can also pass in `Utf16CodeUnit` 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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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 @@ -2113,9 +2113,9 @@ class RecognizeLinkedEntitiesAction(DictMixin): you can also pass in `Utf16CodeUnit` 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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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 @@ -2167,9 +2167,9 @@ class ExtractSummaryAction(DictMixin): you can also pass in `Utf16CodeUnit` 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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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 @@ -2182,9 +2182,9 @@ class ExtractSummaryAction(DictMixin): you can also pass in `Utf16CodeUnit` 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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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 @@ -2331,9 +2331,9 @@ class RecognizeCustomEntitiesAction(DictMixin): you can also pass in `Utf16CodeUnit` 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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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 @@ -2345,9 +2345,9 @@ class RecognizeCustomEntitiesAction(DictMixin): you can also pass in `Utf16CodeUnit` 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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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 @@ -2451,9 +2451,9 @@ class MultiCategoryClassifyAction(DictMixin): :param str project_name: Required. This field indicates the project name for the model. :param str deployment_name: Required. This field indicates the deployment name for the model. :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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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 @@ -2461,9 +2461,9 @@ class MultiCategoryClassifyAction(DictMixin): :ivar str project_name: This field indicates the project name for the model. :ivar str deployment_name: This field indicates the deployment name for the model. :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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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 @@ -2565,9 +2565,9 @@ class SingleCategoryClassifyAction(DictMixin): :param str project_name: Required. This field indicates the project name for the model. :param str deployment_name: Required. This field indicates the deployment name for the model. :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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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 @@ -2575,9 +2575,9 @@ class SingleCategoryClassifyAction(DictMixin): :ivar str project_name: This field indicates the project name for the model. :ivar str deployment_name: This field indicates the deployment name for the model. :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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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 @@ -2711,9 +2711,9 @@ class AnalyzeHealthcareEntitiesAction(DictMixin): you can also pass in `Utf16CodeUnit` 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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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 @@ -2727,9 +2727,9 @@ class AnalyzeHealthcareEntitiesAction(DictMixin): you can also pass in `Utf16CodeUnit` 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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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 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 66a19eae63e1..7f779722e019 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 @@ -75,21 +75,19 @@ class TextAnalyticsClient(TextAnalyticsClientBase): - """The Text Analytics API is a suite of text analytics web services built with best-in-class + """The Language service API is a suite of natural language processing (NLP) skills built with the 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, entities recognition, - and language detection, and more. 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. + and language detection, and more. Further documentation can be found in https://docs.microsoft.com/azure/cognitive-services/language-service/overview - :param str endpoint: Supported Cognitive Services or Text Analytics resource + :param str endpoint: Supported Cognitive Services or Language resource endpoints (protocol and hostname, for example: 'https://.cognitiveservices.azure.com'). :param credential: Credentials needed for the client to connect to Azure. - This can be the an instance of AzureKeyCredential if using a - cognitive services/text analytics API key or a token credential - from :mod:`azure.identity`. + This can be the an instance of AzureKeyCredential if using a Cognitive Services/Language API key + or a token credential from :mod:`azure.identity`. :type credential: ~azure.core.credentials.AzureKeyCredential or ~azure.core.credentials.TokenCredential :keyword str default_country_hint: Sets the default country_hint to use for all operations. Defaults to "US". If you don't want to use a country hint, pass the string "none". @@ -168,9 +166,9 @@ def detect_language( :keyword bool show_stats: If set to true, response will contain document level statistics in the `statistics` field of the document-level response. :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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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 @@ -261,7 +259,7 @@ def recognize_entities( 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 take precedence over whole batch language. See https://aka.ms/talangs for - supported languages in Text Analytics API. + supported languages in Language API. :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. @@ -273,9 +271,9 @@ def recognize_entities( you can also pass in `Utf16CodeUnit` 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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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 @@ -364,7 +362,7 @@ def recognize_pii_entities( 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 take precedence over whole batch language. See https://aka.ms/talangs for - supported languages in Text Analytics API. + supported languages in Language API. :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. @@ -384,10 +382,10 @@ def recognize_pii_entities( `UnicodeCodePoint`, the Python encoding, is the default. To override the Python default, you can also pass in `Utf16CodeUnit` 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 + :keyword bool disable_service_logs: Defaults to true, meaning that the Language service will not log your + input text on the service side for troubleshooting. If set to False, the Language service logs your input text for 48 hours, solely to allow for troubleshooting issues in providing you with - the Text Analytics natural language processing functions. Please see + the service's 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. @@ -483,7 +481,7 @@ def recognize_linked_entities( 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 take precedence over whole batch language. See https://aka.ms/talangs for - supported languages in Text Analytics API. + supported languages in Language API. :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. @@ -495,9 +493,9 @@ def recognize_linked_entities( you can also pass in `Utf16CodeUnit` 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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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 @@ -609,7 +607,7 @@ def begin_analyze_healthcare_entities( 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 take precedence over whole batch language. See https://aka.ms/talangs for - supported languages in Text Analytics API. + supported languages in Language API. :keyword str display_name: An optional display name to set for the requested analysis. :keyword str fhir_version: The FHIR Spec version that the result will use to format the fhir_bundle on the result object. For additional information see https://www.hl7.org/fhir/overview.html. @@ -624,10 +622,10 @@ def begin_analyze_healthcare_entities( Call `continuation_token()` on the poller object to save the long-running operation (LRO) state into an opaque token. Pass the value as the `continuation_token` keyword argument to restart the LRO from a saved state. - :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 + :keyword bool disable_service_logs: Defaults to true, meaning that the Language service will not log your + input text on the service side for troubleshooting. If set to False, the Language service logs your input text for 48 hours, solely to allow for troubleshooting issues in providing you with - the Text Analytics natural language processing functions. Please see + the service's 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. @@ -788,7 +786,7 @@ def extract_key_phrases( 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 take precedence over whole batch language. See https://aka.ms/talangs for - supported languages in Text Analytics API. + supported languages in Language API. :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. @@ -796,9 +794,9 @@ def extract_key_phrases( :keyword bool show_stats: If set to true, response will contain document level statistics in the `statistics` field of the document-level response. :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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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 @@ -891,7 +889,7 @@ def analyze_sentiment( 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 take precedence over whole batch language. See https://aka.ms/talangs for - supported languages in Text Analytics API. + supported languages in Language API. :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. @@ -903,9 +901,9 @@ def analyze_sentiment( you can also pass in `Utf16CodeUnit` 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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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 @@ -1032,7 +1030,7 @@ def begin_analyze_actions( """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 - combine multiple Text Analytics actions into one call. Otherwise, we recommend you use + combine multiple text analysis actions into one call. Otherwise, we recommend you use the action specific endpoints, for example :func:`analyze_sentiment`. .. note:: See the service documentation for regional support of custom action features: @@ -1058,7 +1056,7 @@ def begin_analyze_actions( 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 take precedence over whole batch language. See https://aka.ms/talangs for - supported languages in Text Analytics API. + supported languages in Language 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 5 seconds. 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 194655c9f6f8..8e9daf0d4e90 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 @@ -69,21 +69,19 @@ class TextAnalyticsClient(AsyncTextAnalyticsClientBase): - """The Text Analytics API is a suite of text analytics web services built with best-in-class + """The Language service API is a suite of natural language processing (NLP) skills built with the 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, entities recognition, - and language detection, and more. 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. + and language detection, and more. Further documentation can be found in https://docs.microsoft.com/azure/cognitive-services/language-service/overview - :param str endpoint: Supported Cognitive Services or Text Analytics resource + :param str endpoint: Supported Cognitive Services or Language resource endpoints (protocol and hostname, for example: 'https://.cognitiveservices.azure.com'). :param credential: Credentials needed for the client to connect to Azure. - This can be the an instance of AzureKeyCredential if using a - cognitive services/text analytics API key or a token credential - from :mod:`azure.identity`. + This can be the an instance of AzureKeyCredential if using a Cognitive Services/Language API key + or a token credential from :mod:`azure.identity`. :type credential: ~azure.core.credentials.AzureKeyCredential or ~azure.core.credentials_async.AsyncTokenCredential :keyword str default_country_hint: Sets the default country_hint to use for all operations. Defaults to "US". If you don't want to use a country hint, pass the string "none". @@ -162,9 +160,9 @@ async def detect_language( :keyword bool show_stats: If set to true, response will contain document level statistics in the `statistics` field of the document-level response. :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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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 @@ -255,7 +253,7 @@ async def recognize_entities( 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 take precedence over whole batch language. See https://aka.ms/talangs for - supported languages in Text Analytics API. + supported languages in Language API. :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. @@ -267,9 +265,9 @@ async def recognize_entities( you can also pass in `Utf16CodeUnit` 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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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 @@ -358,7 +356,7 @@ async def recognize_pii_entities( 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 take precedence over whole batch language. See https://aka.ms/talangs for - supported languages in Text Analytics API. + supported languages in Language API. :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. @@ -378,10 +376,10 @@ async def recognize_pii_entities( `UnicodeCodePoint`, the Python encoding, is the default. To override the Python default, you can also pass in `Utf16CodeUnit` 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 + :keyword bool disable_service_logs: Defaults to true, meaning that the Language service will not log your + input text on the service side for troubleshooting. If set to False, the Language service logs your input text for 48 hours, solely to allow for troubleshooting issues in providing you with - the Text Analytics natural language processing functions. Please see + the service's 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. @@ -477,7 +475,7 @@ async def recognize_linked_entities( 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 take precedence over whole batch language. See https://aka.ms/talangs for - supported languages in Text Analytics API. + supported languages in Language API. :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. @@ -489,9 +487,9 @@ async def recognize_linked_entities( you can also pass in `Utf16CodeUnit` 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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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 @@ -582,7 +580,7 @@ async def extract_key_phrases( 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 take precedence over whole batch language. See https://aka.ms/talangs for - supported languages in Text Analytics API. + supported languages in Language API. :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. @@ -590,9 +588,9 @@ async def extract_key_phrases( :keyword bool show_stats: If set to true, response will contain document level statistics in the `statistics` field of the document-level response. :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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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 @@ -685,7 +683,7 @@ async def analyze_sentiment( 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 take precedence over whole batch language. See https://aka.ms/talangs for - supported languages in Text Analytics API. + supported languages in Language API. :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. @@ -697,9 +695,9 @@ async def analyze_sentiment( you can also pass in `Utf16CodeUnit` 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 + logged on the service side for troubleshooting. By default, the Language service 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, + the service's 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 @@ -830,8 +828,8 @@ async def begin_analyze_healthcare_entities( Call `continuation_token()` on the poller object to save the long-running operation (LRO) state into an opaque token. Pass the value as the `continuation_token` keyword argument to restart the LRO from a saved state. - :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 + :keyword bool disable_service_logs: Defaults to true, meaning that the Language service will not log your + input text on the service side for troubleshooting. If set to False, the Language service logs your input text for 48 hours, solely to allow for troubleshooting issues in providing you with the Text Analytics natural language processing functions. Please see Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for @@ -1027,7 +1025,7 @@ async def begin_analyze_actions( """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 - combine multiple Text Analytics actions into one call. Otherwise, we recommend you use + combine multiple text analysis actions into one call. Otherwise, we recommend you use the action specific endpoints, for example :func:`analyze_sentiment`. .. note:: See the service documentation for regional support of custom action features: @@ -1053,7 +1051,7 @@ async def begin_analyze_actions( 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 take precedence over whole batch language. See https://aka.ms/talangs for - supported languages in Text Analytics API. + supported languages in Language 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 5 seconds. diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/README.md b/sdk/textanalytics/azure-ai-textanalytics/samples/README.md index a4ddc4857d12..ce533787a2a6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/README.md +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/README.md @@ -13,7 +13,7 @@ urlFragment: textanalytics-samples These code samples show common scenario operations with the Azure Text Analytics client library. -You can authenticate your client with a Cognitive Services/Text Analytics API key or through Azure Active Directory with a token credential from [azure-identity][azure_identity]: +You can authenticate your client with a Language API key or through Azure Active Directory with a token credential from [azure-identity][azure_identity]: * See [sample_authentication.py][sample_authentication] and [sample_authentication_async.py][sample_authentication_async] for how to authenticate in the above cases. These sample programs show common scenarios for the Text Analytics client's offerings. @@ -38,7 +38,7 @@ These sample programs show common scenarios for the Text Analytics client's offe ## Prerequisites * Python 3.6 or later is required to use this package * You must have an [Azure subscription][azure_subscription] and an -[Azure Text Analytics account][azure_text_analytics_account] to run these samples. +[Azure Language account][azure_language_account] to run these samples. ## Setup @@ -114,6 +114,6 @@ what you can do with the Azure Text Analytics client library. [sample_model_version_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_model_version_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 +[azure_language_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/ [api_reference_documentation]: https://aka.ms/azsdk-python-textanalytics-ref-docs 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 1c6e8d2e702a..d9f2ad082e71 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 @@ -15,8 +15,8 @@ python sample_alternative_document_input_async.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key """ import os @@ -27,8 +27,8 @@ 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"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) 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 ac8904143038..82fe00152288 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 @@ -10,15 +10,15 @@ DESCRIPTION: This sample demonstrates how to submit a collection of text documents for analysis, which consists of a variety of text analysis actions, such as Entity Recognition, PII Entity Recognition, Linked Entity Recognition, - Sentiment Analysis, Key Phrase Extraction, or Extractive Text Summarization (not shown - see sample sample_extract_summary_async.py). + Sentiment Analysis, Key Phrase Extraction and more. The response will contain results from each of the individual actions specified in the request. USAGE: python sample_analyze_actions_async.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key """ @@ -38,8 +38,8 @@ async def sample_analyze_async(): AnalyzeSentimentAction, ) - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient( endpoint=endpoint, 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 16746390f293..725dfc5ceb52 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 @@ -18,8 +18,8 @@ python sample_analyze_healthcare_entities_async.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key """ @@ -42,8 +42,8 @@ async def sample_analyze_healthcare_entities_async(): 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"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient( endpoint=endpoint, 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 143cae7e5fe6..266aba23be76 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 @@ -14,8 +14,8 @@ python sample_analyze_healthcare_entities_with_cancellation.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key """ @@ -29,8 +29,8 @@ async def sample_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"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient( endpoint=endpoint, 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 9c1b87e39e7e..02909cb6c8f0 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 @@ -19,8 +19,8 @@ python sample_analyze_sentiment_async.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key """ import os @@ -40,8 +40,8 @@ async def sample_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"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) 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 4790041e3b43..f88b6db7c7fa 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 @@ -19,8 +19,8 @@ python sample_analyze_sentiment_with_opinion_mining_async.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key OUTPUT: In this sample we will be a hotel owner going through reviews of their hotel to find complaints. @@ -50,8 +50,8 @@ 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"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient( endpoint=endpoint, 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 274ee5af7fba..be5ae7c53d7f 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 @@ -8,10 +8,10 @@ FILE: sample_authentication_async.py DESCRIPTION: - This sample demonstrates how to authenticate to the Text Analytics service. + This sample demonstrates how to authenticate to the Language service. There are two supported methods of authentication: - 1) Use a Cognitive Services/Text Analytics API key with AzureKeyCredential from azure.core.credentials + 1) Use a Language API key with AzureKeyCredential from azure.core.credentials 2) Use a token credential from azure-identity to authenticate with Azure Active Directory See more details about authentication here: @@ -21,8 +21,8 @@ python sample_authentication_async.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Cognitive Services/Text Analytics API key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language API key 3) AZURE_CLIENT_ID - the client ID of your active directory application. 4) AZURE_TENANT_ID - the tenant ID of your active directory application. 5) AZURE_CLIENT_SECRET - the secret of your active directory application. @@ -37,8 +37,8 @@ async def sample_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"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient(endpoint, AzureKeyCredential(key)) # [END create_ta_client_with_key_async] @@ -65,7 +65,7 @@ async def sample_authentication_with_azure_active_directory_async(): from azure.ai.textanalytics.aio import TextAnalyticsClient from azure.identity.aio import DefaultAzureCredential - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] credential = DefaultAzureCredential() text_analytics_client = TextAnalyticsClient(endpoint, credential=credential) 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 cafb01693f85..245e20434ea6 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 @@ -19,8 +19,8 @@ python sample_detect_language_async.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key """ import os @@ -37,8 +37,8 @@ async def sample_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"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) documents = [ 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 d9dd66c1ad53..36d53a68b291 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 @@ -17,8 +17,8 @@ python sample_extract_key_phrases_async.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key """ import os @@ -34,8 +34,8 @@ async def sample_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"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) articles = [ diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_extract_summary_async.py b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_extract_summary_async.py index 4d0ab567466a..c47ee3a1118b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_extract_summary_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_extract_summary_async.py @@ -15,8 +15,8 @@ python sample_extract_summary_async.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key """ @@ -29,8 +29,8 @@ async def sample_extractive_summarization_async(): from azure.ai.textanalytics.aio import TextAnalyticsClient from azure.ai.textanalytics import ExtractSummaryAction - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient( endpoint=endpoint, 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 c9db8f727fc0..156e84d661bf 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 @@ -15,8 +15,8 @@ python sample_get_detailed_diagnostics_information_async.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key """ import os @@ -31,8 +31,8 @@ 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"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_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) diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_model_version_async.py b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_model_version_async.py index ed96f92ab6b6..b07f755c0b82 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_model_version_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_model_version_async.py @@ -20,8 +20,8 @@ python sample_model_version_async.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key """ import os @@ -34,8 +34,8 @@ async def sample_model_version_async(): from azure.ai.textanalytics.aio import TextAnalyticsClient from azure.ai.textanalytics import RecognizeEntitiesAction - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) documents = [ diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_multi_category_classify_async.py b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_multi_category_classify_async.py index 0d6f9e436ef6..5d72d3879e98 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_multi_category_classify_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_multi_category_classify_async.py @@ -20,10 +20,10 @@ python sample_multi_category_classify_async.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key - 3) MULTI_CATEGORY_CLASSIFY_PROJECT_NAME - your Text Analytics Language Studio project name - 4) MULTI_CATEGORY_CLASSIFY_DEPLOYMENT_NAME - your Text Analytics deployed model name + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key + 3) MULTI_CATEGORY_CLASSIFY_PROJECT_NAME - your Language Studio project name + 4) MULTI_CATEGORY_CLASSIFY_DEPLOYMENT_NAME - your Language Studio deployment name """ @@ -36,10 +36,10 @@ async def sample_classify_document_multi_categories_async(): from azure.ai.textanalytics.aio import TextAnalyticsClient from azure.ai.textanalytics import MultiCategoryClassifyAction - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] project_name = os.environ["MULTI_CATEGORY_CLASSIFY_PROJECT_NAME"] - deployed_model_name = os.environ["MULTI_CATEGORY_CLASSIFY_DEPLOYMENT_NAME"] + deployment_name = os.environ["MULTI_CATEGORY_CLASSIFY_DEPLOYMENT_NAME"] path_to_sample_document = os.path.abspath( os.path.join( os.path.abspath(__file__), @@ -63,7 +63,7 @@ async def sample_classify_document_multi_categories_async(): actions=[ MultiCategoryClassifyAction( project_name=project_name, - deployment_name=deployed_model_name + deployment_name=deployment_name ), ], ) diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_custom_entities_async.py b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_custom_entities_async.py index d80fc2aaa75b..604df4f70ecd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_custom_entities_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_custom_entities_async.py @@ -18,10 +18,10 @@ python sample_recognize_custom_entities_async.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key - 3) CUSTOM_ENTITIES_PROJECT_NAME - your Text Analytics Language Studio project name - 4) CUSTOM_ENTITIES_DEPLOYMENT_NAME - your Text Analytics deployed model name + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key + 3) CUSTOM_ENTITIES_PROJECT_NAME - your Language Language Studio project name + 4) CUSTOM_ENTITIES_DEPLOYMENT_NAME - your Language deployed model name """ @@ -34,10 +34,10 @@ async def sample_recognize_custom_entities_async(): from azure.ai.textanalytics.aio import TextAnalyticsClient from azure.ai.textanalytics import RecognizeCustomEntitiesAction - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] project_name = os.environ["CUSTOM_ENTITIES_PROJECT_NAME"] - deployed_model_name = os.environ["CUSTOM_ENTITIES_DEPLOYMENT_NAME"] + deployment_name = os.environ["CUSTOM_ENTITIES_DEPLOYMENT_NAME"] path_to_sample_document = os.path.abspath( os.path.join( os.path.abspath(__file__), @@ -61,7 +61,7 @@ async def sample_recognize_custom_entities_async(): actions=[ RecognizeCustomEntitiesAction( project_name=project_name, - deployment_name=deployed_model_name + deployment_name=deployment_name ), ], ) 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 b4e33412dc16..e1de7df2e1ac 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 @@ -16,8 +16,8 @@ python sample_recognize_entities_async.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key """ import os @@ -34,8 +34,8 @@ async def sample_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"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) reviews = [ 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 81200259b8d4..21e8686ab6b0 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 @@ -20,8 +20,8 @@ python sample_recognize_linked_entities_async.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key """ import os @@ -38,8 +38,8 @@ async def sample_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"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) documents = [ 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 3c4b9280501b..88e7dc9b7ba2 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 @@ -18,8 +18,8 @@ python sample_recognize_pii_entities_async.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key """ import os @@ -37,8 +37,8 @@ async def sample_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"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient( endpoint=endpoint, credential=AzureKeyCredential(key) diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_single_category_classify_async.py b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_single_category_classify_async.py index d33a1e510464..a8216398eddc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_single_category_classify_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_single_category_classify_async.py @@ -20,10 +20,10 @@ python sample_single_category_classify_async.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key - 3) SINGLE_CATEGORY_CLASSIFY_PROJECT_NAME - your Text Analytics Language Studio project name - 4) SINGLE_CATEGORY_CLASSIFY_DEPLOYMENT_NAME - your Text Analytics deployed model name + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key + 3) SINGLE_CATEGORY_CLASSIFY_PROJECT_NAME - your Language Studio project name + 4) SINGLE_CATEGORY_CLASSIFY_DEPLOYMENT_NAME - your Language Studio deployment name """ @@ -36,10 +36,10 @@ async def sample_classify_document_single_category_async(): from azure.ai.textanalytics.aio import TextAnalyticsClient from azure.ai.textanalytics import SingleCategoryClassifyAction - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] project_name = os.environ["SINGLE_CATEGORY_CLASSIFY_PROJECT_NAME"] - deployed_model_name = os.environ["SINGLE_CATEGORY_CLASSIFY_DEPLOYMENT_NAME"] + deployment_name = os.environ["SINGLE_CATEGORY_CLASSIFY_DEPLOYMENT_NAME"] path_to_sample_document = os.path.abspath( os.path.join( os.path.abspath(__file__), @@ -63,7 +63,7 @@ async def sample_classify_document_single_category_async(): actions=[ SingleCategoryClassifyAction( project_name=project_name, - deployment_name=deployed_model_name + deployment_name=deployment_name ), ], ) 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 fbb421bb4fbc..1ad7f071bda4 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 @@ -15,8 +15,8 @@ python sample_alternative_document_input.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key """ import os @@ -29,8 +29,8 @@ 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_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) 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 8e1570fc82b8..9246e1ed04d3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_actions.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_actions.py @@ -10,15 +10,15 @@ DESCRIPTION: This sample demonstrates how to submit a collection of text documents for analysis, which consists of a variety of text analysis actions, such as Entity Recognition, PII Entity Recognition, Linked Entity Recognition, - Sentiment Analysis, Key Phrase Extraction, or Extractive Text Summarization (not shown - see sample sample_extract_summary.py). + Sentiment Analysis, Key Phrase Extraction, and more. The response will contain results from each of the individual actions specified in the request. USAGE: python sample_analyze_actions.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key """ @@ -37,8 +37,8 @@ def sample_analyze_actions(): AnalyzeSentimentAction, ) - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient( endpoint=endpoint, 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 d52d89504489..a3f341d79db2 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 @@ -18,8 +18,8 @@ python sample_analyze_healthcare_entities.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key """ @@ -38,8 +38,8 @@ def sample_analyze_healthcare_entities(): 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"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient( endpoint=endpoint, 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 302ad31fb2e1..76e96743c0f7 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 @@ -14,8 +14,8 @@ python sample_analyze_healthcare_entities_with_cancellation.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key """ @@ -28,8 +28,8 @@ def sample_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"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient( endpoint=endpoint, 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 3706529f0a0c..8d476f230a71 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_sentiment.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_sentiment.py @@ -19,8 +19,8 @@ python sample_analyze_sentiment.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key """ import os @@ -40,8 +40,8 @@ def sample_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"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) 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 21ffcb45d216..3a609c427380 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 @@ -19,8 +19,8 @@ python sample_analyze_sentiment_with_opinion_mining.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key OUTPUT: In this sample we will be a hotel owner going through reviews of their hotel to find complaints. @@ -49,8 +49,8 @@ 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"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient( endpoint=endpoint, diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_authentication.py b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_authentication.py index ac71855dc2a8..c676c6411e8d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_authentication.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_authentication.py @@ -8,10 +8,10 @@ FILE: sample_authentication.py DESCRIPTION: - This sample demonstrates how to authenticate to the Text Analytics service. + This sample demonstrates how to authenticate to the Language service. There are two supported methods of authentication: - 1) Use a Cognitive Services/Text Analytics API key with AzureKeyCredential from azure.core.credentials + 1) Use a Language API key with AzureKeyCredential from azure.core.credentials 2) Use a token credential from azure-identity to authenticate with Azure Active Directory See more details about authentication here: @@ -21,8 +21,8 @@ python sample_authentication.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services/Text Analytics resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics API key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language API key 3) AZURE_CLIENT_ID - the client ID of your active directory application. 4) AZURE_TENANT_ID - the tenant ID of your active directory application. 5) AZURE_CLIENT_SECRET - the secret of your active directory application. @@ -36,8 +36,8 @@ def sample_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"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient(endpoint, AzureKeyCredential(key)) # [END create_ta_client_with_key] @@ -62,7 +62,7 @@ def sample_authentication_with_azure_active_directory(): from azure.ai.textanalytics import TextAnalyticsClient from azure.identity import DefaultAzureCredential - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] credential = DefaultAzureCredential() text_analytics_client = TextAnalyticsClient(endpoint, credential=credential) 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 2eaa6a9fe5f4..5b7f1987cfbe 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_detect_language.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_detect_language.py @@ -19,8 +19,8 @@ python sample_detect_language.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key """ import os @@ -36,8 +36,8 @@ def sample_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"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) documents = [ 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 d363ec5a9499..cf91b9361fce 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 @@ -17,8 +17,8 @@ python sample_extract_key_phrases.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key """ import os @@ -33,8 +33,8 @@ def sample_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"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) articles = [ diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_extract_summary.py b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_extract_summary.py index 1f10e89ec016..808b7e5a1472 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_extract_summary.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_extract_summary.py @@ -15,8 +15,8 @@ python sample_extract_summary.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key """ @@ -30,8 +30,8 @@ def sample_extractive_summarization(): ExtractSummaryAction ) - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient( endpoint=endpoint, 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 65fbcd5e4868..9d72138acfac 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 @@ -15,8 +15,8 @@ python sample_get_detailed_diagnostics_information.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key """ import os @@ -30,8 +30,8 @@ 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"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_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) diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_model_version.py b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_model_version.py index b1e72f324465..824b8ffcdef2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_model_version.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_model_version.py @@ -20,8 +20,8 @@ python sample_model_version.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key """ import os @@ -32,8 +32,8 @@ def sample_model_version(): from azure.core.credentials import AzureKeyCredential from azure.ai.textanalytics import TextAnalyticsClient, RecognizeEntitiesAction - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) documents = [ diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_multi_category_classify.py b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_multi_category_classify.py index e659fe7a8ebc..37145ccd08ff 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_multi_category_classify.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_multi_category_classify.py @@ -20,10 +20,10 @@ python sample_multi_category_classify.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key - 3) MULTI_CATEGORY_CLASSIFY_PROJECT_NAME - your Text Analytics Language Studio project name - 4) MULTI_CATEGORY_CLASSIFY_DEPLOYMENT_NAME - your Text Analytics deployed model name + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key + 3) MULTI_CATEGORY_CLASSIFY_PROJECT_NAME - your Language Studio project name + 4) MULTI_CATEGORY_CLASSIFY_DEPLOYMENT_NAME - your Language Studio deployment name """ @@ -37,10 +37,10 @@ def sample_classify_document_multi_categories(): MultiCategoryClassifyAction ) - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] project_name = os.environ["MULTI_CATEGORY_CLASSIFY_PROJECT_NAME"] - deployed_model_name = os.environ["MULTI_CATEGORY_CLASSIFY_DEPLOYMENT_NAME"] + deployment_name = os.environ["MULTI_CATEGORY_CLASSIFY_DEPLOYMENT_NAME"] path_to_sample_document = os.path.abspath( os.path.join( os.path.abspath(__file__), @@ -62,7 +62,7 @@ def sample_classify_document_multi_categories(): actions=[ MultiCategoryClassifyAction( project_name=project_name, - deployment_name=deployed_model_name + deployment_name=deployment_name ), ], ) diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_custom_entities.py b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_custom_entities.py index 18adefccff72..afe313a4b4d2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_custom_entities.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_custom_entities.py @@ -18,10 +18,10 @@ python sample_recognize_custom_entities.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key - 3) CUSTOM_ENTITIES_PROJECT_NAME - your Text Analytics Language Studio project name - 4) CUSTOM_ENTITIES_DEPLOYMENT_NAME - your Text Analytics deployed model name + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key + 3) CUSTOM_ENTITIES_PROJECT_NAME - your Language Studio project name + 4) CUSTOM_ENTITIES_DEPLOYMENT_NAME - your Language Studio deployment name """ @@ -35,10 +35,10 @@ def sample_recognize_custom_entities(): RecognizeCustomEntitiesAction, ) - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] project_name = os.environ["CUSTOM_ENTITIES_PROJECT_NAME"] - deployed_model_name = os.environ["CUSTOM_ENTITIES_DEPLOYMENT_NAME"] + deployment_name = os.environ["CUSTOM_ENTITIES_DEPLOYMENT_NAME"] path_to_sample_document = os.path.abspath( os.path.join( os.path.abspath(__file__), @@ -59,7 +59,7 @@ def sample_recognize_custom_entities(): document, actions=[ RecognizeCustomEntitiesAction( - project_name=project_name, deployment_name=deployed_model_name + project_name=project_name, deployment_name=deployment_name ), ], ) 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 ea1a92e4f779..b228d69fe0e0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_entities.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_entities.py @@ -16,8 +16,8 @@ python sample_recognize_entities.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key """ import os @@ -34,8 +34,8 @@ def sample_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"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) reviews = [ 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 1c1d6b0ff5eb..93a4327f0f7b 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 @@ -20,8 +20,8 @@ python sample_recognize_linked_entities.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key """ import os @@ -38,8 +38,8 @@ def sample_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"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) documents = [ 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 f03b8a71db4a..0973177b7576 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 @@ -18,8 +18,8 @@ python sample_recognize_pii_entities.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key """ import os @@ -36,8 +36,8 @@ def sample_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"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] text_analytics_client = TextAnalyticsClient( endpoint=endpoint, credential=AzureKeyCredential(key) diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_single_category_classify.py b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_single_category_classify.py index c7d388ae9fee..eeaab2428edf 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_single_category_classify.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_single_category_classify.py @@ -20,10 +20,10 @@ python sample_single_category_classify.py Set the environment variables with your own values before running the sample: - 1) AZURE_TEXT_ANALYTICS_ENDPOINT - the endpoint to your Cognitive Services resource. - 2) AZURE_TEXT_ANALYTICS_KEY - your Text Analytics subscription key - 3) SINGLE_CATEGORY_CLASSIFY_PROJECT_NAME - your Text Analytics Language Studio project name - 4) SINGLE_CATEGORY_CLASSIFY_DEPLOYMENT_NAME - your Text Analytics deployed model name + 1) AZURE_LANGUAGE_ENDPOINT - the endpoint to your Language resource. + 2) AZURE_LANGUAGE_KEY - your Language subscription key + 3) SINGLE_CATEGORY_CLASSIFY_PROJECT_NAME - your Language Studio project name + 4) SINGLE_CATEGORY_CLASSIFY_DEPLOYMENT_NAME - your Language Studio deployment name """ @@ -37,10 +37,10 @@ def sample_classify_document_single_category(): SingleCategoryClassifyAction ) - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + endpoint = os.environ["AZURE_LANGUAGE_ENDPOINT"] + key = os.environ["AZURE_LANGUAGE_KEY"] project_name = os.environ["SINGLE_CATEGORY_CLASSIFY_PROJECT_NAME"] - deployed_model_name = os.environ["SINGLE_CATEGORY_CLASSIFY_DEPLOYMENT_NAME"] + deployment_name = os.environ["SINGLE_CATEGORY_CLASSIFY_DEPLOYMENT_NAME"] path_to_sample_document = os.path.abspath( os.path.join( os.path.abspath(__file__), @@ -62,7 +62,7 @@ def sample_classify_document_single_category(): actions=[ SingleCategoryClassifyAction( project_name=project_name, - deployment_name=deployed_model_name + deployment_name=deployment_name ), ], ) diff --git a/sdk/textanalytics/azure-ai-textanalytics/swagger/README.md b/sdk/textanalytics/azure-ai-textanalytics/swagger/README.md index 019347b693aa..a5bf94774050 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/swagger/README.md +++ b/sdk/textanalytics/azure-ai-textanalytics/swagger/README.md @@ -67,7 +67,7 @@ output-folder: $(python-sdks-folder)/textanalytics/azure-ai-textanalytics/azure/ These settings apply only when `--tag=release_2022_04_01_preview` is specified on the command line. ```yaml $(tag) == 'release_2022_04_01_preview' -input-file: $(python-sdks-folder)/textanalytics/azure-ai-textanalytics/swagger/textanalytics.json +input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/cognitiveservices-Language-2022-04-01-preview/specification/cognitiveservices/data-plane/Language/preview/2022-04-01-preview/textanalytics.json namespace: azure.ai.textanalytics.v2022_04_01_preview output-folder: $(python-sdks-folder)/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v2022_04_01_preview ``` diff --git a/sdk/textanalytics/azure-ai-textanalytics/swagger/common.json b/sdk/textanalytics/azure-ai-textanalytics/swagger/common.json deleted file mode 100644 index 7c26828c8e6f..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/swagger/common.json +++ /dev/null @@ -1,248 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Microsoft Cognitive Language Service", - "description": "The language service API is a suite of natural language processing (NLP) skills 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, language detection and question answering. Further documentation can be found in https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview.", - "version": "2022-03-01-preview" - }, - "paths": {}, - "definitions": { - "ErrorResponse": { - "type": "object", - "description": "Error response.", - "additionalProperties": false, - "properties": { - "error": { - "description": "The error object.", - "$ref": "#/definitions/Error" - } - }, - "required": [ - "error" - ] - }, - "Error": { - "type": "object", - "description": "The error object.", - "additionalProperties": true, - "required": [ - "code", - "message" - ], - "properties": { - "code": { - "description": "One of a server-defined set of error codes.", - "$ref": "#/definitions/ErrorCode" - }, - "message": { - "type": "string", - "description": "A human-readable representation of the error." - }, - "target": { - "type": "string", - "description": "The target of the error." - }, - "details": { - "type": "array", - "description": "An array of details about specific errors that led to this reported error.", - "items": { - "$ref": "#/definitions/Error" - } - }, - "innererror": { - "description": "An object containing more specific information than the current object about the error.", - "$ref": "#/definitions/InnerErrorModel" - } - } - }, - "InnerErrorModel": { - "type": "object", - "description": "An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.", - "additionalProperties": false, - "required": [ - "code", - "message" - ], - "properties": { - "code": { - "description": "One of a server-defined set of error codes.", - "$ref": "#/definitions/InnerErrorCode" - }, - "message": { - "type": "string", - "description": "Error message." - }, - "details": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Error details." - }, - "target": { - "type": "string", - "description": "Error target." - }, - "innererror": { - "description": "An object containing more specific information than the current object about the error.", - "$ref": "#/definitions/InnerErrorModel" - } - } - }, - "ErrorCode": { - "type": "string", - "description": "Human-readable error code.", - "x-ms-enum": { - "name": "ErrorCode", - "modelAsString": true - }, - "enum": [ - "InvalidRequest", - "InvalidArgument", - "Unauthorized", - "Forbidden", - "NotFound", - "ProjectNotFound", - "OperationNotFound", - "AzureCognitiveSearchNotFound", - "AzureCognitiveSearchIndexNotFound", - "TooManyRequests", - "AzureCognitiveSearchThrottling", - "AzureCognitiveSearchIndexLimitReached", - "InternalServerError", - "ServiceUnavailable" - ] - }, - "InnerErrorCode": { - "type": "string", - "description": "Human-readable error code.", - "x-ms-enum": { - "name": "InnerErrorCode", - "modelAsString": true - }, - "enum": [ - "InvalidRequest", - "InvalidParameterValue", - "KnowledgeBaseNotFound", - "AzureCognitiveSearchNotFound", - "AzureCognitiveSearchThrottling", - "ExtractionFailure", - "InvalidRequestBodyFormat", - "EmptyRequest", - "MissingInputDocuments", - "InvalidDocument", - "ModelVersionIncorrect", - "InvalidDocumentBatch", - "UnsupportedLanguageCode", - "InvalidCountryHint" - ] - }, - "Language": { - "type": "string", - "description": "Language of the text records. This is BCP-47 representation of a language. For example, use \"en\" for English; \"es\" for Spanish etc. If not set, use \"en\" for English as default." - }, - "StringIndexType": { - "type": "string", - "description": "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.", - "default": "TextElements_v8", - "enum": [ - "TextElements_v8", - "UnicodeCodePoint", - "Utf16CodeUnit" - ], - "x-ms-enum": { - "name": "StringIndexType", - "modelAsString": true, - "values": [ - { - "value": "TextElements_v8", - "description": "Returned offset and length values will correspond to TextElements (Graphemes and Grapheme clusters) confirming to the Unicode 8.0.0 standard. Use this option if your application is written in .Net Framework or .Net Core and you will be using StringInfo." - }, - { - "value": "UnicodeCodePoint", - "description": "Returned offset and length values will correspond to Unicode code points. Use this option if your application is written in a language that support Unicode, for example Python." - }, - { - "value": "Utf16CodeUnit", - "description": "Returned offset and length values will correspond to UTF-16 code units. Use this option if your application is written in a language that support Unicode, for example Java, JavaScript." - } - ] - } - } - }, - "parameters": { - "Endpoint": { - "name": "Endpoint", - "description": "Supported Cognitive Services endpoint (e.g., https://.api.cognitiveservices.azure.com).", - "x-ms-parameter-location": "client", - "required": true, - "type": "string", - "in": "path", - "x-ms-skip-url-encoding": true - }, - "ProjectNameQueryParameter": { - "name": "projectName", - "in": "query", - "required": true, - "type": "string", - "description": "The name of the project to use.", - "x-ms-parameter-location": "method" - }, - "ProjectNamePathParameter": { - "name": "projectName", - "in": "path", - "required": true, - "type": "string", - "maxLength": 100, - "description": "The name of the project to use.", - "x-ms-parameter-location": "method" - }, - "DeploymentNameQueryParameter": { - "name": "deploymentName", - "in": "query", - "required": true, - "type": "string", - "description": "The name of the specific deployment of the project to use.", - "x-ms-parameter-location": "method" - }, - "DeploymentNamePathParameter": { - "name": "deploymentName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the specific deployment of the project to use.", - "x-ms-parameter-location": "method" - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client API version." - }, - "TopParameter": { - "name": "top", - "in": "query", - "description": "The maximum number of resources to return from the collection.", - "type": "integer", - "format": "int32", - "x-ms-parameter-location": "method" - }, - "SkipParameter": { - "name": "skip", - "in": "query", - "description": "An offset into the collection of the first resource to be returned.", - "type": "integer", - "format": "int32", - "x-ms-parameter-location": "method" - }, - "MaxPageSizeParameter": { - "name": "maxpagesize", - "in": "query", - "description": "The maximum number of resources to include in a single response.", - "type": "integer", - "format": "int32", - "x-ms-parameter-location": "method" - } - } -} \ No newline at end of file diff --git a/sdk/textanalytics/azure-ai-textanalytics/swagger/textanalytics.json b/sdk/textanalytics/azure-ai-textanalytics/swagger/textanalytics.json deleted file mode 100644 index c901b8baed10..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/swagger/textanalytics.json +++ /dev/null @@ -1,2918 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Microsoft Cognitive Language Service", - "description": "The language service API is a suite of natural language processing (NLP) skills 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, language detection and question answering. Further documentation can be found in https://docs.microsoft.com/en-us/azure/cognitive-services/language-service/overview.0", - "version": "2022-04-01-preview" - }, - "securityDefinitions": { - "apim_key": { - "type": "apiKey", - "description": "A subscription key for a Language service resource.", - "name": "Ocp-Apim-Subscription-Key", - "in": "header" - } - }, - "security": [ - { - "apim_key": [] - } - ], - "x-ms-parameterized-host": { - "hostTemplate": "{Endpoint}/language", - "useSchemePrefix": false, - "parameters": [ - { - "$ref": "common.json#/parameters/Endpoint" - } - ] - }, - "paths": { - "/:analyze-text": { - "post": { - "summary": "Request text analysis over a collection of documents.", - "description": "Submit a collection of text documents for analysis. Specify a single unique task to be executed immediately.", - "operationId": "AnalyzeText", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "common.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ShowStats" - }, - { - "description": "Collection of documents to analyze and a single task to execute.", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/AnalyzeTextTask" - }, - "required": true - } - ], - "responses": { - "200": { - "description": "A successful call result", - "schema": { - "$ref": "#/definitions/AnalyzeTextTaskResult" - } - }, - "default": { - "description": "Unexpected error", - "schema": { - "$ref": "common.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Successful Entity Linking Request": { - "$ref": "./examples/SuccessfulEntityLinkingRequest.json" - }, - "Successful Entity Recognition Request": { - "$ref": "./examples/SuccessfulEntityRecognitionRequest.json" - }, - "Successful Key Phrase Extraction Request": { - "$ref": "./examples/SuccessfulKeyPhraseExtractionRequest.json" - }, - "Successful PII Entity Recognition Request": { - "$ref": "./examples/SuccessfulPiiEntityRecognitionRequest.json" - }, - "Successful Language Detection Request": { - "$ref": "./examples/SuccessfulLanguageDetectionRequest.json" - }, - "Successful Sentiment Analysis Request": { - "$ref": "./examples/SuccessfulSentimentAnalysisRequest.json" - } - } - } - }, - "/analyze-text/jobs": { - "post": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "description": "Submit a collection of text documents for analysis. Specify one or more unique tasks to be executed as a long-running operation.", - "operationId": "AnalyzeText_SubmitJob", - "summary": "Submit text analysis job", - "parameters": [ - { - "$ref": "common.json#/parameters/ApiVersionParameter" - }, - { - "description": "Collection of documents to analyze and one or more tasks to execute.", - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/AnalyzeTextJobsInput" - }, - "required": true - } - ], - "responses": { - "202": { - "description": "A successful call results with an Operation-Location header used to check the status of the analysis job.", - "headers": { - "Operation-Location": { - "type": "string" - } - } - }, - "default": { - "description": "Error response.", - "schema": { - "$ref": "common.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Successful Submit Analysis Job Request": { - "$ref": "./examples/SuccessfulAnalyzeTextJobsMultipleTaskSubmitRequest.json" - } - }, - "x-ms-long-running-operation": true - } - }, - "/analyze-text/jobs/{jobId}": { - "get": { - "produces": [ - "application/json" - ], - "description": "Get the status of an analysis job. A job may consist of one or more tasks. Once all tasks are succeeded, the job will transition to the succeeded state and results will be available for each task.", - "operationId": "AnalyzeText_JobStatus", - "summary": "Get analysis status and results", - "parameters": [ - { - "$ref": "common.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/JobId" - }, - { - "$ref": "#/parameters/ShowStats" - }, - { - "$ref": "common.json#/parameters/TopParameter" - }, - { - "$ref": "common.json#/parameters/SkipParameter" - } - ], - "responses": { - "200": { - "description": "Analysis job status and metadata.", - "schema": { - "$ref": "#/definitions/AnalyzeTextJobState" - } - }, - "default": { - "description": "Unexpected error", - "schema": { - "$ref": "common.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Successful Get Text Analysis Job Status Request": { - "$ref": "./examples/SuccessfulAnalyzeTextJobsMultipleTaskStatusRequest.json" - } - } - } - }, - "/analyze-text/jobs/{jobId}:cancel": { - "post": { - "produces": [ - "application/json" - ], - "description": "Cancel a long-running Text Analysis job.", - "operationId": "AnalyzeText_CancelJob", - "summary": "Cancel a long-running Text Analysis job", - "parameters": [ - { - "$ref": "common.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/JobId" - } - ], - "responses": { - "202": { - "description": "Cancel Job request has been received.", - "headers": { - "Operation-Location": { - "type": "string" - } - } - }, - "default": { - "description": "Unexpected error", - "schema": { - "$ref": "common.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Successful Job Delete Request": { - "$ref": ".//examples//SuccessfulAnalyzeTextJobsCancelRequest.json" - } - }, - "x-ms-long-running-operation": true - } - } - }, - "definitions": { - "AnalyzeTextTaskKind": { - "type": "string", - "description": "Enumeration of supported Text Analysis tasks.", - "enum": [ - "SentimentAnalysis", - "EntityRecognition", - "PiiEntityRecognition", - "KeyPhraseExtraction", - "LanguageDetection", - "EntityLinking" - ], - "x-ms-enum": { - "name": "AnalyzeTextTaskKind", - "modelAsString": true - } - }, - "AnalyzeTextLROTaskKind": { - "type": "string", - "description": "Enumeration of supported long-running Text Analysis tasks.", - "enum": [ - "SentimentAnalysis", - "EntityRecognition", - "PiiEntityRecognition", - "KeyPhraseExtraction", - "EntityLinking", - "Healthcare", - "ExtractiveSummarization", - "CustomEntityRecognition", - "CustomSingleLabelClassification", - "CustomMultiLabelClassification" - ], - "x-ms-enum": { - "name": "AnalyzeTextLROTaskKind", - "modelAsString": true - } - }, - "AnalyzeTextTaskResultsKind": { - "type": "string", - "description": "Enumeration of supported Text Analysis task results.", - "enum": [ - "SentimentAnalysisResults", - "EntityRecognitionResults", - "PiiEntityRecognitionResults", - "KeyPhraseExtractionResults", - "LanguageDetectionResults", - "EntityLinkingResults" - ], - "x-ms-enum": { - "name": "AnalyzeTextTaskResultsKind", - "modelAsString": true - } - }, - "AnalyzeTextLROResultsKind": { - "type": "string", - "description": "Enumeration of supported Text Analysis long-running operation task results.", - "enum": [ - "SentimentAnalysisLROResults", - "EntityRecognitionLROResults", - "PiiEntityRecognitionLROResults", - "KeyPhraseExtractionLROResults", - "EntityLinkingLROResults", - "HealthcareLROResults", - "ExtractiveSummarizationLROResults", - "CustomEntityRecognitionLROResults", - "CustomSingleLabelClassificationLROResults", - "CustomMultiLabelClassificationLROResults" - ], - "x-ms-enum": { - "name": "AnalyzeTextLROResultsKind", - "modelAsString": true - } - }, - "MultiLanguageAnalysisInput": { - "properties": { - "documents": { - "type": "array", - "items": { - "$ref": "#/definitions/MultiLanguageInput" - } - } - } - }, - "LanguageDetectionAnalysisInput": { - "properties": { - "documents": { - "type": "array", - "items": { - "$ref": "#/definitions/LanguageInput" - } - } - } - }, - "AnalyzeTextTask": { - "discriminator": "kind", - "required": [ - "kind" - ], - "properties": { - "kind": { - "$ref": "#/definitions/AnalyzeTextTaskKind" - } - } - }, - "AnalyzeTextLROTask": { - "discriminator": "kind", - "required": [ - "kind" - ], - "properties": { - "kind": { - "$ref": "#/definitions/AnalyzeTextLROTaskKind" - } - }, - "allOf": [ - { - "$ref": "#/definitions/TaskIdentifier" - } - ] - }, - "AnalyzeTextTaskResult": { - "discriminator": "kind", - "required": [ - "kind" - ], - "properties": { - "kind": { - "$ref": "#/definitions/AnalyzeTextTaskResultsKind" - } - } - }, - "AnalyzeTextEntityLinkingInput": { - "properties": { - "analysisInput": { - "$ref": "#/definitions/MultiLanguageAnalysisInput" - }, - "parameters": { - "$ref": "#/definitions/EntityLinkingTaskParameters" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextTask" - } - ], - "x-ms-discriminator-value": "EntityLinking" - }, - "AnalyzeTextEntityRecognitionInput": { - "properties": { - "analysisInput": { - "$ref": "#/definitions/MultiLanguageAnalysisInput" - }, - "parameters": { - "$ref": "#/definitions/EntitiesTaskParameters" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextTask" - } - ], - "x-ms-discriminator-value": "EntityRecognition" - }, - "AnalyzeTextKeyPhraseExtractionInput": { - "properties": { - "analysisInput": { - "$ref": "#/definitions/MultiLanguageAnalysisInput" - }, - "parameters": { - "$ref": "#/definitions/KeyPhraseTaskParameters" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextTask" - } - ], - "x-ms-discriminator-value": "KeyPhraseExtraction" - }, - "AnalyzeTextPiiEntitiesRecognitionInput": { - "properties": { - "analysisInput": { - "$ref": "#/definitions/MultiLanguageAnalysisInput" - }, - "parameters": { - "$ref": "#/definitions/PiiTaskParameters" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextTask" - } - ], - "x-ms-discriminator-value": "PiiEntityRecognition" - }, - "AnalyzeTextLanguageDetectionInput": { - "properties": { - "analysisInput": { - "$ref": "#/definitions/LanguageDetectionAnalysisInput" - }, - "parameters": { - "$ref": "#/definitions/LanguageDetectionTaskParameters" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextTask" - } - ], - "x-ms-discriminator-value": "LanguageDetection" - }, - "AnalyzeTextSentimentAnalysisInput": { - "properties": { - "analysisInput": { - "$ref": "#/definitions/MultiLanguageAnalysisInput" - }, - "parameters": { - "$ref": "#/definitions/SentimentAnalysisTaskParameters" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextTask" - } - ], - "x-ms-discriminator-value": "SentimentAnalysis" - }, - "AnalyzeTextJobsInput": { - "properties": { - "displayName": { - "description": "Optional display name for the analysis job.", - "type": "string" - }, - "analysisInput": { - "$ref": "#/definitions/MultiLanguageAnalysisInput" - }, - "tasks": { - "description": "The set of tasks to execute on the input documents.", - "type": "array", - "items": { - "$ref": "#/definitions/AnalyzeTextLROTask" - } - } - }, - "required": [ - "analysisInput", - "tasks" - ] - }, - "TaskIdentifier": { - "type": "object", - "description": "Base task object.", - "properties": { - "taskName": { - "type": "string" - } - } - }, - "TaskParameters": { - "type": "object", - "description": "Base parameters object for a text analysis task.", - "properties": { - "loggingOptOut": { - "type": "boolean", - "default": false - } - } - }, - "PreBuiltTaskParameters": { - "type": "object", - "description": "Parameters object for a text analysis task using pre-built models.", - "properties": { - "modelVersion": { - "type": "string", - "default": "latest" - } - }, - "allOf": [ - { - "$ref": "#/definitions/TaskParameters" - } - ] - }, - "PreBuiltResult": { - "properties": { - "errors": { - "type": "array", - "description": "Errors by document id.", - "items": { - "$ref": "#/definitions/DocumentError" - } - }, - "statistics": { - "$ref": "#/definitions/RequestStatistics" - }, - "modelVersion": { - "type": "string", - "description": "This field indicates which model is used for scoring." - } - }, - "required": [ - "errors", - "modelVersion" - ] - }, - "CustomTaskParameters": { - "type": "object", - "description": "Parameters object for a text analysis task using custom models.", - "properties": { - "projectName": { - "type": "string" - }, - "deploymentName": { - "type": "string" - } - }, - "allOf": [ - { - "$ref": "#/definitions/TaskParameters" - } - ], - "required": [ - "projectName", - "deploymentName" - ] - }, - "CustomResult": { - "properties": { - "errors": { - "type": "array", - "description": "Errors by document id.", - "items": { - "$ref": "#/definitions/DocumentError" - } - }, - "statistics": { - "$ref": "#/definitions/RequestStatistics" - }, - "projectName": { - "type": "string", - "description": "This field indicates the project name for the model." - }, - "deploymentName": { - "type": "string", - "description": "This field indicates the deployment name for the model." - } - }, - "required": [ - "errors", - "projectName", - "deploymentName" - ] - }, - "CustomEntitiesTaskParameters": { - "type": "object", - "description": "Supported parameters for a Custom Entities task.", - "properties": { - "stringIndexType": { - "$ref": "common.json#/definitions/StringIndexType" - } - }, - "allOf": [ - { - "$ref": "#/definitions/CustomTaskParameters" - } - ] - }, - "CustomEntitiesLROTask": { - "type": "object", - "description": "Use custom models to ease the process of information extraction from unstructured documents like contracts or financial documents", - "properties": { - "parameters": { - "$ref": "#/definitions/CustomEntitiesTaskParameters" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROTask" - } - ], - "x-ms-discriminator-value": "CustomEntityRecognition" - }, - "CustomEntitiesResult": { - "type": "object", - "properties": { - "documents": { - "type": "array", - "description": "Response by document", - "items": { - "allOf": [ - { - "$ref": "#/definitions/EntitiesDocumentResult" - } - ] - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/CustomResult" - } - ], - "required": [ - "documents" - ] - }, - "CustomSingleLabelClassificationTaskParameters": { - "type": "object", - "description": "Supported parameters for a Custom Single Classification task.", - "allOf": [ - { - "$ref": "#/definitions/CustomTaskParameters" - } - ] - }, - "CustomSingleLabelClassificationLROTask": { - "type": "object", - "description": "Use custom models to classify text into single label taxonomy", - "properties": { - "parameters": { - "$ref": "#/definitions/CustomSingleLabelClassificationTaskParameters" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROTask" - } - ], - "x-ms-discriminator-value": "CustomSingleLabelClassification" - }, - "CustomSingleLabelClassificationResult": { - "type": "object", - "properties": { - "documents": { - "type": "array", - "description": "Response by document", - "items": { - "allOf": [ - { - "$ref": "#/definitions/SingleClassificationDocumentResult" - } - ] - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/CustomResult" - } - ], - "required": [ - "documents" - ] - }, - "SingleClassificationDocumentResult": { - "type": "object", - "properties": { - "class": { - "$ref": "#/definitions/ClassificationResult" - } - }, - "allOf": [ - { - "$ref": "#/definitions/DocumentResult" - } - ], - "required": [ - "class" - ] - }, - "ClassificationResult": { - "type": "object", - "required": [ - "category", - "confidenceScore" - ], - "properties": { - "category": { - "type": "string", - "description": "Classification type." - }, - "confidenceScore": { - "type": "number", - "format": "double", - "description": "Confidence score between 0 and 1 of the recognized class." - } - } - }, - "CustomMultiLabelClassificationTaskParameters": { - "type": "object", - "description": "Supported parameters for a Custom Multi Classification task.", - "allOf": [ - { - "$ref": "#/definitions/CustomTaskParameters" - } - ] - }, - "CustomMultiLabelClassificationLROTask": { - "type": "object", - "description": "Use custom models to classify text into multi label taxonomy", - "properties": { - "parameters": { - "$ref": "#/definitions/CustomMultiLabelClassificationTaskParameters" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROTask" - } - ], - "x-ms-discriminator-value": "CustomMultiLabelClassification" - }, - "CustomMultiLabelClassificationResult": { - "type": "object", - "properties": { - "documents": { - "type": "array", - "description": "Response by document", - "items": { - "allOf": [ - { - "$ref": "#/definitions/MultiClassificationDocumentResult" - } - ] - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/CustomResult" - } - ], - "required": [ - "documents" - ] - }, - "MultiClassificationDocumentResult": { - "type": "object", - "properties": { - "class": { - "type": "array", - "items": { - "$ref": "#/definitions/ClassificationResult" - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/DocumentResult" - } - ], - "required": [ - "class" - ] - }, - "HealthcareTaskParameters": { - "type": "object", - "description": "Supported parameters for a Healthcare task.", - "properties": { - "fhirVersion": { - "type": "string", - "description": "The FHIR Spec version that the result will use to format the fhirBundle. For additional information see https://www.hl7.org/fhir/overview.html.", - "enum":[ - "4.0.1" - ] - }, - "stringIndexType": { - "$ref": "common.json#/definitions/StringIndexType" - } - }, - "allOf": [ - { - "$ref": "#/definitions/PreBuiltTaskParameters" - } - ] - }, - "HealthcareLROTask": { - "type": "object", - "properties": { - "parameters": { - "$ref": "#/definitions/HealthcareTaskParameters" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROTask" - } - ], - "x-ms-discriminator-value": "Healthcare" - }, - "HealthcareResult": { - "type": "object", - "properties": { - "documents": { - "type": "array", - "items": { - "allOf": [ - { - "$ref": "#/definitions/HealthcareEntitiesDocumentResult" - } - ] - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/PreBuiltResult" - } - ], - "required": [ - "documents" - ] - }, - "HealthcareEntitiesDocumentResult": { - "type": "object", - "properties": { - "entities": { - "description": "Healthcare entities.", - "type": "array", - "items": { - "$ref": "#/definitions/HealthcareEntity" - } - }, - "relations": { - "type": "array", - "description": "Healthcare entity relations.", - "items": { - "$ref": "#/definitions/HealthcareRelation" - } - }, - "fhirBundle": { - "type": "object", - "description": "JSON bundle containing a FHIR compatible object for consumption in other Healthcare tools. For additional information see https://www.hl7.org/fhir/overview.html.", - "additionalProperties": {} - } - }, - "allOf": [ - { - "$ref": "#/definitions/DocumentResult" - } - ], - "required": [ - "entities", - "relations" - ] - }, - "HealthcareEntity": { - "type": "object", - "properties": { - "text": { - "type": "string", - "description": "Entity text as appears in the request." - }, - "category": { - "x-ms-enum": { - "name": "healthcareEntityCategory", - "modelAsString": true - }, - "type": "string", - "description": "Healthcare Entity Category.", - "enum": [ - "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" - ] - }, - "subcategory": { - "type": "string", - "description": "(Optional) Entity sub type." - }, - "offset": { - "type": "integer", - "format": "int32", - "description": "Start position for the entity text. Use of different 'stringIndexType' values can affect the offset returned." - }, - "length": { - "type": "integer", - "format": "int32", - "description": "Length for the entity text. Use of different 'stringIndexType' values can affect the length returned." - }, - "confidenceScore": { - "type": "number", - "format": "double", - "description": "Confidence score between 0 and 1 of the extracted entity." - }, - "assertion": { - "type": "object", - "$ref": "#/definitions/HealthcareAssertion" - }, - "name": { - "description": "Preferred name for the entity. Example: 'histologically' would have a 'name' of 'histologic'.", - "type": "string" - }, - "links": { - "description": "Entity references in known data sources.", - "type": "array", - "items": { - "$ref": "#/definitions/HealthcareEntityLink" - } - } - }, - "required": [ - "text", - "category", - "offset", - "length", - "confidenceScore" - ] - }, - "HealthcareRelation": { - "type": "object", - "description": "Every relation is an entity graph of a certain relationType, where all entities are connected and have specific roles within the relation context.", - "required": [ - "relationType", - "entities" - ], - "properties": { - "relationType": { - "description": "Type of relation. Examples include: `DosageOfMedication` or 'FrequencyOfMedication', etc.", - "type": "string", - "enum": [ - "Abbreviation", - "DirectionOfBodyStructure", - "DirectionOfCondition", - "DirectionOfExamination", - "DirectionOfTreatment", - "DosageOfMedication", - "FormOfMedication", - "FrequencyOfMedication", - "FrequencyOfTreatment", - "QualifierOfCondition", - "RelationOfExamination", - "RouteOfMedication", - "TimeOfCondition", - "TimeOfEvent", - "TimeOfExamination", - "TimeOfMedication", - "TimeOfTreatment", - "UnitOfCondition", - "UnitOfExamination", - "ValueOfCondition", - "ValueOfExamination" - ], - "x-ms-enum": { - "name": "relationType", - "modelAsString": true - } - }, - "entities": { - "description": "The entities in the relation.", - "type": "array", - "items": { - "$ref": "#/definitions/HealthcareRelationEntity" - } - } - } - }, - "HealthcareAssertion": { - "type": "object", - "properties": { - "conditionality": { - "description": "Describes any conditionality on the entity.", - "type": "string", - "enum": [ - "hypothetical", - "conditional" - ], - "x-ms-enum": { - "name": "Conditionality", - "modelAsString": false - } - }, - "certainty": { - "description": "Describes the entities certainty and polarity.", - "type": "string", - "enum": [ - "positive", - "positivePossible", - "neutralPossible", - "negativePossible", - "negative" - ], - "x-ms-enum": { - "name": "Certainty", - "modelAsString": false - } - }, - "association": { - "description": "Describes if the entity is the subject of the text or if it describes someone else.", - "type": "string", - "enum": [ - "subject", - "other" - ], - "x-ms-enum": { - "name": "Association", - "modelAsString": false - } - } - } - }, - "HealthcareRelationEntity": { - "type": "object", - "required": [ - "ref", - "role" - ], - "properties": { - "ref": { - "description": "Reference link object, using a JSON pointer RFC 6901 (URI Fragment Identifier Representation), pointing to the entity .", - "type": "string" - }, - "role": { - "description": "Role of entity in the relationship. For example: 'CD20-positive diffuse large B-cell lymphoma' has the following entities with their roles in parenthesis: CD20 (GeneOrProtein), Positive (Expression), diffuse large B-cell lymphoma (Diagnosis).", - "type": "string" - } - } - }, - "HealthcareEntityLink": { - "type": "object", - "required": [ - "dataSource", - "id" - ], - "properties": { - "dataSource": { - "description": "Entity Catalog. Examples include: UMLS, CHV, MSH, etc.", - "type": "string" - }, - "id": { - "description": "Entity id in the given source catalog.", - "type": "string" - } - } - }, - "SentimentAnalysisTaskParameters": { - "type": "object", - "description": "Supported parameters for a Sentiment Analysis task.", - "properties": { - "opinionMining": { - "type": "boolean", - "default": false - }, - "stringIndexType": { - "$ref": "common.json#/definitions/StringIndexType" - } - }, - "allOf": [ - { - "$ref": "#/definitions/PreBuiltTaskParameters" - } - ] - }, - "SentimentAnalysisLROTask": { - "type": "object", - "description": "An object representing the task definition for a Sentiment Analysis task.", - "properties": { - "parameters": { - "$ref": "#/definitions/SentimentAnalysisTaskParameters" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROTask" - } - ], - "x-ms-discriminator-value": "SentimentAnalysis" - }, - "SentimentTaskResult": { - "type": "object", - "properties": { - "results": { - "$ref": "#/definitions/SentimentResponse" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextTaskResult" - } - ], - "required": [ - "results" - ], - "x-ms-discriminator-value": "SentimentAnalysisResults" - }, - "SentimentResponse": { - "type": "object", - "properties": { - "documents": { - "type": "array", - "description": "Sentiment analysis per document.", - "items": { - "allOf": [ - { - "$ref": "#/definitions/SentimentDocumentResult" - } - ] - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/PreBuiltResult" - } - ], - "required": [ - "documents" - ] - }, - "SentimentDocumentResult": { - "type": "object", - "properties": { - "sentiment": { - "type": "string", - "description": "Predicted sentiment for document (Negative, Neutral, Positive, or Mixed).", - "enum": [ - "positive", - "neutral", - "negative", - "mixed" - ], - "x-ms-enum": { - "name": "DocumentSentimentValue", - "modelAsString": false - } - }, - "confidenceScores": { - "description": "Document level sentiment confidence scores between 0 and 1 for each sentiment class.", - "$ref": "#/definitions/SentimentConfidenceScorePerLabel" - }, - "sentences": { - "type": "array", - "description": "Sentence level sentiment analysis.", - "items": { - "$ref": "#/definitions/SentenceSentiment" - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/DocumentResult" - } - ], - "required": [ - "sentiment", - "confidenceScores", - "sentences" - ] - }, - "SentimentConfidenceScorePerLabel": { - "type": "object", - "required": [ - "positive", - "neutral", - "negative" - ], - "properties": { - "positive": { - "type": "number", - "format": "double" - }, - "neutral": { - "type": "number", - "format": "double" - }, - "negative": { - "type": "number", - "format": "double" - } - }, - "description": "Represents the confidence scores between 0 and 1 across all sentiment classes: positive, neutral, negative." - }, - "SentenceSentiment": { - "type": "object", - "required": [ - "text", - "sentiment", - "confidenceScores", - "offset", - "length" - ], - "properties": { - "text": { - "type": "string", - "description": "The sentence text." - }, - "sentiment": { - "type": "string", - "description": "The predicted Sentiment for the sentence.", - "enum": [ - "positive", - "neutral", - "negative" - ], - "x-ms-enum": { - "name": "SentenceSentimentValue", - "modelAsString": false - } - }, - "confidenceScores": { - "description": "The sentiment confidence score between 0 and 1 for the sentence for all classes.", - "$ref": "#/definitions/SentimentConfidenceScorePerLabel" - }, - "offset": { - "type": "integer", - "format": "int32", - "description": "The sentence offset from the start of the document." - }, - "length": { - "type": "integer", - "format": "int32", - "description": "The length of the sentence." - }, - "targets": { - "type": "array", - "description": "The array of sentence targets for the sentence.", - "items": { - "$ref": "#/definitions/SentenceTarget" - } - }, - "assessments": { - "type": "array", - "description": "The array of assessments for the sentence.", - "items": { - "$ref": "#/definitions/SentenceAssessment" - } - } - } - }, - "SentenceTarget": { - "type": "object", - "required": [ - "confidenceScores", - "length", - "offset", - "relations", - "sentiment", - "text" - ], - "properties": { - "sentiment": { - "type": "string", - "enum": [ - "positive", - "mixed", - "negative" - ], - "x-ms-enum": { - "name": "TokenSentimentValue", - "modelAsString": false - }, - "description": "Targeted sentiment in the sentence." - }, - "confidenceScores": { - "description": "Target sentiment confidence scores for the target in the sentence.", - "$ref": "#/definitions/TargetConfidenceScoreLabel" - }, - "offset": { - "type": "integer", - "format": "int32", - "description": "The target offset from the start of the sentence." - }, - "length": { - "type": "integer", - "format": "int32", - "description": "The length of the target." - }, - "text": { - "type": "string", - "description": "The target text detected." - }, - "relations": { - "type": "array", - "description": "The array of either assessment or target objects which is related to the target.", - "items": { - "$ref": "#/definitions/TargetRelation" - } - } - } - }, - "SentenceAssessment": { - "type": "object", - "required": [ - "confidenceScores", - "isNegated", - "length", - "offset", - "sentiment", - "text" - ], - "properties": { - "sentiment": { - "type": "string", - "enum": [ - "positive", - "mixed", - "negative" - ], - "x-ms-enum": { - "name": "TokenSentimentValue", - "modelAsString": false - }, - "description": "Assessment sentiment in the sentence." - }, - "confidenceScores": { - "description": "Assessment sentiment confidence scores in the sentence.", - "$ref": "#/definitions/TargetConfidenceScoreLabel" - }, - "offset": { - "type": "integer", - "format": "int32", - "description": "The assessment offset from the start of the sentence." - }, - "length": { - "type": "integer", - "format": "int32", - "description": "The length of the assessment." - }, - "text": { - "type": "string", - "description": "The assessment text detected." - }, - "isNegated": { - "type": "boolean", - "description": "The indicator representing if the assessment is negated." - } - } - }, - "TargetRelation": { - "type": "object", - "required": [ - "ref", - "relationType" - ], - "properties": { - "relationType": { - "type": "string", - "enum": [ - "assessment", - "target" - ], - "x-ms-enum": { - "name": "TargetRelationType", - "modelAsString": false - }, - "description": "The type related to the target." - }, - "ref": { - "type": "string", - "description": "The JSON pointer indicating the linked object." - } - } - }, - "TargetConfidenceScoreLabel": { - "type": "object", - "required": [ - "negative", - "positive" - ], - "properties": { - "positive": { - "type": "number", - "format": "double" - }, - "negative": { - "type": "number", - "format": "double" - } - }, - "description": "Represents the confidence scores across all sentiment classes: positive, neutral, negative." - }, - "EntitiesTaskParameters": { - "type": "object", - "description": "Supported parameters for an Entity Recognition task.", - "properties": { - "stringIndexType": { - "$ref": "common.json#/definitions/StringIndexType" - } - }, - "allOf": [ - { - "$ref": "#/definitions/PreBuiltTaskParameters" - } - ] - }, - "EntitiesLROTask": { - "type": "object", - "description": "An object representing the task definition for an Entities Recognition task.", - "properties": { - "parameters": { - "$ref": "#/definitions/EntitiesTaskParameters" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROTask" - } - ], - "x-ms-discriminator-value": "EntityRecognition" - }, - "EntitiesTaskResult": { - "type": "object", - "properties": { - "results": { - "$ref": "#/definitions/EntitiesResult" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextTaskResult" - } - ], - "required": [ - "results" - ], - "x-ms-discriminator-value": "EntityRecognitionResults" - }, - "EntitiesResult": { - "type": "object", - "properties": { - "documents": { - "type": "array", - "description": "Response by document", - "items": { - "allOf": [ - { - "$ref": "#/definitions/EntitiesDocumentResult" - } - ] - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/PreBuiltResult" - } - ], - "required": [ - "documents" - ] - }, - "EntitiesDocumentResult": { - "type": "object", - "properties": { - "entities": { - "type": "array", - "description": "Recognized entities in the document.", - "items": { - "$ref": "#/definitions/Entity" - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/DocumentResult" - } - ], - "required": [ - "entities" - ] - }, - "Entity": { - "type": "object", - "required": [ - "text", - "category", - "offset", - "length", - "confidenceScore" - ], - "properties": { - "text": { - "type": "string", - "description": "Entity text as appears in the request." - }, - "category": { - "type": "string", - "description": "Entity type." - }, - "subcategory": { - "type": "string", - "description": "(Optional) Entity sub type." - }, - "offset": { - "type": "integer", - "format": "int32", - "description": "Start position for the entity text. Use of different 'stringIndexType' values can affect the offset returned." - }, - "length": { - "type": "integer", - "format": "int32", - "description": "Length for the entity text. Use of different 'stringIndexType' values can affect the length returned." - }, - "confidenceScore": { - "type": "number", - "format": "double", - "description": "Confidence score between 0 and 1 of the extracted entity." - } - } - }, - "EntityLinkingTaskParameters": { - "type": "object", - "description": "Supported parameters for an Entity Linking task.", - "properties": { - "stringIndexType": { - "$ref": "common.json#/definitions/StringIndexType" - } - }, - "allOf": [ - { - "$ref": "#/definitions/PreBuiltTaskParameters" - } - ] - }, - "EntityLinkingLROTask": { - "type": "object", - "description": "An object representing the task definition for an Entity Linking task.", - "properties": { - "parameters": { - "$ref": "#/definitions/EntityLinkingTaskParameters" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROTask" - } - ], - "x-ms-discriminator-value": "EntityLinking" - }, - "EntityLinkingTaskResult": { - "type": "object", - "properties": { - "results": { - "$ref": "#/definitions/EntityLinkingResult" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextTaskResult" - } - ], - "required": [ - "results" - ], - "x-ms-discriminator-value": "EntityLinkingResults" - }, - "EntityLinkingResult": { - "type": "object", - "properties": { - "documents": { - "type": "array", - "description": "Response by document", - "items": { - "allOf": [ - { - "$ref": "#/definitions/LinkedEntitiesDocumentResult" - } - ] - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/PreBuiltResult" - } - ], - "required": [ - "documents" - ] - }, - "LinkedEntitiesDocumentResult": { - "type": "object", - "required": [ - "entities" - ], - "properties": { - "entities": { - "type": "array", - "description": "Recognized well known entities in the document.", - "items": { - "$ref": "#/definitions/LinkedEntity" - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/DocumentResult" - } - ] - }, - "LinkedEntity": { - "type": "object", - "required": [ - "name", - "matches", - "language", - "url", - "dataSource" - ], - "properties": { - "name": { - "type": "string", - "description": "Entity Linking formal name." - }, - "matches": { - "type": "array", - "description": "List of instances this entity appears in the text.", - "items": { - "$ref": "#/definitions/Match" - } - }, - "language": { - "type": "string", - "description": "Language used in the data source." - }, - "id": { - "type": "string", - "description": "Unique identifier of the recognized entity from the data source." - }, - "url": { - "type": "string", - "description": "URL for the entity's page from the data source." - }, - "dataSource": { - "type": "string", - "description": "Data source used to extract entity linking, such as Wiki/Bing etc." - }, - "bingId": { - "type": "string", - "description": "Bing Entity Search API unique identifier of the recognized entity." - } - } - }, - "Match": { - "type": "object", - "required": [ - "confidenceScore", - "text", - "offset", - "length" - ], - "properties": { - "confidenceScore": { - "type": "number", - "format": "double", - "description": "If a well known item is recognized, a decimal number denoting the confidence level between 0 and 1 will be returned." - }, - "text": { - "type": "string", - "description": "Entity text as appears in the request." - }, - "offset": { - "type": "integer", - "format": "int32", - "description": "Start position for the entity match text." - }, - "length": { - "type": "integer", - "format": "int32", - "description": "Length for the entity match text." - } - } - }, - "PiiTaskParameters": { - "type": "object", - "description": "Supported parameters for a PII Entities Recognition task.", - "properties": { - "domain": { - "$ref": "#/definitions/PiiDomain" - }, - "piiCategories": { - "$ref": "#/definitions/PiiCategories" - }, - "stringIndexType": { - "$ref": "common.json#/definitions/StringIndexType" - } - }, - "allOf": [ - { - "$ref": "#/definitions/PreBuiltTaskParameters" - } - ] - }, - "PiiLROTask": { - "type": "object", - "description": "An object representing the task definition for a PII Entities Recognition task.", - "properties": { - "parameters": { - "$ref": "#/definitions/PiiTaskParameters" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROTask" - } - ], - "x-ms-discriminator-value": "PiiEntityRecognition" - }, - "PiiTaskResult": { - "type": "object", - "properties": { - "results": { - "$ref": "#/definitions/PiiResult" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextTaskResult" - } - ], - "required": [ - "results" - ], - "x-ms-discriminator-value": "PiiEntityRecognitionResults" - }, - "PiiResult": { - "type": "object", - "properties": { - "documents": { - "type": "array", - "description": "Response by document", - "items": { - "allOf": [ - { - "$ref": "#/definitions/PiiEntitiesDocumentResult" - } - ] - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/PreBuiltResult" - } - ], - "required": [ - "documents" - ] - }, - "PiiDomain": { - "type": "string", - "description": "The PII domain used for PII Entity Recognition.", - "default": "none", - "enum": [ - "phi", - "none" - ], - "x-ms-enum": { - "name": "PiiDomain", - "modelAsString": true, - "values": [ - { - "name": "phi", - "description": "Indicates that entities in the Personal Health Information domain should be redacted.", - "value": "phi" - }, - { - "name": "none", - "description": "Indicates that no domain is specified.", - "value": "none" - } - ] - } - }, - "PiiEntitiesDocumentResult": { - "type": "object", - "properties": { - "redactedText": { - "type": "string", - "description": "Returns redacted text." - }, - "entities": { - "type": "array", - "description": "Recognized entities in the document.", - "items": { - "$ref": "#/definitions/Entity" - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/DocumentResult" - } - ], - "required": [ - "redactedText", - "entities" - ] - }, - "PiiCategories": { - "description": "(Optional) describes the PII categories to return", - "items": { - "type": "string", - "x-ms-enum": { - "name": "PiiCategory", - "modelAsString": true - }, - "enum": [ - "ABARoutingNumber", - "ARNationalIdentityNumber", - "AUBankAccountNumber", - "AUDriversLicenseNumber", - "AUMedicalAccountNumber", - "AUPassportNumber", - "AUTaxFileNumber", - "AUBusinessNumber", - "AUCompanyNumber", - "ATIdentityCard", - "ATTaxIdentificationNumber", - "ATValueAddedTaxNumber", - "AzureDocumentDBAuthKey", - "AzureIAASDatabaseConnectionAndSQLString", - "AzureIoTConnectionString", - "AzurePublishSettingPassword", - "AzureRedisCacheString", - "AzureSAS", - "AzureServiceBusString", - "AzureStorageAccountKey", - "AzureStorageAccountGeneric", - "BENationalNumber", - "BENationalNumberV2", - "BEValueAddedTaxNumber", - "BRCPFNumber", - "BRLegalEntityNumber", - "BRNationalIDRG", - "BGUniformCivilNumber", - "CABankAccountNumber", - "CADriversLicenseNumber", - "CAHealthServiceNumber", - "CAPassportNumber", - "CAPersonalHealthIdentification", - "CASocialInsuranceNumber", - "CLIdentityCardNumber", - "CNResidentIdentityCardNumber", - "CreditCardNumber", - "HRIdentityCardNumber", - "HRNationalIDNumber", - "HRPersonalIdentificationNumber", - "HRPersonalIdentificationOIBNumberV2", - "CYIdentityCard", - "CYTaxIdentificationNumber", - "CZPersonalIdentityNumber", - "CZPersonalIdentityV2", - "DKPersonalIdentificationNumber", - "DKPersonalIdentificationV2", - "DrugEnforcementAgencyNumber", - "EEPersonalIdentificationCode", - "EUDebitCardNumber", - "EUDriversLicenseNumber", - "EUGPSCoordinates", - "EUNationalIdentificationNumber", - "EUPassportNumber", - "EUSocialSecurityNumber", - "EUTaxIdentificationNumber", - "FIEuropeanHealthNumber", - "FINationalID", - "FINationalIDV2", - "FIPassportNumber", - "FRDriversLicenseNumber", - "FRHealthInsuranceNumber", - "FRNationalID", - "FRPassportNumber", - "FRSocialSecurityNumber", - "FRTaxIdentificationNumber", - "FRValueAddedTaxNumber", - "DEDriversLicenseNumber", - "DEPassportNumber", - "DEIdentityCardNumber", - "DETaxIdentificationNumber", - "DEValueAddedNumber", - "GRNationalIDCard", - "GRNationalIDV2", - "GRTaxIdentificationNumber", - "HKIdentityCardNumber", - "HUValueAddedNumber", - "HUPersonalIdentificationNumber", - "HUTaxIdentificationNumber", - "INPermanentAccount", - "INUniqueIdentificationNumber", - "IDIdentityCardNumber", - "InternationalBankingAccountNumber", - "IEPersonalPublicServiceNumber", - "IEPersonalPublicServiceNumberV2", - "ILBankAccountNumber", - "ILNationalID", - "ITDriversLicenseNumber", - "ITFiscalCode", - "ITValueAddedTaxNumber", - "JPBankAccountNumber", - "JPDriversLicenseNumber", - "JPPassportNumber", - "JPResidentRegistrationNumber", - "JPSocialInsuranceNumber", - "JPMyNumberCorporate", - "JPMyNumberPersonal", - "JPResidenceCardNumber", - "LVPersonalCode", - "LTPersonalCode", - "LUNationalIdentificationNumberNatural", - "LUNationalIdentificationNumberNonNatural", - "MYIdentityCardNumber", - "MTIdentityCardNumber", - "MTTaxIDNumber", - "NLCitizensServiceNumber", - "NLCitizensServiceNumberV2", - "NLTaxIdentificationNumber", - "NLValueAddedTaxNumber", - "NZBankAccountNumber", - "NZDriversLicenseNumber", - "NZInlandRevenueNumber", - "NZMinistryOfHealthNumber", - "NZSocialWelfareNumber", - "NOIdentityNumber", - "PHUnifiedMultiPurposeIDNumber", - "PLIdentityCard", - "PLNationalID", - "PLNationalIDV2", - "PLPassportNumber", - "PLTaxIdentificationNumber", - "PLREGONNumber", - "PTCitizenCardNumber", - "PTCitizenCardNumberV2", - "PTTaxIdentificationNumber", - "ROPersonalNumericalCode", - "RUPassportNumberDomestic", - "RUPassportNumberInternational", - "SANationalID", - "SGNationalRegistrationIdentityCardNumber", - "SKPersonalNumber", - "SITaxIdentificationNumber", - "SIUniqueMasterCitizenNumber", - "ZAIdentificationNumber", - "KRResidentRegistrationNumber", - "ESDNI", - "ESSocialSecurityNumber", - "ESTaxIdentificationNumber", - "SQLServerConnectionString", - "SENationalID", - "SENationalIDV2", - "SEPassportNumber", - "SETaxIdentificationNumber", - "SWIFTCode", - "CHSocialSecurityNumber", - "TWNationalID", - "TWPassportNumber", - "TWResidentCertificate", - "THPopulationIdentificationCode", - "TRNationalIdentificationNumber", - "UKDriversLicenseNumber", - "UKElectoralRollNumber", - "UKNationalHealthNumber", - "UKNationalInsuranceNumber", - "UKUniqueTaxpayerNumber", - "USUKPassportNumber", - "USBankAccountNumber", - "USDriversLicenseNumber", - "USIndividualTaxpayerIdentification", - "USSocialSecurityNumber", - "UAPassportNumberDomestic", - "UAPassportNumberInternational", - "Organization", - "Email", - "URL", - "Age", - "PhoneNumber", - "IPAddress", - "Date", - "Person", - "Address", - "All", - "Default" - ] - }, - "type": "array", - "uniqueItems": true - }, - "ExtractiveSummarizationTaskParameters": { - "type": "object", - "description": "Supported parameters for an Extractive Summarization task.", - "properties": { - "sentenceCount": { - "type": "integer", - "default": 3 - }, - "sortBy": { - "$ref": "#/definitions/ExtractiveSummarizationSortingCriteria" - }, - "stringIndexType": { - "$ref": "common.json#/definitions/StringIndexType" - } - }, - "allOf": [ - { - "$ref": "#/definitions/PreBuiltTaskParameters" - } - ] - }, - "ExtractiveSummarizationLROTask": { - "type": "object", - "description": "An object representing the task definition for an Extractive Summarization task.", - "properties": { - "parameters": { - "$ref": "#/definitions/ExtractiveSummarizationTaskParameters" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROTask" - } - ], - "x-ms-discriminator-value": "ExtractiveSummarization" - }, - "ExtractiveSummarizationResult": { - "type": "object", - "properties": { - "documents": { - "type": "array", - "description": "Response by document", - "items": { - "allOf": [ - { - "$ref": "#/definitions/ExtractedSummaryDocumentResult" - } - ] - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/PreBuiltResult" - } - ], - "required": [ - "documents" - ] - }, - "ExtractiveSummarizationSortingCriteria": { - "type": "string", - "default": "Offset", - "description": "The sorting criteria to use for the results of Extractive Summarization.", - "enum": [ - "Offset", - "Rank" - ], - "x-ms-enum": { - "name": "ExtractiveSummarizationSortingCriteria", - "modelAsString": true, - "values": [ - { - "name": "Offset", - "description": "Indicates that results should be sorted in order of appearance in the text.", - "value": "Offset" - }, - { - "name": "Rank", - "description": "Indicates that results should be sorted in order of importance (i.e. rank score) according to the model.", - "value": "Rank" - } - ] - } - }, - "ExtractedSummaryDocumentResult": { - "type": "object", - "properties": { - "sentences": { - "type": "array", - "description": "A ranked list of sentences representing the extracted summary.", - "items": { - "$ref": "#/definitions/ExtractedSummarySentence" - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/DocumentResult" - } - ], - "required": [ - "sentences" - ] - }, - "ExtractedSummarySentence": { - "type": "object", - "required": [ - "text", - "rankScore", - "offset", - "length" - ], - "properties": { - "text": { - "type": "string", - "description": "The extracted sentence text." - }, - "rankScore": { - "type": "number", - "format": "double", - "description": "A double value representing the relevance of the sentence within the summary. Higher values indicate higher importance." - }, - "offset": { - "type": "integer", - "format": "int32", - "description": "The sentence offset from the start of the document, based on the value of the parameter StringIndexType." - }, - "length": { - "type": "integer", - "format": "int32", - "description": "The length of the sentence." - } - } - }, - "KeyPhraseTaskParameters": { - "type": "object", - "description": "Supported parameters for a Key Phrase Extraction task.", - "allOf": [ - { - "$ref": "#/definitions/PreBuiltTaskParameters" - } - ] - }, - "KeyPhraseLROTask": { - "type": "object", - "description": "An object representing the task definition for a Key Phrase Extraction task.", - "properties": { - "parameters": { - "$ref": "#/definitions/KeyPhraseTaskParameters" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROTask" - } - ], - "x-ms-discriminator-value": "KeyPhraseExtraction" - }, - "KeyPhraseTaskResult": { - "type": "object", - "properties": { - "results": { - "$ref": "#/definitions/KeyPhraseResult" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextTaskResult" - } - ], - "required": [ - "results" - ], - "x-ms-discriminator-value": "KeyPhraseExtractionResults" - }, - "KeyPhraseResult": { - "type": "object", - "properties": { - "documents": { - "type": "array", - "description": "Response by document", - "items": { - "allOf": [ - { - "$ref": "#/definitions/KeyPhrasesDocumentResult" - } - ] - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/PreBuiltResult" - } - ], - "required": [ - "documents" - ] - }, - "KeyPhrasesDocumentResult": { - "type": "object", - "properties": { - "keyPhrases": { - "type": "array", - "description": "A list of representative words or phrases. The number of key phrases returned is proportional to the number of words in the input document.", - "items": { - "type": "string" - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/DocumentResult" - } - ], - "required": [ - "keyPhrases" - ] - }, - "LanguageDetectionTaskParameters": { - "type": "object", - "description": "Supported parameters for a Language Detection task.", - "allOf": [ - { - "$ref": "#/definitions/PreBuiltTaskParameters" - } - ] - }, - "LanguageDetectionTaskResult": { - "type": "object", - "properties": { - "results": { - "$ref": "#/definitions/LanguageDetectionResult" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextTaskResult" - } - ], - "required": [ - "results" - ], - "x-ms-discriminator-value": "LanguageDetectionResults" - }, - "LanguageDetectionResult": { - "type": "object", - "properties": { - "documents": { - "type": "array", - "description": "Response by document", - "items": { - "$ref": "#/definitions/LanguageDetectionDocumentResult" - } - } - }, - "allOf": [ - { - "$ref": "#/definitions/PreBuiltResult" - } - ], - "required": [ - "documents" - ] - }, - "LanguageDetectionDocumentResult": { - "type": "object", - "properties": { - "detectedLanguage": { - "description": "Detected Language.", - "$ref": "#/definitions/DetectedLanguage" - } - }, - "allOf": [ - { - "$ref": "#/definitions/DocumentResult" - } - ], - "required": [ - "detectedLanguage" - ] - }, - "DetectedLanguage": { - "type": "object", - "required": [ - "name", - "iso6391Name", - "confidenceScore" - ], - "properties": { - "name": { - "type": "string", - "description": "Long name of a detected language (e.g. English, French)." - }, - "iso6391Name": { - "type": "string", - "description": "A two letter representation of the detected language according to the ISO 639-1 standard (e.g. en, fr)." - }, - "confidenceScore": { - "type": "number", - "format": "double", - "description": "A confidence score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified language is true." - } - } - }, - "AnalyzeTextJobState": { - "allOf": [ - { - "$ref": "#/definitions/JobState" - }, - { - "$ref": "#/definitions/TasksState" - }, - { - "$ref": "#/definitions/AnalyzeTextJobStatistics" - } - ] - }, - "Pagination": { - "properties": { - "nextLink": { - "type": "string" - } - }, - "type": "object" - }, - "JobMetadata": { - "properties": { - "displayName": { - "type": "string" - }, - "createdDateTime": { - "format": "date-time", - "type": "string" - }, - "expirationDateTime": { - "format": "date-time", - "type": "string" - }, - "jobId": { - "format": "uuid", - "type": "string" - }, - "lastUpdateDateTime": { - "format": "date-time", - "type": "string" - }, - "status": { - "enum": [ - "notStarted", - "running", - "succeeded", - "partiallySucceeded", - "failed", - "cancelled", - "cancelling" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": false, - "name": "State" - } - } - }, - "required": [ - "jobId", - "lastUpdateDateTime", - "createdDateTime", - "status" - ], - "type": "object" - }, - "JobState": { - "properties": { - "displayName": { - "type": "string" - }, - "createdDateTime": { - "format": "date-time", - "type": "string" - }, - "expirationDateTime": { - "format": "date-time", - "type": "string" - }, - "jobId": { - "format": "uuid", - "type": "string" - }, - "lastUpdateDateTime": { - "format": "date-time", - "type": "string" - }, - "status": { - "enum": [ - "notStarted", - "running", - "succeeded", - "partiallySucceeded", - "failed", - "cancelled", - "cancelling" - ], - "type": "string", - "x-ms-enum": { - "modelAsString": false, - "name": "State" - } - }, - "errors": { - "items": { - "$ref": "common.json#/definitions/Error" - }, - "type": "array" - }, - "nextLink": { - "type": "string" - } - }, - "required": [ - "jobId", - "lastUpdateDateTime", - "createdDateTime", - "status" - ] - }, - "JobErrors": { - "properties": { - "errors": { - "items": { - "$ref": "common.json#/definitions/Error" - }, - "type": "array" - } - }, - "type": "object" - }, - "AnalyzeTextJobStatistics": { - "properties": { - "statistics": { - "$ref": "#/definitions/RequestStatistics" - } - }, - "type": "object" - }, - "TasksState": { - "properties": { - "tasks": { - "properties": { - "completed": { - "type": "integer" - }, - "failed": { - "type": "integer" - }, - "inProgress": { - "type": "integer" - }, - "total": { - "type": "integer" - }, - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/AnalyzeTextLROResult" - } - } - }, - "required": [ - "total", - "completed", - "failed", - "inProgress" - ], - "type": "object" - } - }, - "required": [ - "tasks" - ], - "type": "object" - }, - "TaskState": { - "properties": { - "lastUpdateDateTime": { - "format": "date-time", - "type": "string" - }, - "status": { - "enum": [ - "notStarted", - "running", - "succeeded", - "failed", - "cancelled", - "cancelling" - ], - "x-ms-enum": { - "modelAsString": false, - "name": "State" - } - } - }, - "required": [ - "status", - "lastUpdateDateTime" - ], - "type": "object" - }, - "AnalyzeTextLROResult": { - "type": "object", - "discriminator": "kind", - "properties": { - "kind": { - "$ref": "#/definitions/AnalyzeTextLROResultsKind" - } - }, - "allOf": [ - { - "$ref": "#/definitions/TaskState" - }, - { - "$ref": "#/definitions/TaskIdentifier" - } - ], - "required": [ - "kind" - ] - }, - "EntityRecognitionLROResult": { - "type": "object", - "properties": { - "results": { - "$ref": "#/definitions/EntitiesResult" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROResult" - } - ], - "required": [ - "results" - ], - "x-ms-discriminator-value": "EntityRecognitionLROResults" - }, - "CustomEntityRecognitionLROResult": { - "type": "object", - "properties": { - "results": { - "$ref": "#/definitions/CustomEntitiesResult" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROResult" - } - ], - "required": [ - "results" - ], - "x-ms-discriminator-value": "CustomEntityRecognitionLROResults" - }, - "CustomSingleLabelClassificationLROResult": { - "type": "object", - "properties": { - "results": { - "$ref": "#/definitions/CustomSingleLabelClassificationResult" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROResult" - } - ], - "required": [ - "results" - ], - "x-ms-discriminator-value": "CustomSingleLabelClassificationLROResults" - }, - "CustomMultiLabelClassificationLROResult": { - "type": "object", - "properties": { - "results": { - "$ref": "#/definitions/CustomMultiLabelClassificationResult" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROResult" - } - ], - "required": [ - "results" - ], - "x-ms-discriminator-value": "CustomMultiLabelClassificationLROResults" - }, - "EntityLinkingLROResult": { - "type": "object", - "properties": { - "results": { - "$ref": "#/definitions/EntityLinkingResult" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROResult" - } - ], - "required": [ - "results" - ], - "x-ms-discriminator-value": "EntityLinkingLROResults" - }, - "PiiEntityRecognitionLROResult": { - "type": "object", - "properties": { - "results": { - "$ref": "#/definitions/PiiResult" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROResult" - } - ], - "required": [ - "results" - ], - "x-ms-discriminator-value": "PiiEntityRecognitionLROResults" - }, - "ExtractiveSummarizationLROResult": { - "type": "object", - "properties": { - "results": { - "$ref": "#/definitions/ExtractiveSummarizationResult" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROResult" - } - ], - "required": [ - "results" - ], - "x-ms-discriminator-value": "ExtractiveSummarizationLROResults" - }, - "HealthcareLROResult": { - "type": "object", - "properties": { - "results": { - "$ref": "#/definitions/HealthcareResult" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROResult" - } - ], - "required": [ - "results" - ], - "x-ms-discriminator-value": "HealthcareLROResults" - }, - "SentimentLROResult": { - "type": "object", - "properties": { - "results": { - "$ref": "#/definitions/SentimentResponse" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROResult" - } - ], - "required": [ - "results" - ], - "x-ms-discriminator-value": "SentimentAnalysisLROResults" - }, - "KeyPhraseExtractionLROResult": { - "type": "object", - "properties": { - "results": { - "$ref": "#/definitions/KeyPhraseResult" - } - }, - "allOf": [ - { - "$ref": "#/definitions/AnalyzeTextLROResult" - } - ], - "required": [ - "results" - ], - "x-ms-discriminator-value": "KeyPhraseExtractionLROResults" - }, - "DocumentResponse": { - "type": "object", - "properties": {} - }, - "DocumentResult": { - "type": "object", - "required": [ - "id", - "warnings" - ], - "properties": { - "id": { - "type": "string", - "description": "Unique, non-empty document identifier." - }, - "warnings": { - "type": "array", - "description": "Warnings encountered while processing document.", - "items": { - "$ref": "#/definitions/DocumentWarning" - } - }, - "statistics": { - "description": "if showStats=true was specified in the request this field will contain information about the document payload.", - "$ref": "#/definitions/DocumentStatistics" - } - } - }, - "DocumentError": { - "type": "object", - "required": [ - "id", - "error" - ], - "properties": { - "id": { - "type": "string", - "description": "Document Id." - }, - "error": { - "type": "object", - "description": "Document Error.", - "$ref": "common.json#/definitions/Error" - } - } - }, - "DocumentWarning": { - "type": "object", - "required": [ - "code", - "message" - ], - "properties": { - "code": { - "type": "string", - "enum": [ - "LongWordsInDocument", - "DocumentTruncated" - ], - "x-ms-enum": { - "name": "WarningCodeValue", - "modelAsString": true - }, - "description": "Error code." - }, - "message": { - "type": "string", - "description": "Warning message." - }, - "targetRef": { - "type": "string", - "description": "A JSON pointer reference indicating the target object." - } - } - }, - "DocumentStatistics": { - "type": "object", - "required": [ - "charactersCount", - "transactionsCount" - ], - "properties": { - "charactersCount": { - "type": "integer", - "format": "int32", - "description": "Number of text elements recognized in the document." - }, - "transactionsCount": { - "type": "integer", - "format": "int32", - "description": "Number of transactions for the document." - } - }, - "description": "if showStats=true was specified in the request this field will contain information about the document payload." - }, - "RequestStatistics": { - "type": "object", - "required": [ - "documentsCount", - "validDocumentsCount", - "erroneousDocumentsCount", - "transactionsCount" - ], - "properties": { - "documentsCount": { - "type": "integer", - "format": "int32", - "description": "Number of documents submitted in the request." - }, - "validDocumentsCount": { - "type": "integer", - "format": "int32", - "description": "Number of valid documents. This excludes empty, over-size limit or non-supported languages documents." - }, - "erroneousDocumentsCount": { - "type": "integer", - "format": "int32", - "description": "Number of invalid documents. This includes empty, over-size limit or non-supported languages documents." - }, - "transactionsCount": { - "type": "integer", - "format": "int64", - "description": "Number of transactions for the request." - } - }, - "description": "if showStats=true was specified in the request this field will contain information about the request payload." - }, - "MultiLanguageInput": { - "type": "object", - "description": "Contains an input document to be analyzed by the service.", - "required": [ - "id", - "text" - ], - "properties": { - "id": { - "type": "string", - "description": "A unique, non-empty document identifier." - }, - "text": { - "type": "string", - "description": "The input text to process." - }, - "language": { - "type": "string", - "description": "(Optional) This is the 2 letter ISO 639-1 representation of a language. For example, use \"en\" for English; \"es\" for Spanish etc. If not set, use \"en\" for English as default." - } - } - }, - "LanguageInput": { - "type": "object", - "required": [ - "id", - "text" - ], - "properties": { - "id": { - "type": "string", - "description": "Unique, non-empty document identifier." - }, - "text": { - "type": "string" - }, - "countryHint": { - "type": "string" - } - } - } - }, - "parameters": { - "ShowStats": { - "name": "showStats", - "in": "query", - "description": "(Optional) if set to true, response will contain request and document level statistics.", - "type": "boolean", - "required": false, - "x-ms-parameter-location": "method" - }, - "JobId": { - "description": "Job ID", - "format": "uuid", - "in": "path", - "name": "jobId", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - } - } -} \ No newline at end of file diff --git a/shared_requirements.txt b/shared_requirements.txt index 5fb01466b6e4..4a33c8965dff 100644 --- a/shared_requirements.txt +++ b/shared_requirements.txt @@ -133,7 +133,7 @@ chardet<5,>=3.0.2 #override azure-search-documents typing-extensions>=3.7.4.3 #override azure azure-keyvault~=1.0 #override azure-mgmt-core azure-core<2.0.0,>=1.15.0 -#override azure-containerregistry azure-core>=1.20.0,<2.0.0 +#override azure-containerregistry azure-core>=1.23.0,<2.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 @@ -340,6 +340,8 @@ opentelemetry-sdk<2.0.0,>=1.5.0,!=1.10a0 #override azure-mgmt-chaos azure-mgmt-core>=1.3.0,<2.0.0 #override azure-mgmt-network msrest>=0.6.21 #override azure-mgmt-network azure-mgmt-core>=1.3.0,<2.0.0 +#override azure-mgmt-redhatopenshift msrest>=0.6.21 +#override azure-mgmt-redhatopenshift azure-mgmt-core>=1.3.0,<2.0.0 #override azure-mgmt-appcontainers msrest>=0.6.21 #override azure-mgmt-appcontainers azure-mgmt-core>=1.3.0,<2.0.0 #override azure-mgmt-recoveryservicesbackup azure-mgmt-core>=1.3.0,<2.0.0 diff --git a/swagger_to_sdk_config_dpg.json b/swagger_to_sdk_config_dpg.json new file mode 100644 index 000000000000..4900e744c9e8 --- /dev/null +++ b/swagger_to_sdk_config_dpg.json @@ -0,0 +1,17 @@ +{ + "meta": { + "autorest_options": { + "version": "3.7.2", + "use": ["@autorest/python@5.16.0", "@autorest/modelerfour@4.19.3"], + "python": "", + "sdkrel:python-sdks-folder": "./sdk/.", + "version-tolerant": "" + }, + "advanced_options": { + "create_sdk_pull_requests": true, + "sdk_generation_pull_request_base": "integration_branch" + }, + "repotag": "azure-sdk-for-python", + "version": "0.2.0" + } +} diff --git a/tools/azure-sdk-tools/packaging_tools/auto_codegen.py b/tools/azure-sdk-tools/packaging_tools/auto_codegen.py index 384ea05f2df2..1adcca2750b6 100644 --- a/tools/azure-sdk-tools/packaging_tools/auto_codegen.py +++ b/tools/azure-sdk-tools/packaging_tools/auto_codegen.py @@ -4,7 +4,7 @@ from pathlib import Path from subprocess import check_call -from .swaggertosdk.SwaggerToSdkCore import (CONFIG_FILE,) +from .swaggertosdk.SwaggerToSdkCore import CONFIG_FILE, CONFIG_FILE_DPG from .generate_sdk import generate from .generate_utils import get_package_names, init_new_service, update_servicemetadata @@ -20,12 +20,10 @@ def main(generate_input, generate_output): result = {} package_total = set() for input_readme in data["relatedReadmeMdFiles"]: - # skip codegen for data-plane temporarily since it is useless now and may block PR - if 'resource-manager' not in input_readme: - continue relative_path_readme = str(Path(spec_folder, input_readme)) _LOGGER.info(f"[CODEGEN]({input_readme})codegen begin") - config = generate(CONFIG_FILE, sdk_folder, [], relative_path_readme, spec_folder, force_generation=True) + config_file = CONFIG_FILE if 'resource-manager' in input_readme else CONFIG_FILE_DPG + config = generate(config_file, sdk_folder, [], relative_path_readme, spec_folder, force_generation=True) package_names = get_package_names(sdk_folder) _LOGGER.info(f"[CODEGEN]({input_readme})codegen end. [(packages:{str(package_names)})]") diff --git a/tools/azure-sdk-tools/packaging_tools/auto_package.py b/tools/azure-sdk-tools/packaging_tools/auto_package.py index b359879331b5..bda9eb6f14a6 100644 --- a/tools/azure-sdk-tools/packaging_tools/auto_package.py +++ b/tools/azure-sdk-tools/packaging_tools/auto_package.py @@ -43,7 +43,8 @@ def main(generate_input, generate_output): "lite": f"pip install {package_name}", } # to distinguish with track1 - package["packageName"] = "track2_" + package["packageName"] + if 'azure-mgmt-' in package_name: + package["packageName"] = "track2_" + package["packageName"] result["packages"].append(package) with open(generate_output, "w") as writer: diff --git a/tools/azure-sdk-tools/packaging_tools/sdk_generator.py b/tools/azure-sdk-tools/packaging_tools/sdk_generator.py index 3397a4c6ddbe..37989986e33c 100644 --- a/tools/azure-sdk-tools/packaging_tools/sdk_generator.py +++ b/tools/azure-sdk-tools/packaging_tools/sdk_generator.py @@ -4,7 +4,7 @@ from pathlib import Path from subprocess import check_call -from .swaggertosdk.SwaggerToSdkCore import (CONFIG_FILE) +from .swaggertosdk.SwaggerToSdkCore import CONFIG_FILE, CONFIG_FILE_DPG from .generate_sdk import generate from .generate_utils import get_package_names, init_new_service, update_servicemetadata @@ -21,14 +21,10 @@ def main(generate_input, generate_output): package_total = set() input_readme = data["relatedReadmeMdFile"] - # skip codegen for data-plane temporarily since it is useless now and may block PR - if 'resource-manager' not in input_readme: - #continue - _LOGGER.error(f"[CODEGEN]({input_readme}) 'resource-manager' not in [relatedReadmeMdFile]") - return relative_path_readme = str(Path(spec_folder, input_readme)) _LOGGER.info(f"[CODEGEN]({input_readme})codegen begin") - config = generate(CONFIG_FILE, sdk_folder, [], relative_path_readme, spec_folder, force_generation=True) + config_file = CONFIG_FILE if 'resource-manager' in input_readme else CONFIG_FILE_DPG + config = generate(config_file, sdk_folder, [], relative_path_readme, spec_folder, force_generation=True) package_names = get_package_names(sdk_folder) _LOGGER.info(f"[CODEGEN]({input_readme})codegen end. [(packages:{str(package_names)})]") diff --git a/tools/azure-sdk-tools/packaging_tools/sdk_package.py b/tools/azure-sdk-tools/packaging_tools/sdk_package.py index 3b2bb63e104b..f3f8ca5cbb4b 100644 --- a/tools/azure-sdk-tools/packaging_tools/sdk_package.py +++ b/tools/azure-sdk-tools/packaging_tools/sdk_package.py @@ -39,7 +39,8 @@ def main(generate_input, generate_output): package["artifacts"] = [str(dist_path / package_file) for package_file in os.listdir(dist_path)] package["result"] = "succeeded" # to distinguish with track1 - package["packageName"] = "track2_" + package["packageName"] + if 'azure-mgmt-' in package_name: + package["packageName"] = "track2_" + package["packageName"] package["packageFolder"] = package["path"][0] result["packages"].append(package) diff --git a/tools/azure-sdk-tools/packaging_tools/swaggertosdk/SwaggerToSdkCore.py b/tools/azure-sdk-tools/packaging_tools/swaggertosdk/SwaggerToSdkCore.py index 802d10013b2d..f700bd3e668d 100644 --- a/tools/azure-sdk-tools/packaging_tools/swaggertosdk/SwaggerToSdkCore.py +++ b/tools/azure-sdk-tools/packaging_tools/swaggertosdk/SwaggerToSdkCore.py @@ -22,6 +22,7 @@ _LOGGER = logging.getLogger(__name__) CONFIG_FILE = "swagger_to_sdk_config_autorest.json" +CONFIG_FILE_DPG = "swagger_to_sdk_config_dpg.json" DEFAULT_COMMIT_MESSAGE = "Generated from {hexsha}" diff --git a/tools/azure-sdk-tools/packaging_tools/templates/MANIFEST.in b/tools/azure-sdk-tools/packaging_tools/templates/MANIFEST.in index bb1390b9df1e..7d23319179f1 100644 --- a/tools/azure-sdk-tools/packaging_tools/templates/MANIFEST.in +++ b/tools/azure-sdk-tools/packaging_tools/templates/MANIFEST.in @@ -5,3 +5,4 @@ include *.md include {{ init_name }} {%- endfor %} include LICENSE +include {{ package_name.replace('-', '/') }}/py.typed diff --git a/tools/azure-sdk-tools/packaging_tools/templates/setup.py b/tools/azure-sdk-tools/packaging_tools/templates/setup.py index 92bcd0aaf8fe..cdce16eb8b1b 100644 --- a/tools/azure-sdk-tools/packaging_tools/templates/setup.py +++ b/tools/azure-sdk-tools/packaging_tools/templates/setup.py @@ -66,6 +66,10 @@ '{{ nspkg_name }}', {%- endfor %} ]), + include_package_data=True, + package_data={ + 'pytyped': ['py.typed'], + }, install_requires=[ 'msrest>=0.6.21', {%- if need_msrestazure %}