From 722f95698ff57a901364b0a2196a40c6a3cd53ec Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Wed, 8 Sep 2021 12:03:57 -0500 Subject: [PATCH 01/34] added commands for workload-network dhcp --- src/vmware/CHANGELOG.md | 19 ++ src/vmware/DEVELOPMENT.md | 45 ++- src/vmware/azext_vmware/_help.py | 83 ++++++ src/vmware/azext_vmware/_params.py | 8 + src/vmware/azext_vmware/commands.py | 14 + src/vmware/azext_vmware/custom.py | 48 +++ .../latest/recordings/test_vmware_dhcp.yaml | 280 ++++++++++++++++++ .../tests/latest/test_dhcp_scenario.py | 53 ++++ 8 files changed, 549 insertions(+), 1 deletion(-) create mode 100644 src/vmware/azext_vmware/tests/latest/recordings/test_vmware_dhcp.yaml create mode 100644 src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py diff --git a/src/vmware/CHANGELOG.md b/src/vmware/CHANGELOG.md index 6b0e1b2aaf7..99ed33a699e 100644 --- a/src/vmware/CHANGELOG.md +++ b/src/vmware/CHANGELOG.md @@ -1,15 +1,22 @@ # Release History +## 3.2.0 + +- add `az vmware workload-network dhcp` command group + ## 3.1.0 (2021-08) + - Add `az vmware cloud-link` command group - Add `az vmware script-cmdlet` command group - Add `az vmware script-execution` command group - Add `az vmware script-package` command group ## 3.0.0 (2021-07) + - [BREAKING CHANGE] `az vmware datastore create` has been removed. Please use `az vmware datastore netapp-volume create` or `az vmware datastore disk-pool-volume create` instead. Other changes: + - Update to AVS 2021-06-01 API - Add `az vmware private-cloud rotate-vcenter-password` - Add `az vmware private-cloud rotate-nsxt-password` @@ -20,17 +27,20 @@ Other changes: - Add `az vmware global-reach-connection` command group to manage Global Reach Connections ## 2.0.1 (2021-02) + - Update the minimum az cli version to 2.11.0 [#3045](https://github.com/Azure/azure-cli-extensions/issues/3045) ## 2.0.0 (2021-02) This version has **breaking changes** for scripts. + - prompt for legal terms for `az vmware private-cloud create` [#2932](https://github.com/Azure/azure-cli-extensions/pull/2932) - scripts will need to add `--accept-eula` to avoid being prompted - prompt to confirm for `az vmware private-cloud delete` [#2930](https://github.com/Azure/azure-cli-extensions/pull/2930) - scripts will need to add `--yes` to avoid being prompted Other changes: + - update to AVS 2021-01-01-preview API [#2976](https://github.com/Azure/azure-cli-extensions/pull/2976) - add az vmware datastore command group [#2998](https://github.com/Azure/azure-cli-extensions/pull/2998) @@ -53,40 +63,49 @@ Commands: - Moved to https://github.com/Azure/azure-cli-extensions ## 0.7.2 (2020-10-20) + - switches some code to use show_command to fix a pylint error [#44](https://github.com/Azure/az-vmware-cli/pull/44) ## 0.7.1 (2020-10-19) + - removed the preview flags [#43](https://github.com/Azure/az-vmware-cli/pull/43) ## 0.7.0 (2020-07-21) + Update to the 2020-03-20 API [#31](https://github.com/Azure/az-vmware-cli/pull/31) Adds commands for managing ExpressRoute Circuit authorizations for a private cloud: + - az vmware authorization create - az vmware authorization list - az vvware authorization delete - az vmware authorization show Removes: + - az vmware private-cloud addauthorization - az vmware private-cloud deleteauthorization - az vmware checkquotaavailability Adds: + - az vmware location checkquotaavailability - az vmware location checktrialavailability Add command for managing HCX Enterprise Sites for a private cloud: + - az vmware hcx-enterprise-site create - az vmware hcx-enterprise-site list - az vmware hcx-enterprise-site delete - az vmware hcx-enterprise-site show ## 0.6.0 (2020-05-06) + - switch to Microsoft.AVS 2019-08-09-preview API [#35](https://github.com/Azure/az-vmware-cli/pull/35) - vmware checkquotaavailability [#34](https://github.com/Azure/az-vmware-cli/pull/34) - example: az vmware checkquotaavailability --location northcentralus ## 0.2.0 (2019-07-16) + - initial preview release - see archived [az-vmware-cli releases](https://github.com/Azure/az-vmware-cli/releases) diff --git a/src/vmware/DEVELOPMENT.md b/src/vmware/DEVELOPMENT.md index f586b27bf62..c2631974ad4 100644 --- a/src/vmware/DEVELOPMENT.md +++ b/src/vmware/DEVELOPMENT.md @@ -1,13 +1,56 @@ ## AutoRest Code Generation + [AutoRest for Python](https://github.com/Azure/autorest.python) was used to generate the code in `azext_vmware\vendored_sdks` using: -``` powershell + +```powershell rm ..\azure-cli-extensions\src\vmware\azext_vmware\vendored_sdks -Recurse autorest --python --output-folder=..\azure-cli-extensions\src\vmware\azext_vmware\vendored_sdks --use=@autorest/python@5.8.0 --tag=package-2021-06-01 --azure-arm=true --namespace=avs_client --override-client-name=AVSClient specification\vmware\resource-manager\readme.md ``` + It was run from a git clone of [azure-rest-api-specs](https://github.com/Azure/azure-rest-api-specs). ## Linter + Use [azdev](https://github.com/Azure/azure-cli-dev-tools) to check for linter errors and warnings. + - `azdev style vmware` - `azdev linter --include-whl-extensions vmware` + +## Developing New Commands + +1. Set up [local development environment](https://github.com/Azure/azure-cli-dev-tools#setting-up-your-development-environment) + +2. Add vmware extension + +```powershell +azdev extension add vmware +``` + +3. Set up local extension repo (first cd into 'azure-cli-extensions repo') + +```powershell +(env) PS dev\azure-cli-extensions> azdev setup -r $PWD +``` + +4. Confirm extension was installed properly + +```powershell +(env) PS dev> az extension list +[ + { + "experimental": false, + "extensionType": "dev", + "name": "vmware", + "path": "C:\\Users\\jonathanhe\\Documents\\dev\\azure-cli-extensions\\src\\vmware", + "preview": false, + "version": "3.1.0" + } +] +``` + +## Running Mock Server + +The mock server provides an environment to testing newly developed commands without modifying any actual environments. Follow the steps to [set up the mock server](https://dev.azure.com/msazure/One/_git/Azure-Dedicated-AVS?path=%2Fsrc%2Ffct%2Fmock_api%2FREADME.md&_a=preview). + +- Note: for development in the python environment, the self-signed certificate is located inside of the '\env\Lib\site-packages\certifi' directory, not under 'Program Files (x86)' diff --git a/src/vmware/azext_vmware/_help.py b/src/vmware/azext_vmware/_help.py index 86dd39bc211..a8cd0aa00a8 100644 --- a/src/vmware/azext_vmware/_help.py +++ b/src/vmware/azext_vmware/_help.py @@ -492,3 +492,86 @@ - name: Delete a script execution. text: az vmware script-execution delete --resource-group group1 --private-cloud cloud1 --name addSsoServer """ +helps['vmware workload-network'] = """ + type: group + short-summary: Commands to manage workload-networks in a private cloud. +""" + +helps['vmware workload-network dhcp'] = """ + type: group + short-summary: Commands to manage a DHCP (Data Host Configuration Protocol) workload-network. +""" + +helps['vmware workload-network dhcp list'] = """ + type: command + short-summary: List dhcp in a private cloud workload network. + examples: + - name: List dhcp in a workload network. + text: az vmware workload-network dhcp list --resource-group group1 --private-cloud cloud1 +""" + +helps['vmware workload-network dhcp show'] = """ + type: command + short-summary: Get dhcp by id in a private cloud workload network. + examples: + - name: Get dhcp by id in a workload network. + text: az vmware workload-network dhcp show --resource-group group1 --private-cloud cloud1 --dhcp-id dhcp1 +""" + +helps['vmware workload-network dhcp relay'] = """ + type: group + short-summary: Commands to manage a DHCP (Data Host Configuration Protocol) workload-network. +""" + +helps['vmware workload-network dhcp relay create'] = """ + type: command + short-summary: Create dhcp by id in a private cloud workload network. + examples: + - name: Create dhcp by id in a workload network. + text: az vmware workload-network dhcp relay create --resource-group group1 --private-cloud cloud1 --dhcp-id dhcp1 --display-name dhcpConfigurations1 --revision 1 --server-addresses 40.1.5.1/24 +""" + +helps['vmware workload-network dhcp relay delete'] = """ + type: command + short-summary: Delete dhcp by id in a private cloud workload network. + examples: + - name: Delete dhcp by id in a workload network. + text: az vmware workload-network dhcp relay delete --resource-group group1 --private-cloud cloud1 --dhcp-id dhcp1 +""" + +helps['vmware workload-network dhcp relay update'] = """ + type: command + short-summary: Create or update dhcp by id in a private cloud workload network. + examples: + - name: Create or update dhcp by id in a workload network. + text: az vmware workload-network dhcp relay update --resource-group group1 --private-cloud cloud1 --dhcp-id dhcp1 --display-name dhcpConfigurations1 --revision 1 --server-addresses 40.1.5.1/24 +""" + +helps['vmware workload-network dhcp server'] = """ + type: group + short-summary: Commands to manage a DHCP (Data Host Configuration Protocol) workload-network. +""" + +helps['vmware workload-network dhcp server create'] = """ + type: command + short-summary: Create dhcp by id in a private cloud workload network. + examples: + - name: Create dhcp by id in a workload network. + text: az vmware workload-network dhcp server create --resource-group group1 --private-cloud cloud1 --dhcp-id dhcp1 --display-name dhcpConfigurations1 --revision 1 --server-address 40.1.5.1/24 --lease-time 86400 +""" + +helps['vmware workload-network dhcp server delete'] = """ + type: command + short-summary: Delete dhcp by id in a private cloud workload network. + examples: + - name: Delete dhcp by id in a workload network. + text: az vmware workload-network dhcp server delete --resource-group group1 --private-cloud cloud1 --dhcp-id dhcp1 +""" + +helps['vmware workload-network dhcp server update'] = """ + type: command + short-summary: Create or update dhcp by id in a private cloud workload network. + examples: + - name: Create or update dhcp by id in a workload network. + text: az vmware workload-network dhcp server update --resource-group group1 --private-cloud cloud1 --dhcp-id dhcp1 --display-name dhcpConfigurations1 --revision 1 --server-address 40.1.5.1/24 --lease-time 86400 +""" diff --git a/src/vmware/azext_vmware/_params.py b/src/vmware/azext_vmware/_params.py index afa99ece544..20e7b0003ff 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -134,3 +134,11 @@ def load_arguments(self, _): c.argument('out', help='Standard output stream from the powershell execution.') c.argument('named_outputs', action=ScriptExecutionNamedOutputAction, nargs='*', help='User-defined dictionary.') c.argument('script_cmdlet_id', help='A reference to the script cmdlet resource if user is running a AVS script.') + + with self.argument_context('vmware workload-network dhcp') as c: + c.argument('dhcp_id', help='NSX DHCP identifier. Generally the same as the DHCP display name.') + c.argument('display_name', help='Display name of the DHCP entity.') + c.argument('revision', help='NSX revision number.') + c.argument('server_address', help='DHCP Server Address.') + c.argument('lease_time', help='DHCP Server Lease Time.') + c.argument('server_addresses', nargs='*', help='DHCP Relay Addresses. Max 3.') diff --git a/src/vmware/azext_vmware/commands.py b/src/vmware/azext_vmware/commands.py index 8f0e7444997..8713c8e909c 100644 --- a/src/vmware/azext_vmware/commands.py +++ b/src/vmware/azext_vmware/commands.py @@ -107,3 +107,17 @@ def load_command_table(self, _): g.custom_command('list', 'script_execution_list') g.custom_command('delete', 'script_execution_delete') g.custom_show_command('show', 'script_execution_show') + + with self.command_group('vmware workload-network dhcp', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('list', 'workload_network_dhcp_list') + g.custom_show_command('show', 'workload_network_dhcp_show') + + with self.command_group('vmware workload-network dhcp server', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('create', 'workload_network_dhcp_server_create') # dhcpType mismatch between fiddler (SERVER) and console output (null) + g.custom_command('delete', 'workload_network_dhcp_delete') + g.custom_command('update', 'workload_network_dhcp_server_update') # dhcpType mismatch between fiddler (SERVER) and console output (null) + + with self.command_group('vmware workload-network dhcp relay', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('create', 'workload_network_dhcp_relay_create') # dhcpType mismatch between fiddler (SERVER) and console output (null) + g.custom_command('delete', 'workload_network_dhcp_delete') + g.custom_command('update', 'workload_network_dhcp_relay_update') # dhcpType mismatch between fiddler (SERVER) and console output (null) diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index 55ec9b46489..1b5602bd8c4 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -329,3 +329,51 @@ def script_execution_delete(client: AVSClient, resource_group_name, private_clou def script_execution_logs(client: AVSClient, resource_group_name, private_cloud, name): return client.script_executions.get_execution_logs(resource_group_name=resource_group_name, private_cloud_name=private_cloud, script_execution_name=name) + + +def workload_network_dhcp_server_create(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str, display_name=None, revision=None, server_address=None, lease_time=None): + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDhcpServer + # don't need dhcpType='SERVER' because dhcpType is discriminator for WorkloadNetworkDhcpServer? + if display_name is not None and revision is not None and server_address is not None and lease_time is not None: + properties = WorkloadNetworkDhcpServer(display_name=display_name, revision=revision, server_address=server_address, lease_time=lease_time) + return client.workload_networks.begin_create_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) + return client.workload_networks.begin_create_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id) + + +def workload_network_dhcp_relay_create(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str, display_name=None, revision=None, server_addresses=None): + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDhcpRelay + # don't need dhcpType='SERVER' because dhcpType is discriminator for WorkloadNetworkDhcpRelay? + if display_name is not None and revision is not None and server_addresses is not None: + properties = WorkloadNetworkDhcpRelay(display_name=display_name, revision=revision, server_addresses=server_addresses) + return client.workload_networks.begin_create_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) + return client.workload_networks.begin_create_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id) + + +def workload_network_dhcp_server_update(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str, display_name=None, revision=None, server_address=None, lease_time=None): + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDhcpServer + # don't need dhcpType='SERVER' because dhcpType is discriminator for WorkloadNetworkDhcpServer? + if display_name is not None and revision is not None and server_address is not None and lease_time is not None: + properties = WorkloadNetworkDhcpServer(display_name=display_name, revision=revision, server_address=server_address, lease_time=lease_time) + return client.workload_networks.begin_update_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) + return client.workload_networks.begin_update_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id) + + +def workload_network_dhcp_relay_update(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str, display_name=None, revision=None, server_addresses=None): + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDhcpRelay + # don't need dhcpType='SERVER' because dhcpType is discriminator for WorkloadNetworkDhcpRelay? + if display_name is not None and revision is not None and server_addresses is not None: + properties = WorkloadNetworkDhcpRelay(display_name=display_name, revision=revision, server_addresses=server_addresses) + return client.workload_networks.begin_update_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) + return client.workload_networks.begin_update_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id) + + +def workload_network_dhcp_delete(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str): + return client.workload_networks.begin_delete_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id) + + +def workload_network_dhcp_list(client: AVSClient, resource_group_name, private_cloud): + return client.workload_networks.list_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud) + + +def workload_network_dhcp_show(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str): + return client.workload_networks.get_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id) diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_dhcp.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_dhcp.yaml new file mode 100644 index 00000000000..9a678ebd83b --- /dev/null +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_dhcp.yaml @@ -0,0 +1,280 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dhcp list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations?api-version=2021-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}]}' + headers: + content-length: + - '391' + content-type: + - application/json + date: + - Wed, 08 Sep 2021 16:51:46 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dhcp show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud --dhcp-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' + headers: + content-length: + - '379' + content-type: + - application/json + date: + - Wed, 08 Sep 2021 16:51:50 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"dhcpType": "RELAY", "displayName": "dhcpConfigurations1", + "revision": 1, "serverAddresses": ["40.1.5.1/24"]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dhcp relay create + Connection: + - keep-alive + Content-Length: + - '126' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --dhcp-id --display-name --revision --server-addresses + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' + headers: + content-length: + - '379' + content-type: + - application/json + date: + - Wed, 08 Sep 2021 16:51:54 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dhcp relay delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --private-cloud --dhcp-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: DELETE + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Wed, 08 Sep 2021 16:51:59 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"dhcpType": "RELAY", "displayName": "dhcpConfigurations1", + "revision": 1, "serverAddresses": ["40.1.5.1/24"]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dhcp relay update + Connection: + - keep-alive + Content-Length: + - '126' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --dhcp-id --display-name --revision --server-addresses + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PATCH + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":2}}' + headers: + content-length: + - '379' + content-type: + - application/json + date: + - Wed, 08 Sep 2021 16:52:03 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"dhcpType": "SERVER", "displayName": "dhcpConfigurations1", + "revision": 1, "serverAddress": "40.1.5.1/24", "leaseTime": 86400}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dhcp server create + Connection: + - keep-alive + Content-Length: + - '143' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --dhcp-id --display-name --revision --server-address + --lease-time + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' + headers: + content-length: + - '379' + content-type: + - application/json + date: + - Wed, 08 Sep 2021 16:52:07 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dhcp server delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --private-cloud --dhcp-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: DELETE + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Wed, 08 Sep 2021 16:52:12 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"dhcpType": "SERVER", "displayName": "dhcpConfigurations1", + "revision": 1, "serverAddress": "40.1.5.1/24", "leaseTime": 86400}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dhcp server update + Connection: + - keep-alive + Content-Length: + - '143' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --dhcp-id --display-name --revision --server-address + --lease-time + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PATCH + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":2}}' + headers: + content-length: + - '379' + content-type: + - application/json + date: + - Wed, 08 Sep 2021 16:52:16 GMT + server: + - Rocket + status: + code: 200 + message: OK +version: 1 diff --git a/src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py b/src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py new file mode 100644 index 00000000000..8715b778418 --- /dev/null +++ b/src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +import os +import unittest + +from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer) + +class VmwareDhcpScenarioTest(ScenarioTest): + def setUp(self): + # https://vcrpy.readthedocs.io/en/latest/configuration.html#request-matching + self.vcr.match_on = ['scheme', 'method', 'path', 'query'] # not 'host', 'port' + super(VmwareDhcpScenarioTest, self).setUp() + + @ResourceGroupPreparer(name_prefix='cli_test_vmware_dhcp') + def test_vmware_dhcp(self): + self.kwargs.update({ + # 'loc': 'westcentralus', + 'privatecloud': 'cloud1', + 'dhcp_id': 'dhcp1', + 'display_name': 'dhcpConfigurations1', + 'revision': '1', + 'server_address': '40.1.5.1/24', + 'lease_time': '86400', + 'server_addresses': '40.1.5.1/24' + }) + + # self.cmd('az vmware private-cloud create -g {rg} -n {privatecloud} --location {loc} --sku av20 --cluster-size 4 --network-block 192.168.48.0/22 --nsxt-password 5rqdLj4GF3cePUe6( --vcenter-password UpfBXae9ZquZSDXk( --accept-eula') + + count = len(self.cmd('az vmware workload-network dhcp list --resource-group {rg} --private-cloud {privatecloud}').get_output_in_json()) + self.assertEqual(count, 1, 'count expected to be 1') + + dhcpShow = self.cmd('az vmware workload-network dhcp show --resource-group {rg} --private-cloud {privatecloud} --dhcp-id {dhcp_id}').get_output_in_json() + self.assertEqual(dhcpShow['name'], 'dhcp1') + + dhcpRelayCreate = self.cmd('az vmware workload-network dhcp relay create --resource-group {rg} --private-cloud {privatecloud} --dhcp-id {dhcp_id} --display-name {display_name} --revision {revision} --server-addresses {server_addresses}').get_output_in_json() + self.assertEqual(dhcpRelayCreate['name'], 'dhcp1') + + dhcpRelayDelete = self.cmd('az vmware workload-network dhcp relay delete --resource-group {rg} --private-cloud {privatecloud} --dhcp-id {dhcp_id}').output + self.assertEqual(len(dhcpRelayDelete), 0) + + dhcpRelayUpdate = self.cmd('az vmware workload-network dhcp relay update --resource-group {rg} --private-cloud {privatecloud} --dhcp-id {dhcp_id} --display-name {display_name} --revision {revision} --server-addresses {server_addresses}').get_output_in_json() + self.assertEqual(dhcpRelayUpdate['name'], 'dhcp1') + + dhcpServerCreate = self.cmd('az vmware workload-network dhcp server create --resource-group {rg} --private-cloud {privatecloud} --dhcp-id {dhcp_id} --display-name {display_name} --revision {revision} --server-address {server_address} --lease-time {lease_time}').get_output_in_json() + self.assertEqual(dhcpServerCreate['name'], 'dhcp1') + + dhcpServerDelete = self.cmd('az vmware workload-network dhcp server delete --resource-group {rg} --private-cloud {privatecloud} --dhcp-id {dhcp_id}').output + self.assertEqual(len(dhcpServerDelete), 0) + + dhcpServerUpdate = self.cmd('az vmware workload-network dhcp server update --resource-group {rg} --private-cloud {privatecloud} --dhcp-id {dhcp_id} --display-name {display_name} --revision {revision} --server-address {server_address} --lease-time {lease_time}').get_output_in_json() + self.assertEqual(dhcpServerUpdate['name'], 'dhcp1') \ No newline at end of file From b37281e5cca9df963e20f10588d645015d65af80 Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Wed, 8 Sep 2021 15:52:31 -0500 Subject: [PATCH 02/34] set limit of 3 on server_addresses and updated moved specific arguments in params --- src/vmware/azext_vmware/_params.py | 7 ++++++- src/vmware/azext_vmware/_validators.py | 8 ++++++++ .../latest/recordings/test_vmware_dhcp.yaml | 16 ++++++++-------- .../tests/latest/test_dhcp_scenario.py | 3 --- 4 files changed, 22 insertions(+), 12 deletions(-) diff --git a/src/vmware/azext_vmware/_params.py b/src/vmware/azext_vmware/_params.py index 20e7b0003ff..7104ca17c30 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -6,6 +6,7 @@ from azext_vmware.action import ScriptExecutionNamedOutputAction, ScriptExecutionParameterAction +from ._validators import server_addresses_length def load_arguments(self, _): @@ -139,6 +140,10 @@ def load_arguments(self, _): c.argument('dhcp_id', help='NSX DHCP identifier. Generally the same as the DHCP display name.') c.argument('display_name', help='Display name of the DHCP entity.') c.argument('revision', help='NSX revision number.') + + with self.argument_context('vmware workload-network dhcp server') as c: c.argument('server_address', help='DHCP Server Address.') c.argument('lease_time', help='DHCP Server Lease Time.') - c.argument('server_addresses', nargs='*', help='DHCP Relay Addresses. Max 3.') + + with self.argument_context('vmware workload-network dhcp relay') as c: + c.argument('server_addresses', nargs='+', validator=server_addresses_length, help='DHCP Relay Addresses. Max 3.') diff --git a/src/vmware/azext_vmware/_validators.py b/src/vmware/azext_vmware/_validators.py index b2aedfa0a4f..99f004549c8 100644 --- a/src/vmware/azext_vmware/_validators.py +++ b/src/vmware/azext_vmware/_validators.py @@ -4,6 +4,8 @@ # -------------------------------------------------------------------------------------------- # pylint: disable=line-too-long +from knack.util import CLIError + def example_name_or_id_validator(cmd, namespace): # Example of a storage account name or ID validator. @@ -19,3 +21,9 @@ def example_name_or_id_validator(cmd, namespace): type='storageAccounts', name=namespace.storage_account ) + + +def server_addresses_length(namespace): + if isinstance(namespace.server_addresses, list): + if len(namespace.server_addresses) > 3: + raise CLIError("Enter a maximum of 3 DHCP relay addresses") diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_dhcp.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_dhcp.yaml index 9a678ebd83b..2af343f0b3a 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_dhcp.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_dhcp.yaml @@ -25,7 +25,7 @@ interactions: content-type: - application/json date: - - Wed, 08 Sep 2021 16:51:46 GMT + - Wed, 08 Sep 2021 20:47:42 GMT server: - Rocket status: @@ -57,7 +57,7 @@ interactions: content-type: - application/json date: - - Wed, 08 Sep 2021 16:51:50 GMT + - Wed, 08 Sep 2021 20:47:46 GMT server: - Rocket status: @@ -94,7 +94,7 @@ interactions: content-type: - application/json date: - - Wed, 08 Sep 2021 16:51:54 GMT + - Wed, 08 Sep 2021 20:47:50 GMT server: - Rocket status: @@ -126,7 +126,7 @@ interactions: content-length: - '0' date: - - Wed, 08 Sep 2021 16:51:59 GMT + - Wed, 08 Sep 2021 20:47:55 GMT server: - Rocket status: @@ -163,7 +163,7 @@ interactions: content-type: - application/json date: - - Wed, 08 Sep 2021 16:52:03 GMT + - Wed, 08 Sep 2021 20:47:59 GMT server: - Rocket status: @@ -201,7 +201,7 @@ interactions: content-type: - application/json date: - - Wed, 08 Sep 2021 16:52:07 GMT + - Wed, 08 Sep 2021 20:48:03 GMT server: - Rocket status: @@ -233,7 +233,7 @@ interactions: content-length: - '0' date: - - Wed, 08 Sep 2021 16:52:12 GMT + - Wed, 08 Sep 2021 20:48:07 GMT server: - Rocket status: @@ -271,7 +271,7 @@ interactions: content-type: - application/json date: - - Wed, 08 Sep 2021 16:52:16 GMT + - Wed, 08 Sep 2021 20:48:11 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py b/src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py index 8715b778418..419862390bb 100644 --- a/src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py @@ -16,7 +16,6 @@ def setUp(self): @ResourceGroupPreparer(name_prefix='cli_test_vmware_dhcp') def test_vmware_dhcp(self): self.kwargs.update({ - # 'loc': 'westcentralus', 'privatecloud': 'cloud1', 'dhcp_id': 'dhcp1', 'display_name': 'dhcpConfigurations1', @@ -25,8 +24,6 @@ def test_vmware_dhcp(self): 'lease_time': '86400', 'server_addresses': '40.1.5.1/24' }) - - # self.cmd('az vmware private-cloud create -g {rg} -n {privatecloud} --location {loc} --sku av20 --cluster-size 4 --network-block 192.168.48.0/22 --nsxt-password 5rqdLj4GF3cePUe6( --vcenter-password UpfBXae9ZquZSDXk( --accept-eula') count = len(self.cmd('az vmware workload-network dhcp list --resource-group {rg} --private-cloud {privatecloud}').get_output_in_json()) self.assertEqual(count, 1, 'count expected to be 1') From b1bbc2e0ed9343afa9004e3a3ca692d1dc9dcfae Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Wed, 8 Sep 2021 15:56:51 -0500 Subject: [PATCH 03/34] removed comments --- src/vmware/azext_vmware/commands.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vmware/azext_vmware/commands.py b/src/vmware/azext_vmware/commands.py index 8713c8e909c..b76445a6769 100644 --- a/src/vmware/azext_vmware/commands.py +++ b/src/vmware/azext_vmware/commands.py @@ -113,11 +113,11 @@ def load_command_table(self, _): g.custom_show_command('show', 'workload_network_dhcp_show') with self.command_group('vmware workload-network dhcp server', vmware_sdk, client_factory=cf_vmware) as g: - g.custom_command('create', 'workload_network_dhcp_server_create') # dhcpType mismatch between fiddler (SERVER) and console output (null) + g.custom_command('create', 'workload_network_dhcp_server_create') g.custom_command('delete', 'workload_network_dhcp_delete') - g.custom_command('update', 'workload_network_dhcp_server_update') # dhcpType mismatch between fiddler (SERVER) and console output (null) + g.custom_command('update', 'workload_network_dhcp_server_update') with self.command_group('vmware workload-network dhcp relay', vmware_sdk, client_factory=cf_vmware) as g: - g.custom_command('create', 'workload_network_dhcp_relay_create') # dhcpType mismatch between fiddler (SERVER) and console output (null) + g.custom_command('create', 'workload_network_dhcp_relay_create') g.custom_command('delete', 'workload_network_dhcp_delete') - g.custom_command('update', 'workload_network_dhcp_relay_update') # dhcpType mismatch between fiddler (SERVER) and console output (null) + g.custom_command('update', 'workload_network_dhcp_relay_update') From 775dbb069460ea83407a291347e3245bb7dcdfb4 Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Thu, 9 Sep 2021 10:29:33 -0500 Subject: [PATCH 04/34] updated error type for server_messages validation --- src/vmware/azext_vmware/_validators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vmware/azext_vmware/_validators.py b/src/vmware/azext_vmware/_validators.py index 99f004549c8..59f988db5fb 100644 --- a/src/vmware/azext_vmware/_validators.py +++ b/src/vmware/azext_vmware/_validators.py @@ -4,7 +4,7 @@ # -------------------------------------------------------------------------------------------- # pylint: disable=line-too-long -from knack.util import CLIError +from azure.cli.core.azclierror import InvalidArgumentValueError def example_name_or_id_validator(cmd, namespace): @@ -26,4 +26,4 @@ def example_name_or_id_validator(cmd, namespace): def server_addresses_length(namespace): if isinstance(namespace.server_addresses, list): if len(namespace.server_addresses) > 3: - raise CLIError("Enter a maximum of 3 DHCP relay addresses") + raise InvalidArgumentValueError("Enter a maximum of 3 DHCP relay addresses") From 38f86c9f8cefad93a0c8298401f014b76b99e8a9 Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Thu, 9 Sep 2021 10:35:58 -0500 Subject: [PATCH 05/34] removed comments and styling --- src/vmware/azext_vmware/custom.py | 4 ---- src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index 1b5602bd8c4..1c4f6239996 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -333,7 +333,6 @@ def script_execution_logs(client: AVSClient, resource_group_name, private_cloud, def workload_network_dhcp_server_create(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str, display_name=None, revision=None, server_address=None, lease_time=None): from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDhcpServer - # don't need dhcpType='SERVER' because dhcpType is discriminator for WorkloadNetworkDhcpServer? if display_name is not None and revision is not None and server_address is not None and lease_time is not None: properties = WorkloadNetworkDhcpServer(display_name=display_name, revision=revision, server_address=server_address, lease_time=lease_time) return client.workload_networks.begin_create_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) @@ -342,7 +341,6 @@ def workload_network_dhcp_server_create(client: AVSClient, resource_group_name, def workload_network_dhcp_relay_create(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str, display_name=None, revision=None, server_addresses=None): from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDhcpRelay - # don't need dhcpType='SERVER' because dhcpType is discriminator for WorkloadNetworkDhcpRelay? if display_name is not None and revision is not None and server_addresses is not None: properties = WorkloadNetworkDhcpRelay(display_name=display_name, revision=revision, server_addresses=server_addresses) return client.workload_networks.begin_create_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) @@ -351,7 +349,6 @@ def workload_network_dhcp_relay_create(client: AVSClient, resource_group_name, p def workload_network_dhcp_server_update(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str, display_name=None, revision=None, server_address=None, lease_time=None): from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDhcpServer - # don't need dhcpType='SERVER' because dhcpType is discriminator for WorkloadNetworkDhcpServer? if display_name is not None and revision is not None and server_address is not None and lease_time is not None: properties = WorkloadNetworkDhcpServer(display_name=display_name, revision=revision, server_address=server_address, lease_time=lease_time) return client.workload_networks.begin_update_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) @@ -360,7 +357,6 @@ def workload_network_dhcp_server_update(client: AVSClient, resource_group_name, def workload_network_dhcp_relay_update(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str, display_name=None, revision=None, server_addresses=None): from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDhcpRelay - # don't need dhcpType='SERVER' because dhcpType is discriminator for WorkloadNetworkDhcpRelay? if display_name is not None and revision is not None and server_addresses is not None: properties = WorkloadNetworkDhcpRelay(display_name=display_name, revision=revision, server_addresses=server_addresses) return client.workload_networks.begin_update_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) diff --git a/src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py b/src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py index 419862390bb..424bf1e66b7 100644 --- a/src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py @@ -47,4 +47,4 @@ def test_vmware_dhcp(self): self.assertEqual(len(dhcpServerDelete), 0) dhcpServerUpdate = self.cmd('az vmware workload-network dhcp server update --resource-group {rg} --private-cloud {privatecloud} --dhcp-id {dhcp_id} --display-name {display_name} --revision {revision} --server-address {server_address} --lease-time {lease_time}').get_output_in_json() - self.assertEqual(dhcpServerUpdate['name'], 'dhcp1') \ No newline at end of file + self.assertEqual(dhcpServerUpdate['name'], 'dhcp1') From 31d213c87c615df9a45c954de9dc74bbf4068601 Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Fri, 10 Sep 2021 13:50:41 -0500 Subject: [PATCH 06/34] added dns-server commands --- src/vmware/azext_vmware/_help.py | 47 ++++ src/vmware/azext_vmware/_params.py | 10 + src/vmware/azext_vmware/commands.py | 7 + src/vmware/azext_vmware/custom.py | 24 ++ .../latest/recordings/test_vmware_dhcp.yaml | 214 ++++++++++++++++-- .../tests/latest/test_dhcp_scenario.py | 23 +- 6 files changed, 304 insertions(+), 21 deletions(-) diff --git a/src/vmware/azext_vmware/_help.py b/src/vmware/azext_vmware/_help.py index a8cd0aa00a8..2e04b36b781 100644 --- a/src/vmware/azext_vmware/_help.py +++ b/src/vmware/azext_vmware/_help.py @@ -575,3 +575,50 @@ - name: Create or update dhcp by id in a workload network. text: az vmware workload-network dhcp server update --resource-group group1 --private-cloud cloud1 --dhcp-id dhcp1 --display-name dhcpConfigurations1 --revision 1 --server-address 40.1.5.1/24 --lease-time 86400 """ + + +helps['vmware workload-network dns-service'] = """ + type: group + short-summary: Commands to manage a DNS Service workload-network. +""" + + +helps['vmware workload-network dns-service list'] = """ + type: command + short-summary: List of DNS services in a private cloud workload network. + examples: + - name: List of DNS services in a workload network. + text: az vmware workload-network dns-service list --resource-group group1 --private-cloud cloud1 +""" + +helps['vmware workload-network dns-service show'] = """ + type: command + short-summary: Get a DNS service by id in a private cloud workload network. + examples: + - name: Get a DNS service by id in a workload network. + text: az vmware workload-network dns-service show --resource-group group1 --private-cloud cloud1 --dns-service-id dnsService1 +""" + +helps['vmware workload-network dns-service create'] = """ + type: command + short-summary: Create a DNS service by id in a private cloud workload network. + examples: + - name: Create a DNS service by id in a workload network. + text: az vmware workload-network dns-service create --resource-group group1 --private-cloud cloud1 --dns-service-id dnsService1 --display-name dnsService1 --dns-service-ip 5.5.5.5 --default-dns-zone defaultDnsZone1 --fqdn-zones fqdnZone1 --log-level INFO --revision 1 +""" + +helps['vmware workload-network dns-service update'] = """ + type: command + short-summary: Create or update a DNS service by id in a private cloud workload network. + examples: + - name: Create or update a DNS service by id in a workload network. + text: az vmware workload-network dns-service update --resource-group group1 --private-cloud cloud1 --dns-service-id dnsService1 --display-name dnsService1 --dns-service-ip 5.5.5.5 --default-dns-zone defaultDnsZone1 --fqdn-zones fqdnZone1 --log-level INFO --revision 1 +""" + +helps['vmware workload-network dns-service delete'] = """ + type: command + short-summary: Delete a DNS service by id in a private cloud workload network. + examples: + - name: Delete a DNS service by id in a workload network. + text: az vmware workload-network dns-service delete --resource-group group1 --private-cloud cloud1 --dns-service-id dnsService1 +""" diff --git a/src/vmware/azext_vmware/_params.py b/src/vmware/azext_vmware/_params.py index 7104ca17c30..15fa32d08ea 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -6,6 +6,7 @@ from azext_vmware.action import ScriptExecutionNamedOutputAction, ScriptExecutionParameterAction +from azure.cli.core.commands.parameters import get_enum_type from ._validators import server_addresses_length @@ -147,3 +148,12 @@ def load_arguments(self, _): with self.argument_context('vmware workload-network dhcp relay') as c: c.argument('server_addresses', nargs='+', validator=server_addresses_length, help='DHCP Relay Addresses. Max 3.') + + with self.argument_context('vmware workload-network dns-service') as c: + c.argument('dns_service_id', help="NSX DNS Service identifier. Generally the same as the DNS Service's display name.") + c.argument('display_name', help='Display name of the DNS Service.') + c.argument('dns_service_ip', help='DNS service IP of the DNS Service.') + c.argument('default_dns_zone', help='Default DNS zone of the DNS Service.') + c.argument('fqdn_zones', nargs='+', help='FQDN zones of the DNS Service.') + c.argument('log_level', arg_type=get_enum_type(["DEBUG", "INFO", "WARNING", "ERROR", "FATAL"]), help='DNS Service log level. Possible values include: "DEBUG", "INFO", "WARNING", "ERROR", "FATAL".') + c.argument('revision', help='NSX revision number.') diff --git a/src/vmware/azext_vmware/commands.py b/src/vmware/azext_vmware/commands.py index b76445a6769..e6a531e9920 100644 --- a/src/vmware/azext_vmware/commands.py +++ b/src/vmware/azext_vmware/commands.py @@ -121,3 +121,10 @@ def load_command_table(self, _): g.custom_command('create', 'workload_network_dhcp_relay_create') g.custom_command('delete', 'workload_network_dhcp_delete') g.custom_command('update', 'workload_network_dhcp_relay_update') + + with self.command_group('vmware workload-network dns-service', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('list', 'workload_network_dns_services_list') + g.custom_command('show', 'workload_network_dns_services_get') + g.custom_command('create', 'workload_network_dns_services_create') + g.custom_command('update', 'workload_network_dns_services_update') + g.custom_command('delete', 'workload_network_dns_services_delete') diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index 1c4f6239996..762a104af26 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -373,3 +373,27 @@ def workload_network_dhcp_list(client: AVSClient, resource_group_name, private_c def workload_network_dhcp_show(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str): return client.workload_networks.get_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id) + + +def workload_network_dns_services_list(client: AVSClient, resource_group_name, private_cloud): + return client.workload_networks.list_dns_services(resource_group_name=resource_group_name, private_cloud_name=private_cloud) + + +def workload_network_dns_services_get(client: AVSClient, resource_group_name, private_cloud, dns_service_id): + return client.workload_networks.get_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service_id) + + +def workload_network_dns_services_create(client: AVSClient, resource_group_name, private_cloud, dns_service_id, display_name, dns_service_ip, default_dns_zone, fqdn_zones, log_level, revision): + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDnsService + properties = WorkloadNetworkDnsService(display_name=display_name, dns_service_ip=dns_service_ip, default_dns_zone=default_dns_zone, log_level=log_level, revision=revision, fqdn_zones=fqdn_zones) + return client.workload_networks.begin_create_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service_id, workload_network_dns_service=properties) + + +def workload_network_dns_services_update(client: AVSClient, resource_group_name, private_cloud, dns_service_id, display_name, dns_service_ip, default_dns_zone, fqdn_zones, log_level, revision): + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDnsService + properties = WorkloadNetworkDnsService(display_name=display_name, dns_service_ip=dns_service_ip, default_dns_zone=default_dns_zone, fqdn_zones=fqdn_zones, log_level=log_level, revision=revision) + return client.workload_networks.begin_update_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service_id, workload_network_dns_service=properties) + + +def workload_network_dns_services_delete(client: AVSClient, resource_group_name, private_cloud, dns_service_id): + return client.workload_networks.begin_delete_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service_id) diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_dhcp.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_dhcp.yaml index 2af343f0b3a..05734329026 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_dhcp.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_dhcp.yaml @@ -25,7 +25,7 @@ interactions: content-type: - application/json date: - - Wed, 08 Sep 2021 20:47:42 GMT + - Fri, 10 Sep 2021 18:20:25 GMT server: - Rocket status: @@ -57,15 +57,15 @@ interactions: content-type: - application/json date: - - Wed, 08 Sep 2021 20:47:46 GMT + - Fri, 10 Sep 2021 18:20:30 GMT server: - Rocket status: code: 200 message: OK - request: - body: '{"properties": {"dhcpType": "RELAY", "displayName": "dhcpConfigurations1", - "revision": 1, "serverAddresses": ["40.1.5.1/24"]}}' + body: '{"properties": {"dhcpType": "RELAY", "displayName": "dnsService1", "revision": + 1, "serverAddresses": ["40.1.5.1/24"]}}' headers: Accept: - application/json @@ -76,7 +76,7 @@ interactions: Connection: - keep-alive Content-Length: - - '126' + - '118' Content-Type: - application/json ParameterSetName: @@ -94,7 +94,7 @@ interactions: content-type: - application/json date: - - Wed, 08 Sep 2021 20:47:50 GMT + - Fri, 10 Sep 2021 18:20:34 GMT server: - Rocket status: @@ -126,15 +126,15 @@ interactions: content-length: - '0' date: - - Wed, 08 Sep 2021 20:47:55 GMT + - Fri, 10 Sep 2021 18:20:38 GMT server: - Rocket status: code: 200 message: OK - request: - body: '{"properties": {"dhcpType": "RELAY", "displayName": "dhcpConfigurations1", - "revision": 1, "serverAddresses": ["40.1.5.1/24"]}}' + body: '{"properties": {"dhcpType": "RELAY", "displayName": "dnsService1", "revision": + 1, "serverAddresses": ["40.1.5.1/24"]}}' headers: Accept: - application/json @@ -145,7 +145,7 @@ interactions: Connection: - keep-alive Content-Length: - - '126' + - '118' Content-Type: - application/json ParameterSetName: @@ -163,15 +163,15 @@ interactions: content-type: - application/json date: - - Wed, 08 Sep 2021 20:47:59 GMT + - Fri, 10 Sep 2021 18:20:42 GMT server: - Rocket status: code: 200 message: OK - request: - body: '{"properties": {"dhcpType": "SERVER", "displayName": "dhcpConfigurations1", - "revision": 1, "serverAddress": "40.1.5.1/24", "leaseTime": 86400}}' + body: '{"properties": {"dhcpType": "SERVER", "displayName": "dnsService1", "revision": + 1, "serverAddress": "40.1.5.1/24", "leaseTime": 86400}}' headers: Accept: - application/json @@ -182,7 +182,7 @@ interactions: Connection: - keep-alive Content-Length: - - '143' + - '135' Content-Type: - application/json ParameterSetName: @@ -201,7 +201,7 @@ interactions: content-type: - application/json date: - - Wed, 08 Sep 2021 20:48:03 GMT + - Fri, 10 Sep 2021 18:20:47 GMT server: - Rocket status: @@ -233,15 +233,15 @@ interactions: content-length: - '0' date: - - Wed, 08 Sep 2021 20:48:07 GMT + - Fri, 10 Sep 2021 18:20:51 GMT server: - Rocket status: code: 200 message: OK - request: - body: '{"properties": {"dhcpType": "SERVER", "displayName": "dhcpConfigurations1", - "revision": 1, "serverAddress": "40.1.5.1/24", "leaseTime": 86400}}' + body: '{"properties": {"dhcpType": "SERVER", "displayName": "dnsService1", "revision": + 1, "serverAddress": "40.1.5.1/24", "leaseTime": 86400}}' headers: Accept: - application/json @@ -252,7 +252,7 @@ interactions: Connection: - keep-alive Content-Length: - - '143' + - '135' Content-Type: - application/json ParameterSetName: @@ -271,7 +271,181 @@ interactions: content-type: - application/json date: - - Wed, 08 Sep 2021 20:48:11 GMT + - Fri, 10 Sep 2021 18:20:55 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-service list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices?api-version=2021-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}]}' + headers: + content-length: + - '438' + content-type: + - application/json + date: + - Fri, 10 Sep 2021 18:20:59 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-service show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud --dns-service-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' + headers: + content-length: + - '426' + content-type: + - application/json + date: + - Fri, 10 Sep 2021 18:21:03 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "dnsService1", "dnsServiceIp": "5.5.5.5", + "defaultDnsZone": "defaultDnsZone1", "fqdnZones": ["fqdnZone1"], "logLevel": + "INFO", "revision": 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-service create + Connection: + - keep-alive + Content-Length: + - '173' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --dns-service-id --display-name --dns-service-ip + --default-dns-zone --fqdn-zones --log-level --revision + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"dnsService1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' + headers: + content-length: + - '423' + content-type: + - application/json + date: + - Fri, 10 Sep 2021 18:21:08 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "dnsService1", "dnsServiceIp": "5.5.5.5", + "defaultDnsZone": "defaultDnsZone1", "fqdnZones": ["fqdnZone1"], "logLevel": + "INFO", "revision": 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-service update + Connection: + - keep-alive + Content-Length: + - '173' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --dns-service-id --display-name --dns-service-ip + --default-dns-zone --fqdn-zones --log-level --revision + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PATCH + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"dnsService1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' + headers: + content-length: + - '423' + content-type: + - application/json + date: + - Fri, 10 Sep 2021 18:21:12 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-service delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --private-cloud --dns-service-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: DELETE + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Fri, 10 Sep 2021 18:21:16 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py b/src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py index 424bf1e66b7..ea260ebdb84 100644 --- a/src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py @@ -22,7 +22,13 @@ def test_vmware_dhcp(self): 'revision': '1', 'server_address': '40.1.5.1/24', 'lease_time': '86400', - 'server_addresses': '40.1.5.1/24' + 'server_addresses': '40.1.5.1/24', + 'dns_service_id': 'dnsService1', + 'display_name': 'dnsService1', + 'dns_service_ip': '5.5.5.5', + 'default_dns_zone': 'defaultDnsZone1', + 'fqdn_zones': 'fqdnZone1', + 'log_level': 'INFO' }) count = len(self.cmd('az vmware workload-network dhcp list --resource-group {rg} --private-cloud {privatecloud}').get_output_in_json()) @@ -48,3 +54,18 @@ def test_vmware_dhcp(self): dhcpServerUpdate = self.cmd('az vmware workload-network dhcp server update --resource-group {rg} --private-cloud {privatecloud} --dhcp-id {dhcp_id} --display-name {display_name} --revision {revision} --server-address {server_address} --lease-time {lease_time}').get_output_in_json() self.assertEqual(dhcpServerUpdate['name'], 'dhcp1') + + dnsServerList = self.cmd('az vmware workload-network dns-service list --resource-group {rg} --private-cloud {privatecloud}').get_output_in_json() + self.assertEqual(len(dnsServerList), 1, 'count expected to be 1') + + dnsServerGet = self.cmd('az vmware workload-network dns-service show --resource-group {rg} --private-cloud {privatecloud} --dns-service-id {dns_service_id}').get_output_in_json() + self.assertEqual(dnsServerGet['name'], 'portMirroring1') + + dnsServerCreate = self.cmd('az vmware workload-network dns-service create --resource-group {rg} --private-cloud {privatecloud} --dns-service-id {dns_service_id} --display-name {display_name} --dns-service-ip {dns_service_ip} --default-dns-zone {default_dns_zone} --fqdn-zones {fqdn_zones} --log-level {log_level} --revision {revision}').get_output_in_json() + self.assertEqual(dnsServerCreate['name'], 'dnsService1') + + dnsServerUpdate = self.cmd('az vmware workload-network dns-service update --resource-group {rg} --private-cloud {privatecloud} --dns-service-id {dns_service_id} --display-name {display_name} --dns-service-ip {dns_service_ip} --default-dns-zone {default_dns_zone} --fqdn-zones {fqdn_zones} --log-level {log_level} --revision {revision}').get_output_in_json() + self.assertEqual(dnsServerUpdate['name'], 'dnsService1') + + dnsServerDelete = self.cmd('az vmware workload-network dns-service delete --resource-group {rg} --private-cloud {privatecloud} --dns-service-id {dns_service_id}').output + self.assertEqual(len(dnsServerDelete), 0) From abdeca025b9b50c0c70e3d7b826462ba4d4e4ee5 Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Tue, 14 Sep 2021 12:32:55 -0500 Subject: [PATCH 07/34] added dns-zone commands --- src/vmware/azext_vmware/_help.py | 51 +++++++++++++++++++++++++++++ src/vmware/azext_vmware/_params.py | 9 +++++ src/vmware/azext_vmware/commands.py | 9 ++++- src/vmware/azext_vmware/custom.py | 32 +++++++++++++++--- 4 files changed, 96 insertions(+), 5 deletions(-) diff --git a/src/vmware/azext_vmware/_help.py b/src/vmware/azext_vmware/_help.py index 2e04b36b781..531884c3b28 100644 --- a/src/vmware/azext_vmware/_help.py +++ b/src/vmware/azext_vmware/_help.py @@ -622,3 +622,54 @@ - name: Delete a DNS service by id in a workload network. text: az vmware workload-network dns-service delete --resource-group group1 --private-cloud cloud1 --dns-service-id dnsService1 """ + +helps['vmware workload-network dns-zone'] = """ + type: group + short-summary: Commands to manage a DNS Zone workload-network. +""" + +# list_dns_zones +# get_dns_zone +# begin_create_dns_zone +# begin_update_dns_zone +# begin_delete_dns_zone + +helps['vmware workload-network dns-zone list'] = """ + type: command + short-summary: List of DNS zones in a private cloud workload network. + examples: + - name: List of DNS zones in a workload network. + text: az vmware workload-network dns-zone list --resource-group group1 --private-cloud cloud1 +""" + +helps['vmware workload-network dns-zone show'] = """ + type: command + short-summary: Get a DNS zone by id in a private cloud workload network. + examples: + - name: Get a DNS zone by id in a workload network. + text: az vmware workload-network dns-zone show --resource-group group1 --private-cloud cloud1 --dns-zone-id dnsZone1 +""" + +helps['vmware workload-network dns-zone create'] = """ + type: command + short-summary: Create a DNS zone by id in a private cloud workload network. + examples: + - name: Create a DNS zone by id in a workload network. + text: az vmware workload-network dns-zone create --resource-group group1 --private-cloud cloud1 --dns-zone-id dnsZone1 --display-name dnsZone1 --domain domain1 --dns-server-ips 1.1.1.1 --source-ip 8.8.8.8 --dns-services 1 --revision 1 +""" + +helps['vmware workload-network dns-zone update'] = """ + type: command + short-summary: Create or update a DNS zone by id in a private cloud workload network. + examples: + - name: Create or update a DNS zone by id in a workload network. + text: az vmware workload-network dns-zone update --resource-group group1 --private-cloud cloud1 --dns-zone-id dnsZone1 --display-name dnsZone1 --domain domain1 --dns-server-ips 1.1.1.1 --source-ip 8.8.8.8 --dns-services 1 --revision 1 +""" + +helps['vmware workload-network dns-zone delete'] = """ + type: command + short-summary: Delete a DNS zone by id in a private cloud workload network. + examples: + - name: Delete a DNS zone by id in a workload network. + text: az vmware workload-network dns-zone delete --resource-group group1 --private-cloud cloud1 --dns-zone-id dnsZone1 +""" diff --git a/src/vmware/azext_vmware/_params.py b/src/vmware/azext_vmware/_params.py index 15fa32d08ea..3f652c0476b 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -157,3 +157,12 @@ def load_arguments(self, _): c.argument('fqdn_zones', nargs='+', help='FQDN zones of the DNS Service.') c.argument('log_level', arg_type=get_enum_type(["DEBUG", "INFO", "WARNING", "ERROR", "FATAL"]), help='DNS Service log level. Possible values include: "DEBUG", "INFO", "WARNING", "ERROR", "FATAL".') c.argument('revision', help='NSX revision number.') + + with self.argument_context('vmware workload-network dns-zone') as c: + c.argument('dns_zone_id', help="NSX DNS Zone identifier. Generally the same as the DNS Zone's display name.") + c.argument('display_name', help='Display name of the DNS Zone.') + c.argument('domain', nargs='+', help='Domain names of the DNS Zone.') + c.argument('dns_server_ips', nargs='+', help='DNS Server IP array of the DNS Zone.') + c.argument('source_ip', help='Source IP of the DNS Zone.') + c.argument('dns_services', help='Number of DNS Services using the DNS zone.') + c.argument('revision', help='NSX revision number.') diff --git a/src/vmware/azext_vmware/commands.py b/src/vmware/azext_vmware/commands.py index e6a531e9920..418e3bab894 100644 --- a/src/vmware/azext_vmware/commands.py +++ b/src/vmware/azext_vmware/commands.py @@ -124,7 +124,14 @@ def load_command_table(self, _): with self.command_group('vmware workload-network dns-service', vmware_sdk, client_factory=cf_vmware) as g: g.custom_command('list', 'workload_network_dns_services_list') - g.custom_command('show', 'workload_network_dns_services_get') + g.custom_show_command('show', 'workload_network_dns_services_get') g.custom_command('create', 'workload_network_dns_services_create') g.custom_command('update', 'workload_network_dns_services_update') g.custom_command('delete', 'workload_network_dns_services_delete') + + with self.command_group('vmware workload-network dns-zone', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('list', 'workload_network_dns_zone_list') + g.custom_show_command('show', 'workload_network_dns_zone_get') + g.custom_command('create', 'workload_network_dns_zone_create') + g.custom_command('update', 'workload_network_dns_zone_update') + g.custom_command('delete', 'workload_network_dns_zone_delete') diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index 762a104af26..43e7449b336 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -385,15 +385,39 @@ def workload_network_dns_services_get(client: AVSClient, resource_group_name, pr def workload_network_dns_services_create(client: AVSClient, resource_group_name, private_cloud, dns_service_id, display_name, dns_service_ip, default_dns_zone, fqdn_zones, log_level, revision): from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDnsService - properties = WorkloadNetworkDnsService(display_name=display_name, dns_service_ip=dns_service_ip, default_dns_zone=default_dns_zone, log_level=log_level, revision=revision, fqdn_zones=fqdn_zones) - return client.workload_networks.begin_create_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service_id, workload_network_dns_service=properties) + prop = WorkloadNetworkDnsService(display_name=display_name, dns_service_ip=dns_service_ip, default_dns_zone=default_dns_zone, log_level=log_level, revision=revision, fqdn_zones=fqdn_zones) + return client.workload_networks.begin_create_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service_id, workload_network_dns_service=prop) def workload_network_dns_services_update(client: AVSClient, resource_group_name, private_cloud, dns_service_id, display_name, dns_service_ip, default_dns_zone, fqdn_zones, log_level, revision): from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDnsService - properties = WorkloadNetworkDnsService(display_name=display_name, dns_service_ip=dns_service_ip, default_dns_zone=default_dns_zone, fqdn_zones=fqdn_zones, log_level=log_level, revision=revision) - return client.workload_networks.begin_update_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service_id, workload_network_dns_service=properties) + prop = WorkloadNetworkDnsService(display_name=display_name, dns_service_ip=dns_service_ip, default_dns_zone=default_dns_zone, fqdn_zones=fqdn_zones, log_level=log_level, revision=revision) + return client.workload_networks.begin_update_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service_id, workload_network_dns_service=prop) def workload_network_dns_services_delete(client: AVSClient, resource_group_name, private_cloud, dns_service_id): return client.workload_networks.begin_delete_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service_id) + + +def workload_network_dns_zone_list(client: AVSClient, resource_group_name, private_cloud): + return client.workload_networks.list_dns_zones(resource_group_name=resource_group_name, private_cloud_name=private_cloud) + + +def workload_network_dns_zone_get(client: AVSClient, resource_group_name, private_cloud, dns_zone_id): + return client.workload_networks.get_dns_zone(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_zone_id=dns_zone_id) + + +def workload_network_dns_zone_create(client: AVSClient, resource_group_name, private_cloud, dns_zone_id, display_name=None, domain=None, dns_server_ips=None, source_ip=None, dns_services=None, revision=None): + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDnsZone + prop = WorkloadNetworkDnsZone(display_name=display_name, domain=domain, dns_server_ips=dns_server_ips, source_ip=source_ip, dns_services=dns_services, revistion=revision) + return client.workload_networks.begin_create_dns_zone(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_zone_id=dns_zone_id, workload_network_dns_zone=prop) + + +def workload_network_dns_zone_update(client: AVSClient, resource_group_name, private_cloud, dns_zone_id, display_name=None, domain=None, dns_server_ips=None, source_ip=None, dns_services=None, revision=None): + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDnsZone + prop = WorkloadNetworkDnsZone(display_name=display_name, domain=domain, dns_server_ips=dns_server_ips, source_ip=source_ip, dns_services=dns_services, revistion=revision) + return client.workload_networks.begin_update_dns_zone(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_zone_id=dns_zone_id, workload_network_dns_zone=prop) + + +def workload_network_dns_zone_delete(client: AVSClient, resource_group_name, private_cloud, dns_zone_id): + return client.workload_networks.begin_delete_dns_zone(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_zone_id=dns_zone_id) From 834d297721cd05643864ab91da347b920c28f2b0 Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Tue, 14 Sep 2021 12:56:34 -0500 Subject: [PATCH 08/34] allow dhcp server and relay calls with None parameters --- src/vmware/azext_vmware/custom.py | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index 1c4f6239996..ea108afb9f2 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -333,34 +333,26 @@ def script_execution_logs(client: AVSClient, resource_group_name, private_cloud, def workload_network_dhcp_server_create(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str, display_name=None, revision=None, server_address=None, lease_time=None): from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDhcpServer - if display_name is not None and revision is not None and server_address is not None and lease_time is not None: - properties = WorkloadNetworkDhcpServer(display_name=display_name, revision=revision, server_address=server_address, lease_time=lease_time) - return client.workload_networks.begin_create_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) - return client.workload_networks.begin_create_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id) + properties = WorkloadNetworkDhcpServer(display_name=display_name, revision=revision, server_address=server_address, lease_time=lease_time) + return client.workload_networks.begin_create_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) def workload_network_dhcp_relay_create(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str, display_name=None, revision=None, server_addresses=None): from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDhcpRelay - if display_name is not None and revision is not None and server_addresses is not None: - properties = WorkloadNetworkDhcpRelay(display_name=display_name, revision=revision, server_addresses=server_addresses) - return client.workload_networks.begin_create_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) - return client.workload_networks.begin_create_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id) + properties = WorkloadNetworkDhcpRelay(display_name=display_name, revision=revision, server_addresses=server_addresses) + return client.workload_networks.begin_create_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) def workload_network_dhcp_server_update(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str, display_name=None, revision=None, server_address=None, lease_time=None): from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDhcpServer - if display_name is not None and revision is not None and server_address is not None and lease_time is not None: - properties = WorkloadNetworkDhcpServer(display_name=display_name, revision=revision, server_address=server_address, lease_time=lease_time) - return client.workload_networks.begin_update_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) - return client.workload_networks.begin_update_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id) + properties = WorkloadNetworkDhcpServer(display_name=display_name, revision=revision, server_address=server_address, lease_time=lease_time) + return client.workload_networks.begin_update_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) def workload_network_dhcp_relay_update(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str, display_name=None, revision=None, server_addresses=None): from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDhcpRelay - if display_name is not None and revision is not None and server_addresses is not None: - properties = WorkloadNetworkDhcpRelay(display_name=display_name, revision=revision, server_addresses=server_addresses) - return client.workload_networks.begin_update_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) - return client.workload_networks.begin_update_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id) + properties = WorkloadNetworkDhcpRelay(display_name=display_name, revision=revision, server_addresses=server_addresses) + return client.workload_networks.begin_update_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) def workload_network_dhcp_delete(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str): From 99b457408ebf995e0a9925575fe7e771f6f99fb4 Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Tue, 14 Sep 2021 16:04:23 -0500 Subject: [PATCH 09/34] added workload_network dns-zone commands --- src/vmware/azext_vmware/_help.py | 6 - src/vmware/azext_vmware/custom.py | 4 +- .../latest/recordings/test_vmware_dhcp.yaml | 230 +++++++++++++++--- .../tests/latest/test_dhcp_scenario.py | 45 +++- 4 files changed, 235 insertions(+), 50 deletions(-) diff --git a/src/vmware/azext_vmware/_help.py b/src/vmware/azext_vmware/_help.py index 531884c3b28..8f3a7fafc9d 100644 --- a/src/vmware/azext_vmware/_help.py +++ b/src/vmware/azext_vmware/_help.py @@ -628,12 +628,6 @@ short-summary: Commands to manage a DNS Zone workload-network. """ -# list_dns_zones -# get_dns_zone -# begin_create_dns_zone -# begin_update_dns_zone -# begin_delete_dns_zone - helps['vmware workload-network dns-zone list'] = """ type: command short-summary: List of DNS zones in a private cloud workload network. diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index 587f1c53ac3..606fc543235 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -375,13 +375,13 @@ def workload_network_dns_services_get(client: AVSClient, resource_group_name, pr return client.workload_networks.get_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service_id) -def workload_network_dns_services_create(client: AVSClient, resource_group_name, private_cloud, dns_service_id, display_name, dns_service_ip, default_dns_zone, fqdn_zones, log_level, revision): +def workload_network_dns_services_create(client: AVSClient, resource_group_name, private_cloud, dns_service_id, display_name=None, dns_service_ip=None, default_dns_zone=None, fqdn_zones=None, log_level=None, revision=None): from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDnsService prop = WorkloadNetworkDnsService(display_name=display_name, dns_service_ip=dns_service_ip, default_dns_zone=default_dns_zone, log_level=log_level, revision=revision, fqdn_zones=fqdn_zones) return client.workload_networks.begin_create_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service_id, workload_network_dns_service=prop) -def workload_network_dns_services_update(client: AVSClient, resource_group_name, private_cloud, dns_service_id, display_name, dns_service_ip, default_dns_zone, fqdn_zones, log_level, revision): +def workload_network_dns_services_update(client: AVSClient, resource_group_name, private_cloud, dns_service_id, display_name=None, dns_service_ip=None, default_dns_zone=None, fqdn_zones=None, log_level=None, revision=None): from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDnsService prop = WorkloadNetworkDnsService(display_name=display_name, dns_service_ip=dns_service_ip, default_dns_zone=default_dns_zone, fqdn_zones=fqdn_zones, log_level=log_level, revision=revision) return client.workload_networks.begin_update_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service_id, workload_network_dns_service=prop) diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_dhcp.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_dhcp.yaml index 05734329026..62706f10cd3 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_dhcp.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_dhcp.yaml @@ -25,7 +25,7 @@ interactions: content-type: - application/json date: - - Fri, 10 Sep 2021 18:20:25 GMT + - Tue, 14 Sep 2021 20:49:12 GMT server: - Rocket status: @@ -57,15 +57,15 @@ interactions: content-type: - application/json date: - - Fri, 10 Sep 2021 18:20:30 GMT + - Tue, 14 Sep 2021 20:49:16 GMT server: - Rocket status: code: 200 message: OK - request: - body: '{"properties": {"dhcpType": "RELAY", "displayName": "dnsService1", "revision": - 1, "serverAddresses": ["40.1.5.1/24"]}}' + body: '{"properties": {"dhcpType": "RELAY", "displayName": "testDisplayName", + "revision": 1, "serverAddresses": ["40.1.5.1/24"]}}' headers: Accept: - application/json @@ -76,7 +76,7 @@ interactions: Connection: - keep-alive Content-Length: - - '118' + - '122' Content-Type: - application/json ParameterSetName: @@ -94,7 +94,7 @@ interactions: content-type: - application/json date: - - Fri, 10 Sep 2021 18:20:34 GMT + - Tue, 14 Sep 2021 20:49:20 GMT server: - Rocket status: @@ -126,15 +126,15 @@ interactions: content-length: - '0' date: - - Fri, 10 Sep 2021 18:20:38 GMT + - Tue, 14 Sep 2021 20:49:25 GMT server: - Rocket status: code: 200 message: OK - request: - body: '{"properties": {"dhcpType": "RELAY", "displayName": "dnsService1", "revision": - 1, "serverAddresses": ["40.1.5.1/24"]}}' + body: '{"properties": {"dhcpType": "RELAY", "displayName": "testDisplayName", + "revision": 1, "serverAddresses": ["40.1.5.1/24"]}}' headers: Accept: - application/json @@ -145,7 +145,7 @@ interactions: Connection: - keep-alive Content-Length: - - '118' + - '122' Content-Type: - application/json ParameterSetName: @@ -163,15 +163,15 @@ interactions: content-type: - application/json date: - - Fri, 10 Sep 2021 18:20:42 GMT + - Tue, 14 Sep 2021 20:49:29 GMT server: - Rocket status: code: 200 message: OK - request: - body: '{"properties": {"dhcpType": "SERVER", "displayName": "dnsService1", "revision": - 1, "serverAddress": "40.1.5.1/24", "leaseTime": 86400}}' + body: '{"properties": {"dhcpType": "SERVER", "displayName": "testDisplayName", + "revision": 1, "serverAddress": "40.1.5.1/24", "leaseTime": 86400}}' headers: Accept: - application/json @@ -182,7 +182,7 @@ interactions: Connection: - keep-alive Content-Length: - - '135' + - '139' Content-Type: - application/json ParameterSetName: @@ -201,7 +201,7 @@ interactions: content-type: - application/json date: - - Fri, 10 Sep 2021 18:20:47 GMT + - Tue, 14 Sep 2021 20:49:33 GMT server: - Rocket status: @@ -233,15 +233,15 @@ interactions: content-length: - '0' date: - - Fri, 10 Sep 2021 18:20:51 GMT + - Tue, 14 Sep 2021 20:49:37 GMT server: - Rocket status: code: 200 message: OK - request: - body: '{"properties": {"dhcpType": "SERVER", "displayName": "dnsService1", "revision": - 1, "serverAddress": "40.1.5.1/24", "leaseTime": 86400}}' + body: '{"properties": {"dhcpType": "SERVER", "displayName": "testDisplayName", + "revision": 1, "serverAddress": "40.1.5.1/24", "leaseTime": 86400}}' headers: Accept: - application/json @@ -252,7 +252,7 @@ interactions: Connection: - keep-alive Content-Length: - - '135' + - '139' Content-Type: - application/json ParameterSetName: @@ -271,7 +271,7 @@ interactions: content-type: - application/json date: - - Fri, 10 Sep 2021 18:20:55 GMT + - Tue, 14 Sep 2021 20:49:41 GMT server: - Rocket status: @@ -303,7 +303,7 @@ interactions: content-type: - application/json date: - - Fri, 10 Sep 2021 18:20:59 GMT + - Tue, 14 Sep 2021 20:49:46 GMT server: - Rocket status: @@ -335,14 +335,14 @@ interactions: content-type: - application/json date: - - Fri, 10 Sep 2021 18:21:03 GMT + - Tue, 14 Sep 2021 20:49:50 GMT server: - Rocket status: code: 200 message: OK - request: - body: '{"properties": {"displayName": "dnsService1", "dnsServiceIp": "5.5.5.5", + body: '{"properties": {"displayName": "testDisplayName", "dnsServiceIp": "5.5.5.5", "defaultDnsZone": "defaultDnsZone1", "fqdnZones": ["fqdnZone1"], "logLevel": "INFO", "revision": 1}}' headers: @@ -355,7 +355,7 @@ interactions: Connection: - keep-alive Content-Length: - - '173' + - '177' Content-Type: - application/json ParameterSetName: @@ -374,14 +374,14 @@ interactions: content-type: - application/json date: - - Fri, 10 Sep 2021 18:21:08 GMT + - Tue, 14 Sep 2021 20:49:54 GMT server: - Rocket status: code: 200 message: OK - request: - body: '{"properties": {"displayName": "dnsService1", "dnsServiceIp": "5.5.5.5", + body: '{"properties": {"displayName": "testDisplayName", "dnsServiceIp": "5.5.5.5", "defaultDnsZone": "defaultDnsZone1", "fqdnZones": ["fqdnZone1"], "logLevel": "INFO", "revision": 1}}' headers: @@ -394,7 +394,7 @@ interactions: Connection: - keep-alive Content-Length: - - '173' + - '177' Content-Type: - application/json ParameterSetName: @@ -413,7 +413,7 @@ interactions: content-type: - application/json date: - - Fri, 10 Sep 2021 18:21:12 GMT + - Tue, 14 Sep 2021 20:49:58 GMT server: - Rocket status: @@ -445,7 +445,179 @@ interactions: content-length: - '0' date: - - Fri, 10 Sep 2021 18:21:16 GMT + - Tue, 14 Sep 2021 20:50:02 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-zone list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones?api-version=2021-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}]}' + headers: + content-length: + - '367' + content-type: + - application/json + date: + - Tue, 14 Sep 2021 20:50:07 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-zone show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud --dns-zone-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' + headers: + content-length: + - '355' + content-type: + - application/json + date: + - Tue, 14 Sep 2021 20:50:11 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "testDisplayName", "domain": ["domain1"], + "dnsServerIps": ["1.1.1.1"], "sourceIp": "8.8.8.8", "dnsServices": 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-zone create + Connection: + - keep-alive + Content-Length: + - '143' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --dns-zone-id --display-name --domain --dns-server-ips + --source-ip --dns-services --revision + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"dnsZone1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' + headers: + content-length: + - '349' + content-type: + - application/json + date: + - Tue, 14 Sep 2021 20:50:15 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "testDisplayName", "domain": ["domain1"], + "dnsServerIps": ["1.1.1.1"], "sourceIp": "8.8.8.8", "dnsServices": 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-zone update + Connection: + - keep-alive + Content-Length: + - '143' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --dns-zone-id --display-name --domain --dns-server-ips + --source-ip --dns-services --revision + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PATCH + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"dnsZone1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' + headers: + content-length: + - '349' + content-type: + - application/json + date: + - Tue, 14 Sep 2021 20:50:19 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-zone delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --private-cloud --dns-zone-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: DELETE + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Tue, 14 Sep 2021 20:50:24 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py b/src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py index ea260ebdb84..b8736888903 100644 --- a/src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py @@ -18,17 +18,21 @@ def test_vmware_dhcp(self): self.kwargs.update({ 'privatecloud': 'cloud1', 'dhcp_id': 'dhcp1', - 'display_name': 'dhcpConfigurations1', + 'display_name': 'testDisplayName', 'revision': '1', 'server_address': '40.1.5.1/24', 'lease_time': '86400', 'server_addresses': '40.1.5.1/24', 'dns_service_id': 'dnsService1', - 'display_name': 'dnsService1', 'dns_service_ip': '5.5.5.5', 'default_dns_zone': 'defaultDnsZone1', 'fqdn_zones': 'fqdnZone1', - 'log_level': 'INFO' + 'log_level': 'INFO', + 'dns_zone_id': 'dnsZone1', + 'domain': 'domain1', + 'dns_server_ips': '1.1.1.1', + 'source_ip': '8.8.8.8', + 'dns_services': '1', }) count = len(self.cmd('az vmware workload-network dhcp list --resource-group {rg} --private-cloud {privatecloud}').get_output_in_json()) @@ -55,17 +59,32 @@ def test_vmware_dhcp(self): dhcpServerUpdate = self.cmd('az vmware workload-network dhcp server update --resource-group {rg} --private-cloud {privatecloud} --dhcp-id {dhcp_id} --display-name {display_name} --revision {revision} --server-address {server_address} --lease-time {lease_time}').get_output_in_json() self.assertEqual(dhcpServerUpdate['name'], 'dhcp1') - dnsServerList = self.cmd('az vmware workload-network dns-service list --resource-group {rg} --private-cloud {privatecloud}').get_output_in_json() - self.assertEqual(len(dnsServerList), 1, 'count expected to be 1') + dnsServiceList = self.cmd('az vmware workload-network dns-service list --resource-group {rg} --private-cloud {privatecloud}').get_output_in_json() + self.assertEqual(len(dnsServiceList), 1, 'count expected to be 1') - dnsServerGet = self.cmd('az vmware workload-network dns-service show --resource-group {rg} --private-cloud {privatecloud} --dns-service-id {dns_service_id}').get_output_in_json() - self.assertEqual(dnsServerGet['name'], 'portMirroring1') + dnsServiceGet = self.cmd('az vmware workload-network dns-service show --resource-group {rg} --private-cloud {privatecloud} --dns-service-id {dns_service_id}').get_output_in_json() + self.assertEqual(dnsServiceGet['name'], 'portMirroring1') - dnsServerCreate = self.cmd('az vmware workload-network dns-service create --resource-group {rg} --private-cloud {privatecloud} --dns-service-id {dns_service_id} --display-name {display_name} --dns-service-ip {dns_service_ip} --default-dns-zone {default_dns_zone} --fqdn-zones {fqdn_zones} --log-level {log_level} --revision {revision}').get_output_in_json() - self.assertEqual(dnsServerCreate['name'], 'dnsService1') + dnsServiceCreate = self.cmd('az vmware workload-network dns-service create --resource-group {rg} --private-cloud {privatecloud} --dns-service-id {dns_service_id} --display-name {display_name} --dns-service-ip {dns_service_ip} --default-dns-zone {default_dns_zone} --fqdn-zones {fqdn_zones} --log-level {log_level} --revision {revision}').get_output_in_json() + self.assertEqual(dnsServiceCreate['name'], 'dnsService1') - dnsServerUpdate = self.cmd('az vmware workload-network dns-service update --resource-group {rg} --private-cloud {privatecloud} --dns-service-id {dns_service_id} --display-name {display_name} --dns-service-ip {dns_service_ip} --default-dns-zone {default_dns_zone} --fqdn-zones {fqdn_zones} --log-level {log_level} --revision {revision}').get_output_in_json() - self.assertEqual(dnsServerUpdate['name'], 'dnsService1') + dnsServiceUpdate = self.cmd('az vmware workload-network dns-service update --resource-group {rg} --private-cloud {privatecloud} --dns-service-id {dns_service_id} --display-name {display_name} --dns-service-ip {dns_service_ip} --default-dns-zone {default_dns_zone} --fqdn-zones {fqdn_zones} --log-level {log_level} --revision {revision}').get_output_in_json() + self.assertEqual(dnsServiceUpdate['name'], 'dnsService1') - dnsServerDelete = self.cmd('az vmware workload-network dns-service delete --resource-group {rg} --private-cloud {privatecloud} --dns-service-id {dns_service_id}').output - self.assertEqual(len(dnsServerDelete), 0) + dnsServiceDelete = self.cmd('az vmware workload-network dns-service delete --resource-group {rg} --private-cloud {privatecloud} --dns-service-id {dns_service_id}').output + self.assertEqual(len(dnsServiceDelete), 0) + + dnsZoneList = self.cmd('az vmware workload-network dns-zone list --resource-group {rg} --private-cloud {privatecloud}').get_output_in_json() + self.assertEqual(len(dnsZoneList), 1, 'count expected to be 1') + + dnsZoneGet = self.cmd('az vmware workload-network dns-zone show --resource-group {rg} --private-cloud {privatecloud} --dns-zone-id {dns_zone_id}').get_output_in_json() + self.assertEqual(dnsZoneGet['name'], 'portMirroring1') + + dnsZoneCreate = self.cmd('az vmware workload-network dns-zone create --resource-group {rg} --private-cloud {privatecloud} --dns-zone-id {dns_zone_id} --display-name {display_name} --domain {domain} --dns-server-ips {dns_server_ips} --source-ip {source_ip} --dns-services {dns_services} --revision {revision}').get_output_in_json() + self.assertEqual(dnsZoneCreate['name'], 'dnsZone1') + + dnsZoneUpdate = self.cmd('az vmware workload-network dns-zone update --resource-group {rg} --private-cloud {privatecloud} --dns-zone-id {dns_zone_id} --display-name {display_name} --domain {domain} --dns-server-ips {dns_server_ips} --source-ip {source_ip} --dns-services {dns_services} --revision {revision}').get_output_in_json() + self.assertEqual(dnsZoneUpdate['name'], 'dnsZone1') + + dnsZoneDelete = self.cmd('az vmware workload-network dns-zone delete --resource-group {rg} --private-cloud {privatecloud} --dns-zone-id {dns_zone_id}').output + self.assertEqual(len(dnsZoneDelete), 0) From 3c30cc1385d1fa098261b57549c4f197ca341081 Mon Sep 17 00:00:00 2001 From: Xing Zhou Date: Wed, 15 Sep 2021 11:02:53 +0800 Subject: [PATCH 10/34] Update src/vmware/CHANGELOG.md --- src/vmware/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vmware/CHANGELOG.md b/src/vmware/CHANGELOG.md index 99ed33a699e..9aeaf86e431 100644 --- a/src/vmware/CHANGELOG.md +++ b/src/vmware/CHANGELOG.md @@ -2,7 +2,7 @@ ## 3.2.0 -- add `az vmware workload-network dhcp` command group +- Add `az vmware workload-network dhcp` command group ## 3.1.0 (2021-08) From 9b2dec6fea27b713db8dd893c560c95266d782ff Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Wed, 15 Sep 2021 15:31:05 -0500 Subject: [PATCH 11/34] renamed dhcp test files to workload-network --- .../latest/recordings/test_vmware_dhcp.yaml | 36 +++++++++---------- .../tests/latest/test_dhcp_scenario.py | 4 +-- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_dhcp.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_dhcp.yaml index 62706f10cd3..37a0e4c9256 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_dhcp.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_dhcp.yaml @@ -25,7 +25,7 @@ interactions: content-type: - application/json date: - - Tue, 14 Sep 2021 20:49:12 GMT + - Tue, 14 Sep 2021 21:05:45 GMT server: - Rocket status: @@ -57,7 +57,7 @@ interactions: content-type: - application/json date: - - Tue, 14 Sep 2021 20:49:16 GMT + - Tue, 14 Sep 2021 21:05:50 GMT server: - Rocket status: @@ -94,7 +94,7 @@ interactions: content-type: - application/json date: - - Tue, 14 Sep 2021 20:49:20 GMT + - Tue, 14 Sep 2021 21:05:54 GMT server: - Rocket status: @@ -126,7 +126,7 @@ interactions: content-length: - '0' date: - - Tue, 14 Sep 2021 20:49:25 GMT + - Tue, 14 Sep 2021 21:05:58 GMT server: - Rocket status: @@ -163,7 +163,7 @@ interactions: content-type: - application/json date: - - Tue, 14 Sep 2021 20:49:29 GMT + - Tue, 14 Sep 2021 21:06:02 GMT server: - Rocket status: @@ -201,7 +201,7 @@ interactions: content-type: - application/json date: - - Tue, 14 Sep 2021 20:49:33 GMT + - Tue, 14 Sep 2021 21:06:07 GMT server: - Rocket status: @@ -233,7 +233,7 @@ interactions: content-length: - '0' date: - - Tue, 14 Sep 2021 20:49:37 GMT + - Tue, 14 Sep 2021 21:06:11 GMT server: - Rocket status: @@ -271,7 +271,7 @@ interactions: content-type: - application/json date: - - Tue, 14 Sep 2021 20:49:41 GMT + - Tue, 14 Sep 2021 21:06:15 GMT server: - Rocket status: @@ -303,7 +303,7 @@ interactions: content-type: - application/json date: - - Tue, 14 Sep 2021 20:49:46 GMT + - Tue, 14 Sep 2021 21:06:19 GMT server: - Rocket status: @@ -335,7 +335,7 @@ interactions: content-type: - application/json date: - - Tue, 14 Sep 2021 20:49:50 GMT + - Tue, 14 Sep 2021 21:06:23 GMT server: - Rocket status: @@ -374,7 +374,7 @@ interactions: content-type: - application/json date: - - Tue, 14 Sep 2021 20:49:54 GMT + - Tue, 14 Sep 2021 21:06:28 GMT server: - Rocket status: @@ -413,7 +413,7 @@ interactions: content-type: - application/json date: - - Tue, 14 Sep 2021 20:49:58 GMT + - Tue, 14 Sep 2021 21:06:32 GMT server: - Rocket status: @@ -445,7 +445,7 @@ interactions: content-length: - '0' date: - - Tue, 14 Sep 2021 20:50:02 GMT + - Tue, 14 Sep 2021 21:06:36 GMT server: - Rocket status: @@ -477,7 +477,7 @@ interactions: content-type: - application/json date: - - Tue, 14 Sep 2021 20:50:07 GMT + - Tue, 14 Sep 2021 21:06:40 GMT server: - Rocket status: @@ -509,7 +509,7 @@ interactions: content-type: - application/json date: - - Tue, 14 Sep 2021 20:50:11 GMT + - Tue, 14 Sep 2021 21:06:45 GMT server: - Rocket status: @@ -547,7 +547,7 @@ interactions: content-type: - application/json date: - - Tue, 14 Sep 2021 20:50:15 GMT + - Tue, 14 Sep 2021 21:06:49 GMT server: - Rocket status: @@ -585,7 +585,7 @@ interactions: content-type: - application/json date: - - Tue, 14 Sep 2021 20:50:19 GMT + - Tue, 14 Sep 2021 21:06:53 GMT server: - Rocket status: @@ -617,7 +617,7 @@ interactions: content-length: - '0' date: - - Tue, 14 Sep 2021 20:50:24 GMT + - Tue, 14 Sep 2021 21:06:58 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py b/src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py index b8736888903..f2746487f41 100644 --- a/src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py @@ -7,11 +7,11 @@ from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer) -class VmwareDhcpScenarioTest(ScenarioTest): +class VmwareWorkloadNetworkScenarioTest(ScenarioTest): def setUp(self): # https://vcrpy.readthedocs.io/en/latest/configuration.html#request-matching self.vcr.match_on = ['scheme', 'method', 'path', 'query'] # not 'host', 'port' - super(VmwareDhcpScenarioTest, self).setUp() + super(VmwareWorkloadNetworkScenarioTest, self).setUp() @ResourceGroupPreparer(name_prefix='cli_test_vmware_dhcp') def test_vmware_dhcp(self): From 39708dc741ba18ccb365449b1ccb0416345e4ba9 Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Thu, 16 Sep 2021 15:23:13 -0500 Subject: [PATCH 12/34] added port-mirroring and renamed dhcp test file to workloadnetwork --- src/vmware/azext_vmware/_help.py | 45 ++ src/vmware/azext_vmware/_params.py | 8 + src/vmware/azext_vmware/commands.py | 7 + src/vmware/azext_vmware/custom.py | 24 + .../latest/recordings/test_vmware_dhcp.yaml | 634 --------------- .../test_vmware_workload_network.yaml | 726 ++++++++++++++++++ ...o.py => test_workload_network_scenario.py} | 25 +- 7 files changed, 833 insertions(+), 636 deletions(-) delete mode 100644 src/vmware/azext_vmware/tests/latest/recordings/test_vmware_dhcp.yaml create mode 100644 src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml rename src/vmware/azext_vmware/tests/latest/{test_dhcp_scenario.py => test_workload_network_scenario.py} (77%) diff --git a/src/vmware/azext_vmware/_help.py b/src/vmware/azext_vmware/_help.py index 8f3a7fafc9d..464b8b7b3c4 100644 --- a/src/vmware/azext_vmware/_help.py +++ b/src/vmware/azext_vmware/_help.py @@ -667,3 +667,48 @@ - name: Delete a DNS zone by id in a workload network. text: az vmware workload-network dns-zone delete --resource-group group1 --private-cloud cloud1 --dns-zone-id dnsZone1 """ + +helps['vmware workload-network port-mirroring'] = """ + type: group + short-summary: Commands to manage a DNS Zone workload-network. +""" + +helps['vmware workload-network port-mirroring list'] = """ + type: command + short-summary: List of port mirroring profiles in a private cloud workload network. + examples: + - name: List of port mirroring profiles in a workload network. + text: az vmware workload-network port-mirroring list --resource-group group1 --private-cloud cloud1 +""" + +helps['vmware workload-network port-mirroring show'] = """ + type: command + short-summary: Get a port mirroring profile by id in a private cloud workload network. + examples: + - name: Get a port mirroring profile by id in a workload network. + text: az vmware workload-network port-mirroring show --resource-group group1 --private-cloud cloud1 --port-mirroring-id portMirroring1 +""" + +helps['vmware workload-network port-mirroring create'] = """ + type: command + short-summary: Create a port mirroring profile by id in a private cloud workload network. + examples: + - name: Create a port mirroring profile by id in a workload network. + text: az vmware workload-network port-mirroring create --resource-group group1 --private-cloud cloud1 --port-mirroring-id portMirroring1 --display-name portMirroring1 --direction BIDIRECTIONAL --source vmGroup1 --destination vmGroup2 --revision 1 +""" + +helps['vmware workload-network port-mirroring update'] = """ + type: command + short-summary: Create or update a port mirroring profile by id in a private cloud workload network. + examples: + - name: Create or update a port mirroring profile by id in a workload network. + text: az vmware workload-network port-mirroring update --resource-group group1 --private-cloud cloud1 --port-mirroring-id portMirroring1 --display-name portMirroring1 --direction BIDIRECTIONAL --source vmGroup1 --destination vmGroup2 --revision 1 +""" + +helps['vmware workload-network port-mirroring delete'] = """ + type: command + short-summary: Delete a port mirroring profile by id in a private cloud workload network. + examples: + - name: Delete a port mirroring profile by id in a workload network. + text: az vmware workload-network port-mirroring delete --resource-group group1 --private-cloud cloud1 --port-mirroring-id portMirroring1 +""" diff --git a/src/vmware/azext_vmware/_params.py b/src/vmware/azext_vmware/_params.py index 3f652c0476b..43d77168456 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -166,3 +166,11 @@ def load_arguments(self, _): c.argument('source_ip', help='Source IP of the DNS Zone.') c.argument('dns_services', help='Number of DNS Services using the DNS zone.') c.argument('revision', help='NSX revision number.') + + with self.argument_context('vmware workload-network port-mirroring') as c: + c.argument('port_mirroring_id', help="NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name.") + c.argument('display_name', help='Display name of the port mirroring profile.') + c.argument('direction', help='Direction of port mirroring profile. Possible values include: "INGRESS, EGRESS, BIDIRECTIONAL".') + c.argument('source', help='Source VM Group.') + c.argument('destination', help='Destination VM Group.') + c.argument('revision', help='NSX revision number.') diff --git a/src/vmware/azext_vmware/commands.py b/src/vmware/azext_vmware/commands.py index 418e3bab894..6e474306b07 100644 --- a/src/vmware/azext_vmware/commands.py +++ b/src/vmware/azext_vmware/commands.py @@ -135,3 +135,10 @@ def load_command_table(self, _): g.custom_command('create', 'workload_network_dns_zone_create') g.custom_command('update', 'workload_network_dns_zone_update') g.custom_command('delete', 'workload_network_dns_zone_delete') + + with self.command_group('vmware workload-network port-mirroring', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('list', 'workload_network_port_mirroring_list') + g.custom_show_command('show', 'workload_network_port_mirroring_get') + g.custom_command('create', 'workload_network_port_mirroring_create') + g.custom_command('update', 'workload_network_port_mirroring_update') + g.custom_command('delete', 'workload_network_port_mirroring_delete') diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index 606fc543235..13c135c062c 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -413,3 +413,27 @@ def workload_network_dns_zone_update(client: AVSClient, resource_group_name, pri def workload_network_dns_zone_delete(client: AVSClient, resource_group_name, private_cloud, dns_zone_id): return client.workload_networks.begin_delete_dns_zone(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_zone_id=dns_zone_id) + + +def workload_network_port_mirroring_list(client: AVSClient, resource_group_name, private_cloud): + return client.workload_networks.list_port_mirroring(resource_group_name=resource_group_name, private_cloud_name=private_cloud) + + +def workload_network_port_mirroring_get(client: AVSClient, resource_group_name, private_cloud, port_mirroring_id): + return client.workload_networks.get_port_mirroring(resource_group_name=resource_group_name, private_cloud_name=private_cloud, port_mirroring_id=port_mirroring_id) + + +def workload_network_port_mirroring_create(client: AVSClient, resource_group_name, private_cloud, port_mirroring_id, display_name=None, direction=None, source=None, destination=None, revision=None): + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkPortMirroring + prop = WorkloadNetworkPortMirroring(display_name=display_name, direction=direction, source=source, destination=destination, revision=revision) + return client.workload_networks.begin_create_port_mirroring(resource_group_name=resource_group_name, private_cloud_name=private_cloud, port_mirroring_id=port_mirroring_id, workload_network_port_mirroring=prop) + + +def workload_network_port_mirroring_update(client: AVSClient, resource_group_name, private_cloud, port_mirroring_id, display_name=None, direction=None, source=None, destination=None, revision=None): + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkPortMirroring + prop = WorkloadNetworkPortMirroring(display_name=display_name, direction=direction, source=source, destination=destination, revision=revision) + return client.workload_networks.begin_update_port_mirroring(resource_group_name=resource_group_name, private_cloud_name=private_cloud, port_mirroring_id=port_mirroring_id, workload_network_port_mirroring=prop) + + +def workload_network_port_mirroring_delete(client: AVSClient, resource_group_name, private_cloud, port_mirroring_id): + return client.workload_networks.begin_delete_port_mirroring(resource_group_name=resource_group_name, private_cloud_name=private_cloud, port_mirroring_id=port_mirroring_id) diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_dhcp.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_dhcp.yaml deleted file mode 100644 index 45098967c17..00000000000 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_dhcp.yaml +++ /dev/null @@ -1,634 +0,0 @@ -interactions: - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dhcp list - Connection: - - keep-alive - ParameterSetName: - - --resource-group --private-cloud - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations?api-version=2021-06-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}]}' - headers: - content-length: - - "391" - content-type: - - application/json - date: - - Tue, 14 Sep 2021 21:05:45 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dhcp show - Connection: - - keep-alive - ParameterSetName: - - --resource-group --private-cloud --dhcp-id - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' - headers: - content-length: - - "379" - content-type: - - application/json - date: - - Tue, 14 Sep 2021 21:05:50 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: - '{"properties": {"dhcpType": "RELAY", "displayName": "testDisplayName", - "revision": 1, "serverAddresses": ["40.1.5.1/24"]}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dhcp relay create - Connection: - - keep-alive - Content-Length: - - "122" - Content-Type: - - application/json - ParameterSetName: - - --resource-group --private-cloud --dhcp-id --display-name --revision --server-addresses - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' - headers: - content-length: - - "379" - content-type: - - application/json - date: - - Tue, 14 Sep 2021 21:05:54 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dhcp relay delete - Connection: - - keep-alive - Content-Length: - - "0" - ParameterSetName: - - --resource-group --private-cloud --dhcp-id - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 - response: - body: - string: "" - headers: - content-length: - - "0" - date: - - Tue, 14 Sep 2021 21:05:58 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: - '{"properties": {"dhcpType": "RELAY", "displayName": "testDisplayName", - "revision": 1, "serverAddresses": ["40.1.5.1/24"]}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dhcp relay update - Connection: - - keep-alive - Content-Length: - - "122" - Content-Type: - - application/json - ParameterSetName: - - --resource-group --private-cloud --dhcp-id --display-name --revision --server-addresses - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PATCH - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":2}}' - headers: - content-length: - - "379" - content-type: - - application/json - date: - - Tue, 14 Sep 2021 21:06:02 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: - '{"properties": {"dhcpType": "SERVER", "displayName": "testDisplayName", - "revision": 1, "serverAddress": "40.1.5.1/24", "leaseTime": 86400}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dhcp server create - Connection: - - keep-alive - Content-Length: - - "139" - Content-Type: - - application/json - ParameterSetName: - - --resource-group --private-cloud --dhcp-id --display-name --revision --server-address - --lease-time - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' - headers: - content-length: - - "379" - content-type: - - application/json - date: - - Tue, 14 Sep 2021 21:06:07 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dhcp server delete - Connection: - - keep-alive - Content-Length: - - "0" - ParameterSetName: - - --resource-group --private-cloud --dhcp-id - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 - response: - body: - string: "" - headers: - content-length: - - "0" - date: - - Tue, 14 Sep 2021 21:06:11 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: - '{"properties": {"dhcpType": "SERVER", "displayName": "testDisplayName", - "revision": 1, "serverAddress": "40.1.5.1/24", "leaseTime": 86400}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dhcp server update - Connection: - - keep-alive - Content-Length: - - "139" - Content-Type: - - application/json - ParameterSetName: - - --resource-group --private-cloud --dhcp-id --display-name --revision --server-address - --lease-time - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PATCH - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":2}}' - headers: - content-length: - - "379" - content-type: - - application/json - date: - - Tue, 14 Sep 2021 21:06:15 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dns-service list - Connection: - - keep-alive - ParameterSetName: - - --resource-group --private-cloud - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices?api-version=2021-06-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}]}' - headers: - content-length: - - "438" - content-type: - - application/json - date: - - Tue, 14 Sep 2021 21:06:19 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dns-service show - Connection: - - keep-alive - ParameterSetName: - - --resource-group --private-cloud --dns-service-id - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' - headers: - content-length: - - "426" - content-type: - - application/json - date: - - Tue, 14 Sep 2021 21:06:23 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: - '{"properties": {"displayName": "testDisplayName", "dnsServiceIp": "5.5.5.5", - "defaultDnsZone": "defaultDnsZone1", "fqdnZones": ["fqdnZone1"], "logLevel": - "INFO", "revision": 1}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dns-service create - Connection: - - keep-alive - Content-Length: - - "177" - Content-Type: - - application/json - ParameterSetName: - - --resource-group --private-cloud --dns-service-id --display-name --dns-service-ip - --default-dns-zone --fqdn-zones --log-level --revision - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"dnsService1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' - headers: - content-length: - - "423" - content-type: - - application/json - date: - - Tue, 14 Sep 2021 21:06:28 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: - '{"properties": {"displayName": "testDisplayName", "dnsServiceIp": "5.5.5.5", - "defaultDnsZone": "defaultDnsZone1", "fqdnZones": ["fqdnZone1"], "logLevel": - "INFO", "revision": 1}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dns-service update - Connection: - - keep-alive - Content-Length: - - "177" - Content-Type: - - application/json - ParameterSetName: - - --resource-group --private-cloud --dns-service-id --display-name --dns-service-ip - --default-dns-zone --fqdn-zones --log-level --revision - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PATCH - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"dnsService1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' - headers: - content-length: - - "423" - content-type: - - application/json - date: - - Tue, 14 Sep 2021 21:06:32 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dns-service delete - Connection: - - keep-alive - Content-Length: - - "0" - ParameterSetName: - - --resource-group --private-cloud --dns-service-id - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 - response: - body: - string: "" - headers: - content-length: - - "0" - date: - - Tue, 14 Sep 2021 21:06:36 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dns-zone list - Connection: - - keep-alive - ParameterSetName: - - --resource-group --private-cloud - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones?api-version=2021-06-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}]}' - headers: - content-length: - - "367" - content-type: - - application/json - date: - - Tue, 14 Sep 2021 21:06:40 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dns-zone show - Connection: - - keep-alive - ParameterSetName: - - --resource-group --private-cloud --dns-zone-id - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' - headers: - content-length: - - "355" - content-type: - - application/json - date: - - Tue, 14 Sep 2021 21:06:45 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: - '{"properties": {"displayName": "testDisplayName", "domain": ["domain1"], - "dnsServerIps": ["1.1.1.1"], "sourceIp": "8.8.8.8", "dnsServices": 1}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dns-zone create - Connection: - - keep-alive - Content-Length: - - "143" - Content-Type: - - application/json - ParameterSetName: - - --resource-group --private-cloud --dns-zone-id --display-name --domain --dns-server-ips - --source-ip --dns-services --revision - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"dnsZone1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' - headers: - content-length: - - "349" - content-type: - - application/json - date: - - Tue, 14 Sep 2021 21:06:49 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: - '{"properties": {"displayName": "testDisplayName", "domain": ["domain1"], - "dnsServerIps": ["1.1.1.1"], "sourceIp": "8.8.8.8", "dnsServices": 1}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dns-zone update - Connection: - - keep-alive - Content-Length: - - "143" - Content-Type: - - application/json - ParameterSetName: - - --resource-group --private-cloud --dns-zone-id --display-name --domain --dns-server-ips - --source-ip --dns-services --revision - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PATCH - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"dnsZone1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' - headers: - content-length: - - "349" - content-type: - - application/json - date: - - Tue, 14 Sep 2021 21:06:53 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dns-zone delete - Connection: - - keep-alive - Content-Length: - - "0" - ParameterSetName: - - --resource-group --private-cloud --dns-zone-id - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_dhcp000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 - response: - body: - string: "" - headers: - content-length: - - "0" - date: - - Tue, 14 Sep 2021 21:06:58 GMT - server: - - Rocket - status: - code: 200 - message: OK -version: 1 diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml new file mode 100644 index 00000000000..8bb97f5cba7 --- /dev/null +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml @@ -0,0 +1,726 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dhcp list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations?api-version=2021-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}]}' + headers: + content-length: + - '391' + content-type: + - application/json + date: + - Thu, 16 Sep 2021 20:19:25 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dhcp show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud --dhcp-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' + headers: + content-length: + - '379' + content-type: + - application/json + date: + - Thu, 16 Sep 2021 20:19:29 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"dhcpType": "RELAY", "displayName": "testDisplayName", + "revision": 1, "serverAddresses": ["40.1.5.1/24"]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dhcp relay create + Connection: + - keep-alive + Content-Length: + - '122' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --dhcp-id --display-name --revision --server-addresses + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' + headers: + content-length: + - '379' + content-type: + - application/json + date: + - Thu, 16 Sep 2021 20:19:34 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dhcp relay delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --private-cloud --dhcp-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: DELETE + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 16 Sep 2021 20:19:38 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"dhcpType": "RELAY", "displayName": "testDisplayName", + "revision": 1, "serverAddresses": ["40.1.5.1/24"]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dhcp relay update + Connection: + - keep-alive + Content-Length: + - '122' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --dhcp-id --display-name --revision --server-addresses + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PATCH + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":2}}' + headers: + content-length: + - '379' + content-type: + - application/json + date: + - Thu, 16 Sep 2021 20:19:42 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"dhcpType": "SERVER", "displayName": "testDisplayName", + "revision": 1, "serverAddress": "40.1.5.1/24", "leaseTime": 86400}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dhcp server create + Connection: + - keep-alive + Content-Length: + - '139' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --dhcp-id --display-name --revision --server-address + --lease-time + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' + headers: + content-length: + - '379' + content-type: + - application/json + date: + - Thu, 16 Sep 2021 20:19:46 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dhcp server delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --private-cloud --dhcp-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: DELETE + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 16 Sep 2021 20:19:50 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"dhcpType": "SERVER", "displayName": "testDisplayName", + "revision": 1, "serverAddress": "40.1.5.1/24", "leaseTime": 86400}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dhcp server update + Connection: + - keep-alive + Content-Length: + - '139' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --dhcp-id --display-name --revision --server-address + --lease-time + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PATCH + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":2}}' + headers: + content-length: + - '379' + content-type: + - application/json + date: + - Thu, 16 Sep 2021 20:19:55 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-service list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices?api-version=2021-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}]}' + headers: + content-length: + - '438' + content-type: + - application/json + date: + - Thu, 16 Sep 2021 20:19:59 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-service show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud --dns-service-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' + headers: + content-length: + - '426' + content-type: + - application/json + date: + - Thu, 16 Sep 2021 20:20:03 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "testDisplayName", "dnsServiceIp": "5.5.5.5", + "defaultDnsZone": "defaultDnsZone1", "fqdnZones": ["fqdnZone1"], "logLevel": + "INFO", "revision": 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-service create + Connection: + - keep-alive + Content-Length: + - '177' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --dns-service-id --display-name --dns-service-ip + --default-dns-zone --fqdn-zones --log-level --revision + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"dnsService1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' + headers: + content-length: + - '423' + content-type: + - application/json + date: + - Thu, 16 Sep 2021 20:20:07 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "testDisplayName", "dnsServiceIp": "5.5.5.5", + "defaultDnsZone": "defaultDnsZone1", "fqdnZones": ["fqdnZone1"], "logLevel": + "INFO", "revision": 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-service update + Connection: + - keep-alive + Content-Length: + - '177' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --dns-service-id --display-name --dns-service-ip + --default-dns-zone --fqdn-zones --log-level --revision + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PATCH + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"dnsService1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' + headers: + content-length: + - '423' + content-type: + - application/json + date: + - Thu, 16 Sep 2021 20:20:11 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-service delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --private-cloud --dns-service-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: DELETE + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 16 Sep 2021 20:20:16 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-zone list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones?api-version=2021-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}]}' + headers: + content-length: + - '367' + content-type: + - application/json + date: + - Thu, 16 Sep 2021 20:20:20 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-zone show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud --dns-zone-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' + headers: + content-length: + - '355' + content-type: + - application/json + date: + - Thu, 16 Sep 2021 20:20:24 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "testDisplayName", "domain": ["domain1"], + "dnsServerIps": ["1.1.1.1"], "sourceIp": "8.8.8.8", "dnsServices": 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-zone create + Connection: + - keep-alive + Content-Length: + - '143' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --dns-zone-id --display-name --domain --dns-server-ips + --source-ip --dns-services --revision + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"dnsZone1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' + headers: + content-length: + - '349' + content-type: + - application/json + date: + - Thu, 16 Sep 2021 20:20:28 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "testDisplayName", "domain": ["domain1"], + "dnsServerIps": ["1.1.1.1"], "sourceIp": "8.8.8.8", "dnsServices": 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-zone update + Connection: + - keep-alive + Content-Length: + - '143' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --dns-zone-id --display-name --domain --dns-server-ips + --source-ip --dns-services --revision + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PATCH + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"dnsZone1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' + headers: + content-length: + - '349' + content-type: + - application/json + date: + - Thu, 16 Sep 2021 20:20:32 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-zone delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --private-cloud --dns-zone-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: DELETE + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 16 Sep 2021 20:20:36 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network port-mirroring list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles?api-version=2021-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles","properties":{"displayName":"portMirroring1","direction":"INGRESS, + EGRESS, BIDIRECTIONAL","source":"vmGroup1","destination":"vmGroup2","status":"SUCCESS, + FAILURE","revision":1}}]}' + headers: + content-length: + - '451' + content-type: + - application/json + date: + - Thu, 16 Sep 2021 20:20:41 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network port-mirroring show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud --port-mirroring-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles","properties":{"displayName":"portMirroring1","direction":"INGRESS, + EGRESS, BIDIRECTIONAL","source":"vmGroup1","destination":"vmGroup2","status":"SUCCESS, + FAILURE","revision":1}}' + headers: + content-length: + - '447' + content-type: + - application/json + date: + - Thu, 16 Sep 2021 20:20:45 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network port-mirroring delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --private-cloud --port-mirroring-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: DELETE + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2021-06-01 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 16 Sep 2021 20:20:49 GMT + server: + - Rocket + status: + code: 200 + message: OK +version: 1 diff --git a/src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py b/src/vmware/azext_vmware/tests/latest/test_workload_network_scenario.py similarity index 77% rename from src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py rename to src/vmware/azext_vmware/tests/latest/test_workload_network_scenario.py index f2746487f41..69ee77d23cf 100644 --- a/src/vmware/azext_vmware/tests/latest/test_dhcp_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_workload_network_scenario.py @@ -13,8 +13,8 @@ def setUp(self): self.vcr.match_on = ['scheme', 'method', 'path', 'query'] # not 'host', 'port' super(VmwareWorkloadNetworkScenarioTest, self).setUp() - @ResourceGroupPreparer(name_prefix='cli_test_vmware_dhcp') - def test_vmware_dhcp(self): + @ResourceGroupPreparer(name_prefix='cli_test_vmware_workload_network') + def test_vmware_workload_network(self): self.kwargs.update({ 'privatecloud': 'cloud1', 'dhcp_id': 'dhcp1', @@ -33,6 +33,10 @@ def test_vmware_dhcp(self): 'dns_server_ips': '1.1.1.1', 'source_ip': '8.8.8.8', 'dns_services': '1', + 'port_mirroring_id': 'portMirroring1', + 'direction': 'BIDIRECTIONAL', + 'source': 'vmGroup1', + 'destination': 'vmGroup2' }) count = len(self.cmd('az vmware workload-network dhcp list --resource-group {rg} --private-cloud {privatecloud}').get_output_in_json()) @@ -88,3 +92,20 @@ def test_vmware_dhcp(self): dnsZoneDelete = self.cmd('az vmware workload-network dns-zone delete --resource-group {rg} --private-cloud {privatecloud} --dns-zone-id {dns_zone_id}').output self.assertEqual(len(dnsZoneDelete), 0) + + portMirroringList = self.cmd('az vmware workload-network port-mirroring list --resource-group {rg} --private-cloud {privatecloud}').get_output_in_json() + self.assertEqual(len(portMirroringList), 1, 'count expected to be 1') + + portMirroringGet = self.cmd('az vmware workload-network port-mirroring show --resource-group {rg} --private-cloud {privatecloud} --port-mirroring-id {port_mirroring_id}').get_output_in_json() + self.assertEqual(portMirroringGet['name'], 'portMirroring1') + + # Uncomment these unit tests once swagger is fixed + + # portMirroringCreate = self.cmd('az vmware workload-network port-mirroring create --resource-group {rg} --private-cloud {privatecloud} --port-mirroring-id {port_mirroring_id} --display-name {display_name} --direction {direction} --source {source} --destination {destination} --revision {revision}').get_output_in_json() + # self.assertEqual(portMirroringCreate['name'], 'portMirroring1') + + # portMirroringUpdate = self.cmd('az vmware workload-network port-mirroring update --resource-group {rg} --private-cloud {privatecloud} --port-mirroring-id {port_mirroring_id} --display-name {display_name} --direction {direction} --source {source} --destination {destination} --revision {revision}').get_output_in_json() + # self.assertEqual(portMirroringUpdate['name'], 'portMirroring1') + + portMirroringDelete = self.cmd('az vmware workload-network port-mirroring delete --resource-group {rg} --private-cloud {privatecloud} --port-mirroring-id {port_mirroring_id}').output + self.assertEqual(len(portMirroringDelete), 0) From 11f2334e4574901e0f2d0f736a889afe7daf3c1f Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Thu, 16 Sep 2021 15:29:41 -0500 Subject: [PATCH 13/34] updated changelog --- src/vmware/CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vmware/CHANGELOG.md b/src/vmware/CHANGELOG.md index 9aeaf86e431..394a9b02e67 100644 --- a/src/vmware/CHANGELOG.md +++ b/src/vmware/CHANGELOG.md @@ -3,6 +3,9 @@ ## 3.2.0 - Add `az vmware workload-network dhcp` command group +- Add `az vmware workload-network dns-service` command group +- Add `az vmware workload-network dns-zone` command group +- Add `az vmware workload-network port-mirroring` command group ## 3.1.0 (2021-08) From 1b795ffc22eb508edc2822911fdc08bf3e782160 Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Thu, 16 Sep 2021 16:52:37 -0500 Subject: [PATCH 14/34] updated help and param text based on comments --- src/vmware/azext_vmware/_help.py | 92 +++++++++++++++--------------- src/vmware/azext_vmware/_params.py | 24 ++++---- 2 files changed, 58 insertions(+), 58 deletions(-) diff --git a/src/vmware/azext_vmware/_help.py b/src/vmware/azext_vmware/_help.py index 464b8b7b3c4..43fd98a6331 100644 --- a/src/vmware/azext_vmware/_help.py +++ b/src/vmware/azext_vmware/_help.py @@ -499,87 +499,87 @@ helps['vmware workload-network dhcp'] = """ type: group - short-summary: Commands to manage a DHCP (Data Host Configuration Protocol) workload-network. + short-summary: Commands to manage a DHCP (Data Host Configuration Protocol) workload network. """ helps['vmware workload-network dhcp list'] = """ type: command - short-summary: List dhcp in a private cloud workload network. + short-summary: List DHCP in a private cloud workload network. examples: - - name: List dhcp in a workload network. + - name: List DHCP in a workload network. text: az vmware workload-network dhcp list --resource-group group1 --private-cloud cloud1 """ helps['vmware workload-network dhcp show'] = """ type: command - short-summary: Get dhcp by id in a private cloud workload network. + short-summary: Get DHCP by ID in a private cloud workload network. examples: - - name: Get dhcp by id in a workload network. + - name: Get DHCP by ID in a workload network. text: az vmware workload-network dhcp show --resource-group group1 --private-cloud cloud1 --dhcp-id dhcp1 """ helps['vmware workload-network dhcp relay'] = """ type: group - short-summary: Commands to manage a DHCP (Data Host Configuration Protocol) workload-network. + short-summary: Commands to manage a DHCP (Data Host Configuration Protocol) workload network. """ helps['vmware workload-network dhcp relay create'] = """ type: command - short-summary: Create dhcp by id in a private cloud workload network. + short-summary: Create DHCP by ID in a private cloud workload network. examples: - - name: Create dhcp by id in a workload network. + - name: Create DHCP by ID in a workload network. text: az vmware workload-network dhcp relay create --resource-group group1 --private-cloud cloud1 --dhcp-id dhcp1 --display-name dhcpConfigurations1 --revision 1 --server-addresses 40.1.5.1/24 """ helps['vmware workload-network dhcp relay delete'] = """ type: command - short-summary: Delete dhcp by id in a private cloud workload network. + short-summary: Delete DHCP by ID in a private cloud workload network. examples: - - name: Delete dhcp by id in a workload network. + - name: Delete DHCP by ID in a workload network. text: az vmware workload-network dhcp relay delete --resource-group group1 --private-cloud cloud1 --dhcp-id dhcp1 """ helps['vmware workload-network dhcp relay update'] = """ type: command - short-summary: Create or update dhcp by id in a private cloud workload network. + short-summary: Update DHCP by ID in a private cloud workload network. examples: - - name: Create or update dhcp by id in a workload network. + - name: Update DHCP by ID in a workload network. text: az vmware workload-network dhcp relay update --resource-group group1 --private-cloud cloud1 --dhcp-id dhcp1 --display-name dhcpConfigurations1 --revision 1 --server-addresses 40.1.5.1/24 """ helps['vmware workload-network dhcp server'] = """ type: group - short-summary: Commands to manage a DHCP (Data Host Configuration Protocol) workload-network. + short-summary: Commands to manage a DHCP (Data Host Configuration Protocol) workload network. """ helps['vmware workload-network dhcp server create'] = """ type: command - short-summary: Create dhcp by id in a private cloud workload network. + short-summary: Create DHCP by ID in a private cloud workload network. examples: - - name: Create dhcp by id in a workload network. + - name: Create DHCP by ID in a workload network. text: az vmware workload-network dhcp server create --resource-group group1 --private-cloud cloud1 --dhcp-id dhcp1 --display-name dhcpConfigurations1 --revision 1 --server-address 40.1.5.1/24 --lease-time 86400 """ helps['vmware workload-network dhcp server delete'] = """ type: command - short-summary: Delete dhcp by id in a private cloud workload network. + short-summary: Delete DHCP by ID in a private cloud workload network. examples: - - name: Delete dhcp by id in a workload network. + - name: Delete DHCP by ID in a workload network. text: az vmware workload-network dhcp server delete --resource-group group1 --private-cloud cloud1 --dhcp-id dhcp1 """ helps['vmware workload-network dhcp server update'] = """ type: command - short-summary: Create or update dhcp by id in a private cloud workload network. + short-summary: Update DHCP by ID in a private cloud workload network. examples: - - name: Create or update dhcp by id in a workload network. + - name: Update DHCP by ID in a workload network. text: az vmware workload-network dhcp server update --resource-group group1 --private-cloud cloud1 --dhcp-id dhcp1 --display-name dhcpConfigurations1 --revision 1 --server-address 40.1.5.1/24 --lease-time 86400 """ helps['vmware workload-network dns-service'] = """ type: group - short-summary: Commands to manage a DNS Service workload-network. + short-summary: Commands to manage a DNS Service workload network. """ @@ -593,39 +593,39 @@ helps['vmware workload-network dns-service show'] = """ type: command - short-summary: Get a DNS service by id in a private cloud workload network. + short-summary: Get a DNS service by ID in a private cloud workload network. examples: - - name: Get a DNS service by id in a workload network. + - name: Get a DNS service by ID in a workload network. text: az vmware workload-network dns-service show --resource-group group1 --private-cloud cloud1 --dns-service-id dnsService1 """ helps['vmware workload-network dns-service create'] = """ type: command - short-summary: Create a DNS service by id in a private cloud workload network. + short-summary: Create a DNS service by ID in a private cloud workload network. examples: - - name: Create a DNS service by id in a workload network. + - name: Create a DNS service by ID in a workload network. text: az vmware workload-network dns-service create --resource-group group1 --private-cloud cloud1 --dns-service-id dnsService1 --display-name dnsService1 --dns-service-ip 5.5.5.5 --default-dns-zone defaultDnsZone1 --fqdn-zones fqdnZone1 --log-level INFO --revision 1 """ helps['vmware workload-network dns-service update'] = """ type: command - short-summary: Create or update a DNS service by id in a private cloud workload network. + short-summary: Update a DNS service by ID in a private cloud workload network. examples: - - name: Create or update a DNS service by id in a workload network. + - name: Update a DNS service by ID in a workload network. text: az vmware workload-network dns-service update --resource-group group1 --private-cloud cloud1 --dns-service-id dnsService1 --display-name dnsService1 --dns-service-ip 5.5.5.5 --default-dns-zone defaultDnsZone1 --fqdn-zones fqdnZone1 --log-level INFO --revision 1 """ helps['vmware workload-network dns-service delete'] = """ type: command - short-summary: Delete a DNS service by id in a private cloud workload network. + short-summary: Delete a DNS service by ID in a private cloud workload network. examples: - - name: Delete a DNS service by id in a workload network. + - name: Delete a DNS service by ID in a workload network. text: az vmware workload-network dns-service delete --resource-group group1 --private-cloud cloud1 --dns-service-id dnsService1 """ helps['vmware workload-network dns-zone'] = """ type: group - short-summary: Commands to manage a DNS Zone workload-network. + short-summary: Commands to manage a DNS Zone workload network. """ helps['vmware workload-network dns-zone list'] = """ @@ -638,39 +638,39 @@ helps['vmware workload-network dns-zone show'] = """ type: command - short-summary: Get a DNS zone by id in a private cloud workload network. + short-summary: Get a DNS zone by ID in a private cloud workload network. examples: - - name: Get a DNS zone by id in a workload network. + - name: Get a DNS zone by ID in a workload network. text: az vmware workload-network dns-zone show --resource-group group1 --private-cloud cloud1 --dns-zone-id dnsZone1 """ helps['vmware workload-network dns-zone create'] = """ type: command - short-summary: Create a DNS zone by id in a private cloud workload network. + short-summary: Create a DNS zone by ID in a private cloud workload network. examples: - - name: Create a DNS zone by id in a workload network. + - name: Create a DNS zone by ID in a workload network. text: az vmware workload-network dns-zone create --resource-group group1 --private-cloud cloud1 --dns-zone-id dnsZone1 --display-name dnsZone1 --domain domain1 --dns-server-ips 1.1.1.1 --source-ip 8.8.8.8 --dns-services 1 --revision 1 """ helps['vmware workload-network dns-zone update'] = """ type: command - short-summary: Create or update a DNS zone by id in a private cloud workload network. + short-summary: Update a DNS zone by ID in a private cloud workload network. examples: - - name: Create or update a DNS zone by id in a workload network. + - name: Update a DNS zone by ID in a workload network. text: az vmware workload-network dns-zone update --resource-group group1 --private-cloud cloud1 --dns-zone-id dnsZone1 --display-name dnsZone1 --domain domain1 --dns-server-ips 1.1.1.1 --source-ip 8.8.8.8 --dns-services 1 --revision 1 """ helps['vmware workload-network dns-zone delete'] = """ type: command - short-summary: Delete a DNS zone by id in a private cloud workload network. + short-summary: Delete a DNS zone by ID in a private cloud workload network. examples: - - name: Delete a DNS zone by id in a workload network. + - name: Delete a DNS zone by ID in a workload network. text: az vmware workload-network dns-zone delete --resource-group group1 --private-cloud cloud1 --dns-zone-id dnsZone1 """ helps['vmware workload-network port-mirroring'] = """ type: group - short-summary: Commands to manage a DNS Zone workload-network. + short-summary: Commands to manage a Port Mirroring workload network. """ helps['vmware workload-network port-mirroring list'] = """ @@ -683,32 +683,32 @@ helps['vmware workload-network port-mirroring show'] = """ type: command - short-summary: Get a port mirroring profile by id in a private cloud workload network. + short-summary: Get a port mirroring profile by ID in a private cloud workload network. examples: - - name: Get a port mirroring profile by id in a workload network. + - name: Get a port mirroring profile by ID in a workload network. text: az vmware workload-network port-mirroring show --resource-group group1 --private-cloud cloud1 --port-mirroring-id portMirroring1 """ helps['vmware workload-network port-mirroring create'] = """ type: command - short-summary: Create a port mirroring profile by id in a private cloud workload network. + short-summary: Create a port mirroring profile by ID in a private cloud workload network. examples: - - name: Create a port mirroring profile by id in a workload network. + - name: Create a port mirroring profile by ID in a workload network. text: az vmware workload-network port-mirroring create --resource-group group1 --private-cloud cloud1 --port-mirroring-id portMirroring1 --display-name portMirroring1 --direction BIDIRECTIONAL --source vmGroup1 --destination vmGroup2 --revision 1 """ helps['vmware workload-network port-mirroring update'] = """ type: command - short-summary: Create or update a port mirroring profile by id in a private cloud workload network. + short-summary: Update a port mirroring profile by ID in a private cloud workload network. examples: - - name: Create or update a port mirroring profile by id in a workload network. + - name: Update a port mirroring profile by ID in a workload network. text: az vmware workload-network port-mirroring update --resource-group group1 --private-cloud cloud1 --port-mirroring-id portMirroring1 --display-name portMirroring1 --direction BIDIRECTIONAL --source vmGroup1 --destination vmGroup2 --revision 1 """ helps['vmware workload-network port-mirroring delete'] = """ type: command - short-summary: Delete a port mirroring profile by id in a private cloud workload network. + short-summary: Delete a port mirroring profile by ID in a private cloud workload network. examples: - - name: Delete a port mirroring profile by id in a workload network. + - name: Delete a port mirroring profile by ID in a workload network. text: az vmware workload-network port-mirroring delete --resource-group group1 --private-cloud cloud1 --port-mirroring-id portMirroring1 """ diff --git a/src/vmware/azext_vmware/_params.py b/src/vmware/azext_vmware/_params.py index 43d77168456..84c31f39e15 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -150,21 +150,21 @@ def load_arguments(self, _): c.argument('server_addresses', nargs='+', validator=server_addresses_length, help='DHCP Relay Addresses. Max 3.') with self.argument_context('vmware workload-network dns-service') as c: - c.argument('dns_service_id', help="NSX DNS Service identifier. Generally the same as the DNS Service's display name.") - c.argument('display_name', help='Display name of the DNS Service.') - c.argument('dns_service_ip', help='DNS service IP of the DNS Service.') - c.argument('default_dns_zone', help='Default DNS zone of the DNS Service.') - c.argument('fqdn_zones', nargs='+', help='FQDN zones of the DNS Service.') - c.argument('log_level', arg_type=get_enum_type(["DEBUG", "INFO", "WARNING", "ERROR", "FATAL"]), help='DNS Service log level. Possible values include: "DEBUG", "INFO", "WARNING", "ERROR", "FATAL".') + c.argument('dns_service_id', help="NSX DNS service identifier. Generally the same as the DNS service's display name.") + c.argument('display_name', help='Display name of the DNS service.') + c.argument('dns_service_ip', help='DNS service IP of the DNS service.') + c.argument('default_dns_zone', help='Default DNS zone of the DNS service.') + c.argument('fqdn_zones', nargs='+', help='FQDN zones of the DNS service.') + c.argument('log_level', arg_type=get_enum_type(["DEBUG", "INFO", "WARNING", "ERROR", "FATAL"]), help='DNS service log level. Possible values include: "DEBUG", "INFO", "WARNING", "ERROR", "FATAL".') c.argument('revision', help='NSX revision number.') with self.argument_context('vmware workload-network dns-zone') as c: - c.argument('dns_zone_id', help="NSX DNS Zone identifier. Generally the same as the DNS Zone's display name.") - c.argument('display_name', help='Display name of the DNS Zone.') - c.argument('domain', nargs='+', help='Domain names of the DNS Zone.') - c.argument('dns_server_ips', nargs='+', help='DNS Server IP array of the DNS Zone.') - c.argument('source_ip', help='Source IP of the DNS Zone.') - c.argument('dns_services', help='Number of DNS Services using the DNS zone.') + c.argument('dns_zone_id', help="NSX DNS zone identifier. Generally the same as the DNS zone's display name.") + c.argument('display_name', help='Display name of the DNS zone.') + c.argument('domain', nargs='+', help='Domain names of the DNS zone.') + c.argument('dns_server_ips', nargs='+', help='DNS Server IP array of the DNS zone.') + c.argument('source_ip', help='Source IP of the DNS zone.') + c.argument('dns_services', help='Number of DNS services using the DNS zone.') c.argument('revision', help='NSX revision number.') with self.argument_context('vmware workload-network port-mirroring') as c: From 33c2876c2b832abb0d0120480ba4a4cc00285557 Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Tue, 21 Sep 2021 13:26:57 -0500 Subject: [PATCH 15/34] fixed parameter typo --- src/vmware/azext_vmware/custom.py | 878 +++++++++++++++--------------- 1 file changed, 439 insertions(+), 439 deletions(-) diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index 13c135c062c..61c80e1ef63 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -1,439 +1,439 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- -# pylint: disable=line-too-long - -from typing import List, Tuple -from azext_vmware.vendored_sdks.avs_client import AVSClient - -LEGAL_TERMS = ''' -LEGAL TERMS - -Azure VMware Solution ("AVS") is an Azure Service licensed to you as part of your Azure subscription and subject to the terms and conditions of the agreement under which you obtained your Azure subscription (https://azure.microsoft.com/support/legal/). The following additional terms also apply to your use of AVS: - -DATA RETENTION. AVS does not currently support retention or extraction of data stored in AVS Clusters. Once an AVS Cluster is deleted, the data cannot be recovered as it terminates all running workloads, components, and destroys all Cluster data and configuration settings, including public IP addresses. - -PROFESSIONAL SERVICES DATA TRANSFER TO VMWARE. In the event that you contact Microsoft for technical support relating to Azure VMware Solution and Microsoft must engage VMware for assistance with the issue, Microsoft will transfer the Professional Services Data and the Personal Data contained in the support case to VMware. The transfer is made subject to the terms of the Support Transfer Agreement between VMware and Microsoft, which establishes Microsoft and VMware as independent processors of the Professional Services Data. Before any transfer of Professional Services Data to VMware will occur, Microsoft will obtain and record consent from you for the transfer. - -VMWARE DATA PROCESSING AGREEMENT. Once Professional Services Data is transferred to VMware (pursuant to the above section), the processing of Professional Services Data, including the Personal Data contained the support case, by VMware as an independent processor will be governed by the VMware Data Processing Agreement for Microsoft AVS Customers Transferred for L3 Support (the "VMware Data Processing Agreement") between you and VMware (located at https://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/privacy/vmware-data-processing-agreement.pdf). You also give authorization to allow your representative(s) who request technical support for Azure VMware Solution to provide consent on your behalf to Microsoft for the transfer of the Professional Services Data to VMware. - -ACCEPTANCE OF LEGAL TERMS. By continuing, you agree to the above additional Legal Terms for AVS. If you are an individual accepting these terms on behalf of an entity, you also represent that you have the legal authority to enter into these additional terms on that entity's behalf. -''' - - -def privatecloud_list(client: AVSClient, resource_group_name=None): - if resource_group_name is None: - return client.private_clouds.list_in_subscription() - return client.private_clouds.list(resource_group_name) - - -def privatecloud_show(client: AVSClient, resource_group_name, name): - return client.private_clouds.get(resource_group_name, name) - - -def privatecloud_create(client: AVSClient, resource_group_name, name, location, sku, cluster_size, network_block, circuit_primary_subnet=None, circuit_secondary_subnet=None, internet=None, vcenter_password=None, nsxt_password=None, tags=None, accept_eula=False): - from knack.prompting import prompt_y_n - if not accept_eula: - print(LEGAL_TERMS) - msg = 'Do you agree to the above additional terms for AVS?' - if not prompt_y_n(msg, default="n"): - return None - - from azext_vmware.vendored_sdks.avs_client.models import PrivateCloud, Circuit, ManagementCluster, Sku - if circuit_primary_subnet is not None or circuit_secondary_subnet is not None: - circuit = Circuit(primary_subnet=circuit_primary_subnet, secondary_subnet=circuit_secondary_subnet) - else: - circuit = None - management_cluster = ManagementCluster(cluster_size=cluster_size) - cloud = PrivateCloud(location=location, sku=Sku(name=sku), circuit=circuit, management_cluster=management_cluster, network_block=network_block, tags=tags) - if internet is not None: - cloud.internet = internet - if vcenter_password is not None: - cloud.vcenter_password = vcenter_password - if nsxt_password is not None: - cloud.nsxt_password = nsxt_password - return client.private_clouds.begin_create_or_update(resource_group_name, name, cloud) - - -def privatecloud_update(client: AVSClient, resource_group_name, name, cluster_size=None, internet=None): - from azext_vmware.vendored_sdks.avs_client.models import PrivateCloudUpdate, ManagementCluster - private_cloud_update = PrivateCloudUpdate() - if cluster_size is not None: - private_cloud_update.management_cluster = ManagementCluster(cluster_size=cluster_size) - if internet is not None: - private_cloud_update.internet = internet - return client.private_clouds.begin_update(resource_group_name, name, private_cloud_update) - - -def privatecloud_delete(client: AVSClient, resource_group_name, name, yes=False): - from knack.prompting import prompt_y_n - msg = 'This will delete the private cloud. Are you sure?' - if not yes and not prompt_y_n(msg, default="n"): - return None - return client.private_clouds.begin_delete(resource_group_name, name) - - -def privatecloud_listadmincredentials(client: AVSClient, resource_group_name, private_cloud): - return client.private_clouds.list_admin_credentials(resource_group_name=resource_group_name, private_cloud_name=private_cloud) - - -def privatecloud_addidentitysource(client: AVSClient, resource_group_name, name, private_cloud, alias, domain, base_user_dn, base_group_dn, primary_server, username, password, secondary_server=None, ssl="Disabled"): - from azext_vmware.vendored_sdks.avs_client.models import IdentitySource - pc = client.private_clouds.get(resource_group_name, private_cloud) - identitysource = IdentitySource(name=name, alias=alias, domain=domain, base_user_dn=base_user_dn, base_group_dn=base_group_dn, primary_server=primary_server, ssl=ssl, username=username, password=password) - if secondary_server is not None: - identitysource.secondary_server = secondary_server - pc.identity_sources.append(identitysource) - return client.private_clouds.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, private_cloud=pc) - - -def privatecloud_deleteidentitysource(client: AVSClient, resource_group_name, name, private_cloud, alias, domain): - pc = client.private_clouds.get(resource_group_name, private_cloud) - found = next((ids for ids in pc.identity_sources - if ids.name == name and ids.alias == alias and ids.domain == domain), None) - if found: - pc.identity_sources.remove(found) - return client.private_clouds.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, private_cloud=pc) - return pc - - -def privatecloud_rotate_vcenter_password(client: AVSClient, resource_group_name, private_cloud): - return client.private_clouds.begin_rotate_vcenter_password(resource_group_name=resource_group_name, private_cloud_name=private_cloud) - - -def privatecloud_rotate_nsxt_password(client: AVSClient, resource_group_name, private_cloud): - return client.private_clouds.begin_rotate_nsxt_password(resource_group_name=resource_group_name, private_cloud_name=private_cloud) - - -def cluster_create(client: AVSClient, resource_group_name, name, sku, private_cloud, size): - from azext_vmware.vendored_sdks.avs_client.models import Sku - return client.clusters.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=name, sku=Sku(name=sku), cluster_size=size) - - -def cluster_update(client: AVSClient, resource_group_name, name, private_cloud, size): - return client.clusters.begin_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=name, cluster_size=size) - - -def cluster_list(client: AVSClient, resource_group_name, private_cloud): - return client.clusters.list(resource_group_name=resource_group_name, private_cloud_name=private_cloud) - - -def cluster_show(client: AVSClient, resource_group_name, private_cloud, name): - return client.clusters.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=name) - - -def cluster_delete(client: AVSClient, resource_group_name, private_cloud, name): - return client.clusters.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=name) - - -def check_quota_availability(client: AVSClient, location): - return client.locations.check_quota_availability(location) - - -def check_trial_availability(client: AVSClient, location): - return client.locations.check_trial_availability(location) - - -def authorization_create(client: AVSClient, resource_group_name, private_cloud, name): - return client.authorizations.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, authorization_name=name) - - -def authorization_list(client: AVSClient, resource_group_name, private_cloud): - return client.authorizations.list(resource_group_name=resource_group_name, private_cloud_name=private_cloud) - - -def authorization_show(client: AVSClient, resource_group_name, private_cloud, name): - return client.authorizations.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, authorization_name=name) - - -def authorization_delete(client: AVSClient, resource_group_name, private_cloud, name): - return client.authorizations.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, authorization_name=name) - - -def hcxenterprisesite_create(client: AVSClient, resource_group_name, private_cloud, name): - return client.hcx_enterprise_sites.create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, hcx_enterprise_site_name=name) - - -def hcxenterprisesite_list(client: AVSClient, resource_group_name, private_cloud): - return client.hcx_enterprise_sites.list(resource_group_name=resource_group_name, private_cloud_name=private_cloud) - - -def hcxenterprisesite_show(client: AVSClient, resource_group_name, private_cloud, name): - return client.hcx_enterprise_sites.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, hcx_enterprise_site_name=name) - - -def hcxenterprisesite_delete(client: AVSClient, resource_group_name, private_cloud, name): - return client.hcx_enterprise_sites.delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, hcx_enterprise_site_name=name) - - -def datastore_create(): - print('Please use "az vmware datastore netapp-volume create" or "az vmware datastore disk-pool-volume create" instead.') - - -def datastore_netappvolume_create(client: AVSClient, resource_group_name, private_cloud, cluster, name, volume_id): - from azext_vmware.vendored_sdks.avs_client.models import NetAppVolume - net_app_volume = NetAppVolume(id=volume_id) - return client.datastores.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster, datastore_name=name, net_app_volume=net_app_volume, disk_pool_volume=None) - - -def datastore_diskpoolvolume_create(client: AVSClient, resource_group_name, private_cloud, cluster, name, target_id, lun_name, mount_option="MOUNT", path=None): - from azext_vmware.vendored_sdks.avs_client.models import DiskPoolVolume - disk_pool_volume = DiskPoolVolume(target_id=target_id, lun_name=lun_name, mount_option=mount_option, path=path) - return client.datastores.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster, datastore_name=name, net_app_volume=None, disk_pool_volume=disk_pool_volume) - - -def datastore_list(client: AVSClient, resource_group_name, private_cloud, cluster): - return client.datastores.list(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster) - - -def datastore_show(client: AVSClient, resource_group_name, private_cloud, cluster, name): - return client.datastores.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster, datastore_name=name) - - -def datastore_delete(client: AVSClient, resource_group_name, private_cloud, cluster, name): - return client.datastores.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster, datastore_name=name) - - -def addon_list(client: AVSClient, resource_group_name, private_cloud): - return client.addons.list(resource_group_name=resource_group_name, private_cloud_name=private_cloud) - - -def addon_vr_create(client: AVSClient, resource_group_name, private_cloud, vrs_count: int): - from azext_vmware.vendored_sdks.avs_client.models import AddonVrProperties - properties = AddonVrProperties(vrs_count=vrs_count) - return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="vr", properties=properties) - - -def addon_hcx_create(client: AVSClient, resource_group_name, private_cloud, offer: str): - from azext_vmware.vendored_sdks.avs_client.models import AddonHcxProperties - properties = AddonHcxProperties(offer=offer) - return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="hcx", properties=properties) - - -def addon_srm_create(client: AVSClient, resource_group_name, private_cloud, license_key: str): - from azext_vmware.vendored_sdks.avs_client.models import AddonSrmProperties - properties = AddonSrmProperties(license_key=license_key) - return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="srm", properties=properties) - - -def addon_vr_show(client: AVSClient, resource_group_name, private_cloud): - return client.addons.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="vr") - - -def addon_hcx_show(client: AVSClient, resource_group_name, private_cloud): - return client.addons.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="hcx") - - -def addon_srm_show(client: AVSClient, resource_group_name, private_cloud): - return client.addons.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="srm") - - -def addon_vr_update(client: AVSClient, resource_group_name, private_cloud, vrs_count: int): - from azext_vmware.vendored_sdks.avs_client.models import AddonVrProperties - properties = AddonVrProperties(vrs_count=vrs_count) - return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="vr", properties=properties) - - -def addon_hcx_update(client: AVSClient, resource_group_name, private_cloud, offer: str): - from azext_vmware.vendored_sdks.avs_client.models import AddonHcxProperties - properties = AddonHcxProperties(offer=offer) - return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="hcx", properties=properties) - - -def addon_srm_update(client: AVSClient, resource_group_name, private_cloud, license_key: str): - from azext_vmware.vendored_sdks.avs_client.models import AddonSrmProperties - properties = AddonSrmProperties(license_key=license_key) - return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="srm", properties=properties) - - -def addon_vr_delete(client: AVSClient, resource_group_name, private_cloud): - return client.addons.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="vr") - - -def addon_hcx_delete(client: AVSClient, resource_group_name, private_cloud): - return client.addons.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="hcx") - - -def addon_srm_delete(client: AVSClient, resource_group_name, private_cloud): - return client.addons.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="srm") - - -def globalreachconnection_create(client: AVSClient, resource_group_name, private_cloud, name, authorization_key=None, peer_express_route_circuit=None): - return client.global_reach_connections.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, global_reach_connection_name=name, authorization_key=authorization_key, peer_express_route_circuit=peer_express_route_circuit) - - -def globalreachconnection_list(client: AVSClient, resource_group_name, private_cloud): - return client.global_reach_connections.list(resource_group_name=resource_group_name, private_cloud_name=private_cloud) - - -def globalreachconnection_show(client: AVSClient, resource_group_name, private_cloud, name): - return client.global_reach_connections.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, global_reach_connection_name=name) - - -def globalreachconnection_delete(client: AVSClient, resource_group_name, private_cloud, name): - return client.global_reach_connections.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, global_reach_connection_name=name) - - -def cloud_link_create(client: AVSClient, resource_group_name, name, private_cloud, linked_cloud): - return client.cloud_links.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cloud_link_name=name, linked_cloud=linked_cloud) - - -def cloud_link_list(client: AVSClient, resource_group_name, private_cloud): - return client.cloud_links.list(resource_group_name=resource_group_name, private_cloud_name=private_cloud) - - -def cloud_link_show(client: AVSClient, resource_group_name, private_cloud, name): - return client.cloud_links.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cloud_link_name=name) - - -def cloud_link_delete(client: AVSClient, resource_group_name, private_cloud, name): - return client.cloud_links.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cloud_link_name=name) - - -def script_cmdlet_list(client: AVSClient, resource_group_name, private_cloud, script_package): - return client.script_cmdlets.list(resource_group_name=resource_group_name, private_cloud_name=private_cloud, script_package_name=script_package) - - -def script_cmdlet_show(client: AVSClient, resource_group_name, private_cloud, script_package, name): - return client.script_cmdlets.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, script_package_name=script_package, script_cmdlet_name=name) - - -def script_package_list(client: AVSClient, resource_group_name, private_cloud): - return client.script_packages.list(resource_group_name=resource_group_name, private_cloud_name=private_cloud) - - -def script_package_show(client: AVSClient, resource_group_name, private_cloud, name): - return client.script_packages.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, script_package_name=name) - - -def script_execution_create(client: AVSClient, resource_group_name, private_cloud, name, timeout, script_cmdlet_id=None, parameters=None, hidden_parameters=None, failure_reason=None, retention=None, out=None, named_outputs: List[Tuple[str, str]] = None): - from azext_vmware.vendored_sdks.avs_client.models import ScriptExecution - if named_outputs is not None: - named_outputs = dict(named_outputs) - script_execution = ScriptExecution(timeout=timeout, script_cmdlet_id=script_cmdlet_id, parameters=parameters, hidden_parameters=hidden_parameters, failure_reason=failure_reason, retention=retention, output=out, named_outputs=named_outputs) - return client.script_executions.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, script_execution_name=name, script_execution=script_execution) - - -def script_execution_list(client: AVSClient, resource_group_name, private_cloud): - return client.script_executions.list(resource_group_name=resource_group_name, private_cloud_name=private_cloud) - - -def script_execution_show(client: AVSClient, resource_group_name, private_cloud, name): - return client.script_executions.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, script_execution_name=name) - - -def script_execution_delete(client: AVSClient, resource_group_name, private_cloud, name): - return client.script_executions.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, script_execution_name=name) - - -def script_execution_logs(client: AVSClient, resource_group_name, private_cloud, name): - return client.script_executions.get_execution_logs(resource_group_name=resource_group_name, private_cloud_name=private_cloud, script_execution_name=name) - - -def workload_network_dhcp_server_create(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str, display_name=None, revision=None, server_address=None, lease_time=None): - from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDhcpServer - properties = WorkloadNetworkDhcpServer(display_name=display_name, revision=revision, server_address=server_address, lease_time=lease_time) - return client.workload_networks.begin_create_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) - - -def workload_network_dhcp_relay_create(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str, display_name=None, revision=None, server_addresses=None): - from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDhcpRelay - properties = WorkloadNetworkDhcpRelay(display_name=display_name, revision=revision, server_addresses=server_addresses) - return client.workload_networks.begin_create_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) - - -def workload_network_dhcp_server_update(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str, display_name=None, revision=None, server_address=None, lease_time=None): - from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDhcpServer - properties = WorkloadNetworkDhcpServer(display_name=display_name, revision=revision, server_address=server_address, lease_time=lease_time) - return client.workload_networks.begin_update_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) - - -def workload_network_dhcp_relay_update(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str, display_name=None, revision=None, server_addresses=None): - from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDhcpRelay - properties = WorkloadNetworkDhcpRelay(display_name=display_name, revision=revision, server_addresses=server_addresses) - return client.workload_networks.begin_update_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) - - -def workload_network_dhcp_delete(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str): - return client.workload_networks.begin_delete_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id) - - -def workload_network_dhcp_list(client: AVSClient, resource_group_name, private_cloud): - return client.workload_networks.list_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud) - - -def workload_network_dhcp_show(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str): - return client.workload_networks.get_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id) - - -def workload_network_dns_services_list(client: AVSClient, resource_group_name, private_cloud): - return client.workload_networks.list_dns_services(resource_group_name=resource_group_name, private_cloud_name=private_cloud) - - -def workload_network_dns_services_get(client: AVSClient, resource_group_name, private_cloud, dns_service_id): - return client.workload_networks.get_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service_id) - - -def workload_network_dns_services_create(client: AVSClient, resource_group_name, private_cloud, dns_service_id, display_name=None, dns_service_ip=None, default_dns_zone=None, fqdn_zones=None, log_level=None, revision=None): - from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDnsService - prop = WorkloadNetworkDnsService(display_name=display_name, dns_service_ip=dns_service_ip, default_dns_zone=default_dns_zone, log_level=log_level, revision=revision, fqdn_zones=fqdn_zones) - return client.workload_networks.begin_create_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service_id, workload_network_dns_service=prop) - - -def workload_network_dns_services_update(client: AVSClient, resource_group_name, private_cloud, dns_service_id, display_name=None, dns_service_ip=None, default_dns_zone=None, fqdn_zones=None, log_level=None, revision=None): - from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDnsService - prop = WorkloadNetworkDnsService(display_name=display_name, dns_service_ip=dns_service_ip, default_dns_zone=default_dns_zone, fqdn_zones=fqdn_zones, log_level=log_level, revision=revision) - return client.workload_networks.begin_update_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service_id, workload_network_dns_service=prop) - - -def workload_network_dns_services_delete(client: AVSClient, resource_group_name, private_cloud, dns_service_id): - return client.workload_networks.begin_delete_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service_id) - - -def workload_network_dns_zone_list(client: AVSClient, resource_group_name, private_cloud): - return client.workload_networks.list_dns_zones(resource_group_name=resource_group_name, private_cloud_name=private_cloud) - - -def workload_network_dns_zone_get(client: AVSClient, resource_group_name, private_cloud, dns_zone_id): - return client.workload_networks.get_dns_zone(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_zone_id=dns_zone_id) - - -def workload_network_dns_zone_create(client: AVSClient, resource_group_name, private_cloud, dns_zone_id, display_name=None, domain=None, dns_server_ips=None, source_ip=None, dns_services=None, revision=None): - from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDnsZone - prop = WorkloadNetworkDnsZone(display_name=display_name, domain=domain, dns_server_ips=dns_server_ips, source_ip=source_ip, dns_services=dns_services, revistion=revision) - return client.workload_networks.begin_create_dns_zone(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_zone_id=dns_zone_id, workload_network_dns_zone=prop) - - -def workload_network_dns_zone_update(client: AVSClient, resource_group_name, private_cloud, dns_zone_id, display_name=None, domain=None, dns_server_ips=None, source_ip=None, dns_services=None, revision=None): - from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDnsZone - prop = WorkloadNetworkDnsZone(display_name=display_name, domain=domain, dns_server_ips=dns_server_ips, source_ip=source_ip, dns_services=dns_services, revistion=revision) - return client.workload_networks.begin_update_dns_zone(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_zone_id=dns_zone_id, workload_network_dns_zone=prop) - - -def workload_network_dns_zone_delete(client: AVSClient, resource_group_name, private_cloud, dns_zone_id): - return client.workload_networks.begin_delete_dns_zone(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_zone_id=dns_zone_id) - - -def workload_network_port_mirroring_list(client: AVSClient, resource_group_name, private_cloud): - return client.workload_networks.list_port_mirroring(resource_group_name=resource_group_name, private_cloud_name=private_cloud) - - -def workload_network_port_mirroring_get(client: AVSClient, resource_group_name, private_cloud, port_mirroring_id): - return client.workload_networks.get_port_mirroring(resource_group_name=resource_group_name, private_cloud_name=private_cloud, port_mirroring_id=port_mirroring_id) - - -def workload_network_port_mirroring_create(client: AVSClient, resource_group_name, private_cloud, port_mirroring_id, display_name=None, direction=None, source=None, destination=None, revision=None): - from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkPortMirroring - prop = WorkloadNetworkPortMirroring(display_name=display_name, direction=direction, source=source, destination=destination, revision=revision) - return client.workload_networks.begin_create_port_mirroring(resource_group_name=resource_group_name, private_cloud_name=private_cloud, port_mirroring_id=port_mirroring_id, workload_network_port_mirroring=prop) - - -def workload_network_port_mirroring_update(client: AVSClient, resource_group_name, private_cloud, port_mirroring_id, display_name=None, direction=None, source=None, destination=None, revision=None): - from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkPortMirroring - prop = WorkloadNetworkPortMirroring(display_name=display_name, direction=direction, source=source, destination=destination, revision=revision) - return client.workload_networks.begin_update_port_mirroring(resource_group_name=resource_group_name, private_cloud_name=private_cloud, port_mirroring_id=port_mirroring_id, workload_network_port_mirroring=prop) - - -def workload_network_port_mirroring_delete(client: AVSClient, resource_group_name, private_cloud, port_mirroring_id): - return client.workload_networks.begin_delete_port_mirroring(resource_group_name=resource_group_name, private_cloud_name=private_cloud, port_mirroring_id=port_mirroring_id) +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +# pylint: disable=line-too-long + +from typing import List, Tuple +from azext_vmware.vendored_sdks.avs_client import AVSClient + +LEGAL_TERMS = ''' +LEGAL TERMS + +Azure VMware Solution ("AVS") is an Azure Service licensed to you as part of your Azure subscription and subject to the terms and conditions of the agreement under which you obtained your Azure subscription (https://azure.microsoft.com/support/legal/). The following additional terms also apply to your use of AVS: + +DATA RETENTION. AVS does not currently support retention or extraction of data stored in AVS Clusters. Once an AVS Cluster is deleted, the data cannot be recovered as it terminates all running workloads, components, and destroys all Cluster data and configuration settings, including public IP addresses. + +PROFESSIONAL SERVICES DATA TRANSFER TO VMWARE. In the event that you contact Microsoft for technical support relating to Azure VMware Solution and Microsoft must engage VMware for assistance with the issue, Microsoft will transfer the Professional Services Data and the Personal Data contained in the support case to VMware. The transfer is made subject to the terms of the Support Transfer Agreement between VMware and Microsoft, which establishes Microsoft and VMware as independent processors of the Professional Services Data. Before any transfer of Professional Services Data to VMware will occur, Microsoft will obtain and record consent from you for the transfer. + +VMWARE DATA PROCESSING AGREEMENT. Once Professional Services Data is transferred to VMware (pursuant to the above section), the processing of Professional Services Data, including the Personal Data contained the support case, by VMware as an independent processor will be governed by the VMware Data Processing Agreement for Microsoft AVS Customers Transferred for L3 Support (the "VMware Data Processing Agreement") between you and VMware (located at https://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/privacy/vmware-data-processing-agreement.pdf). You also give authorization to allow your representative(s) who request technical support for Azure VMware Solution to provide consent on your behalf to Microsoft for the transfer of the Professional Services Data to VMware. + +ACCEPTANCE OF LEGAL TERMS. By continuing, you agree to the above additional Legal Terms for AVS. If you are an individual accepting these terms on behalf of an entity, you also represent that you have the legal authority to enter into these additional terms on that entity's behalf. +''' + + +def privatecloud_list(client: AVSClient, resource_group_name=None): + if resource_group_name is None: + return client.private_clouds.list_in_subscription() + return client.private_clouds.list(resource_group_name) + + +def privatecloud_show(client: AVSClient, resource_group_name, name): + return client.private_clouds.get(resource_group_name, name) + + +def privatecloud_create(client: AVSClient, resource_group_name, name, location, sku, cluster_size, network_block, circuit_primary_subnet=None, circuit_secondary_subnet=None, internet=None, vcenter_password=None, nsxt_password=None, tags=None, accept_eula=False): + from knack.prompting import prompt_y_n + if not accept_eula: + print(LEGAL_TERMS) + msg = 'Do you agree to the above additional terms for AVS?' + if not prompt_y_n(msg, default="n"): + return None + + from azext_vmware.vendored_sdks.avs_client.models import PrivateCloud, Circuit, ManagementCluster, Sku + if circuit_primary_subnet is not None or circuit_secondary_subnet is not None: + circuit = Circuit(primary_subnet=circuit_primary_subnet, secondary_subnet=circuit_secondary_subnet) + else: + circuit = None + management_cluster = ManagementCluster(cluster_size=cluster_size) + cloud = PrivateCloud(location=location, sku=Sku(name=sku), circuit=circuit, management_cluster=management_cluster, network_block=network_block, tags=tags) + if internet is not None: + cloud.internet = internet + if vcenter_password is not None: + cloud.vcenter_password = vcenter_password + if nsxt_password is not None: + cloud.nsxt_password = nsxt_password + return client.private_clouds.begin_create_or_update(resource_group_name, name, cloud) + + +def privatecloud_update(client: AVSClient, resource_group_name, name, cluster_size=None, internet=None): + from azext_vmware.vendored_sdks.avs_client.models import PrivateCloudUpdate, ManagementCluster + private_cloud_update = PrivateCloudUpdate() + if cluster_size is not None: + private_cloud_update.management_cluster = ManagementCluster(cluster_size=cluster_size) + if internet is not None: + private_cloud_update.internet = internet + return client.private_clouds.begin_update(resource_group_name, name, private_cloud_update) + + +def privatecloud_delete(client: AVSClient, resource_group_name, name, yes=False): + from knack.prompting import prompt_y_n + msg = 'This will delete the private cloud. Are you sure?' + if not yes and not prompt_y_n(msg, default="n"): + return None + return client.private_clouds.begin_delete(resource_group_name, name) + + +def privatecloud_listadmincredentials(client: AVSClient, resource_group_name, private_cloud): + return client.private_clouds.list_admin_credentials(resource_group_name=resource_group_name, private_cloud_name=private_cloud) + + +def privatecloud_addidentitysource(client: AVSClient, resource_group_name, name, private_cloud, alias, domain, base_user_dn, base_group_dn, primary_server, username, password, secondary_server=None, ssl="Disabled"): + from azext_vmware.vendored_sdks.avs_client.models import IdentitySource + pc = client.private_clouds.get(resource_group_name, private_cloud) + identitysource = IdentitySource(name=name, alias=alias, domain=domain, base_user_dn=base_user_dn, base_group_dn=base_group_dn, primary_server=primary_server, ssl=ssl, username=username, password=password) + if secondary_server is not None: + identitysource.secondary_server = secondary_server + pc.identity_sources.append(identitysource) + return client.private_clouds.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, private_cloud=pc) + + +def privatecloud_deleteidentitysource(client: AVSClient, resource_group_name, name, private_cloud, alias, domain): + pc = client.private_clouds.get(resource_group_name, private_cloud) + found = next((ids for ids in pc.identity_sources + if ids.name == name and ids.alias == alias and ids.domain == domain), None) + if found: + pc.identity_sources.remove(found) + return client.private_clouds.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, private_cloud=pc) + return pc + + +def privatecloud_rotate_vcenter_password(client: AVSClient, resource_group_name, private_cloud): + return client.private_clouds.begin_rotate_vcenter_password(resource_group_name=resource_group_name, private_cloud_name=private_cloud) + + +def privatecloud_rotate_nsxt_password(client: AVSClient, resource_group_name, private_cloud): + return client.private_clouds.begin_rotate_nsxt_password(resource_group_name=resource_group_name, private_cloud_name=private_cloud) + + +def cluster_create(client: AVSClient, resource_group_name, name, sku, private_cloud, size): + from azext_vmware.vendored_sdks.avs_client.models import Sku + return client.clusters.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=name, sku=Sku(name=sku), cluster_size=size) + + +def cluster_update(client: AVSClient, resource_group_name, name, private_cloud, size): + return client.clusters.begin_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=name, cluster_size=size) + + +def cluster_list(client: AVSClient, resource_group_name, private_cloud): + return client.clusters.list(resource_group_name=resource_group_name, private_cloud_name=private_cloud) + + +def cluster_show(client: AVSClient, resource_group_name, private_cloud, name): + return client.clusters.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=name) + + +def cluster_delete(client: AVSClient, resource_group_name, private_cloud, name): + return client.clusters.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=name) + + +def check_quota_availability(client: AVSClient, location): + return client.locations.check_quota_availability(location) + + +def check_trial_availability(client: AVSClient, location): + return client.locations.check_trial_availability(location) + + +def authorization_create(client: AVSClient, resource_group_name, private_cloud, name): + return client.authorizations.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, authorization_name=name) + + +def authorization_list(client: AVSClient, resource_group_name, private_cloud): + return client.authorizations.list(resource_group_name=resource_group_name, private_cloud_name=private_cloud) + + +def authorization_show(client: AVSClient, resource_group_name, private_cloud, name): + return client.authorizations.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, authorization_name=name) + + +def authorization_delete(client: AVSClient, resource_group_name, private_cloud, name): + return client.authorizations.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, authorization_name=name) + + +def hcxenterprisesite_create(client: AVSClient, resource_group_name, private_cloud, name): + return client.hcx_enterprise_sites.create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, hcx_enterprise_site_name=name) + + +def hcxenterprisesite_list(client: AVSClient, resource_group_name, private_cloud): + return client.hcx_enterprise_sites.list(resource_group_name=resource_group_name, private_cloud_name=private_cloud) + + +def hcxenterprisesite_show(client: AVSClient, resource_group_name, private_cloud, name): + return client.hcx_enterprise_sites.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, hcx_enterprise_site_name=name) + + +def hcxenterprisesite_delete(client: AVSClient, resource_group_name, private_cloud, name): + return client.hcx_enterprise_sites.delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, hcx_enterprise_site_name=name) + + +def datastore_create(): + print('Please use "az vmware datastore netapp-volume create" or "az vmware datastore disk-pool-volume create" instead.') + + +def datastore_netappvolume_create(client: AVSClient, resource_group_name, private_cloud, cluster, name, volume_id): + from azext_vmware.vendored_sdks.avs_client.models import NetAppVolume + net_app_volume = NetAppVolume(id=volume_id) + return client.datastores.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster, datastore_name=name, net_app_volume=net_app_volume, disk_pool_volume=None) + + +def datastore_diskpoolvolume_create(client: AVSClient, resource_group_name, private_cloud, cluster, name, target_id, lun_name, mount_option="MOUNT", path=None): + from azext_vmware.vendored_sdks.avs_client.models import DiskPoolVolume + disk_pool_volume = DiskPoolVolume(target_id=target_id, lun_name=lun_name, mount_option=mount_option, path=path) + return client.datastores.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster, datastore_name=name, net_app_volume=None, disk_pool_volume=disk_pool_volume) + + +def datastore_list(client: AVSClient, resource_group_name, private_cloud, cluster): + return client.datastores.list(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster) + + +def datastore_show(client: AVSClient, resource_group_name, private_cloud, cluster, name): + return client.datastores.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster, datastore_name=name) + + +def datastore_delete(client: AVSClient, resource_group_name, private_cloud, cluster, name): + return client.datastores.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster, datastore_name=name) + + +def addon_list(client: AVSClient, resource_group_name, private_cloud): + return client.addons.list(resource_group_name=resource_group_name, private_cloud_name=private_cloud) + + +def addon_vr_create(client: AVSClient, resource_group_name, private_cloud, vrs_count: int): + from azext_vmware.vendored_sdks.avs_client.models import AddonVrProperties + properties = AddonVrProperties(vrs_count=vrs_count) + return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="vr", properties=properties) + + +def addon_hcx_create(client: AVSClient, resource_group_name, private_cloud, offer: str): + from azext_vmware.vendored_sdks.avs_client.models import AddonHcxProperties + properties = AddonHcxProperties(offer=offer) + return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="hcx", properties=properties) + + +def addon_srm_create(client: AVSClient, resource_group_name, private_cloud, license_key: str): + from azext_vmware.vendored_sdks.avs_client.models import AddonSrmProperties + properties = AddonSrmProperties(license_key=license_key) + return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="srm", properties=properties) + + +def addon_vr_show(client: AVSClient, resource_group_name, private_cloud): + return client.addons.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="vr") + + +def addon_hcx_show(client: AVSClient, resource_group_name, private_cloud): + return client.addons.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="hcx") + + +def addon_srm_show(client: AVSClient, resource_group_name, private_cloud): + return client.addons.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="srm") + + +def addon_vr_update(client: AVSClient, resource_group_name, private_cloud, vrs_count: int): + from azext_vmware.vendored_sdks.avs_client.models import AddonVrProperties + properties = AddonVrProperties(vrs_count=vrs_count) + return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="vr", properties=properties) + + +def addon_hcx_update(client: AVSClient, resource_group_name, private_cloud, offer: str): + from azext_vmware.vendored_sdks.avs_client.models import AddonHcxProperties + properties = AddonHcxProperties(offer=offer) + return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="hcx", properties=properties) + + +def addon_srm_update(client: AVSClient, resource_group_name, private_cloud, license_key: str): + from azext_vmware.vendored_sdks.avs_client.models import AddonSrmProperties + properties = AddonSrmProperties(license_key=license_key) + return client.addons.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="srm", properties=properties) + + +def addon_vr_delete(client: AVSClient, resource_group_name, private_cloud): + return client.addons.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="vr") + + +def addon_hcx_delete(client: AVSClient, resource_group_name, private_cloud): + return client.addons.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="hcx") + + +def addon_srm_delete(client: AVSClient, resource_group_name, private_cloud): + return client.addons.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="srm") + + +def globalreachconnection_create(client: AVSClient, resource_group_name, private_cloud, name, authorization_key=None, peer_express_route_circuit=None): + return client.global_reach_connections.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, global_reach_connection_name=name, authorization_key=authorization_key, peer_express_route_circuit=peer_express_route_circuit) + + +def globalreachconnection_list(client: AVSClient, resource_group_name, private_cloud): + return client.global_reach_connections.list(resource_group_name=resource_group_name, private_cloud_name=private_cloud) + + +def globalreachconnection_show(client: AVSClient, resource_group_name, private_cloud, name): + return client.global_reach_connections.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, global_reach_connection_name=name) + + +def globalreachconnection_delete(client: AVSClient, resource_group_name, private_cloud, name): + return client.global_reach_connections.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, global_reach_connection_name=name) + + +def cloud_link_create(client: AVSClient, resource_group_name, name, private_cloud, linked_cloud): + return client.cloud_links.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cloud_link_name=name, linked_cloud=linked_cloud) + + +def cloud_link_list(client: AVSClient, resource_group_name, private_cloud): + return client.cloud_links.list(resource_group_name=resource_group_name, private_cloud_name=private_cloud) + + +def cloud_link_show(client: AVSClient, resource_group_name, private_cloud, name): + return client.cloud_links.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cloud_link_name=name) + + +def cloud_link_delete(client: AVSClient, resource_group_name, private_cloud, name): + return client.cloud_links.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cloud_link_name=name) + + +def script_cmdlet_list(client: AVSClient, resource_group_name, private_cloud, script_package): + return client.script_cmdlets.list(resource_group_name=resource_group_name, private_cloud_name=private_cloud, script_package_name=script_package) + + +def script_cmdlet_show(client: AVSClient, resource_group_name, private_cloud, script_package, name): + return client.script_cmdlets.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, script_package_name=script_package, script_cmdlet_name=name) + + +def script_package_list(client: AVSClient, resource_group_name, private_cloud): + return client.script_packages.list(resource_group_name=resource_group_name, private_cloud_name=private_cloud) + + +def script_package_show(client: AVSClient, resource_group_name, private_cloud, name): + return client.script_packages.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, script_package_name=name) + + +def script_execution_create(client: AVSClient, resource_group_name, private_cloud, name, timeout, script_cmdlet_id=None, parameters=None, hidden_parameters=None, failure_reason=None, retention=None, out=None, named_outputs: List[Tuple[str, str]] = None): + from azext_vmware.vendored_sdks.avs_client.models import ScriptExecution + if named_outputs is not None: + named_outputs = dict(named_outputs) + script_execution = ScriptExecution(timeout=timeout, script_cmdlet_id=script_cmdlet_id, parameters=parameters, hidden_parameters=hidden_parameters, failure_reason=failure_reason, retention=retention, output=out, named_outputs=named_outputs) + return client.script_executions.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, script_execution_name=name, script_execution=script_execution) + + +def script_execution_list(client: AVSClient, resource_group_name, private_cloud): + return client.script_executions.list(resource_group_name=resource_group_name, private_cloud_name=private_cloud) + + +def script_execution_show(client: AVSClient, resource_group_name, private_cloud, name): + return client.script_executions.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, script_execution_name=name) + + +def script_execution_delete(client: AVSClient, resource_group_name, private_cloud, name): + return client.script_executions.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, script_execution_name=name) + + +def script_execution_logs(client: AVSClient, resource_group_name, private_cloud, name): + return client.script_executions.get_execution_logs(resource_group_name=resource_group_name, private_cloud_name=private_cloud, script_execution_name=name) + + +def workload_network_dhcp_server_create(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str, display_name=None, revision=None, server_address=None, lease_time=None): + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDhcpServer + properties = WorkloadNetworkDhcpServer(display_name=display_name, revision=revision, server_address=server_address, lease_time=lease_time) + return client.workload_networks.begin_create_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) + + +def workload_network_dhcp_relay_create(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str, display_name=None, revision=None, server_addresses=None): + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDhcpRelay + properties = WorkloadNetworkDhcpRelay(display_name=display_name, revision=revision, server_addresses=server_addresses) + return client.workload_networks.begin_create_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) + + +def workload_network_dhcp_server_update(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str, display_name=None, revision=None, server_address=None, lease_time=None): + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDhcpServer + properties = WorkloadNetworkDhcpServer(display_name=display_name, revision=revision, server_address=server_address, lease_time=lease_time) + return client.workload_networks.begin_update_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) + + +def workload_network_dhcp_relay_update(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str, display_name=None, revision=None, server_addresses=None): + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDhcpRelay + properties = WorkloadNetworkDhcpRelay(display_name=display_name, revision=revision, server_addresses=server_addresses) + return client.workload_networks.begin_update_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) + + +def workload_network_dhcp_delete(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str): + return client.workload_networks.begin_delete_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id) + + +def workload_network_dhcp_list(client: AVSClient, resource_group_name, private_cloud): + return client.workload_networks.list_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud) + + +def workload_network_dhcp_show(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str): + return client.workload_networks.get_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id) + + +def workload_network_dns_services_list(client: AVSClient, resource_group_name, private_cloud): + return client.workload_networks.list_dns_services(resource_group_name=resource_group_name, private_cloud_name=private_cloud) + + +def workload_network_dns_services_get(client: AVSClient, resource_group_name, private_cloud, dns_service_id): + return client.workload_networks.get_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service_id) + + +def workload_network_dns_services_create(client: AVSClient, resource_group_name, private_cloud, dns_service_id, display_name=None, dns_service_ip=None, default_dns_zone=None, fqdn_zones=None, log_level=None, revision=None): + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDnsService + prop = WorkloadNetworkDnsService(display_name=display_name, dns_service_ip=dns_service_ip, default_dns_zone=default_dns_zone, log_level=log_level, revision=revision, fqdn_zones=fqdn_zones) + return client.workload_networks.begin_create_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service_id, workload_network_dns_service=prop) + + +def workload_network_dns_services_update(client: AVSClient, resource_group_name, private_cloud, dns_service_id, display_name=None, dns_service_ip=None, default_dns_zone=None, fqdn_zones=None, log_level=None, revision=None): + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDnsService + prop = WorkloadNetworkDnsService(display_name=display_name, dns_service_ip=dns_service_ip, default_dns_zone=default_dns_zone, fqdn_zones=fqdn_zones, log_level=log_level, revision=revision) + return client.workload_networks.begin_update_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service_id, workload_network_dns_service=prop) + + +def workload_network_dns_services_delete(client: AVSClient, resource_group_name, private_cloud, dns_service_id): + return client.workload_networks.begin_delete_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service_id) + + +def workload_network_dns_zone_list(client: AVSClient, resource_group_name, private_cloud): + return client.workload_networks.list_dns_zones(resource_group_name=resource_group_name, private_cloud_name=private_cloud) + + +def workload_network_dns_zone_get(client: AVSClient, resource_group_name, private_cloud, dns_zone_id): + return client.workload_networks.get_dns_zone(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_zone_id=dns_zone_id) + + +def workload_network_dns_zone_create(client: AVSClient, resource_group_name, private_cloud, dns_zone_id, display_name=None, domain=None, dns_server_ips=None, source_ip=None, dns_services=None, revision=None): + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDnsZone + prop = WorkloadNetworkDnsZone(display_name=display_name, domain=domain, dns_server_ips=dns_server_ips, source_ip=source_ip, dns_services=dns_services, revision=revision) + return client.workload_networks.begin_create_dns_zone(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_zone_id=dns_zone_id, workload_network_dns_zone=prop) + + +def workload_network_dns_zone_update(client: AVSClient, resource_group_name, private_cloud, dns_zone_id, display_name=None, domain=None, dns_server_ips=None, source_ip=None, dns_services=None, revision=None): + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDnsZone + prop = WorkloadNetworkDnsZone(display_name=display_name, domain=domain, dns_server_ips=dns_server_ips, source_ip=source_ip, dns_services=dns_services, revision=revision) + return client.workload_networks.begin_update_dns_zone(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_zone_id=dns_zone_id, workload_network_dns_zone=prop) + + +def workload_network_dns_zone_delete(client: AVSClient, resource_group_name, private_cloud, dns_zone_id): + return client.workload_networks.begin_delete_dns_zone(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_zone_id=dns_zone_id) + + +def workload_network_port_mirroring_list(client: AVSClient, resource_group_name, private_cloud): + return client.workload_networks.list_port_mirroring(resource_group_name=resource_group_name, private_cloud_name=private_cloud) + + +def workload_network_port_mirroring_get(client: AVSClient, resource_group_name, private_cloud, port_mirroring_id): + return client.workload_networks.get_port_mirroring(resource_group_name=resource_group_name, private_cloud_name=private_cloud, port_mirroring_id=port_mirroring_id) + + +def workload_network_port_mirroring_create(client: AVSClient, resource_group_name, private_cloud, port_mirroring_id, display_name=None, direction=None, source=None, destination=None, revision=None): + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkPortMirroring + prop = WorkloadNetworkPortMirroring(display_name=display_name, direction=direction, source=source, destination=destination, revision=revision) + return client.workload_networks.begin_create_port_mirroring(resource_group_name=resource_group_name, private_cloud_name=private_cloud, port_mirroring_id=port_mirroring_id, workload_network_port_mirroring=prop) + + +def workload_network_port_mirroring_update(client: AVSClient, resource_group_name, private_cloud, port_mirroring_id, display_name=None, direction=None, source=None, destination=None, revision=None): + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkPortMirroring + prop = WorkloadNetworkPortMirroring(display_name=display_name, direction=direction, source=source, destination=destination, revision=revision) + return client.workload_networks.begin_update_port_mirroring(resource_group_name=resource_group_name, private_cloud_name=private_cloud, port_mirroring_id=port_mirroring_id, workload_network_port_mirroring=prop) + + +def workload_network_port_mirroring_delete(client: AVSClient, resource_group_name, private_cloud, port_mirroring_id): + return client.workload_networks.begin_delete_port_mirroring(resource_group_name=resource_group_name, private_cloud_name=private_cloud, port_mirroring_id=port_mirroring_id) From c4616ebaeeedc543e07a28e19c9c591f439ec012 Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Thu, 23 Sep 2021 10:39:11 -0500 Subject: [PATCH 16/34] workload-network segment public-ip and vm-group commands --- src/vmware/azext_vmware/_help.py | 127 +++++ src/vmware/azext_vmware/_params.py | 19 + src/vmware/azext_vmware/commands.py | 20 + src/vmware/azext_vmware/custom.py | 68 +++ .../test_vmware_workload_network.yaml | 537 +++++++++++++++++- .../latest/test_workload_network_scenario.py | 52 +- 6 files changed, 797 insertions(+), 26 deletions(-) diff --git a/src/vmware/azext_vmware/_help.py b/src/vmware/azext_vmware/_help.py index 43fd98a6331..a6fdb8b4a78 100644 --- a/src/vmware/azext_vmware/_help.py +++ b/src/vmware/azext_vmware/_help.py @@ -712,3 +712,130 @@ - name: Delete a port mirroring profile by ID in a workload network. text: az vmware workload-network port-mirroring delete --resource-group group1 --private-cloud cloud1 --port-mirroring-id portMirroring1 """ + +helps['vmware workload-network segment'] = """ + type: group + short-summary: Commands to manage a Segment workload network. +""" + +helps['vmware workload-network segment list'] = """ + type: command + short-summary: List of segments in a private cloud workload network. + examples: + - name: List of segments in a workload network. + text: az vmware workload-network segment list --resource-group group1 --private-cloud cloud1 +""" + +helps['vmware workload-network segment show'] = """ + type: command + short-summary: Get a segment by ID in a private cloud workload network. + examples: + - name: Get a segment by ID in a workload network. + text: az vmware workload-network segment show --resource-group group1 --private-cloud cloud1 --segment-id segment1 +""" + +helps['vmware workload-network segment create'] = """ + type: command + short-summary: Create a segment by ID in a private cloud workload network. + examples: + - name: Create a segment by ID in a workload network. + text: az vmware workload-network segment create --resource-group group1 --private-cloud cloud1 --segment-id segment1 --display-name segment1 --connected-gateway /infra/tier-1s/gateway --revision 1 --dhcp-ranges 40.20.0.0 40.20.0.1 --gateway-address 40.20.20.20/16 +""" + +helps['vmware workload-network segment update'] = """ + type: command + short-summary: Update a segment by ID in a private cloud workload network. + examples: + - name: Update a segment by ID in a workload network. + text: az vmware workload-network segment update --resource-group group1 --private-cloud cloud1 --segment-id segment1 --display-name segment1 --connected-gateway /infra/tier-1s/gateway --revision 1 --dhcp-ranges 40.20.0.0 40.20.0.1 --gateway-address 40.20.20.20/16 +""" + +helps['vmware workload-network segment delete'] = """ + type: command + short-summary: Delete a segment by ID in a private cloud workload network. + examples: + - name: Delete a segment by ID in a workload network. + text: az vmware workload-network segment delete --resource-group group1 --private-cloud cloud1 --segment-id segment1 +""" + +helps['vmware workload-network public-ip'] = """ + type: group + short-summary: Commands to manage a Public-IP workload network. +""" + +helps['vmware workload-network public-ip list'] = """ + type: command + short-summary: List of Public IP Blocks in a private cloud workload network. + examples: + - name: List of Public IP Blocks in a workload network. + text: az vmware workload-network public-ip list --resource-group group1 --private-cloud cloud1 +""" + +helps['vmware workload-network public-ip show'] = """ + type: command + short-summary: Get a Public IP Block by id in a private cloud workload network. + examples: + - name: Get a Public IP Block by id in a workload network. + text: az vmware workload-network public-ip show --resource-group group1 --private-cloud cloud1 --public-ip-id publicIP1 +""" + +helps['vmware workload-network public-ip create'] = """ + type: command + short-summary: Create a Public IP Block by id in a private cloud workload network. + examples: + - name: Create a Public IP Block by id in a workload network. + text: az vmware workload-network public-ip create --resource-group group1 --private-cloud cloud1 --public-ip-id publicIP1 --display-name publicIP1 --number-of-public-i-ps 32 +""" + +helps['vmware workload-network public-ip delete'] = """ + type: command + short-summary: Delete a Public IP Block by id in a private cloud workload network. + examples: + - name: Delete a Public IP Block by id in a workload network. + text: az vmware workload-network public-ip delete --resource-group group1 --private-cloud cloud1 --public-ip-id publicIP1 +""" + +helps['vmware workload-network vm-group'] = """ + type: group + short-summary: Commands to manage a VM Group workload network. +""" + +helps['vmware workload-network vm-group list'] = """ + type: command + short-summary: List of VM Groups in a private cloud workload network. + examples: + - name: List of VM Groups in a workload network. + text: az vmware workload-network vm-group list --resource-group group1 --private-cloud cloud1 +""" + +helps['vmware workload-network vm-group show'] = """ + type: command + short-summary: Get a VM Group by id in a private cloud workload network. + examples: + - name: Get a VM Group by id in a workload network. + text: az vmware workload-network vm-group show --resource-group group1 --private-cloud cloud1 --vm-group-id vmGroup1 +""" + +helps['vmware workload-network vm-group create'] = """ + type: command + short-summary: Create a VM Group by id in a private cloud workload network. + examples: + - name: Create a VM Group by id in a workload network. + text: az vmware workload-network vm-group create --resource-group group1 --private-cloud cloud1 --vm-group-id vmGroup1 --display-name vmGroup1 --members 564d43da-fefc-2a3b-1d92-42855622fa50 --revision 1 +""" + +helps['vmware workload-network vm-group update'] = """ + type: command + short-summary: Update a VM Group by id in a private cloud workload network. + examples: + - name: Update a VM Group by id in a workload network. + text: az vmware workload-network vm-group update --resource-group group1 --private-cloud cloud1 --vm-group-id vmGroup1 --display-name vmGroup1 --members 564d43da-fefc-2a3b-1d92-42855622fa50 --revision 1 +""" + +helps['vmware workload-network vm-group delete'] = """ + type: command + short-summary: Delete a VM Group by id in a private cloud workload network. + examples: + - name: Delete a VM Group by id in a private cloud workload network. + text: az vmware workload-network vm-group delete --resource-group group1 --private-cloud cloud1 --vm-group-id vmGroup1 +""" diff --git a/src/vmware/azext_vmware/_params.py b/src/vmware/azext_vmware/_params.py index 84c31f39e15..59cf4c0c840 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -174,3 +174,22 @@ def load_arguments(self, _): c.argument('source', help='Source VM Group.') c.argument('destination', help='Destination VM Group.') c.argument('revision', help='NSX revision number.') + + with self.argument_context('vmware workload-network segment') as c: + c.argument('segment_id', help="NSX Segment identifier. Generally the same as the Segment's display name.") + c.argument('display_name', help='Display name of the segment.') + c.argument('connected_gateway', help='Gateway which to connect segment to.') + c.argument('revision', help='NSX revision number.') + c.argument('dhcp_ranges', nargs='+', help='DHCP Range assigned for subnet.') + c.argument('gateway_address', help='Gateway address.') + + with self.argument_context('vmware workload-network public-ip') as c: + c.argument('public_ip_id', help="NSX Public IP Block identifier. Generally the same as the Public IP.") + c.argument('display_name', help='Display name of the Public IP Block.') + c.argument('number_of_public_i_ps', help='Number of Public IPs requested.') + + with self.argument_context('vmware workload-network vm-group') as c: + c.argument('vm_group_id', help="NSX VM Group identifier. Generally the same as the VM Group's display name.") + c.argument('display_name', help='Display name of the VM group.') + c.argument('members', nargs='+', help='Virtual machine members of this group.') + c.argument('revision', help='NSX revision number.') diff --git a/src/vmware/azext_vmware/commands.py b/src/vmware/azext_vmware/commands.py index 6e474306b07..ce4e8c5ebc0 100644 --- a/src/vmware/azext_vmware/commands.py +++ b/src/vmware/azext_vmware/commands.py @@ -142,3 +142,23 @@ def load_command_table(self, _): g.custom_command('create', 'workload_network_port_mirroring_create') g.custom_command('update', 'workload_network_port_mirroring_update') g.custom_command('delete', 'workload_network_port_mirroring_delete') + + with self.command_group('vmware workload-network segment', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('list', 'workload_network_segment_list') + g.custom_show_command('show', 'workload_network_segment_get') + g.custom_command('create', 'workload_network_segment_create') + g.custom_command('update', 'workload_network_segment_update') + g.custom_command('delete', 'workload_network_segment_delete') + + with self.command_group('vmware workload-network public-ip', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('list', 'workload_network_public_ip_list') + g.custom_show_command('show', 'workload_network_public_ip_get') + g.custom_command('create', 'workload_network_public_ip_create') + g.custom_command('delete', 'workload_network_public_ip_delete') + + with self.command_group('vmware workload-network vm-group', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('list', 'workload_network_vm_group_list') + g.custom_show_command('show', 'workload_network_vm_group_get') + g.custom_command('create', 'workload_network_vm_group_create') + g.custom_command('update', 'workload_network_vm_group_update') + g.custom_command('delete', 'workload_network_vm_group_delete') diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index 61c80e1ef63..2167d5e7cd8 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -437,3 +437,71 @@ def workload_network_port_mirroring_update(client: AVSClient, resource_group_nam def workload_network_port_mirroring_delete(client: AVSClient, resource_group_name, private_cloud, port_mirroring_id): return client.workload_networks.begin_delete_port_mirroring(resource_group_name=resource_group_name, private_cloud_name=private_cloud, port_mirroring_id=port_mirroring_id) + + +def workload_network_segment_list(client: AVSClient, resource_group_name, private_cloud): + return client.workload_networks.list_segments(resource_group_name=resource_group_name, private_cloud_name=private_cloud) + + +def workload_network_segment_get(client: AVSClient, resource_group_name, private_cloud, segment_id): + return client.workload_networks.get_segment(resource_group_name=resource_group_name, private_cloud_name=private_cloud, segment_id=segment_id) + + +def workload_network_segment_create(client: AVSClient, resource_group_name, private_cloud, segment_id, display_name=None, connected_gateway=None, revision=None, dhcp_ranges=None, gateway_address=None): + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkSegmentSubnet + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkSegment + subnet = WorkloadNetworkSegmentSubnet(dhcp_ranges=dhcp_ranges, gateway_address=gateway_address) + segment = WorkloadNetworkSegment(display_name=display_name, connected_gateway=connected_gateway, subnet=subnet, revision=revision) + return client.workload_networks.begin_create_segments(resource_group_name=resource_group_name, private_cloud_name=private_cloud, segment_id=segment_id, workload_network_segment=segment) + + +def workload_network_segment_update(client: AVSClient, resource_group_name, private_cloud, segment_id, display_name=None, connected_gateway=None, revision=None, dhcp_ranges=None, gateway_address=None): + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkSegmentSubnet + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkSegment + subnet = WorkloadNetworkSegmentSubnet(dhcp_ranges=dhcp_ranges, gateway_address=gateway_address) + segment = WorkloadNetworkSegment(display_name=display_name, connected_gateway=connected_gateway, subnet=subnet, revision=revision) + return client.workload_networks.begin_update_segments(resource_group_name=resource_group_name, private_cloud_name=private_cloud, segment_id=segment_id, workload_network_segment=segment) + + +def workload_network_segment_delete(client: AVSClient, resource_group_name, private_cloud, segment_id): + return client.workload_networks.begin_delete_segment(resource_group_name=resource_group_name, private_cloud_name=private_cloud, segment_id=segment_id) + + +def workload_network_public_ip_list(client: AVSClient, resource_group_name, private_cloud): + return client.workload_networks.list_public_i_ps(resource_group_name=resource_group_name, private_cloud_name=private_cloud) + + +def workload_network_public_ip_get(client: AVSClient, resource_group_name, private_cloud, public_ip_id): + return client.workload_networks.get_public_ip(resource_group_name=resource_group_name, private_cloud_name=private_cloud, public_ip_id=public_ip_id) + + +def workload_network_public_ip_create(client: AVSClient, resource_group_name, private_cloud, public_ip_id, display_name=None, number_of_public_i_ps=None): + return client.workload_networks.begin_create_public_ip(resource_group_name=resource_group_name, private_cloud_name=private_cloud, public_ip_id=public_ip_id, display_name=display_name, number_of_public_i_ps=number_of_public_i_ps) + + +def workload_network_public_ip_delete(client: AVSClient, resource_group_name, private_cloud, public_ip_id): + return client.workload_networks.begin_delete_public_ip(resource_group_name=resource_group_name, private_cloud_name=private_cloud, public_ip_id=public_ip_id) + + +def workload_network_vm_group_list(client: AVSClient, resource_group_name, private_cloud): + return client.workload_networks.list_vm_groups(resource_group_name=resource_group_name, private_cloud_name=private_cloud) + + +def workload_network_vm_group_get(client: AVSClient, resource_group_name, private_cloud, vm_group_id): + return client.workload_networks.get_vm_group(resource_group_name=resource_group_name, private_cloud_name=private_cloud, vm_group_id=vm_group_id) + + +def workload_network_vm_group_create(client: AVSClient, resource_group_name, private_cloud, vm_group_id, display_name=None, members=None, revision=None): + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkVMGroup + vmGroup = WorkloadNetworkVMGroup(display_name=display_name, members=members, revision=revision) + return client.workload_networks.begin_create_vm_group(resource_group_name=resource_group_name, private_cloud_name=private_cloud, vm_group_id=vm_group_id, workload_network_vm_group=vmGroup) + + +def workload_network_vm_group_update(client: AVSClient, resource_group_name, private_cloud, vm_group_id, display_name=None, members=None, revision=None): + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkVMGroup + vmGroup = WorkloadNetworkVMGroup(display_name=display_name, members=members, revision=revision) + return client.workload_networks.begin_update_vm_group(resource_group_name=resource_group_name, private_cloud_name=private_cloud, vm_group_id=vm_group_id, workload_network_vm_group=vmGroup) + + +def workload_network_vm_group_delete(client: AVSClient, resource_group_name, private_cloud, vm_group_id): + return client.workload_networks.begin_delete_vm_group(resource_group_name=resource_group_name, private_cloud_name=private_cloud, vm_group_id=vm_group_id) diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml index 8bb97f5cba7..2a8c8a51ff0 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml @@ -25,7 +25,7 @@ interactions: content-type: - application/json date: - - Thu, 16 Sep 2021 20:19:25 GMT + - Wed, 22 Sep 2021 17:46:53 GMT server: - Rocket status: @@ -57,7 +57,7 @@ interactions: content-type: - application/json date: - - Thu, 16 Sep 2021 20:19:29 GMT + - Wed, 22 Sep 2021 17:46:58 GMT server: - Rocket status: @@ -94,7 +94,7 @@ interactions: content-type: - application/json date: - - Thu, 16 Sep 2021 20:19:34 GMT + - Wed, 22 Sep 2021 17:47:02 GMT server: - Rocket status: @@ -126,7 +126,7 @@ interactions: content-length: - '0' date: - - Thu, 16 Sep 2021 20:19:38 GMT + - Wed, 22 Sep 2021 17:47:06 GMT server: - Rocket status: @@ -163,7 +163,7 @@ interactions: content-type: - application/json date: - - Thu, 16 Sep 2021 20:19:42 GMT + - Wed, 22 Sep 2021 17:47:11 GMT server: - Rocket status: @@ -201,7 +201,7 @@ interactions: content-type: - application/json date: - - Thu, 16 Sep 2021 20:19:46 GMT + - Wed, 22 Sep 2021 17:47:15 GMT server: - Rocket status: @@ -233,7 +233,7 @@ interactions: content-length: - '0' date: - - Thu, 16 Sep 2021 20:19:50 GMT + - Wed, 22 Sep 2021 17:47:20 GMT server: - Rocket status: @@ -271,7 +271,7 @@ interactions: content-type: - application/json date: - - Thu, 16 Sep 2021 20:19:55 GMT + - Wed, 22 Sep 2021 17:47:24 GMT server: - Rocket status: @@ -303,7 +303,7 @@ interactions: content-type: - application/json date: - - Thu, 16 Sep 2021 20:19:59 GMT + - Wed, 22 Sep 2021 17:47:29 GMT server: - Rocket status: @@ -335,7 +335,7 @@ interactions: content-type: - application/json date: - - Thu, 16 Sep 2021 20:20:03 GMT + - Wed, 22 Sep 2021 17:47:33 GMT server: - Rocket status: @@ -374,7 +374,7 @@ interactions: content-type: - application/json date: - - Thu, 16 Sep 2021 20:20:07 GMT + - Wed, 22 Sep 2021 17:47:38 GMT server: - Rocket status: @@ -413,7 +413,7 @@ interactions: content-type: - application/json date: - - Thu, 16 Sep 2021 20:20:11 GMT + - Wed, 22 Sep 2021 17:47:42 GMT server: - Rocket status: @@ -445,7 +445,7 @@ interactions: content-length: - '0' date: - - Thu, 16 Sep 2021 20:20:16 GMT + - Wed, 22 Sep 2021 17:47:47 GMT server: - Rocket status: @@ -477,7 +477,7 @@ interactions: content-type: - application/json date: - - Thu, 16 Sep 2021 20:20:20 GMT + - Wed, 22 Sep 2021 17:47:51 GMT server: - Rocket status: @@ -509,7 +509,7 @@ interactions: content-type: - application/json date: - - Thu, 16 Sep 2021 20:20:24 GMT + - Wed, 22 Sep 2021 17:47:55 GMT server: - Rocket status: @@ -517,7 +517,8 @@ interactions: message: OK - request: body: '{"properties": {"displayName": "testDisplayName", "domain": ["domain1"], - "dnsServerIps": ["1.1.1.1"], "sourceIp": "8.8.8.8", "dnsServices": 1}}' + "dnsServerIps": ["1.1.1.1"], "sourceIp": "8.8.8.8", "dnsServices": 1, "revision": + 1}}' headers: Accept: - application/json @@ -528,7 +529,7 @@ interactions: Connection: - keep-alive Content-Length: - - '143' + - '158' Content-Type: - application/json ParameterSetName: @@ -547,7 +548,7 @@ interactions: content-type: - application/json date: - - Thu, 16 Sep 2021 20:20:28 GMT + - Wed, 22 Sep 2021 17:48:00 GMT server: - Rocket status: @@ -555,7 +556,8 @@ interactions: message: OK - request: body: '{"properties": {"displayName": "testDisplayName", "domain": ["domain1"], - "dnsServerIps": ["1.1.1.1"], "sourceIp": "8.8.8.8", "dnsServices": 1}}' + "dnsServerIps": ["1.1.1.1"], "sourceIp": "8.8.8.8", "dnsServices": 1, "revision": + 1}}' headers: Accept: - application/json @@ -566,7 +568,7 @@ interactions: Connection: - keep-alive Content-Length: - - '143' + - '158' Content-Type: - application/json ParameterSetName: @@ -585,7 +587,7 @@ interactions: content-type: - application/json date: - - Thu, 16 Sep 2021 20:20:32 GMT + - Wed, 22 Sep 2021 17:48:04 GMT server: - Rocket status: @@ -617,7 +619,7 @@ interactions: content-length: - '0' date: - - Thu, 16 Sep 2021 20:20:36 GMT + - Wed, 22 Sep 2021 17:48:09 GMT server: - Rocket status: @@ -651,7 +653,7 @@ interactions: content-type: - application/json date: - - Thu, 16 Sep 2021 20:20:41 GMT + - Wed, 22 Sep 2021 17:48:14 GMT server: - Rocket status: @@ -685,7 +687,7 @@ interactions: content-type: - application/json date: - - Thu, 16 Sep 2021 20:20:45 GMT + - Wed, 22 Sep 2021 17:48:18 GMT server: - Rocket status: @@ -717,7 +719,492 @@ interactions: content-length: - '0' date: - - Thu, 16 Sep 2021 20:20:49 GMT + - Wed, 22 Sep 2021 17:48:22 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network segment list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments?api-version=2021-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"portVif":[{"portName":"vm1"}],"status":"SUCCESS, + FAILURE","revision":1}}]}' + headers: + content-length: + - '482' + content-type: + - application/json + date: + - Wed, 22 Sep 2021 17:48:27 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network segment show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud --segment-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"portVif":[{"portName":"vm1"}],"status":"SUCCESS, + FAILURE","revision":1}}' + headers: + content-length: + - '470' + content-type: + - application/json + date: + - Wed, 22 Sep 2021 17:48:31 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "testDisplayName", "connectedGateway": "/infra/tier-1s/gateway", + "subnet": {"dhcpRanges": ["40.20.0.0", "40.20.0.1"], "gatewayAddress": "40.20.20.20/16"}, + "revision": 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network segment create + Connection: + - keep-alive + Content-Length: + - '201' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --segment-id --display-name --connected-gateway + --revision --dhcp-ranges --gateway-address + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"status":"SUCCESS, + FAILURE","revision":1}}' + headers: + content-length: + - '439' + content-type: + - application/json + date: + - Wed, 22 Sep 2021 17:48:36 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "testDisplayName", "connectedGateway": "/infra/tier-1s/gateway", + "subnet": {"dhcpRanges": ["40.20.0.0", "40.20.0.1"], "gatewayAddress": "40.20.20.20/16"}, + "revision": 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network segment update + Connection: + - keep-alive + Content-Length: + - '201' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --segment-id --display-name --connected-gateway + --revision --dhcp-ranges --gateway-address + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PATCH + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"portVif":[{"portName":"vm1"}],"status":"SUCCESS, + FAILURE","revision":2}}' + headers: + content-length: + - '470' + content-type: + - application/json + date: + - Wed, 22 Sep 2021 17:48:41 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network segment delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --private-cloud --segment-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: DELETE + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Wed, 22 Sep 2021 17:48:45 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network public-ip list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs?api-version=2021-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1","name":"publicIP1","type":"Microsoft.AVS/privateClouds/workloadNetworks/publicIPs","properties":{"displayName":"publicIP1","publicIPBlock":"20.20.40.50/32"}}]}' + headers: + content-length: + - '322' + content-type: + - application/json + date: + - Wed, 22 Sep 2021 17:48:50 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network public-ip show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud --public-ip-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1","name":"publicIP1","type":"Microsoft.AVS/privateClouds/workloadNetworks/publicIPs","properties":{"displayName":"publicIP1","publicIPBlock":"20.20.40.50/32"}}' + headers: + content-length: + - '310' + content-type: + - application/json + date: + - Wed, 22 Sep 2021 17:48:54 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "testDisplayName", "numberOfPublicIPs": + 32}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network public-ip create + Connection: + - keep-alive + Content-Length: + - '75' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --public-ip-id --display-name --number-of-public-i-ps + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1","name":"publicIP1","type":"Microsoft.AVS/privateClouds/workloadNetworks/publicIPs","properties":{"displayName":"publicIP1","publicIPBlock":"20.20.40.50/32"}}' + headers: + content-length: + - '310' + content-type: + - application/json + date: + - Wed, 22 Sep 2021 17:48:59 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network public-ip delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --private-cloud --public-ip-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: DELETE + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-06-01 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Wed, 22 Sep 2021 17:49:03 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network vm-group list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups?api-version=2021-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS, + FAILURE","revision":1}}]}' + headers: + content-length: + - '374' + content-type: + - application/json + date: + - Wed, 22 Sep 2021 17:49:08 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network vm-group show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud --vm-group-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS, + FAILURE","revision":1}}' + headers: + content-length: + - '362' + content-type: + - application/json + date: + - Wed, 22 Sep 2021 17:49:12 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "testDisplayName", "members": ["564d43da-fefc-2a3b-1d92-42855622fa50"], + "revision": 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network vm-group create + Connection: + - keep-alive + Content-Length: + - '118' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --vm-group-id --display-name --members --revision + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"vmGroup1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS, + FAILURE","revision":1}}' + headers: + content-length: + - '364' + content-type: + - application/json + date: + - Wed, 22 Sep 2021 17:49:17 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "testDisplayName", "members": ["564d43da-fefc-2a3b-1d92-42855622fa50"], + "revision": 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network vm-group update + Connection: + - keep-alive + Content-Length: + - '118' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --vm-group-id --display-name --members --revision + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PATCH + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS, + FAILURE","revision":2}}' + headers: + content-length: + - '362' + content-type: + - application/json + date: + - Wed, 22 Sep 2021 17:49:21 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network vm-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --private-cloud --vm-group-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: DELETE + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Wed, 22 Sep 2021 17:49:26 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/test_workload_network_scenario.py b/src/vmware/azext_vmware/tests/latest/test_workload_network_scenario.py index 69ee77d23cf..4468674e2e5 100644 --- a/src/vmware/azext_vmware/tests/latest/test_workload_network_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_workload_network_scenario.py @@ -36,7 +36,15 @@ def test_vmware_workload_network(self): 'port_mirroring_id': 'portMirroring1', 'direction': 'BIDIRECTIONAL', 'source': 'vmGroup1', - 'destination': 'vmGroup2' + 'segment_id': 'segment1', + 'destination': 'vmGroup2', + 'connected_gateway': '/infra/tier-1s/gateway', + 'dhcp_ranges': '40.20.0.0 40.20.0.1', + 'gateway_address': '40.20.20.20/16', + 'public_ip_id': 'publicIP1', + 'number_of_public_i_ps': '32', + 'vm_group_id': 'vmGroup1', + 'members': '564d43da-fefc-2a3b-1d92-42855622fa50' }) count = len(self.cmd('az vmware workload-network dhcp list --resource-group {rg} --private-cloud {privatecloud}').get_output_in_json()) @@ -109,3 +117,45 @@ def test_vmware_workload_network(self): portMirroringDelete = self.cmd('az vmware workload-network port-mirroring delete --resource-group {rg} --private-cloud {privatecloud} --port-mirroring-id {port_mirroring_id}').output self.assertEqual(len(portMirroringDelete), 0) + + segmentList = self.cmd('az vmware workload-network segment list --resource-group {rg} --private-cloud {privatecloud}').get_output_in_json() + self.assertEqual(len(segmentList), 1, 'count expected to be 1') + + segmentGet = self.cmd('az vmware workload-network segment show --resource-group {rg} --private-cloud {privatecloud} --segment-id {segment_id}').get_output_in_json() + self.assertEqual(segmentGet['name'], 'segment1') + + segmentCreate = self.cmd('az vmware workload-network segment create --resource-group {rg} --private-cloud {privatecloud} --segment-id {segment_id} --display-name {display_name} --connected-gateway {connected_gateway} --revision {revision} --dhcp-ranges {dhcp_ranges} --gateway-address {gateway_address}').get_output_in_json() + self.assertEqual(segmentCreate['name'], 'segment1') + + segmentUpdate = self.cmd('az vmware workload-network segment update --resource-group {rg} --private-cloud {privatecloud} --segment-id {segment_id} --display-name {display_name} --connected-gateway {connected_gateway} --revision {revision} --dhcp-ranges {dhcp_ranges} --gateway-address {gateway_address}').get_output_in_json() + self.assertEqual(segmentUpdate['name'], 'segment1') + + segmentDelete = self.cmd('az vmware workload-network segment delete --resource-group {rg} --private-cloud {privatecloud} --segment-id {segment_id}').output + self.assertEqual(len(segmentDelete), 0) + + publicIpList = self.cmd('az vmware workload-network public-ip list --resource-group {rg} --private-cloud {privatecloud}').get_output_in_json() + self.assertEqual(len(publicIpList), 1, 'count expected to be 1') + + publicIpGet = self.cmd('az vmware workload-network public-ip show --resource-group {rg} --private-cloud {privatecloud} --public-ip-id {public_ip_id}').get_output_in_json() + self.assertEqual(publicIpGet['name'], 'publicIP1') + + publicIpCreate = self.cmd('az vmware workload-network public-ip create --resource-group {rg} --private-cloud {privatecloud} --public-ip-id {public_ip_id} --display-name {display_name} --number-of-public-i-ps {number_of_public_i_ps}').get_output_in_json() + self.assertEqual(publicIpCreate['name'], 'publicIP1') + + publicIpDelete = self.cmd('az vmware workload-network public-ip delete --resource-group {rg} --private-cloud {privatecloud} --public-ip-id {public_ip_id}').output + self.assertEqual(len(publicIpDelete), 0) + + vmGroupList = self.cmd('az vmware workload-network vm-group list --resource-group {rg} --private-cloud {privatecloud}').get_output_in_json() + self.assertEqual(len(vmGroupList), 1, 'count expected to be 1') + + vmGroupGet = self.cmd('az vmware workload-network vm-group show --resource-group {rg} --private-cloud {privatecloud} --vm-group-id {vm_group_id}').get_output_in_json() + self.assertEqual(vmGroupGet['name'], 'cloud1') + + vmGroupCreate = self.cmd('az vmware workload-network vm-group create --resource-group {rg} --private-cloud {privatecloud} --vm-group-id {vm_group_id} --display-name {display_name} --members {members} --revision {revision}').get_output_in_json() + self.assertEqual(vmGroupCreate['name'], 'vmGroup1') + + vmGroupUpdate = self.cmd('az vmware workload-network vm-group update --resource-group {rg} --private-cloud {privatecloud} --vm-group-id {vm_group_id} --display-name {display_name} --members {members} --revision {revision}').get_output_in_json() + self.assertEqual(vmGroupUpdate['name'], 'cloud1') + + vmGroupDelete = self.cmd('az vmware workload-network vm-group delete --resource-group {rg} --private-cloud {privatecloud} --vm-group-id {vm_group_id}').output + self.assertEqual(len(vmGroupDelete), 0) From 9e84d8df4e780e7d376577ad8f26f8dcc846fc2f Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Thu, 23 Sep 2021 10:48:07 -0500 Subject: [PATCH 17/34] fixed merge issue --- src/vmware/azext_vmware/_params.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/vmware/azext_vmware/_params.py b/src/vmware/azext_vmware/_params.py index 84c31f39e15..59cf4c0c840 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -174,3 +174,22 @@ def load_arguments(self, _): c.argument('source', help='Source VM Group.') c.argument('destination', help='Destination VM Group.') c.argument('revision', help='NSX revision number.') + + with self.argument_context('vmware workload-network segment') as c: + c.argument('segment_id', help="NSX Segment identifier. Generally the same as the Segment's display name.") + c.argument('display_name', help='Display name of the segment.') + c.argument('connected_gateway', help='Gateway which to connect segment to.') + c.argument('revision', help='NSX revision number.') + c.argument('dhcp_ranges', nargs='+', help='DHCP Range assigned for subnet.') + c.argument('gateway_address', help='Gateway address.') + + with self.argument_context('vmware workload-network public-ip') as c: + c.argument('public_ip_id', help="NSX Public IP Block identifier. Generally the same as the Public IP.") + c.argument('display_name', help='Display name of the Public IP Block.') + c.argument('number_of_public_i_ps', help='Number of Public IPs requested.') + + with self.argument_context('vmware workload-network vm-group') as c: + c.argument('vm_group_id', help="NSX VM Group identifier. Generally the same as the VM Group's display name.") + c.argument('display_name', help='Display name of the VM group.') + c.argument('members', nargs='+', help='Virtual machine members of this group.') + c.argument('revision', help='NSX revision number.') From 4e13b1320431cfb75258f3f53c8a511e46962059 Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Thu, 23 Sep 2021 10:49:10 -0500 Subject: [PATCH 18/34] updated merge --- src/vmware/azext_vmware/commands.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/vmware/azext_vmware/commands.py b/src/vmware/azext_vmware/commands.py index 6e474306b07..ce4e8c5ebc0 100644 --- a/src/vmware/azext_vmware/commands.py +++ b/src/vmware/azext_vmware/commands.py @@ -142,3 +142,23 @@ def load_command_table(self, _): g.custom_command('create', 'workload_network_port_mirroring_create') g.custom_command('update', 'workload_network_port_mirroring_update') g.custom_command('delete', 'workload_network_port_mirroring_delete') + + with self.command_group('vmware workload-network segment', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('list', 'workload_network_segment_list') + g.custom_show_command('show', 'workload_network_segment_get') + g.custom_command('create', 'workload_network_segment_create') + g.custom_command('update', 'workload_network_segment_update') + g.custom_command('delete', 'workload_network_segment_delete') + + with self.command_group('vmware workload-network public-ip', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('list', 'workload_network_public_ip_list') + g.custom_show_command('show', 'workload_network_public_ip_get') + g.custom_command('create', 'workload_network_public_ip_create') + g.custom_command('delete', 'workload_network_public_ip_delete') + + with self.command_group('vmware workload-network vm-group', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('list', 'workload_network_vm_group_list') + g.custom_show_command('show', 'workload_network_vm_group_get') + g.custom_command('create', 'workload_network_vm_group_create') + g.custom_command('update', 'workload_network_vm_group_update') + g.custom_command('delete', 'workload_network_vm_group_delete') From d09f57054238d561add414d7922da39831b1ad5e Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Thu, 23 Sep 2021 14:00:25 -0500 Subject: [PATCH 19/34] added workload-network vm and gateway commands' --- src/vmware/azext_vmware/_help.py | 70 +- src/vmware/azext_vmware/_params.py | 6 + src/vmware/azext_vmware/commands.py | 8 + src/vmware/azext_vmware/custom.py | 16 + .../test_vmware_workload_network.yaml | 2575 +++++++++-------- .../latest/test_workload_network_scenario.py | 16 +- 6 files changed, 1442 insertions(+), 1249 deletions(-) diff --git a/src/vmware/azext_vmware/_help.py b/src/vmware/azext_vmware/_help.py index a6fdb8b4a78..3bb3fd0bbc6 100644 --- a/src/vmware/azext_vmware/_help.py +++ b/src/vmware/azext_vmware/_help.py @@ -773,25 +773,25 @@ helps['vmware workload-network public-ip show'] = """ type: command - short-summary: Get a Public IP Block by id in a private cloud workload network. + short-summary: Get a Public IP Block by ID in a private cloud workload network. examples: - - name: Get a Public IP Block by id in a workload network. + - name: Get a Public IP Block by ID in a workload network. text: az vmware workload-network public-ip show --resource-group group1 --private-cloud cloud1 --public-ip-id publicIP1 """ helps['vmware workload-network public-ip create'] = """ type: command - short-summary: Create a Public IP Block by id in a private cloud workload network. + short-summary: Create a Public IP Block by ID in a private cloud workload network. examples: - - name: Create a Public IP Block by id in a workload network. + - name: Create a Public IP Block by ID in a workload network. text: az vmware workload-network public-ip create --resource-group group1 --private-cloud cloud1 --public-ip-id publicIP1 --display-name publicIP1 --number-of-public-i-ps 32 """ helps['vmware workload-network public-ip delete'] = """ type: command - short-summary: Delete a Public IP Block by id in a private cloud workload network. + short-summary: Delete a Public IP Block by ID in a private cloud workload network. examples: - - name: Delete a Public IP Block by id in a workload network. + - name: Delete a Public IP Block by ID in a workload network. text: az vmware workload-network public-ip delete --resource-group group1 --private-cloud cloud1 --public-ip-id publicIP1 """ @@ -810,32 +810,74 @@ helps['vmware workload-network vm-group show'] = """ type: command - short-summary: Get a VM Group by id in a private cloud workload network. + short-summary: Get a VM Group by ID in a private cloud workload network. examples: - - name: Get a VM Group by id in a workload network. + - name: Get a VM Group by ID in a workload network. text: az vmware workload-network vm-group show --resource-group group1 --private-cloud cloud1 --vm-group-id vmGroup1 """ helps['vmware workload-network vm-group create'] = """ type: command - short-summary: Create a VM Group by id in a private cloud workload network. + short-summary: Create a VM Group by ID in a private cloud workload network. examples: - - name: Create a VM Group by id in a workload network. + - name: Create a VM Group by ID in a workload network. text: az vmware workload-network vm-group create --resource-group group1 --private-cloud cloud1 --vm-group-id vmGroup1 --display-name vmGroup1 --members 564d43da-fefc-2a3b-1d92-42855622fa50 --revision 1 """ helps['vmware workload-network vm-group update'] = """ type: command - short-summary: Update a VM Group by id in a private cloud workload network. + short-summary: Update a VM Group by ID in a private cloud workload network. examples: - - name: Update a VM Group by id in a workload network. + - name: Update a VM Group by ID in a workload network. text: az vmware workload-network vm-group update --resource-group group1 --private-cloud cloud1 --vm-group-id vmGroup1 --display-name vmGroup1 --members 564d43da-fefc-2a3b-1d92-42855622fa50 --revision 1 """ helps['vmware workload-network vm-group delete'] = """ type: command - short-summary: Delete a VM Group by id in a private cloud workload network. + short-summary: Delete a VM Group by ID in a private cloud workload network. examples: - - name: Delete a VM Group by id in a private cloud workload network. + - name: Delete a VM Group by ID in a private cloud workload network. text: az vmware workload-network vm-group delete --resource-group group1 --private-cloud cloud1 --vm-group-id vmGroup1 """ + +helps['vmware workload-network vm'] = """ + type: group + short-summary: Commands to manage a Virtual Machine workload network. +""" + +helps['vmware workload-network vm list'] = """ + type: command + short-summary: List of Virtual Machines in a private cloud workload network. + examples: + - name: List of Virtual Machines in a workload network. + text: az vmware workload-network vm list --resource-group group1 --private-cloud cloud1 +""" + +helps['vmware workload-network vm show'] = """ + type: command + short-summary: Get a Virtual Machines by ID in a private cloud workload network. + examples: + - name: Get a Virtual Machines by ID in a workload network. + text: az vmware workload-network vm show --resource-group group1 --private-cloud cloud1 --virtual-machine-id vm1 +""" + +helps['vmware workload-network gateway'] = """ + type: group + short-summary: Commands to manage a Virtual Machine workload network. +""" + +helps['vmware workload-network gateway list'] = """ + type: command + short-summary: List of Gateways in a private cloud workload network. + examples: + - name: List of Gateways in a workload network. + text: az vmware workload-network gateway list --resource-group group1 --private-cloud cloud1 +""" + +helps['vmware workload-network gateway show'] = """ + type: command + short-summary: Get a Gateway by ID in a private cloud workload network. + examples: + - name: Get a Gateway by ID in a workload network. + text: az vmware workload-network gateway show --resource-group group1 --private-cloud cloud1 --gateway-id gateway1 +""" diff --git a/src/vmware/azext_vmware/_params.py b/src/vmware/azext_vmware/_params.py index 59cf4c0c840..567b3c192cb 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -193,3 +193,9 @@ def load_arguments(self, _): c.argument('display_name', help='Display name of the VM group.') c.argument('members', nargs='+', help='Virtual machine members of this group.') c.argument('revision', help='NSX revision number.') + + with self.argument_context('vmware workload-network vm-group') as c: + c.argument('virtual_machine_id', help="Virtual Machine identifier.") + + with self.argument_context('vmware workload-network vm-group') as c: + c.argument('gateway_id', help="NSX Gateway identifier. Generally the same as the Gateway's display name.") diff --git a/src/vmware/azext_vmware/commands.py b/src/vmware/azext_vmware/commands.py index ce4e8c5ebc0..6dd9f07bf9e 100644 --- a/src/vmware/azext_vmware/commands.py +++ b/src/vmware/azext_vmware/commands.py @@ -162,3 +162,11 @@ def load_command_table(self, _): g.custom_command('create', 'workload_network_vm_group_create') g.custom_command('update', 'workload_network_vm_group_update') g.custom_command('delete', 'workload_network_vm_group_delete') + + with self.command_group('vmware workload-network vm', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('list', 'workload_network_vm_list') + g.custom_show_command('show', 'workload_network_vm_get') + + with self.command_group('vmware workload-network gateway', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('list', 'workload_network_gateway_list') + g.custom_show_command('show', 'workload_network_gateway_get') diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index 2167d5e7cd8..749454ed890 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -505,3 +505,19 @@ def workload_network_vm_group_update(client: AVSClient, resource_group_name, pri def workload_network_vm_group_delete(client: AVSClient, resource_group_name, private_cloud, vm_group_id): return client.workload_networks.begin_delete_vm_group(resource_group_name=resource_group_name, private_cloud_name=private_cloud, vm_group_id=vm_group_id) + + +def workload_network_vm_list(client: AVSClient, resource_group_name, private_cloud): + return client.workload_networks.list_virtual_machines(resource_group_name=resource_group_name, private_cloud_name=private_cloud) + + +def workload_network_vm_get(client: AVSClient, resource_group_name, private_cloud, virtual_machine_id): + return client.workload_networks.get_virtual_machine(resource_group_name=resource_group_name, private_cloud_name=private_cloud, virtual_machine_id=virtual_machine_id) + + +def workload_network_gateway_list(client: AVSClient, resource_group_name, private_cloud): + return client.workload_networks.list_gateways(resource_group_name=resource_group_name, private_cloud_name=private_cloud) + + +def workload_network_gateway_get(client: AVSClient, resource_group_name, private_cloud, gateway_id): + return client.workload_networks.get_gateway(resource_group_name=resource_group_name, private_cloud_name=private_cloud, gateway_id=gateway_id) diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml index 2d9e1ea7fdd..867e3a5ede3 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml @@ -1,1236 +1,1343 @@ interactions: - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dhcp list - Connection: - - keep-alive - ParameterSetName: - - --resource-group --private-cloud - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations?api-version=2021-06-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}]}' - headers: - content-length: - - "391" - content-type: - - application/json - date: - - Wed, 22 Sep 2021 17:46:53 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dhcp show - Connection: - - keep-alive - ParameterSetName: - - --resource-group --private-cloud --dhcp-id - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' - headers: - content-length: - - "379" - content-type: - - application/json - date: - - Wed, 22 Sep 2021 17:46:58 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: - '{"properties": {"dhcpType": "RELAY", "displayName": "testDisplayName", - "revision": 1, "serverAddresses": ["40.1.5.1/24"]}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dhcp relay create - Connection: - - keep-alive - Content-Length: - - "122" - Content-Type: - - application/json - ParameterSetName: - - --resource-group --private-cloud --dhcp-id --display-name --revision --server-addresses - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' - headers: - content-length: - - "379" - content-type: - - application/json - date: - - Wed, 22 Sep 2021 17:47:02 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dhcp relay delete - Connection: - - keep-alive - Content-Length: - - "0" - ParameterSetName: - - --resource-group --private-cloud --dhcp-id - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 - response: - body: - string: "" - headers: - content-length: - - "0" - date: - - Wed, 22 Sep 2021 17:47:06 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: - '{"properties": {"dhcpType": "RELAY", "displayName": "testDisplayName", - "revision": 1, "serverAddresses": ["40.1.5.1/24"]}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dhcp relay update - Connection: - - keep-alive - Content-Length: - - "122" - Content-Type: - - application/json - ParameterSetName: - - --resource-group --private-cloud --dhcp-id --display-name --revision --server-addresses - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PATCH - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":2}}' - headers: - content-length: - - "379" - content-type: - - application/json - date: - - Wed, 22 Sep 2021 17:47:11 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: - '{"properties": {"dhcpType": "SERVER", "displayName": "testDisplayName", - "revision": 1, "serverAddress": "40.1.5.1/24", "leaseTime": 86400}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dhcp server create - Connection: - - keep-alive - Content-Length: - - "139" - Content-Type: - - application/json - ParameterSetName: - - --resource-group --private-cloud --dhcp-id --display-name --revision --server-address - --lease-time - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' - headers: - content-length: - - "379" - content-type: - - application/json - date: - - Wed, 22 Sep 2021 17:47:15 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dhcp server delete - Connection: - - keep-alive - Content-Length: - - "0" - ParameterSetName: - - --resource-group --private-cloud --dhcp-id - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 - response: - body: - string: "" - headers: - content-length: - - "0" - date: - - Wed, 22 Sep 2021 17:47:20 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: - '{"properties": {"dhcpType": "SERVER", "displayName": "testDisplayName", - "revision": 1, "serverAddress": "40.1.5.1/24", "leaseTime": 86400}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dhcp server update - Connection: - - keep-alive - Content-Length: - - "139" - Content-Type: - - application/json - ParameterSetName: - - --resource-group --private-cloud --dhcp-id --display-name --revision --server-address - --lease-time - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PATCH - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":2}}' - headers: - content-length: - - "379" - content-type: - - application/json - date: - - Wed, 22 Sep 2021 17:47:24 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dns-service list - Connection: - - keep-alive - ParameterSetName: - - --resource-group --private-cloud - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices?api-version=2021-06-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}]}' - headers: - content-length: - - "438" - content-type: - - application/json - date: - - Wed, 22 Sep 2021 17:47:29 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dns-service show - Connection: - - keep-alive - ParameterSetName: - - --resource-group --private-cloud --dns-service-id - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' - headers: - content-length: - - "426" - content-type: - - application/json - date: - - Wed, 22 Sep 2021 17:47:33 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: - '{"properties": {"displayName": "testDisplayName", "dnsServiceIp": "5.5.5.5", - "defaultDnsZone": "defaultDnsZone1", "fqdnZones": ["fqdnZone1"], "logLevel": - "INFO", "revision": 1}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dns-service create - Connection: - - keep-alive - Content-Length: - - "177" - Content-Type: - - application/json - ParameterSetName: - - --resource-group --private-cloud --dns-service-id --display-name --dns-service-ip - --default-dns-zone --fqdn-zones --log-level --revision - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"dnsService1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' - headers: - content-length: - - "423" - content-type: - - application/json - date: - - Wed, 22 Sep 2021 17:47:38 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: - '{"properties": {"displayName": "testDisplayName", "dnsServiceIp": "5.5.5.5", - "defaultDnsZone": "defaultDnsZone1", "fqdnZones": ["fqdnZone1"], "logLevel": - "INFO", "revision": 1}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dns-service update - Connection: - - keep-alive - Content-Length: - - "177" - Content-Type: - - application/json - ParameterSetName: - - --resource-group --private-cloud --dns-service-id --display-name --dns-service-ip - --default-dns-zone --fqdn-zones --log-level --revision - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PATCH - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"dnsService1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' - headers: - content-length: - - "423" - content-type: - - application/json - date: - - Wed, 22 Sep 2021 17:47:42 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dns-service delete - Connection: - - keep-alive - Content-Length: - - "0" - ParameterSetName: - - --resource-group --private-cloud --dns-service-id - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 - response: - body: - string: "" - headers: - content-length: - - "0" - date: - - Wed, 22 Sep 2021 17:47:47 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dns-zone list - Connection: - - keep-alive - ParameterSetName: - - --resource-group --private-cloud - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones?api-version=2021-06-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}]}' - headers: - content-length: - - "367" - content-type: - - application/json - date: - - Wed, 22 Sep 2021 17:47:51 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dns-zone show - Connection: - - keep-alive - ParameterSetName: - - --resource-group --private-cloud --dns-zone-id - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' - headers: - content-length: - - "355" - content-type: - - application/json - date: - - Wed, 22 Sep 2021 17:47:55 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: - '{"properties": {"displayName": "testDisplayName", "domain": ["domain1"], - "dnsServerIps": ["1.1.1.1"], "sourceIp": "8.8.8.8", "dnsServices": 1, "revision": - 1}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dns-zone create - Connection: - - keep-alive - Content-Length: - - "158" - Content-Type: - - application/json - ParameterSetName: - - --resource-group --private-cloud --dns-zone-id --display-name --domain --dns-server-ips - --source-ip --dns-services --revision - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"dnsZone1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' - headers: - content-length: - - "349" - content-type: - - application/json - date: - - Wed, 22 Sep 2021 17:48:00 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: - '{"properties": {"displayName": "testDisplayName", "domain": ["domain1"], - "dnsServerIps": ["1.1.1.1"], "sourceIp": "8.8.8.8", "dnsServices": 1, "revision": - 1}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dns-zone update - Connection: - - keep-alive - Content-Length: - - "158" - Content-Type: - - application/json - ParameterSetName: - - --resource-group --private-cloud --dns-zone-id --display-name --domain --dns-server-ips - --source-ip --dns-services --revision - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PATCH - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"dnsZone1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' - headers: - content-length: - - "349" - content-type: - - application/json - date: - - Wed, 22 Sep 2021 17:48:04 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network dns-zone delete - Connection: - - keep-alive - Content-Length: - - "0" - ParameterSetName: - - --resource-group --private-cloud --dns-zone-id - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 - response: - body: - string: "" - headers: - content-length: - - "0" - date: - - Wed, 22 Sep 2021 17:48:09 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network port-mirroring list - Connection: - - keep-alive - ParameterSetName: - - --resource-group --private-cloud - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles?api-version=2021-06-01 - response: - body: - string: - '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles","properties":{"displayName":"portMirroring1","direction":"INGRESS, - EGRESS, BIDIRECTIONAL","source":"vmGroup1","destination":"vmGroup2","status":"SUCCESS, - FAILURE","revision":1}}]}' - headers: - content-length: - - "451" - content-type: - - application/json - date: - - Wed, 22 Sep 2021 17:48:14 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network port-mirroring show - Connection: - - keep-alive - ParameterSetName: - - --resource-group --private-cloud --port-mirroring-id - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2021-06-01 - response: - body: - string: - '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles","properties":{"displayName":"portMirroring1","direction":"INGRESS, - EGRESS, BIDIRECTIONAL","source":"vmGroup1","destination":"vmGroup2","status":"SUCCESS, - FAILURE","revision":1}}' - headers: - content-length: - - "447" - content-type: - - application/json - date: - - Wed, 22 Sep 2021 17:48:18 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network port-mirroring delete - Connection: - - keep-alive - Content-Length: - - "0" - ParameterSetName: - - --resource-group --private-cloud --port-mirroring-id - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2021-06-01 - response: - body: - string: "" - headers: - content-length: - - "0" - date: - - Wed, 22 Sep 2021 17:48:22 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network segment list - Connection: - - keep-alive - ParameterSetName: - - --resource-group --private-cloud - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments?api-version=2021-06-01 - response: - body: - string: - '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"portVif":[{"portName":"vm1"}],"status":"SUCCESS, - FAILURE","revision":1}}]}' - headers: - content-length: - - "482" - content-type: - - application/json - date: - - Wed, 22 Sep 2021 17:48:27 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network segment show - Connection: - - keep-alive - ParameterSetName: - - --resource-group --private-cloud --segment-id - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 - response: - body: - string: - '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"portVif":[{"portName":"vm1"}],"status":"SUCCESS, - FAILURE","revision":1}}' - headers: - content-length: - - "470" - content-type: - - application/json - date: - - Wed, 22 Sep 2021 17:48:31 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: - '{"properties": {"displayName": "testDisplayName", "connectedGateway": "/infra/tier-1s/gateway", - "subnet": {"dhcpRanges": ["40.20.0.0", "40.20.0.1"], "gatewayAddress": "40.20.20.20/16"}, - "revision": 1}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network segment create - Connection: - - keep-alive - Content-Length: - - "201" - Content-Type: - - application/json - ParameterSetName: - - --resource-group --private-cloud --segment-id --display-name --connected-gateway - --revision --dhcp-ranges --gateway-address - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 - response: - body: - string: - '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"status":"SUCCESS, - FAILURE","revision":1}}' - headers: - content-length: - - "439" - content-type: - - application/json - date: - - Wed, 22 Sep 2021 17:48:36 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: - '{"properties": {"displayName": "testDisplayName", "connectedGateway": "/infra/tier-1s/gateway", - "subnet": {"dhcpRanges": ["40.20.0.0", "40.20.0.1"], "gatewayAddress": "40.20.20.20/16"}, - "revision": 1}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network segment update - Connection: - - keep-alive - Content-Length: - - "201" - Content-Type: - - application/json - ParameterSetName: - - --resource-group --private-cloud --segment-id --display-name --connected-gateway - --revision --dhcp-ranges --gateway-address - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PATCH - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 - response: - body: - string: - '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"portVif":[{"portName":"vm1"}],"status":"SUCCESS, - FAILURE","revision":2}}' - headers: - content-length: - - "470" - content-type: - - application/json - date: - - Wed, 22 Sep 2021 17:48:41 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network segment delete - Connection: - - keep-alive - Content-Length: - - "0" - ParameterSetName: - - --resource-group --private-cloud --segment-id - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 - response: - body: - string: "" - headers: - content-length: - - "0" - date: - - Wed, 22 Sep 2021 17:48:45 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network public-ip list - Connection: - - keep-alive - ParameterSetName: - - --resource-group --private-cloud - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs?api-version=2021-06-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1","name":"publicIP1","type":"Microsoft.AVS/privateClouds/workloadNetworks/publicIPs","properties":{"displayName":"publicIP1","publicIPBlock":"20.20.40.50/32"}}]}' - headers: - content-length: - - "322" - content-type: - - application/json - date: - - Wed, 22 Sep 2021 17:48:50 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network public-ip show - Connection: - - keep-alive - ParameterSetName: - - --resource-group --private-cloud --public-ip-id - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1","name":"publicIP1","type":"Microsoft.AVS/privateClouds/workloadNetworks/publicIPs","properties":{"displayName":"publicIP1","publicIPBlock":"20.20.40.50/32"}}' - headers: - content-length: - - "310" - content-type: - - application/json - date: - - Wed, 22 Sep 2021 17:48:54 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: - '{"properties": {"displayName": "testDisplayName", "numberOfPublicIPs": - 32}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network public-ip create - Connection: - - keep-alive - Content-Length: - - "75" - Content-Type: - - application/json - ParameterSetName: - - --resource-group --private-cloud --public-ip-id --display-name --number-of-public-i-ps - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1","name":"publicIP1","type":"Microsoft.AVS/privateClouds/workloadNetworks/publicIPs","properties":{"displayName":"publicIP1","publicIPBlock":"20.20.40.50/32"}}' - headers: - content-length: - - "310" - content-type: - - application/json - date: - - Wed, 22 Sep 2021 17:48:59 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network public-ip delete - Connection: - - keep-alive - Content-Length: - - "0" - ParameterSetName: - - --resource-group --private-cloud --public-ip-id - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-06-01 - response: - body: - string: "" - headers: - content-length: - - "0" - date: - - Wed, 22 Sep 2021 17:49:03 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network vm-group list - Connection: - - keep-alive - ParameterSetName: - - --resource-group --private-cloud - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups?api-version=2021-06-01 - response: - body: - string: - '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS, - FAILURE","revision":1}}]}' - headers: - content-length: - - "374" - content-type: - - application/json - date: - - Wed, 22 Sep 2021 17:49:08 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network vm-group show - Connection: - - keep-alive - ParameterSetName: - - --resource-group --private-cloud --vm-group-id - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 - response: - body: - string: - '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS, - FAILURE","revision":1}}' - headers: - content-length: - - "362" - content-type: - - application/json - date: - - Wed, 22 Sep 2021 17:49:12 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: - '{"properties": {"displayName": "testDisplayName", "members": ["564d43da-fefc-2a3b-1d92-42855622fa50"], - "revision": 1}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network vm-group create - Connection: - - keep-alive - Content-Length: - - "118" - Content-Type: - - application/json - ParameterSetName: - - --resource-group --private-cloud --vm-group-id --display-name --members --revision - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 - response: - body: - string: - '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"vmGroup1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS, - FAILURE","revision":1}}' - headers: - content-length: - - "364" - content-type: - - application/json - date: - - Wed, 22 Sep 2021 17:49:17 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: - '{"properties": {"displayName": "testDisplayName", "members": ["564d43da-fefc-2a3b-1d92-42855622fa50"], - "revision": 1}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network vm-group update - Connection: - - keep-alive - Content-Length: - - "118" - Content-Type: - - application/json - ParameterSetName: - - --resource-group --private-cloud --vm-group-id --display-name --members --revision - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: PATCH - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 - response: - body: - string: - '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS, - FAILURE","revision":2}}' - headers: - content-length: - - "362" - content-type: - - application/json - date: - - Wed, 22 Sep 2021 17:49:21 GMT - server: - - Rocket - status: - code: 200 - message: OK - - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware workload-network vm-group delete - Connection: - - keep-alive - Content-Length: - - "0" - ParameterSetName: - - --resource-group --private-cloud --vm-group-id - User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) - method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 - response: - body: - string: "" - headers: - content-length: - - "0" - date: - - Wed, 22 Sep 2021 17:49:26 GMT - server: - - Rocket - status: - code: 200 - message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dhcp list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations?api-version=2021-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}]}' + headers: + content-length: + - '391' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:57:00 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dhcp show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud --dhcp-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' + headers: + content-length: + - '379' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:57:04 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"dhcpType": "RELAY", "displayName": "testDisplayName", + "revision": 1, "serverAddresses": ["40.1.5.1/24"]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dhcp relay create + Connection: + - keep-alive + Content-Length: + - '122' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --dhcp-id --display-name --revision --server-addresses + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' + headers: + content-length: + - '379' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:57:09 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dhcp relay delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --private-cloud --dhcp-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: DELETE + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 23 Sep 2021 18:57:13 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"dhcpType": "RELAY", "displayName": "testDisplayName", + "revision": 1, "serverAddresses": ["40.1.5.1/24"]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dhcp relay update + Connection: + - keep-alive + Content-Length: + - '122' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --dhcp-id --display-name --revision --server-addresses + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PATCH + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":2}}' + headers: + content-length: + - '379' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:57:17 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"dhcpType": "SERVER", "displayName": "testDisplayName", + "revision": 1, "serverAddress": "40.1.5.1/24", "leaseTime": 86400}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dhcp server create + Connection: + - keep-alive + Content-Length: + - '139' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --dhcp-id --display-name --revision --server-address + --lease-time + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' + headers: + content-length: + - '379' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:57:22 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dhcp server delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --private-cloud --dhcp-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: DELETE + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 23 Sep 2021 18:57:26 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"dhcpType": "SERVER", "displayName": "testDisplayName", + "revision": 1, "serverAddress": "40.1.5.1/24", "leaseTime": 86400}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dhcp server update + Connection: + - keep-alive + Content-Length: + - '139' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --dhcp-id --display-name --revision --server-address + --lease-time + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PATCH + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":2}}' + headers: + content-length: + - '379' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:57:30 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-service list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices?api-version=2021-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}]}' + headers: + content-length: + - '438' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:57:34 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-service show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud --dns-service-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' + headers: + content-length: + - '426' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:57:39 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "testDisplayName", "dnsServiceIp": "5.5.5.5", + "defaultDnsZone": "defaultDnsZone1", "fqdnZones": ["fqdnZone1"], "logLevel": + "INFO", "revision": 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-service create + Connection: + - keep-alive + Content-Length: + - '177' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --dns-service-id --display-name --dns-service-ip + --default-dns-zone --fqdn-zones --log-level --revision + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"dnsService1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' + headers: + content-length: + - '423' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:57:43 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "testDisplayName", "dnsServiceIp": "5.5.5.5", + "defaultDnsZone": "defaultDnsZone1", "fqdnZones": ["fqdnZone1"], "logLevel": + "INFO", "revision": 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-service update + Connection: + - keep-alive + Content-Length: + - '177' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --dns-service-id --display-name --dns-service-ip + --default-dns-zone --fqdn-zones --log-level --revision + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PATCH + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"dnsService1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' + headers: + content-length: + - '423' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:57:47 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-service delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --private-cloud --dns-service-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: DELETE + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 23 Sep 2021 18:57:51 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-zone list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones?api-version=2021-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}]}' + headers: + content-length: + - '367' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:57:56 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-zone show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud --dns-zone-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' + headers: + content-length: + - '355' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:58:00 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "testDisplayName", "domain": ["domain1"], + "dnsServerIps": ["1.1.1.1"], "sourceIp": "8.8.8.8", "dnsServices": 1, "revision": + 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-zone create + Connection: + - keep-alive + Content-Length: + - '158' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --dns-zone-id --display-name --domain --dns-server-ips + --source-ip --dns-services --revision + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"dnsZone1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' + headers: + content-length: + - '349' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:58:04 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "testDisplayName", "domain": ["domain1"], + "dnsServerIps": ["1.1.1.1"], "sourceIp": "8.8.8.8", "dnsServices": 1, "revision": + 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-zone update + Connection: + - keep-alive + Content-Length: + - '158' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --dns-zone-id --display-name --domain --dns-server-ips + --source-ip --dns-services --revision + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PATCH + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"dnsZone1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' + headers: + content-length: + - '349' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:58:09 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network dns-zone delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --private-cloud --dns-zone-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: DELETE + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 23 Sep 2021 18:58:13 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network port-mirroring list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles?api-version=2021-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles","properties":{"displayName":"portMirroring1","direction":"INGRESS, + EGRESS, BIDIRECTIONAL","source":"vmGroup1","destination":"vmGroup2","status":"SUCCESS, + FAILURE","revision":1}}]}' + headers: + content-length: + - '451' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:58:17 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network port-mirroring show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud --port-mirroring-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles","properties":{"displayName":"portMirroring1","direction":"INGRESS, + EGRESS, BIDIRECTIONAL","source":"vmGroup1","destination":"vmGroup2","status":"SUCCESS, + FAILURE","revision":1}}' + headers: + content-length: + - '447' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:58:22 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network port-mirroring delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --private-cloud --port-mirroring-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: DELETE + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2021-06-01 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 23 Sep 2021 18:58:26 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network segment list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments?api-version=2021-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"portVif":[{"portName":"vm1"}],"status":"SUCCESS, + FAILURE","revision":1}}]}' + headers: + content-length: + - '482' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:58:30 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network segment show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud --segment-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"portVif":[{"portName":"vm1"}],"status":"SUCCESS, + FAILURE","revision":1}}' + headers: + content-length: + - '470' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:58:34 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "testDisplayName", "connectedGateway": "/infra/tier-1s/gateway", + "subnet": {"dhcpRanges": ["40.20.0.0", "40.20.0.1"], "gatewayAddress": "40.20.20.20/16"}, + "revision": 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network segment create + Connection: + - keep-alive + Content-Length: + - '201' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --segment-id --display-name --connected-gateway + --revision --dhcp-ranges --gateway-address + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"status":"SUCCESS, + FAILURE","revision":1}}' + headers: + content-length: + - '439' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:58:39 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "testDisplayName", "connectedGateway": "/infra/tier-1s/gateway", + "subnet": {"dhcpRanges": ["40.20.0.0", "40.20.0.1"], "gatewayAddress": "40.20.20.20/16"}, + "revision": 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network segment update + Connection: + - keep-alive + Content-Length: + - '201' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --segment-id --display-name --connected-gateway + --revision --dhcp-ranges --gateway-address + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PATCH + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"portVif":[{"portName":"vm1"}],"status":"SUCCESS, + FAILURE","revision":2}}' + headers: + content-length: + - '470' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:58:43 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network segment delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --private-cloud --segment-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: DELETE + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 23 Sep 2021 18:58:47 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network public-ip list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs?api-version=2021-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1","name":"publicIP1","type":"Microsoft.AVS/privateClouds/workloadNetworks/publicIPs","properties":{"displayName":"publicIP1","publicIPBlock":"20.20.40.50/32"}}]}' + headers: + content-length: + - '322' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:58:51 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network public-ip show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud --public-ip-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1","name":"publicIP1","type":"Microsoft.AVS/privateClouds/workloadNetworks/publicIPs","properties":{"displayName":"publicIP1","publicIPBlock":"20.20.40.50/32"}}' + headers: + content-length: + - '310' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:58:56 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "testDisplayName", "numberOfPublicIPs": + 32}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network public-ip create + Connection: + - keep-alive + Content-Length: + - '75' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --public-ip-id --display-name --number-of-public-i-ps + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1","name":"publicIP1","type":"Microsoft.AVS/privateClouds/workloadNetworks/publicIPs","properties":{"displayName":"publicIP1","publicIPBlock":"20.20.40.50/32"}}' + headers: + content-length: + - '310' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:59:00 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network public-ip delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --private-cloud --public-ip-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: DELETE + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-06-01 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 23 Sep 2021 18:59:04 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network vm-group list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups?api-version=2021-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS, + FAILURE","revision":1}}]}' + headers: + content-length: + - '374' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:59:08 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network vm-group show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud --vm-group-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS, + FAILURE","revision":1}}' + headers: + content-length: + - '362' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:59:13 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "testDisplayName", "members": ["564d43da-fefc-2a3b-1d92-42855622fa50"], + "revision": 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network vm-group create + Connection: + - keep-alive + Content-Length: + - '118' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --vm-group-id --display-name --members --revision + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"vmGroup1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS, + FAILURE","revision":1}}' + headers: + content-length: + - '364' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:59:17 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"displayName": "testDisplayName", "members": ["564d43da-fefc-2a3b-1d92-42855622fa50"], + "revision": 1}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network vm-group update + Connection: + - keep-alive + Content-Length: + - '118' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --vm-group-id --display-name --members --revision + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PATCH + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS, + FAILURE","revision":2}}' + headers: + content-length: + - '362' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:59:21 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network vm-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --private-cloud --vm-group-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: DELETE + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 23 Sep 2021 18:59:26 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network vm list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines?api-version=2021-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines/vm1","name":"vm1","type":"Microsoft.AVS/privateClouds/workloadNetworks/virtualMachines","properties":{"displayName":"vm1","vmType":"REGULAR, + EDGE, SERVICE"}}]}' + headers: + content-length: + - '317' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:59:30 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network vm show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud --virtual-machine-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines/vm1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines/vm1","name":"vm1","type":"Microsoft.AVS/privateClouds/workloadNetworks/virtualMachines","properties":{"displayName":"vm1","vmType":"REGULAR, + EDGE, SERVICE"}}' + headers: + content-length: + - '305' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:59:34 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network gateway list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways?api-version=2021-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways/gateway1","name":"gateway1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"gateway1","path":"/infra/tier-1s/gateway1"}}]}' + headers: + content-length: + - '317' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:59:38 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware workload-network gateway show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud --gateway-id + User-Agent: + - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways/gateway1?api-version=2021-06-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways/gateway1","name":"gateway1","type":"Microsoft.AVS/privateClouds/workloadNetworks/gateways","properties":{"displayName":"gateway1","path":"/infra/tier-1s/gateway1"}}' + headers: + content-length: + - '305' + content-type: + - application/json + date: + - Thu, 23 Sep 2021 18:59:43 GMT + server: + - Rocket + status: + code: 200 + message: OK version: 1 diff --git a/src/vmware/azext_vmware/tests/latest/test_workload_network_scenario.py b/src/vmware/azext_vmware/tests/latest/test_workload_network_scenario.py index 4468674e2e5..06487ce35f7 100644 --- a/src/vmware/azext_vmware/tests/latest/test_workload_network_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_workload_network_scenario.py @@ -44,7 +44,9 @@ def test_vmware_workload_network(self): 'public_ip_id': 'publicIP1', 'number_of_public_i_ps': '32', 'vm_group_id': 'vmGroup1', - 'members': '564d43da-fefc-2a3b-1d92-42855622fa50' + 'members': '564d43da-fefc-2a3b-1d92-42855622fa50', + 'virtual_machine_id': 'vm1', + 'gateway_id': 'gateway1' }) count = len(self.cmd('az vmware workload-network dhcp list --resource-group {rg} --private-cloud {privatecloud}').get_output_in_json()) @@ -159,3 +161,15 @@ def test_vmware_workload_network(self): vmGroupDelete = self.cmd('az vmware workload-network vm-group delete --resource-group {rg} --private-cloud {privatecloud} --vm-group-id {vm_group_id}').output self.assertEqual(len(vmGroupDelete), 0) + + vmList = self.cmd('az vmware workload-network vm list --resource-group {rg} --private-cloud {privatecloud}').get_output_in_json() + self.assertEqual(len(vmList), 1, 'count expected to be 1') + + vmGet = self.cmd('az vmware workload-network vm show --resource-group {rg} --private-cloud {privatecloud} --virtual-machine-id {virtual_machine_id}').get_output_in_json() + self.assertEqual(vmGet['name'], 'vm1') + + gatewayList = self.cmd('az vmware workload-network gateway list --resource-group {rg} --private-cloud {privatecloud}').get_output_in_json() + self.assertEqual(len(gatewayList), 1, 'count expected to be 1') + + gatewayGet = self.cmd('az vmware workload-network gateway show --resource-group {rg} --private-cloud {privatecloud} --gateway-id {gateway_id}').get_output_in_json() + self.assertEqual(gatewayGet['name'], 'gateway1') \ No newline at end of file From 08131393de312117ffb15443a729354f2afd4e67 Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Thu, 23 Sep 2021 14:03:16 -0500 Subject: [PATCH 20/34] updated changelog --- src/vmware/CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/vmware/CHANGELOG.md b/src/vmware/CHANGELOG.md index 394a9b02e67..38928dd3af7 100644 --- a/src/vmware/CHANGELOG.md +++ b/src/vmware/CHANGELOG.md @@ -6,6 +6,11 @@ - Add `az vmware workload-network dns-service` command group - Add `az vmware workload-network dns-zone` command group - Add `az vmware workload-network port-mirroring` command group +- Add `az vmware workload-network segment` command group +- Add `az vmware workload-network public-ip` command group +- Add `az vmware workload-network vm-group` command group +- Add `az vmware workload-network vm` command group +- Add `az vmware workload-network gateway` command group ## 3.1.0 (2021-08) From 37350bd995999801f5d6d6ee09e5797b989241db Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Thu, 23 Sep 2021 14:05:04 -0500 Subject: [PATCH 21/34] styling updates --- .../azext_vmware/tests/latest/test_workload_network_scenario.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vmware/azext_vmware/tests/latest/test_workload_network_scenario.py b/src/vmware/azext_vmware/tests/latest/test_workload_network_scenario.py index 06487ce35f7..e07ea633a97 100644 --- a/src/vmware/azext_vmware/tests/latest/test_workload_network_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_workload_network_scenario.py @@ -172,4 +172,4 @@ def test_vmware_workload_network(self): self.assertEqual(len(gatewayList), 1, 'count expected to be 1') gatewayGet = self.cmd('az vmware workload-network gateway show --resource-group {rg} --private-cloud {privatecloud} --gateway-id {gateway_id}').get_output_in_json() - self.assertEqual(gatewayGet['name'], 'gateway1') \ No newline at end of file + self.assertEqual(gatewayGet['name'], 'gateway1') From b566758dded47d53a626488d9216a252b97fa028 Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Thu, 23 Sep 2021 14:13:54 -0500 Subject: [PATCH 22/34] updated help texts --- src/vmware/azext_vmware/_help.py | 2 +- src/vmware/azext_vmware/_params.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vmware/azext_vmware/_help.py b/src/vmware/azext_vmware/_help.py index 3bb3fd0bbc6..99a9016b207 100644 --- a/src/vmware/azext_vmware/_help.py +++ b/src/vmware/azext_vmware/_help.py @@ -863,7 +863,7 @@ helps['vmware workload-network gateway'] = """ type: group - short-summary: Commands to manage a Virtual Machine workload network. + short-summary: Commands to manage a Gateway workload network. """ helps['vmware workload-network gateway list'] = """ diff --git a/src/vmware/azext_vmware/_params.py b/src/vmware/azext_vmware/_params.py index 567b3c192cb..9687e4b40ed 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -194,8 +194,8 @@ def load_arguments(self, _): c.argument('members', nargs='+', help='Virtual machine members of this group.') c.argument('revision', help='NSX revision number.') - with self.argument_context('vmware workload-network vm-group') as c: + with self.argument_context('vmware workload-network vm') as c: c.argument('virtual_machine_id', help="Virtual Machine identifier.") - with self.argument_context('vmware workload-network vm-group') as c: + with self.argument_context('vmware workload-network gateway') as c: c.argument('gateway_id', help="NSX Gateway identifier. Generally the same as the Gateway's display name.") From 946973e860f942a6e2bd8828846a6fa932b3094f Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Wed, 29 Sep 2021 10:03:37 -0500 Subject: [PATCH 23/34] updated parameter name --- src/vmware/azext_vmware/_help.py | 2 +- src/vmware/azext_vmware/_params.py | 2 +- src/vmware/azext_vmware/custom.py | 4 ++-- .../tests/latest/test_workload_network_scenario.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/vmware/azext_vmware/_help.py b/src/vmware/azext_vmware/_help.py index 99a9016b207..a3cb99c2433 100644 --- a/src/vmware/azext_vmware/_help.py +++ b/src/vmware/azext_vmware/_help.py @@ -784,7 +784,7 @@ short-summary: Create a Public IP Block by ID in a private cloud workload network. examples: - name: Create a Public IP Block by ID in a workload network. - text: az vmware workload-network public-ip create --resource-group group1 --private-cloud cloud1 --public-ip-id publicIP1 --display-name publicIP1 --number-of-public-i-ps 32 + text: az vmware workload-network public-ip create --resource-group group1 --private-cloud cloud1 --public-ip-id publicIP1 --display-name publicIP1 --number-of-public-ips 32 """ helps['vmware workload-network public-ip delete'] = """ diff --git a/src/vmware/azext_vmware/_params.py b/src/vmware/azext_vmware/_params.py index 9687e4b40ed..403e751608f 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -186,7 +186,7 @@ def load_arguments(self, _): with self.argument_context('vmware workload-network public-ip') as c: c.argument('public_ip_id', help="NSX Public IP Block identifier. Generally the same as the Public IP.") c.argument('display_name', help='Display name of the Public IP Block.') - c.argument('number_of_public_i_ps', help='Number of Public IPs requested.') + c.argument('number_of_public_ips', help='Number of Public IPs requested.') with self.argument_context('vmware workload-network vm-group') as c: c.argument('vm_group_id', help="NSX VM Group identifier. Generally the same as the VM Group's display name.") diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index 749454ed890..d26de20fbbe 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -475,8 +475,8 @@ def workload_network_public_ip_get(client: AVSClient, resource_group_name, priva return client.workload_networks.get_public_ip(resource_group_name=resource_group_name, private_cloud_name=private_cloud, public_ip_id=public_ip_id) -def workload_network_public_ip_create(client: AVSClient, resource_group_name, private_cloud, public_ip_id, display_name=None, number_of_public_i_ps=None): - return client.workload_networks.begin_create_public_ip(resource_group_name=resource_group_name, private_cloud_name=private_cloud, public_ip_id=public_ip_id, display_name=display_name, number_of_public_i_ps=number_of_public_i_ps) +def workload_network_public_ip_create(client: AVSClient, resource_group_name, private_cloud, public_ip_id, display_name=None, number_of_public_ips=None): + return client.workload_networks.begin_create_public_ip(resource_group_name=resource_group_name, private_cloud_name=private_cloud, public_ip_id=public_ip_id, display_name=display_name, number_of_public_i_ps=number_of_public_ips) def workload_network_public_ip_delete(client: AVSClient, resource_group_name, private_cloud, public_ip_id): diff --git a/src/vmware/azext_vmware/tests/latest/test_workload_network_scenario.py b/src/vmware/azext_vmware/tests/latest/test_workload_network_scenario.py index e07ea633a97..56b4c5087cd 100644 --- a/src/vmware/azext_vmware/tests/latest/test_workload_network_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_workload_network_scenario.py @@ -141,7 +141,7 @@ def test_vmware_workload_network(self): publicIpGet = self.cmd('az vmware workload-network public-ip show --resource-group {rg} --private-cloud {privatecloud} --public-ip-id {public_ip_id}').get_output_in_json() self.assertEqual(publicIpGet['name'], 'publicIP1') - publicIpCreate = self.cmd('az vmware workload-network public-ip create --resource-group {rg} --private-cloud {privatecloud} --public-ip-id {public_ip_id} --display-name {display_name} --number-of-public-i-ps {number_of_public_i_ps}').get_output_in_json() + publicIpCreate = self.cmd('az vmware workload-network public-ip create --resource-group {rg} --private-cloud {privatecloud} --public-ip-id {public_ip_id} --display-name {display_name} --number-of-public-ips {number_of_public_i_ps}').get_output_in_json() self.assertEqual(publicIpCreate['name'], 'publicIP1') publicIpDelete = self.cmd('az vmware workload-network public-ip delete --resource-group {rg} --private-cloud {privatecloud} --public-ip-id {public_ip_id}').output From b71ae5074016262d9b7f50726b3539ef54e63921 Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Thu, 7 Oct 2021 15:05:24 -0500 Subject: [PATCH 24/34] removed '-id' from parameters --- src/vmware/azext_vmware/_help.py | 64 +++--- src/vmware/azext_vmware/_params.py | 18 +- src/vmware/azext_vmware/custom.py | 124 +++++----- .../test_vmware_workload_network.yaml | 216 +++++++++--------- .../latest/test_workload_network_scenario.py | 82 +++---- 5 files changed, 252 insertions(+), 252 deletions(-) diff --git a/src/vmware/azext_vmware/_help.py b/src/vmware/azext_vmware/_help.py index a3cb99c2433..fb27686db64 100644 --- a/src/vmware/azext_vmware/_help.py +++ b/src/vmware/azext_vmware/_help.py @@ -515,7 +515,7 @@ short-summary: Get DHCP by ID in a private cloud workload network. examples: - name: Get DHCP by ID in a workload network. - text: az vmware workload-network dhcp show --resource-group group1 --private-cloud cloud1 --dhcp-id dhcp1 + text: az vmware workload-network dhcp show --resource-group group1 --private-cloud cloud1 --dhcp dhcp1 """ helps['vmware workload-network dhcp relay'] = """ @@ -528,7 +528,7 @@ short-summary: Create DHCP by ID in a private cloud workload network. examples: - name: Create DHCP by ID in a workload network. - text: az vmware workload-network dhcp relay create --resource-group group1 --private-cloud cloud1 --dhcp-id dhcp1 --display-name dhcpConfigurations1 --revision 1 --server-addresses 40.1.5.1/24 + text: az vmware workload-network dhcp relay create --resource-group group1 --private-cloud cloud1 --dhcp dhcp1 --display-name dhcpConfigurations1 --revision 1 --server-addresses 40.1.5.1/24 """ helps['vmware workload-network dhcp relay delete'] = """ @@ -536,7 +536,7 @@ short-summary: Delete DHCP by ID in a private cloud workload network. examples: - name: Delete DHCP by ID in a workload network. - text: az vmware workload-network dhcp relay delete --resource-group group1 --private-cloud cloud1 --dhcp-id dhcp1 + text: az vmware workload-network dhcp relay delete --resource-group group1 --private-cloud cloud1 --dhcp dhcp1 """ helps['vmware workload-network dhcp relay update'] = """ @@ -544,7 +544,7 @@ short-summary: Update DHCP by ID in a private cloud workload network. examples: - name: Update DHCP by ID in a workload network. - text: az vmware workload-network dhcp relay update --resource-group group1 --private-cloud cloud1 --dhcp-id dhcp1 --display-name dhcpConfigurations1 --revision 1 --server-addresses 40.1.5.1/24 + text: az vmware workload-network dhcp relay update --resource-group group1 --private-cloud cloud1 --dhcp dhcp1 --display-name dhcpConfigurations1 --revision 1 --server-addresses 40.1.5.1/24 """ helps['vmware workload-network dhcp server'] = """ @@ -557,7 +557,7 @@ short-summary: Create DHCP by ID in a private cloud workload network. examples: - name: Create DHCP by ID in a workload network. - text: az vmware workload-network dhcp server create --resource-group group1 --private-cloud cloud1 --dhcp-id dhcp1 --display-name dhcpConfigurations1 --revision 1 --server-address 40.1.5.1/24 --lease-time 86400 + text: az vmware workload-network dhcp server create --resource-group group1 --private-cloud cloud1 --dhcp dhcp1 --display-name dhcpConfigurations1 --revision 1 --server-address 40.1.5.1/24 --lease-time 86400 """ helps['vmware workload-network dhcp server delete'] = """ @@ -565,7 +565,7 @@ short-summary: Delete DHCP by ID in a private cloud workload network. examples: - name: Delete DHCP by ID in a workload network. - text: az vmware workload-network dhcp server delete --resource-group group1 --private-cloud cloud1 --dhcp-id dhcp1 + text: az vmware workload-network dhcp server delete --resource-group group1 --private-cloud cloud1 --dhcp dhcp1 """ helps['vmware workload-network dhcp server update'] = """ @@ -573,7 +573,7 @@ short-summary: Update DHCP by ID in a private cloud workload network. examples: - name: Update DHCP by ID in a workload network. - text: az vmware workload-network dhcp server update --resource-group group1 --private-cloud cloud1 --dhcp-id dhcp1 --display-name dhcpConfigurations1 --revision 1 --server-address 40.1.5.1/24 --lease-time 86400 + text: az vmware workload-network dhcp server update --resource-group group1 --private-cloud cloud1 --dhcp dhcp1 --display-name dhcpConfigurations1 --revision 1 --server-address 40.1.5.1/24 --lease-time 86400 """ @@ -596,7 +596,7 @@ short-summary: Get a DNS service by ID in a private cloud workload network. examples: - name: Get a DNS service by ID in a workload network. - text: az vmware workload-network dns-service show --resource-group group1 --private-cloud cloud1 --dns-service-id dnsService1 + text: az vmware workload-network dns-service show --resource-group group1 --private-cloud cloud1 --dns-service dnsService1 """ helps['vmware workload-network dns-service create'] = """ @@ -604,7 +604,7 @@ short-summary: Create a DNS service by ID in a private cloud workload network. examples: - name: Create a DNS service by ID in a workload network. - text: az vmware workload-network dns-service create --resource-group group1 --private-cloud cloud1 --dns-service-id dnsService1 --display-name dnsService1 --dns-service-ip 5.5.5.5 --default-dns-zone defaultDnsZone1 --fqdn-zones fqdnZone1 --log-level INFO --revision 1 + text: az vmware workload-network dns-service create --resource-group group1 --private-cloud cloud1 --dns-service dnsService1 --display-name dnsService1 --dns-service-ip 5.5.5.5 --default-dns-zone defaultDnsZone1 --fqdn-zones fqdnZone1 --log-level INFO --revision 1 """ helps['vmware workload-network dns-service update'] = """ @@ -612,7 +612,7 @@ short-summary: Update a DNS service by ID in a private cloud workload network. examples: - name: Update a DNS service by ID in a workload network. - text: az vmware workload-network dns-service update --resource-group group1 --private-cloud cloud1 --dns-service-id dnsService1 --display-name dnsService1 --dns-service-ip 5.5.5.5 --default-dns-zone defaultDnsZone1 --fqdn-zones fqdnZone1 --log-level INFO --revision 1 + text: az vmware workload-network dns-service update --resource-group group1 --private-cloud cloud1 --dns-service dnsService1 --display-name dnsService1 --dns-service-ip 5.5.5.5 --default-dns-zone defaultDnsZone1 --fqdn-zones fqdnZone1 --log-level INFO --revision 1 """ helps['vmware workload-network dns-service delete'] = """ @@ -620,7 +620,7 @@ short-summary: Delete a DNS service by ID in a private cloud workload network. examples: - name: Delete a DNS service by ID in a workload network. - text: az vmware workload-network dns-service delete --resource-group group1 --private-cloud cloud1 --dns-service-id dnsService1 + text: az vmware workload-network dns-service delete --resource-group group1 --private-cloud cloud1 --dns-service dnsService1 """ helps['vmware workload-network dns-zone'] = """ @@ -641,7 +641,7 @@ short-summary: Get a DNS zone by ID in a private cloud workload network. examples: - name: Get a DNS zone by ID in a workload network. - text: az vmware workload-network dns-zone show --resource-group group1 --private-cloud cloud1 --dns-zone-id dnsZone1 + text: az vmware workload-network dns-zone show --resource-group group1 --private-cloud cloud1 --dns-zone dnsZone1 """ helps['vmware workload-network dns-zone create'] = """ @@ -649,7 +649,7 @@ short-summary: Create a DNS zone by ID in a private cloud workload network. examples: - name: Create a DNS zone by ID in a workload network. - text: az vmware workload-network dns-zone create --resource-group group1 --private-cloud cloud1 --dns-zone-id dnsZone1 --display-name dnsZone1 --domain domain1 --dns-server-ips 1.1.1.1 --source-ip 8.8.8.8 --dns-services 1 --revision 1 + text: az vmware workload-network dns-zone create --resource-group group1 --private-cloud cloud1 --dns-zone dnsZone1 --display-name dnsZone1 --domain domain1 --dns-server-ips 1.1.1.1 --source-ip 8.8.8.8 --dns-services 1 --revision 1 """ helps['vmware workload-network dns-zone update'] = """ @@ -657,7 +657,7 @@ short-summary: Update a DNS zone by ID in a private cloud workload network. examples: - name: Update a DNS zone by ID in a workload network. - text: az vmware workload-network dns-zone update --resource-group group1 --private-cloud cloud1 --dns-zone-id dnsZone1 --display-name dnsZone1 --domain domain1 --dns-server-ips 1.1.1.1 --source-ip 8.8.8.8 --dns-services 1 --revision 1 + text: az vmware workload-network dns-zone update --resource-group group1 --private-cloud cloud1 --dns-zone dnsZone1 --display-name dnsZone1 --domain domain1 --dns-server-ips 1.1.1.1 --source-ip 8.8.8.8 --dns-services 1 --revision 1 """ helps['vmware workload-network dns-zone delete'] = """ @@ -665,7 +665,7 @@ short-summary: Delete a DNS zone by ID in a private cloud workload network. examples: - name: Delete a DNS zone by ID in a workload network. - text: az vmware workload-network dns-zone delete --resource-group group1 --private-cloud cloud1 --dns-zone-id dnsZone1 + text: az vmware workload-network dns-zone delete --resource-group group1 --private-cloud cloud1 --dns-zone dnsZone1 """ helps['vmware workload-network port-mirroring'] = """ @@ -686,7 +686,7 @@ short-summary: Get a port mirroring profile by ID in a private cloud workload network. examples: - name: Get a port mirroring profile by ID in a workload network. - text: az vmware workload-network port-mirroring show --resource-group group1 --private-cloud cloud1 --port-mirroring-id portMirroring1 + text: az vmware workload-network port-mirroring show --resource-group group1 --private-cloud cloud1 --port-mirroring portMirroring1 """ helps['vmware workload-network port-mirroring create'] = """ @@ -694,7 +694,7 @@ short-summary: Create a port mirroring profile by ID in a private cloud workload network. examples: - name: Create a port mirroring profile by ID in a workload network. - text: az vmware workload-network port-mirroring create --resource-group group1 --private-cloud cloud1 --port-mirroring-id portMirroring1 --display-name portMirroring1 --direction BIDIRECTIONAL --source vmGroup1 --destination vmGroup2 --revision 1 + text: az vmware workload-network port-mirroring create --resource-group group1 --private-cloud cloud1 --port-mirroring portMirroring1 --display-name portMirroring1 --direction BIDIRECTIONAL --source vmGroup1 --destination vmGroup2 --revision 1 """ helps['vmware workload-network port-mirroring update'] = """ @@ -702,7 +702,7 @@ short-summary: Update a port mirroring profile by ID in a private cloud workload network. examples: - name: Update a port mirroring profile by ID in a workload network. - text: az vmware workload-network port-mirroring update --resource-group group1 --private-cloud cloud1 --port-mirroring-id portMirroring1 --display-name portMirroring1 --direction BIDIRECTIONAL --source vmGroup1 --destination vmGroup2 --revision 1 + text: az vmware workload-network port-mirroring update --resource-group group1 --private-cloud cloud1 --port-mirroring portMirroring1 --display-name portMirroring1 --direction BIDIRECTIONAL --source vmGroup1 --destination vmGroup2 --revision 1 """ helps['vmware workload-network port-mirroring delete'] = """ @@ -710,7 +710,7 @@ short-summary: Delete a port mirroring profile by ID in a private cloud workload network. examples: - name: Delete a port mirroring profile by ID in a workload network. - text: az vmware workload-network port-mirroring delete --resource-group group1 --private-cloud cloud1 --port-mirroring-id portMirroring1 + text: az vmware workload-network port-mirroring delete --resource-group group1 --private-cloud cloud1 --port-mirroring portMirroring1 """ helps['vmware workload-network segment'] = """ @@ -731,7 +731,7 @@ short-summary: Get a segment by ID in a private cloud workload network. examples: - name: Get a segment by ID in a workload network. - text: az vmware workload-network segment show --resource-group group1 --private-cloud cloud1 --segment-id segment1 + text: az vmware workload-network segment show --resource-group group1 --private-cloud cloud1 --segment segment1 """ helps['vmware workload-network segment create'] = """ @@ -739,7 +739,7 @@ short-summary: Create a segment by ID in a private cloud workload network. examples: - name: Create a segment by ID in a workload network. - text: az vmware workload-network segment create --resource-group group1 --private-cloud cloud1 --segment-id segment1 --display-name segment1 --connected-gateway /infra/tier-1s/gateway --revision 1 --dhcp-ranges 40.20.0.0 40.20.0.1 --gateway-address 40.20.20.20/16 + text: az vmware workload-network segment create --resource-group group1 --private-cloud cloud1 --segment segment1 --display-name segment1 --connected-gateway /infra/tier-1s/gateway --revision 1 --dhcp-ranges 40.20.0.0 40.20.0.1 --gateway-address 40.20.20.20/16 """ helps['vmware workload-network segment update'] = """ @@ -747,7 +747,7 @@ short-summary: Update a segment by ID in a private cloud workload network. examples: - name: Update a segment by ID in a workload network. - text: az vmware workload-network segment update --resource-group group1 --private-cloud cloud1 --segment-id segment1 --display-name segment1 --connected-gateway /infra/tier-1s/gateway --revision 1 --dhcp-ranges 40.20.0.0 40.20.0.1 --gateway-address 40.20.20.20/16 + text: az vmware workload-network segment update --resource-group group1 --private-cloud cloud1 --segment segment1 --display-name segment1 --connected-gateway /infra/tier-1s/gateway --revision 1 --dhcp-ranges 40.20.0.0 40.20.0.1 --gateway-address 40.20.20.20/16 """ helps['vmware workload-network segment delete'] = """ @@ -755,7 +755,7 @@ short-summary: Delete a segment by ID in a private cloud workload network. examples: - name: Delete a segment by ID in a workload network. - text: az vmware workload-network segment delete --resource-group group1 --private-cloud cloud1 --segment-id segment1 + text: az vmware workload-network segment delete --resource-group group1 --private-cloud cloud1 --segment segment1 """ helps['vmware workload-network public-ip'] = """ @@ -776,7 +776,7 @@ short-summary: Get a Public IP Block by ID in a private cloud workload network. examples: - name: Get a Public IP Block by ID in a workload network. - text: az vmware workload-network public-ip show --resource-group group1 --private-cloud cloud1 --public-ip-id publicIP1 + text: az vmware workload-network public-ip show --resource-group group1 --private-cloud cloud1 --public-ip publicIP1 """ helps['vmware workload-network public-ip create'] = """ @@ -784,7 +784,7 @@ short-summary: Create a Public IP Block by ID in a private cloud workload network. examples: - name: Create a Public IP Block by ID in a workload network. - text: az vmware workload-network public-ip create --resource-group group1 --private-cloud cloud1 --public-ip-id publicIP1 --display-name publicIP1 --number-of-public-ips 32 + text: az vmware workload-network public-ip create --resource-group group1 --private-cloud cloud1 --public-ip publicIP1 --display-name publicIP1 --number-of-public-ips 32 """ helps['vmware workload-network public-ip delete'] = """ @@ -792,7 +792,7 @@ short-summary: Delete a Public IP Block by ID in a private cloud workload network. examples: - name: Delete a Public IP Block by ID in a workload network. - text: az vmware workload-network public-ip delete --resource-group group1 --private-cloud cloud1 --public-ip-id publicIP1 + text: az vmware workload-network public-ip delete --resource-group group1 --private-cloud cloud1 --public-ip publicIP1 """ helps['vmware workload-network vm-group'] = """ @@ -813,7 +813,7 @@ short-summary: Get a VM Group by ID in a private cloud workload network. examples: - name: Get a VM Group by ID in a workload network. - text: az vmware workload-network vm-group show --resource-group group1 --private-cloud cloud1 --vm-group-id vmGroup1 + text: az vmware workload-network vm-group show --resource-group group1 --private-cloud cloud1 --vm-group vmGroup1 """ helps['vmware workload-network vm-group create'] = """ @@ -821,7 +821,7 @@ short-summary: Create a VM Group by ID in a private cloud workload network. examples: - name: Create a VM Group by ID in a workload network. - text: az vmware workload-network vm-group create --resource-group group1 --private-cloud cloud1 --vm-group-id vmGroup1 --display-name vmGroup1 --members 564d43da-fefc-2a3b-1d92-42855622fa50 --revision 1 + text: az vmware workload-network vm-group create --resource-group group1 --private-cloud cloud1 --vm-group vmGroup1 --display-name vmGroup1 --members 564d43da-fefc-2a3b-1d92-42855622fa50 --revision 1 """ helps['vmware workload-network vm-group update'] = """ @@ -829,7 +829,7 @@ short-summary: Update a VM Group by ID in a private cloud workload network. examples: - name: Update a VM Group by ID in a workload network. - text: az vmware workload-network vm-group update --resource-group group1 --private-cloud cloud1 --vm-group-id vmGroup1 --display-name vmGroup1 --members 564d43da-fefc-2a3b-1d92-42855622fa50 --revision 1 + text: az vmware workload-network vm-group update --resource-group group1 --private-cloud cloud1 --vm-group vmGroup1 --display-name vmGroup1 --members 564d43da-fefc-2a3b-1d92-42855622fa50 --revision 1 """ helps['vmware workload-network vm-group delete'] = """ @@ -837,7 +837,7 @@ short-summary: Delete a VM Group by ID in a private cloud workload network. examples: - name: Delete a VM Group by ID in a private cloud workload network. - text: az vmware workload-network vm-group delete --resource-group group1 --private-cloud cloud1 --vm-group-id vmGroup1 + text: az vmware workload-network vm-group delete --resource-group group1 --private-cloud cloud1 --vm-group vmGroup1 """ helps['vmware workload-network vm'] = """ @@ -858,7 +858,7 @@ short-summary: Get a Virtual Machines by ID in a private cloud workload network. examples: - name: Get a Virtual Machines by ID in a workload network. - text: az vmware workload-network vm show --resource-group group1 --private-cloud cloud1 --virtual-machine-id vm1 + text: az vmware workload-network vm show --resource-group group1 --private-cloud cloud1 --virtual-machine vm1 """ helps['vmware workload-network gateway'] = """ @@ -879,5 +879,5 @@ short-summary: Get a Gateway by ID in a private cloud workload network. examples: - name: Get a Gateway by ID in a workload network. - text: az vmware workload-network gateway show --resource-group group1 --private-cloud cloud1 --gateway-id gateway1 + text: az vmware workload-network gateway show --resource-group group1 --private-cloud cloud1 --gateway gateway1 """ diff --git a/src/vmware/azext_vmware/_params.py b/src/vmware/azext_vmware/_params.py index 403e751608f..75165739bd3 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -138,7 +138,7 @@ def load_arguments(self, _): c.argument('script_cmdlet_id', help='A reference to the script cmdlet resource if user is running a AVS script.') with self.argument_context('vmware workload-network dhcp') as c: - c.argument('dhcp_id', help='NSX DHCP identifier. Generally the same as the DHCP display name.') + c.argument('dhcp', help='NSX DHCP identifier. Generally the same as the DHCP display name.') c.argument('display_name', help='Display name of the DHCP entity.') c.argument('revision', help='NSX revision number.') @@ -150,7 +150,7 @@ def load_arguments(self, _): c.argument('server_addresses', nargs='+', validator=server_addresses_length, help='DHCP Relay Addresses. Max 3.') with self.argument_context('vmware workload-network dns-service') as c: - c.argument('dns_service_id', help="NSX DNS service identifier. Generally the same as the DNS service's display name.") + c.argument('dns_service', help="NSX DNS service identifier. Generally the same as the DNS service's display name.") c.argument('display_name', help='Display name of the DNS service.') c.argument('dns_service_ip', help='DNS service IP of the DNS service.') c.argument('default_dns_zone', help='Default DNS zone of the DNS service.') @@ -159,7 +159,7 @@ def load_arguments(self, _): c.argument('revision', help='NSX revision number.') with self.argument_context('vmware workload-network dns-zone') as c: - c.argument('dns_zone_id', help="NSX DNS zone identifier. Generally the same as the DNS zone's display name.") + c.argument('dns_zone', help="NSX DNS zone identifier. Generally the same as the DNS zone's display name.") c.argument('display_name', help='Display name of the DNS zone.') c.argument('domain', nargs='+', help='Domain names of the DNS zone.') c.argument('dns_server_ips', nargs='+', help='DNS Server IP array of the DNS zone.') @@ -168,7 +168,7 @@ def load_arguments(self, _): c.argument('revision', help='NSX revision number.') with self.argument_context('vmware workload-network port-mirroring') as c: - c.argument('port_mirroring_id', help="NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name.") + c.argument('port_mirroring', help="NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name.") c.argument('display_name', help='Display name of the port mirroring profile.') c.argument('direction', help='Direction of port mirroring profile. Possible values include: "INGRESS, EGRESS, BIDIRECTIONAL".') c.argument('source', help='Source VM Group.') @@ -176,7 +176,7 @@ def load_arguments(self, _): c.argument('revision', help='NSX revision number.') with self.argument_context('vmware workload-network segment') as c: - c.argument('segment_id', help="NSX Segment identifier. Generally the same as the Segment's display name.") + c.argument('segment', help="NSX Segment identifier. Generally the same as the Segment's display name.") c.argument('display_name', help='Display name of the segment.') c.argument('connected_gateway', help='Gateway which to connect segment to.') c.argument('revision', help='NSX revision number.') @@ -184,18 +184,18 @@ def load_arguments(self, _): c.argument('gateway_address', help='Gateway address.') with self.argument_context('vmware workload-network public-ip') as c: - c.argument('public_ip_id', help="NSX Public IP Block identifier. Generally the same as the Public IP.") + c.argument('public_ip', help="NSX Public IP Block identifier. Generally the same as the Public IP.") c.argument('display_name', help='Display name of the Public IP Block.') c.argument('number_of_public_ips', help='Number of Public IPs requested.') with self.argument_context('vmware workload-network vm-group') as c: - c.argument('vm_group_id', help="NSX VM Group identifier. Generally the same as the VM Group's display name.") + c.argument('vm_group', help="NSX VM Group identifier. Generally the same as the VM Group's display name.") c.argument('display_name', help='Display name of the VM group.') c.argument('members', nargs='+', help='Virtual machine members of this group.') c.argument('revision', help='NSX revision number.') with self.argument_context('vmware workload-network vm') as c: - c.argument('virtual_machine_id', help="Virtual Machine identifier.") + c.argument('virtual_machine', help="Virtual Machine identifier.") with self.argument_context('vmware workload-network gateway') as c: - c.argument('gateway_id', help="NSX Gateway identifier. Generally the same as the Gateway's display name.") + c.argument('gateway', help="NSX Gateway identifier. Generally the same as the Gateway's display name.") diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index d26de20fbbe..3abc070b2f2 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -331,193 +331,193 @@ def script_execution_logs(client: AVSClient, resource_group_name, private_cloud, return client.script_executions.get_execution_logs(resource_group_name=resource_group_name, private_cloud_name=private_cloud, script_execution_name=name) -def workload_network_dhcp_server_create(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str, display_name=None, revision=None, server_address=None, lease_time=None): +def workload_network_dhcp_server_create(client: AVSClient, resource_group_name, private_cloud, dhcp: str, display_name=None, revision=None, server_address=None, lease_time=None): from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDhcpServer properties = WorkloadNetworkDhcpServer(display_name=display_name, revision=revision, server_address=server_address, lease_time=lease_time) - return client.workload_networks.begin_create_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) + return client.workload_networks.begin_create_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp, properties=properties) -def workload_network_dhcp_relay_create(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str, display_name=None, revision=None, server_addresses=None): +def workload_network_dhcp_relay_create(client: AVSClient, resource_group_name, private_cloud, dhcp: str, display_name=None, revision=None, server_addresses=None): from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDhcpRelay properties = WorkloadNetworkDhcpRelay(display_name=display_name, revision=revision, server_addresses=server_addresses) - return client.workload_networks.begin_create_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) + return client.workload_networks.begin_create_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp, properties=properties) -def workload_network_dhcp_server_update(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str, display_name=None, revision=None, server_address=None, lease_time=None): +def workload_network_dhcp_server_update(client: AVSClient, resource_group_name, private_cloud, dhcp: str, display_name=None, revision=None, server_address=None, lease_time=None): from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDhcpServer properties = WorkloadNetworkDhcpServer(display_name=display_name, revision=revision, server_address=server_address, lease_time=lease_time) - return client.workload_networks.begin_update_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) + return client.workload_networks.begin_update_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp, properties=properties) -def workload_network_dhcp_relay_update(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str, display_name=None, revision=None, server_addresses=None): +def workload_network_dhcp_relay_update(client: AVSClient, resource_group_name, private_cloud, dhcp: str, display_name=None, revision=None, server_addresses=None): from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDhcpRelay properties = WorkloadNetworkDhcpRelay(display_name=display_name, revision=revision, server_addresses=server_addresses) - return client.workload_networks.begin_update_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id, properties=properties) + return client.workload_networks.begin_update_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp, properties=properties) -def workload_network_dhcp_delete(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str): - return client.workload_networks.begin_delete_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id) +def workload_network_dhcp_delete(client: AVSClient, resource_group_name, private_cloud, dhcp: str): + return client.workload_networks.begin_delete_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp) def workload_network_dhcp_list(client: AVSClient, resource_group_name, private_cloud): return client.workload_networks.list_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud) -def workload_network_dhcp_show(client: AVSClient, resource_group_name, private_cloud, dhcp_id: str): - return client.workload_networks.get_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp_id) +def workload_network_dhcp_show(client: AVSClient, resource_group_name, private_cloud, dhcp: str): + return client.workload_networks.get_dhcp(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dhcp_id=dhcp) def workload_network_dns_services_list(client: AVSClient, resource_group_name, private_cloud): return client.workload_networks.list_dns_services(resource_group_name=resource_group_name, private_cloud_name=private_cloud) -def workload_network_dns_services_get(client: AVSClient, resource_group_name, private_cloud, dns_service_id): - return client.workload_networks.get_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service_id) +def workload_network_dns_services_get(client: AVSClient, resource_group_name, private_cloud, dns_service): + return client.workload_networks.get_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service) -def workload_network_dns_services_create(client: AVSClient, resource_group_name, private_cloud, dns_service_id, display_name=None, dns_service_ip=None, default_dns_zone=None, fqdn_zones=None, log_level=None, revision=None): +def workload_network_dns_services_create(client: AVSClient, resource_group_name, private_cloud, dns_service, display_name=None, dns_service_ip=None, default_dns_zone=None, fqdn_zones=None, log_level=None, revision=None): from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDnsService prop = WorkloadNetworkDnsService(display_name=display_name, dns_service_ip=dns_service_ip, default_dns_zone=default_dns_zone, log_level=log_level, revision=revision, fqdn_zones=fqdn_zones) - return client.workload_networks.begin_create_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service_id, workload_network_dns_service=prop) + return client.workload_networks.begin_create_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service, workload_network_dns_service=prop) -def workload_network_dns_services_update(client: AVSClient, resource_group_name, private_cloud, dns_service_id, display_name=None, dns_service_ip=None, default_dns_zone=None, fqdn_zones=None, log_level=None, revision=None): +def workload_network_dns_services_update(client: AVSClient, resource_group_name, private_cloud, dns_service, display_name=None, dns_service_ip=None, default_dns_zone=None, fqdn_zones=None, log_level=None, revision=None): from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDnsService prop = WorkloadNetworkDnsService(display_name=display_name, dns_service_ip=dns_service_ip, default_dns_zone=default_dns_zone, fqdn_zones=fqdn_zones, log_level=log_level, revision=revision) - return client.workload_networks.begin_update_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service_id, workload_network_dns_service=prop) + return client.workload_networks.begin_update_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service, workload_network_dns_service=prop) -def workload_network_dns_services_delete(client: AVSClient, resource_group_name, private_cloud, dns_service_id): - return client.workload_networks.begin_delete_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service_id) +def workload_network_dns_services_delete(client: AVSClient, resource_group_name, private_cloud, dns_service): + return client.workload_networks.begin_delete_dns_service(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_service_id=dns_service) def workload_network_dns_zone_list(client: AVSClient, resource_group_name, private_cloud): return client.workload_networks.list_dns_zones(resource_group_name=resource_group_name, private_cloud_name=private_cloud) -def workload_network_dns_zone_get(client: AVSClient, resource_group_name, private_cloud, dns_zone_id): - return client.workload_networks.get_dns_zone(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_zone_id=dns_zone_id) +def workload_network_dns_zone_get(client: AVSClient, resource_group_name, private_cloud, dns_zone): + return client.workload_networks.get_dns_zone(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_zone_id=dns_zone) -def workload_network_dns_zone_create(client: AVSClient, resource_group_name, private_cloud, dns_zone_id, display_name=None, domain=None, dns_server_ips=None, source_ip=None, dns_services=None, revision=None): +def workload_network_dns_zone_create(client: AVSClient, resource_group_name, private_cloud, dns_zone, display_name=None, domain=None, dns_server_ips=None, source_ip=None, dns_services=None, revision=None): from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDnsZone prop = WorkloadNetworkDnsZone(display_name=display_name, domain=domain, dns_server_ips=dns_server_ips, source_ip=source_ip, dns_services=dns_services, revision=revision) - return client.workload_networks.begin_create_dns_zone(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_zone_id=dns_zone_id, workload_network_dns_zone=prop) + return client.workload_networks.begin_create_dns_zone(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_zone_id=dns_zone, workload_network_dns_zone=prop) -def workload_network_dns_zone_update(client: AVSClient, resource_group_name, private_cloud, dns_zone_id, display_name=None, domain=None, dns_server_ips=None, source_ip=None, dns_services=None, revision=None): +def workload_network_dns_zone_update(client: AVSClient, resource_group_name, private_cloud, dns_zone, display_name=None, domain=None, dns_server_ips=None, source_ip=None, dns_services=None, revision=None): from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkDnsZone prop = WorkloadNetworkDnsZone(display_name=display_name, domain=domain, dns_server_ips=dns_server_ips, source_ip=source_ip, dns_services=dns_services, revision=revision) - return client.workload_networks.begin_update_dns_zone(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_zone_id=dns_zone_id, workload_network_dns_zone=prop) + return client.workload_networks.begin_update_dns_zone(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_zone_id=dns_zone, workload_network_dns_zone=prop) -def workload_network_dns_zone_delete(client: AVSClient, resource_group_name, private_cloud, dns_zone_id): - return client.workload_networks.begin_delete_dns_zone(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_zone_id=dns_zone_id) +def workload_network_dns_zone_delete(client: AVSClient, resource_group_name, private_cloud, dns_zone): + return client.workload_networks.begin_delete_dns_zone(resource_group_name=resource_group_name, private_cloud_name=private_cloud, dns_zone_id=dns_zone) def workload_network_port_mirroring_list(client: AVSClient, resource_group_name, private_cloud): return client.workload_networks.list_port_mirroring(resource_group_name=resource_group_name, private_cloud_name=private_cloud) -def workload_network_port_mirroring_get(client: AVSClient, resource_group_name, private_cloud, port_mirroring_id): - return client.workload_networks.get_port_mirroring(resource_group_name=resource_group_name, private_cloud_name=private_cloud, port_mirroring_id=port_mirroring_id) +def workload_network_port_mirroring_get(client: AVSClient, resource_group_name, private_cloud, port_mirroring): + return client.workload_networks.get_port_mirroring(resource_group_name=resource_group_name, private_cloud_name=private_cloud, port_mirroring_id=port_mirroring) -def workload_network_port_mirroring_create(client: AVSClient, resource_group_name, private_cloud, port_mirroring_id, display_name=None, direction=None, source=None, destination=None, revision=None): +def workload_network_port_mirroring_create(client: AVSClient, resource_group_name, private_cloud, port_mirroring, display_name=None, direction=None, source=None, destination=None, revision=None): from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkPortMirroring prop = WorkloadNetworkPortMirroring(display_name=display_name, direction=direction, source=source, destination=destination, revision=revision) - return client.workload_networks.begin_create_port_mirroring(resource_group_name=resource_group_name, private_cloud_name=private_cloud, port_mirroring_id=port_mirroring_id, workload_network_port_mirroring=prop) + return client.workload_networks.begin_create_port_mirroring(resource_group_name=resource_group_name, private_cloud_name=private_cloud, port_mirroring_id=port_mirroring, workload_network_port_mirroring=prop) -def workload_network_port_mirroring_update(client: AVSClient, resource_group_name, private_cloud, port_mirroring_id, display_name=None, direction=None, source=None, destination=None, revision=None): +def workload_network_port_mirroring_update(client: AVSClient, resource_group_name, private_cloud, port_mirroring, display_name=None, direction=None, source=None, destination=None, revision=None): from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkPortMirroring prop = WorkloadNetworkPortMirroring(display_name=display_name, direction=direction, source=source, destination=destination, revision=revision) - return client.workload_networks.begin_update_port_mirroring(resource_group_name=resource_group_name, private_cloud_name=private_cloud, port_mirroring_id=port_mirroring_id, workload_network_port_mirroring=prop) + return client.workload_networks.begin_update_port_mirroring(resource_group_name=resource_group_name, private_cloud_name=private_cloud, port_mirroring_id=port_mirroring, workload_network_port_mirroring=prop) -def workload_network_port_mirroring_delete(client: AVSClient, resource_group_name, private_cloud, port_mirroring_id): - return client.workload_networks.begin_delete_port_mirroring(resource_group_name=resource_group_name, private_cloud_name=private_cloud, port_mirroring_id=port_mirroring_id) +def workload_network_port_mirroring_delete(client: AVSClient, resource_group_name, private_cloud, port_mirroring): + return client.workload_networks.begin_delete_port_mirroring(resource_group_name=resource_group_name, private_cloud_name=private_cloud, port_mirroring_id=port_mirroring) def workload_network_segment_list(client: AVSClient, resource_group_name, private_cloud): return client.workload_networks.list_segments(resource_group_name=resource_group_name, private_cloud_name=private_cloud) -def workload_network_segment_get(client: AVSClient, resource_group_name, private_cloud, segment_id): - return client.workload_networks.get_segment(resource_group_name=resource_group_name, private_cloud_name=private_cloud, segment_id=segment_id) +def workload_network_segment_get(client: AVSClient, resource_group_name, private_cloud, segment): + return client.workload_networks.get_segment(resource_group_name=resource_group_name, private_cloud_name=private_cloud, segment_id=segment) -def workload_network_segment_create(client: AVSClient, resource_group_name, private_cloud, segment_id, display_name=None, connected_gateway=None, revision=None, dhcp_ranges=None, gateway_address=None): +def workload_network_segment_create(client: AVSClient, resource_group_name, private_cloud, segment, display_name=None, connected_gateway=None, revision=None, dhcp_ranges=None, gateway_address=None): from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkSegmentSubnet from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkSegment subnet = WorkloadNetworkSegmentSubnet(dhcp_ranges=dhcp_ranges, gateway_address=gateway_address) segment = WorkloadNetworkSegment(display_name=display_name, connected_gateway=connected_gateway, subnet=subnet, revision=revision) - return client.workload_networks.begin_create_segments(resource_group_name=resource_group_name, private_cloud_name=private_cloud, segment_id=segment_id, workload_network_segment=segment) + return client.workload_networks.begin_create_segments(resource_group_name=resource_group_name, private_cloud_name=private_cloud, segment_id=segment, workload_network_segment=segment) -def workload_network_segment_update(client: AVSClient, resource_group_name, private_cloud, segment_id, display_name=None, connected_gateway=None, revision=None, dhcp_ranges=None, gateway_address=None): +def workload_network_segment_update(client: AVSClient, resource_group_name, private_cloud, segment, display_name=None, connected_gateway=None, revision=None, dhcp_ranges=None, gateway_address=None): from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkSegmentSubnet from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkSegment subnet = WorkloadNetworkSegmentSubnet(dhcp_ranges=dhcp_ranges, gateway_address=gateway_address) segment = WorkloadNetworkSegment(display_name=display_name, connected_gateway=connected_gateway, subnet=subnet, revision=revision) - return client.workload_networks.begin_update_segments(resource_group_name=resource_group_name, private_cloud_name=private_cloud, segment_id=segment_id, workload_network_segment=segment) + return client.workload_networks.begin_update_segments(resource_group_name=resource_group_name, private_cloud_name=private_cloud, segment_id=segment, workload_network_segment=segment) -def workload_network_segment_delete(client: AVSClient, resource_group_name, private_cloud, segment_id): - return client.workload_networks.begin_delete_segment(resource_group_name=resource_group_name, private_cloud_name=private_cloud, segment_id=segment_id) +def workload_network_segment_delete(client: AVSClient, resource_group_name, private_cloud, segment): + return client.workload_networks.begin_delete_segment(resource_group_name=resource_group_name, private_cloud_name=private_cloud, segment_id=segment) def workload_network_public_ip_list(client: AVSClient, resource_group_name, private_cloud): return client.workload_networks.list_public_i_ps(resource_group_name=resource_group_name, private_cloud_name=private_cloud) -def workload_network_public_ip_get(client: AVSClient, resource_group_name, private_cloud, public_ip_id): - return client.workload_networks.get_public_ip(resource_group_name=resource_group_name, private_cloud_name=private_cloud, public_ip_id=public_ip_id) +def workload_network_public_ip_get(client: AVSClient, resource_group_name, private_cloud, public_ip): + return client.workload_networks.get_public_ip(resource_group_name=resource_group_name, private_cloud_name=private_cloud, public_ip_id=public_ip) -def workload_network_public_ip_create(client: AVSClient, resource_group_name, private_cloud, public_ip_id, display_name=None, number_of_public_ips=None): - return client.workload_networks.begin_create_public_ip(resource_group_name=resource_group_name, private_cloud_name=private_cloud, public_ip_id=public_ip_id, display_name=display_name, number_of_public_i_ps=number_of_public_ips) +def workload_network_public_ip_create(client: AVSClient, resource_group_name, private_cloud, public_ip, display_name=None, number_of_public_ips=None): + return client.workload_networks.begin_create_public_ip(resource_group_name=resource_group_name, private_cloud_name=private_cloud, public_ip_id=public_ip, display_name=display_name, number_of_public_i_ps=number_of_public_ips) -def workload_network_public_ip_delete(client: AVSClient, resource_group_name, private_cloud, public_ip_id): - return client.workload_networks.begin_delete_public_ip(resource_group_name=resource_group_name, private_cloud_name=private_cloud, public_ip_id=public_ip_id) +def workload_network_public_ip_delete(client: AVSClient, resource_group_name, private_cloud, public_ip): + return client.workload_networks.begin_delete_public_ip(resource_group_name=resource_group_name, private_cloud_name=private_cloud, public_ip_id=public_ip) def workload_network_vm_group_list(client: AVSClient, resource_group_name, private_cloud): return client.workload_networks.list_vm_groups(resource_group_name=resource_group_name, private_cloud_name=private_cloud) -def workload_network_vm_group_get(client: AVSClient, resource_group_name, private_cloud, vm_group_id): - return client.workload_networks.get_vm_group(resource_group_name=resource_group_name, private_cloud_name=private_cloud, vm_group_id=vm_group_id) +def workload_network_vm_group_get(client: AVSClient, resource_group_name, private_cloud, vm_group): + return client.workload_networks.get_vm_group(resource_group_name=resource_group_name, private_cloud_name=private_cloud, vm_group_id=vm_group) -def workload_network_vm_group_create(client: AVSClient, resource_group_name, private_cloud, vm_group_id, display_name=None, members=None, revision=None): +def workload_network_vm_group_create(client: AVSClient, resource_group_name, private_cloud, vm_group, display_name=None, members=None, revision=None): from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkVMGroup vmGroup = WorkloadNetworkVMGroup(display_name=display_name, members=members, revision=revision) - return client.workload_networks.begin_create_vm_group(resource_group_name=resource_group_name, private_cloud_name=private_cloud, vm_group_id=vm_group_id, workload_network_vm_group=vmGroup) + return client.workload_networks.begin_create_vm_group(resource_group_name=resource_group_name, private_cloud_name=private_cloud, vm_group_id=vm_group, workload_network_vm_group=vmGroup) -def workload_network_vm_group_update(client: AVSClient, resource_group_name, private_cloud, vm_group_id, display_name=None, members=None, revision=None): +def workload_network_vm_group_update(client: AVSClient, resource_group_name, private_cloud, vm_group, display_name=None, members=None, revision=None): from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkVMGroup vmGroup = WorkloadNetworkVMGroup(display_name=display_name, members=members, revision=revision) - return client.workload_networks.begin_update_vm_group(resource_group_name=resource_group_name, private_cloud_name=private_cloud, vm_group_id=vm_group_id, workload_network_vm_group=vmGroup) + return client.workload_networks.begin_update_vm_group(resource_group_name=resource_group_name, private_cloud_name=private_cloud, vm_group_id=vm_group, workload_network_vm_group=vmGroup) -def workload_network_vm_group_delete(client: AVSClient, resource_group_name, private_cloud, vm_group_id): - return client.workload_networks.begin_delete_vm_group(resource_group_name=resource_group_name, private_cloud_name=private_cloud, vm_group_id=vm_group_id) +def workload_network_vm_group_delete(client: AVSClient, resource_group_name, private_cloud, vm_group): + return client.workload_networks.begin_delete_vm_group(resource_group_name=resource_group_name, private_cloud_name=private_cloud, vm_group_id=vm_group) def workload_network_vm_list(client: AVSClient, resource_group_name, private_cloud): return client.workload_networks.list_virtual_machines(resource_group_name=resource_group_name, private_cloud_name=private_cloud) -def workload_network_vm_get(client: AVSClient, resource_group_name, private_cloud, virtual_machine_id): - return client.workload_networks.get_virtual_machine(resource_group_name=resource_group_name, private_cloud_name=private_cloud, virtual_machine_id=virtual_machine_id) +def workload_network_vm_get(client: AVSClient, resource_group_name, private_cloud, virtual_machine): + return client.workload_networks.get_virtual_machine(resource_group_name=resource_group_name, private_cloud_name=private_cloud, virtual_machine_id=virtual_machine) def workload_network_gateway_list(client: AVSClient, resource_group_name, private_cloud): return client.workload_networks.list_gateways(resource_group_name=resource_group_name, private_cloud_name=private_cloud) -def workload_network_gateway_get(client: AVSClient, resource_group_name, private_cloud, gateway_id): - return client.workload_networks.get_gateway(resource_group_name=resource_group_name, private_cloud_name=private_cloud, gateway_id=gateway_id) +def workload_network_gateway_get(client: AVSClient, resource_group_name, private_cloud, gateway): + return client.workload_networks.get_gateway(resource_group_name=resource_group_name, private_cloud_name=private_cloud, gateway_id=gateway) diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml index 867e3a5ede3..2ecc6000be7 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml @@ -15,7 +15,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations?api-version=2021-06-01 response: body: string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}]}' @@ -25,7 +25,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:57:00 GMT + - Thu, 07 Oct 2021 20:03:05 GMT server: - Rocket status: @@ -43,11 +43,11 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --private-cloud --dhcp-id + - --resource-group --private-cloud --dhcp User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' @@ -57,7 +57,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:57:04 GMT + - Thu, 07 Oct 2021 20:03:07 GMT server: - Rocket status: @@ -80,11 +80,11 @@ interactions: Content-Type: - application/json ParameterSetName: - - --resource-group --private-cloud --dhcp-id --display-name --revision --server-addresses + - --resource-group --private-cloud --dhcp --display-name --revision --server-addresses User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' @@ -94,7 +94,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:57:09 GMT + - Thu, 07 Oct 2021 20:03:09 GMT server: - Rocket status: @@ -114,11 +114,11 @@ interactions: Content-Length: - '0' ParameterSetName: - - --resource-group --private-cloud --dhcp-id + - --resource-group --private-cloud --dhcp User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 response: body: string: '' @@ -126,7 +126,7 @@ interactions: content-length: - '0' date: - - Thu, 23 Sep 2021 18:57:13 GMT + - Thu, 07 Oct 2021 20:03:11 GMT server: - Rocket status: @@ -149,11 +149,11 @@ interactions: Content-Type: - application/json ParameterSetName: - - --resource-group --private-cloud --dhcp-id --display-name --revision --server-addresses + - --resource-group --private-cloud --dhcp --display-name --revision --server-addresses User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PATCH - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":2}}' @@ -163,7 +163,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:57:17 GMT + - Thu, 07 Oct 2021 20:03:13 GMT server: - Rocket status: @@ -186,12 +186,12 @@ interactions: Content-Type: - application/json ParameterSetName: - - --resource-group --private-cloud --dhcp-id --display-name --revision --server-address + - --resource-group --private-cloud --dhcp --display-name --revision --server-address --lease-time User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' @@ -201,7 +201,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:57:22 GMT + - Thu, 07 Oct 2021 20:03:16 GMT server: - Rocket status: @@ -221,11 +221,11 @@ interactions: Content-Length: - '0' ParameterSetName: - - --resource-group --private-cloud --dhcp-id + - --resource-group --private-cloud --dhcp User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 response: body: string: '' @@ -233,7 +233,7 @@ interactions: content-length: - '0' date: - - Thu, 23 Sep 2021 18:57:26 GMT + - Thu, 07 Oct 2021 20:03:18 GMT server: - Rocket status: @@ -256,12 +256,12 @@ interactions: Content-Type: - application/json ParameterSetName: - - --resource-group --private-cloud --dhcp-id --display-name --revision --server-address + - --resource-group --private-cloud --dhcp --display-name --revision --server-address --lease-time User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PATCH - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":2}}' @@ -271,7 +271,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:57:30 GMT + - Thu, 07 Oct 2021 20:03:20 GMT server: - Rocket status: @@ -293,7 +293,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices?api-version=2021-06-01 response: body: string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}]}' @@ -303,7 +303,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:57:34 GMT + - Thu, 07 Oct 2021 20:03:22 GMT server: - Rocket status: @@ -321,11 +321,11 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --private-cloud --dns-service-id + - --resource-group --private-cloud --dns-service User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' @@ -335,7 +335,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:57:39 GMT + - Thu, 07 Oct 2021 20:03:24 GMT server: - Rocket status: @@ -359,12 +359,12 @@ interactions: Content-Type: - application/json ParameterSetName: - - --resource-group --private-cloud --dns-service-id --display-name --dns-service-ip + - --resource-group --private-cloud --dns-service --display-name --dns-service-ip --default-dns-zone --fqdn-zones --log-level --revision User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"dnsService1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' @@ -374,7 +374,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:57:43 GMT + - Thu, 07 Oct 2021 20:03:26 GMT server: - Rocket status: @@ -398,12 +398,12 @@ interactions: Content-Type: - application/json ParameterSetName: - - --resource-group --private-cloud --dns-service-id --display-name --dns-service-ip + - --resource-group --private-cloud --dns-service --display-name --dns-service-ip --default-dns-zone --fqdn-zones --log-level --revision User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PATCH - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"dnsService1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' @@ -413,7 +413,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:57:47 GMT + - Thu, 07 Oct 2021 20:03:29 GMT server: - Rocket status: @@ -433,11 +433,11 @@ interactions: Content-Length: - '0' ParameterSetName: - - --resource-group --private-cloud --dns-service-id + - --resource-group --private-cloud --dns-service User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 response: body: string: '' @@ -445,7 +445,7 @@ interactions: content-length: - '0' date: - - Thu, 23 Sep 2021 18:57:51 GMT + - Thu, 07 Oct 2021 20:03:31 GMT server: - Rocket status: @@ -467,7 +467,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones?api-version=2021-06-01 response: body: string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}]}' @@ -477,7 +477,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:57:56 GMT + - Thu, 07 Oct 2021 20:03:33 GMT server: - Rocket status: @@ -495,11 +495,11 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --private-cloud --dns-zone-id + - --resource-group --private-cloud --dns-zone User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' @@ -509,7 +509,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:58:00 GMT + - Thu, 07 Oct 2021 20:03:35 GMT server: - Rocket status: @@ -533,12 +533,12 @@ interactions: Content-Type: - application/json ParameterSetName: - - --resource-group --private-cloud --dns-zone-id --display-name --domain --dns-server-ips + - --resource-group --private-cloud --dns-zone --display-name --domain --dns-server-ips --source-ip --dns-services --revision User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"dnsZone1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' @@ -548,7 +548,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:58:04 GMT + - Thu, 07 Oct 2021 20:03:37 GMT server: - Rocket status: @@ -572,12 +572,12 @@ interactions: Content-Type: - application/json ParameterSetName: - - --resource-group --private-cloud --dns-zone-id --display-name --domain --dns-server-ips + - --resource-group --private-cloud --dns-zone --display-name --domain --dns-server-ips --source-ip --dns-services --revision User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PATCH - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"dnsZone1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' @@ -587,7 +587,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:58:09 GMT + - Thu, 07 Oct 2021 20:03:40 GMT server: - Rocket status: @@ -607,11 +607,11 @@ interactions: Content-Length: - '0' ParameterSetName: - - --resource-group --private-cloud --dns-zone-id + - --resource-group --private-cloud --dns-zone User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 response: body: string: '' @@ -619,7 +619,7 @@ interactions: content-length: - '0' date: - - Thu, 23 Sep 2021 18:58:13 GMT + - Thu, 07 Oct 2021 20:03:42 GMT server: - Rocket status: @@ -641,7 +641,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles?api-version=2021-06-01 response: body: string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles","properties":{"displayName":"portMirroring1","direction":"INGRESS, @@ -653,7 +653,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:58:17 GMT + - Thu, 07 Oct 2021 20:03:44 GMT server: - Rocket status: @@ -671,11 +671,11 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --private-cloud --port-mirroring-id + - --resource-group --private-cloud --port-mirroring User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles","properties":{"displayName":"portMirroring1","direction":"INGRESS, @@ -687,7 +687,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:58:22 GMT + - Thu, 07 Oct 2021 20:03:46 GMT server: - Rocket status: @@ -707,11 +707,11 @@ interactions: Content-Length: - '0' ParameterSetName: - - --resource-group --private-cloud --port-mirroring-id + - --resource-group --private-cloud --port-mirroring User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2021-06-01 response: body: string: '' @@ -719,7 +719,7 @@ interactions: content-length: - '0' date: - - Thu, 23 Sep 2021 18:58:26 GMT + - Thu, 07 Oct 2021 20:03:48 GMT server: - Rocket status: @@ -741,7 +741,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments?api-version=2021-06-01 response: body: string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"portVif":[{"portName":"vm1"}],"status":"SUCCESS, @@ -752,7 +752,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:58:30 GMT + - Thu, 07 Oct 2021 20:03:51 GMT server: - Rocket status: @@ -770,11 +770,11 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --private-cloud --segment-id + - --resource-group --private-cloud --segment User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"portVif":[{"portName":"vm1"}],"status":"SUCCESS, @@ -785,7 +785,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:58:34 GMT + - Thu, 07 Oct 2021 20:03:53 GMT server: - Rocket status: @@ -809,12 +809,12 @@ interactions: Content-Type: - application/json ParameterSetName: - - --resource-group --private-cloud --segment-id --display-name --connected-gateway + - --resource-group --private-cloud --segment --display-name --connected-gateway --revision --dhcp-ranges --gateway-address User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/%7B%27additional_properties%27%3A%20%7B%7D%2C%20%27id%27%3A%20None%2C%20%27name%27%3A%20None%2C%20%27type%27%3A%20None%2C%20%27display_name%27%3A%20%27testDisplayName%27%2C%20%27connected_gateway%27%3A%20%27%2Finfra%2Ftier-1s%2Fgateway%27%2C%20%27subnet%27%3A%20%3Cazext_vmware.vendored_sdks.avs_client.models._models_py3.WorkloadNetworkSegmentSubnet%20object%20at%200x00000249DB4848B0%3E%2C%20%27port_vif%27%3A%20None%2C%20%27status%27%3A%20None%2C%20%27provisioning_state%27%3A%20None%2C%20%27revision%27%3A%20%271%27%7D?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"status":"SUCCESS, @@ -825,7 +825,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:58:39 GMT + - Thu, 07 Oct 2021 20:03:55 GMT server: - Rocket status: @@ -849,12 +849,12 @@ interactions: Content-Type: - application/json ParameterSetName: - - --resource-group --private-cloud --segment-id --display-name --connected-gateway + - --resource-group --private-cloud --segment --display-name --connected-gateway --revision --dhcp-ranges --gateway-address User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PATCH - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/%7B%27additional_properties%27%3A%20%7B%7D%2C%20%27id%27%3A%20None%2C%20%27name%27%3A%20None%2C%20%27type%27%3A%20None%2C%20%27display_name%27%3A%20%27testDisplayName%27%2C%20%27connected_gateway%27%3A%20%27%2Finfra%2Ftier-1s%2Fgateway%27%2C%20%27subnet%27%3A%20%3Cazext_vmware.vendored_sdks.avs_client.models._models_py3.WorkloadNetworkSegmentSubnet%20object%20at%200x00000249DE2A94C0%3E%2C%20%27port_vif%27%3A%20None%2C%20%27status%27%3A%20None%2C%20%27provisioning_state%27%3A%20None%2C%20%27revision%27%3A%20%271%27%7D?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"portVif":[{"portName":"vm1"}],"status":"SUCCESS, @@ -865,7 +865,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:58:43 GMT + - Thu, 07 Oct 2021 20:03:57 GMT server: - Rocket status: @@ -885,11 +885,11 @@ interactions: Content-Length: - '0' ParameterSetName: - - --resource-group --private-cloud --segment-id + - --resource-group --private-cloud --segment User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 response: body: string: '' @@ -897,7 +897,7 @@ interactions: content-length: - '0' date: - - Thu, 23 Sep 2021 18:58:47 GMT + - Thu, 07 Oct 2021 20:03:59 GMT server: - Rocket status: @@ -919,7 +919,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs?api-version=2021-06-01 response: body: string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1","name":"publicIP1","type":"Microsoft.AVS/privateClouds/workloadNetworks/publicIPs","properties":{"displayName":"publicIP1","publicIPBlock":"20.20.40.50/32"}}]}' @@ -929,7 +929,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:58:51 GMT + - Thu, 07 Oct 2021 20:04:02 GMT server: - Rocket status: @@ -947,11 +947,11 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --private-cloud --public-ip-id + - --resource-group --private-cloud --public-ip User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1","name":"publicIP1","type":"Microsoft.AVS/privateClouds/workloadNetworks/publicIPs","properties":{"displayName":"publicIP1","publicIPBlock":"20.20.40.50/32"}}' @@ -961,7 +961,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:58:56 GMT + - Thu, 07 Oct 2021 20:04:04 GMT server: - Rocket status: @@ -984,11 +984,11 @@ interactions: Content-Type: - application/json ParameterSetName: - - --resource-group --private-cloud --public-ip-id --display-name --number-of-public-i-ps + - --resource-group --private-cloud --public-ip --display-name --number-of-public-ips User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1","name":"publicIP1","type":"Microsoft.AVS/privateClouds/workloadNetworks/publicIPs","properties":{"displayName":"publicIP1","publicIPBlock":"20.20.40.50/32"}}' @@ -998,7 +998,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:59:00 GMT + - Thu, 07 Oct 2021 20:04:06 GMT server: - Rocket status: @@ -1018,11 +1018,11 @@ interactions: Content-Length: - '0' ParameterSetName: - - --resource-group --private-cloud --public-ip-id + - --resource-group --private-cloud --public-ip User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-06-01 response: body: string: '' @@ -1030,7 +1030,7 @@ interactions: content-length: - '0' date: - - Thu, 23 Sep 2021 18:59:04 GMT + - Thu, 07 Oct 2021 20:04:08 GMT server: - Rocket status: @@ -1052,7 +1052,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups?api-version=2021-06-01 response: body: string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS, @@ -1063,7 +1063,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:59:08 GMT + - Thu, 07 Oct 2021 20:04:10 GMT server: - Rocket status: @@ -1081,11 +1081,11 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --private-cloud --vm-group-id + - --resource-group --private-cloud --vm-group User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS, @@ -1096,7 +1096,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:59:13 GMT + - Thu, 07 Oct 2021 20:04:13 GMT server: - Rocket status: @@ -1119,11 +1119,11 @@ interactions: Content-Type: - application/json ParameterSetName: - - --resource-group --private-cloud --vm-group-id --display-name --members --revision + - --resource-group --private-cloud --vm-group --display-name --members --revision User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"vmGroup1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS, @@ -1134,7 +1134,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:59:17 GMT + - Thu, 07 Oct 2021 20:04:15 GMT server: - Rocket status: @@ -1157,11 +1157,11 @@ interactions: Content-Type: - application/json ParameterSetName: - - --resource-group --private-cloud --vm-group-id --display-name --members --revision + - --resource-group --private-cloud --vm-group --display-name --members --revision User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PATCH - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS, @@ -1172,7 +1172,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:59:21 GMT + - Thu, 07 Oct 2021 20:04:17 GMT server: - Rocket status: @@ -1192,11 +1192,11 @@ interactions: Content-Length: - '0' ParameterSetName: - - --resource-group --private-cloud --vm-group-id + - --resource-group --private-cloud --vm-group User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 response: body: string: '' @@ -1204,7 +1204,7 @@ interactions: content-length: - '0' date: - - Thu, 23 Sep 2021 18:59:26 GMT + - Thu, 07 Oct 2021 20:04:19 GMT server: - Rocket status: @@ -1226,7 +1226,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines?api-version=2021-06-01 response: body: string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines/vm1","name":"vm1","type":"Microsoft.AVS/privateClouds/workloadNetworks/virtualMachines","properties":{"displayName":"vm1","vmType":"REGULAR, @@ -1237,7 +1237,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:59:30 GMT + - Thu, 07 Oct 2021 20:04:21 GMT server: - Rocket status: @@ -1255,11 +1255,11 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --private-cloud --virtual-machine-id + - --resource-group --private-cloud --virtual-machine User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines/vm1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines/vm1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines/vm1","name":"vm1","type":"Microsoft.AVS/privateClouds/workloadNetworks/virtualMachines","properties":{"displayName":"vm1","vmType":"REGULAR, @@ -1270,7 +1270,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:59:34 GMT + - Thu, 07 Oct 2021 20:04:24 GMT server: - Rocket status: @@ -1292,7 +1292,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways?api-version=2021-06-01 response: body: string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways/gateway1","name":"gateway1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"gateway1","path":"/infra/tier-1s/gateway1"}}]}' @@ -1302,7 +1302,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:59:38 GMT + - Thu, 07 Oct 2021 20:04:26 GMT server: - Rocket status: @@ -1320,11 +1320,11 @@ interactions: Connection: - keep-alive ParameterSetName: - - --resource-group --private-cloud --gateway-id + - --resource-group --private-cloud --gateway User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways/gateway1?api-version=2021-06-01 + uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways/gateway1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways/gateway1","name":"gateway1","type":"Microsoft.AVS/privateClouds/workloadNetworks/gateways","properties":{"displayName":"gateway1","path":"/infra/tier-1s/gateway1"}}' @@ -1334,7 +1334,7 @@ interactions: content-type: - application/json date: - - Thu, 23 Sep 2021 18:59:43 GMT + - Thu, 07 Oct 2021 20:04:28 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/test_workload_network_scenario.py b/src/vmware/azext_vmware/tests/latest/test_workload_network_scenario.py index 56b4c5087cd..0903efd025a 100644 --- a/src/vmware/azext_vmware/tests/latest/test_workload_network_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_workload_network_scenario.py @@ -17,159 +17,159 @@ def setUp(self): def test_vmware_workload_network(self): self.kwargs.update({ 'privatecloud': 'cloud1', - 'dhcp_id': 'dhcp1', + 'dhcp': 'dhcp1', 'display_name': 'testDisplayName', 'revision': '1', 'server_address': '40.1.5.1/24', 'lease_time': '86400', 'server_addresses': '40.1.5.1/24', - 'dns_service_id': 'dnsService1', + 'dns_service': 'dnsService1', 'dns_service_ip': '5.5.5.5', 'default_dns_zone': 'defaultDnsZone1', 'fqdn_zones': 'fqdnZone1', 'log_level': 'INFO', - 'dns_zone_id': 'dnsZone1', + 'dns_zone': 'dnsZone1', 'domain': 'domain1', 'dns_server_ips': '1.1.1.1', 'source_ip': '8.8.8.8', 'dns_services': '1', - 'port_mirroring_id': 'portMirroring1', + 'port_mirroring': 'portMirroring1', 'direction': 'BIDIRECTIONAL', 'source': 'vmGroup1', - 'segment_id': 'segment1', + 'segment': 'segment1', 'destination': 'vmGroup2', 'connected_gateway': '/infra/tier-1s/gateway', 'dhcp_ranges': '40.20.0.0 40.20.0.1', 'gateway_address': '40.20.20.20/16', - 'public_ip_id': 'publicIP1', + 'public_ip': 'publicIP1', 'number_of_public_i_ps': '32', - 'vm_group_id': 'vmGroup1', + 'vm_group': 'vmGroup1', 'members': '564d43da-fefc-2a3b-1d92-42855622fa50', - 'virtual_machine_id': 'vm1', - 'gateway_id': 'gateway1' + 'virtual_machine': 'vm1', + 'gateway': 'gateway1' }) count = len(self.cmd('az vmware workload-network dhcp list --resource-group {rg} --private-cloud {privatecloud}').get_output_in_json()) self.assertEqual(count, 1, 'count expected to be 1') - dhcpShow = self.cmd('az vmware workload-network dhcp show --resource-group {rg} --private-cloud {privatecloud} --dhcp-id {dhcp_id}').get_output_in_json() + dhcpShow = self.cmd('az vmware workload-network dhcp show --resource-group {rg} --private-cloud {privatecloud} --dhcp {dhcp}').get_output_in_json() self.assertEqual(dhcpShow['name'], 'dhcp1') - dhcpRelayCreate = self.cmd('az vmware workload-network dhcp relay create --resource-group {rg} --private-cloud {privatecloud} --dhcp-id {dhcp_id} --display-name {display_name} --revision {revision} --server-addresses {server_addresses}').get_output_in_json() + dhcpRelayCreate = self.cmd('az vmware workload-network dhcp relay create --resource-group {rg} --private-cloud {privatecloud} --dhcp {dhcp} --display-name {display_name} --revision {revision} --server-addresses {server_addresses}').get_output_in_json() self.assertEqual(dhcpRelayCreate['name'], 'dhcp1') - dhcpRelayDelete = self.cmd('az vmware workload-network dhcp relay delete --resource-group {rg} --private-cloud {privatecloud} --dhcp-id {dhcp_id}').output + dhcpRelayDelete = self.cmd('az vmware workload-network dhcp relay delete --resource-group {rg} --private-cloud {privatecloud} --dhcp {dhcp}').output self.assertEqual(len(dhcpRelayDelete), 0) - dhcpRelayUpdate = self.cmd('az vmware workload-network dhcp relay update --resource-group {rg} --private-cloud {privatecloud} --dhcp-id {dhcp_id} --display-name {display_name} --revision {revision} --server-addresses {server_addresses}').get_output_in_json() + dhcpRelayUpdate = self.cmd('az vmware workload-network dhcp relay update --resource-group {rg} --private-cloud {privatecloud} --dhcp {dhcp} --display-name {display_name} --revision {revision} --server-addresses {server_addresses}').get_output_in_json() self.assertEqual(dhcpRelayUpdate['name'], 'dhcp1') - dhcpServerCreate = self.cmd('az vmware workload-network dhcp server create --resource-group {rg} --private-cloud {privatecloud} --dhcp-id {dhcp_id} --display-name {display_name} --revision {revision} --server-address {server_address} --lease-time {lease_time}').get_output_in_json() + dhcpServerCreate = self.cmd('az vmware workload-network dhcp server create --resource-group {rg} --private-cloud {privatecloud} --dhcp {dhcp} --display-name {display_name} --revision {revision} --server-address {server_address} --lease-time {lease_time}').get_output_in_json() self.assertEqual(dhcpServerCreate['name'], 'dhcp1') - dhcpServerDelete = self.cmd('az vmware workload-network dhcp server delete --resource-group {rg} --private-cloud {privatecloud} --dhcp-id {dhcp_id}').output + dhcpServerDelete = self.cmd('az vmware workload-network dhcp server delete --resource-group {rg} --private-cloud {privatecloud} --dhcp {dhcp}').output self.assertEqual(len(dhcpServerDelete), 0) - dhcpServerUpdate = self.cmd('az vmware workload-network dhcp server update --resource-group {rg} --private-cloud {privatecloud} --dhcp-id {dhcp_id} --display-name {display_name} --revision {revision} --server-address {server_address} --lease-time {lease_time}').get_output_in_json() + dhcpServerUpdate = self.cmd('az vmware workload-network dhcp server update --resource-group {rg} --private-cloud {privatecloud} --dhcp {dhcp} --display-name {display_name} --revision {revision} --server-address {server_address} --lease-time {lease_time}').get_output_in_json() self.assertEqual(dhcpServerUpdate['name'], 'dhcp1') dnsServiceList = self.cmd('az vmware workload-network dns-service list --resource-group {rg} --private-cloud {privatecloud}').get_output_in_json() self.assertEqual(len(dnsServiceList), 1, 'count expected to be 1') - dnsServiceGet = self.cmd('az vmware workload-network dns-service show --resource-group {rg} --private-cloud {privatecloud} --dns-service-id {dns_service_id}').get_output_in_json() + dnsServiceGet = self.cmd('az vmware workload-network dns-service show --resource-group {rg} --private-cloud {privatecloud} --dns-service {dns_service}').get_output_in_json() self.assertEqual(dnsServiceGet['name'], 'portMirroring1') - dnsServiceCreate = self.cmd('az vmware workload-network dns-service create --resource-group {rg} --private-cloud {privatecloud} --dns-service-id {dns_service_id} --display-name {display_name} --dns-service-ip {dns_service_ip} --default-dns-zone {default_dns_zone} --fqdn-zones {fqdn_zones} --log-level {log_level} --revision {revision}').get_output_in_json() + dnsServiceCreate = self.cmd('az vmware workload-network dns-service create --resource-group {rg} --private-cloud {privatecloud} --dns-service {dns_service} --display-name {display_name} --dns-service-ip {dns_service_ip} --default-dns-zone {default_dns_zone} --fqdn-zones {fqdn_zones} --log-level {log_level} --revision {revision}').get_output_in_json() self.assertEqual(dnsServiceCreate['name'], 'dnsService1') - dnsServiceUpdate = self.cmd('az vmware workload-network dns-service update --resource-group {rg} --private-cloud {privatecloud} --dns-service-id {dns_service_id} --display-name {display_name} --dns-service-ip {dns_service_ip} --default-dns-zone {default_dns_zone} --fqdn-zones {fqdn_zones} --log-level {log_level} --revision {revision}').get_output_in_json() + dnsServiceUpdate = self.cmd('az vmware workload-network dns-service update --resource-group {rg} --private-cloud {privatecloud} --dns-service {dns_service} --display-name {display_name} --dns-service-ip {dns_service_ip} --default-dns-zone {default_dns_zone} --fqdn-zones {fqdn_zones} --log-level {log_level} --revision {revision}').get_output_in_json() self.assertEqual(dnsServiceUpdate['name'], 'dnsService1') - dnsServiceDelete = self.cmd('az vmware workload-network dns-service delete --resource-group {rg} --private-cloud {privatecloud} --dns-service-id {dns_service_id}').output + dnsServiceDelete = self.cmd('az vmware workload-network dns-service delete --resource-group {rg} --private-cloud {privatecloud} --dns-service {dns_service}').output self.assertEqual(len(dnsServiceDelete), 0) dnsZoneList = self.cmd('az vmware workload-network dns-zone list --resource-group {rg} --private-cloud {privatecloud}').get_output_in_json() self.assertEqual(len(dnsZoneList), 1, 'count expected to be 1') - dnsZoneGet = self.cmd('az vmware workload-network dns-zone show --resource-group {rg} --private-cloud {privatecloud} --dns-zone-id {dns_zone_id}').get_output_in_json() + dnsZoneGet = self.cmd('az vmware workload-network dns-zone show --resource-group {rg} --private-cloud {privatecloud} --dns-zone {dns_zone}').get_output_in_json() self.assertEqual(dnsZoneGet['name'], 'portMirroring1') - dnsZoneCreate = self.cmd('az vmware workload-network dns-zone create --resource-group {rg} --private-cloud {privatecloud} --dns-zone-id {dns_zone_id} --display-name {display_name} --domain {domain} --dns-server-ips {dns_server_ips} --source-ip {source_ip} --dns-services {dns_services} --revision {revision}').get_output_in_json() + dnsZoneCreate = self.cmd('az vmware workload-network dns-zone create --resource-group {rg} --private-cloud {privatecloud} --dns-zone {dns_zone} --display-name {display_name} --domain {domain} --dns-server-ips {dns_server_ips} --source-ip {source_ip} --dns-services {dns_services} --revision {revision}').get_output_in_json() self.assertEqual(dnsZoneCreate['name'], 'dnsZone1') - dnsZoneUpdate = self.cmd('az vmware workload-network dns-zone update --resource-group {rg} --private-cloud {privatecloud} --dns-zone-id {dns_zone_id} --display-name {display_name} --domain {domain} --dns-server-ips {dns_server_ips} --source-ip {source_ip} --dns-services {dns_services} --revision {revision}').get_output_in_json() + dnsZoneUpdate = self.cmd('az vmware workload-network dns-zone update --resource-group {rg} --private-cloud {privatecloud} --dns-zone {dns_zone} --display-name {display_name} --domain {domain} --dns-server-ips {dns_server_ips} --source-ip {source_ip} --dns-services {dns_services} --revision {revision}').get_output_in_json() self.assertEqual(dnsZoneUpdate['name'], 'dnsZone1') - dnsZoneDelete = self.cmd('az vmware workload-network dns-zone delete --resource-group {rg} --private-cloud {privatecloud} --dns-zone-id {dns_zone_id}').output + dnsZoneDelete = self.cmd('az vmware workload-network dns-zone delete --resource-group {rg} --private-cloud {privatecloud} --dns-zone {dns_zone}').output self.assertEqual(len(dnsZoneDelete), 0) portMirroringList = self.cmd('az vmware workload-network port-mirroring list --resource-group {rg} --private-cloud {privatecloud}').get_output_in_json() self.assertEqual(len(portMirroringList), 1, 'count expected to be 1') - portMirroringGet = self.cmd('az vmware workload-network port-mirroring show --resource-group {rg} --private-cloud {privatecloud} --port-mirroring-id {port_mirroring_id}').get_output_in_json() + portMirroringGet = self.cmd('az vmware workload-network port-mirroring show --resource-group {rg} --private-cloud {privatecloud} --port-mirroring {port_mirroring}').get_output_in_json() self.assertEqual(portMirroringGet['name'], 'portMirroring1') # Uncomment these unit tests once swagger is fixed - # portMirroringCreate = self.cmd('az vmware workload-network port-mirroring create --resource-group {rg} --private-cloud {privatecloud} --port-mirroring-id {port_mirroring_id} --display-name {display_name} --direction {direction} --source {source} --destination {destination} --revision {revision}').get_output_in_json() + # portMirroringCreate = self.cmd('az vmware workload-network port-mirroring create --resource-group {rg} --private-cloud {privatecloud} --port-mirroring {port_mirroring} --display-name {display_name} --direction {direction} --source {source} --destination {destination} --revision {revision}').get_output_in_json() # self.assertEqual(portMirroringCreate['name'], 'portMirroring1') - # portMirroringUpdate = self.cmd('az vmware workload-network port-mirroring update --resource-group {rg} --private-cloud {privatecloud} --port-mirroring-id {port_mirroring_id} --display-name {display_name} --direction {direction} --source {source} --destination {destination} --revision {revision}').get_output_in_json() + # portMirroringUpdate = self.cmd('az vmware workload-network port-mirroring update --resource-group {rg} --private-cloud {privatecloud} --port-mirroring {port_mirroring} --display-name {display_name} --direction {direction} --source {source} --destination {destination} --revision {revision}').get_output_in_json() # self.assertEqual(portMirroringUpdate['name'], 'portMirroring1') - portMirroringDelete = self.cmd('az vmware workload-network port-mirroring delete --resource-group {rg} --private-cloud {privatecloud} --port-mirroring-id {port_mirroring_id}').output + portMirroringDelete = self.cmd('az vmware workload-network port-mirroring delete --resource-group {rg} --private-cloud {privatecloud} --port-mirroring {port_mirroring}').output self.assertEqual(len(portMirroringDelete), 0) segmentList = self.cmd('az vmware workload-network segment list --resource-group {rg} --private-cloud {privatecloud}').get_output_in_json() self.assertEqual(len(segmentList), 1, 'count expected to be 1') - segmentGet = self.cmd('az vmware workload-network segment show --resource-group {rg} --private-cloud {privatecloud} --segment-id {segment_id}').get_output_in_json() + segmentGet = self.cmd('az vmware workload-network segment show --resource-group {rg} --private-cloud {privatecloud} --segment {segment}').get_output_in_json() self.assertEqual(segmentGet['name'], 'segment1') - segmentCreate = self.cmd('az vmware workload-network segment create --resource-group {rg} --private-cloud {privatecloud} --segment-id {segment_id} --display-name {display_name} --connected-gateway {connected_gateway} --revision {revision} --dhcp-ranges {dhcp_ranges} --gateway-address {gateway_address}').get_output_in_json() + segmentCreate = self.cmd('az vmware workload-network segment create --resource-group {rg} --private-cloud {privatecloud} --segment {segment} --display-name {display_name} --connected-gateway {connected_gateway} --revision {revision} --dhcp-ranges {dhcp_ranges} --gateway-address {gateway_address}').get_output_in_json() self.assertEqual(segmentCreate['name'], 'segment1') - segmentUpdate = self.cmd('az vmware workload-network segment update --resource-group {rg} --private-cloud {privatecloud} --segment-id {segment_id} --display-name {display_name} --connected-gateway {connected_gateway} --revision {revision} --dhcp-ranges {dhcp_ranges} --gateway-address {gateway_address}').get_output_in_json() + segmentUpdate = self.cmd('az vmware workload-network segment update --resource-group {rg} --private-cloud {privatecloud} --segment {segment} --display-name {display_name} --connected-gateway {connected_gateway} --revision {revision} --dhcp-ranges {dhcp_ranges} --gateway-address {gateway_address}').get_output_in_json() self.assertEqual(segmentUpdate['name'], 'segment1') - segmentDelete = self.cmd('az vmware workload-network segment delete --resource-group {rg} --private-cloud {privatecloud} --segment-id {segment_id}').output + segmentDelete = self.cmd('az vmware workload-network segment delete --resource-group {rg} --private-cloud {privatecloud} --segment {segment}').output self.assertEqual(len(segmentDelete), 0) publicIpList = self.cmd('az vmware workload-network public-ip list --resource-group {rg} --private-cloud {privatecloud}').get_output_in_json() self.assertEqual(len(publicIpList), 1, 'count expected to be 1') - publicIpGet = self.cmd('az vmware workload-network public-ip show --resource-group {rg} --private-cloud {privatecloud} --public-ip-id {public_ip_id}').get_output_in_json() + publicIpGet = self.cmd('az vmware workload-network public-ip show --resource-group {rg} --private-cloud {privatecloud} --public-ip {public_ip}').get_output_in_json() self.assertEqual(publicIpGet['name'], 'publicIP1') - publicIpCreate = self.cmd('az vmware workload-network public-ip create --resource-group {rg} --private-cloud {privatecloud} --public-ip-id {public_ip_id} --display-name {display_name} --number-of-public-ips {number_of_public_i_ps}').get_output_in_json() + publicIpCreate = self.cmd('az vmware workload-network public-ip create --resource-group {rg} --private-cloud {privatecloud} --public-ip {public_ip} --display-name {display_name} --number-of-public-ips {number_of_public_i_ps}').get_output_in_json() self.assertEqual(publicIpCreate['name'], 'publicIP1') - publicIpDelete = self.cmd('az vmware workload-network public-ip delete --resource-group {rg} --private-cloud {privatecloud} --public-ip-id {public_ip_id}').output + publicIpDelete = self.cmd('az vmware workload-network public-ip delete --resource-group {rg} --private-cloud {privatecloud} --public-ip {public_ip}').output self.assertEqual(len(publicIpDelete), 0) vmGroupList = self.cmd('az vmware workload-network vm-group list --resource-group {rg} --private-cloud {privatecloud}').get_output_in_json() self.assertEqual(len(vmGroupList), 1, 'count expected to be 1') - vmGroupGet = self.cmd('az vmware workload-network vm-group show --resource-group {rg} --private-cloud {privatecloud} --vm-group-id {vm_group_id}').get_output_in_json() + vmGroupGet = self.cmd('az vmware workload-network vm-group show --resource-group {rg} --private-cloud {privatecloud} --vm-group {vm_group}').get_output_in_json() self.assertEqual(vmGroupGet['name'], 'cloud1') - vmGroupCreate = self.cmd('az vmware workload-network vm-group create --resource-group {rg} --private-cloud {privatecloud} --vm-group-id {vm_group_id} --display-name {display_name} --members {members} --revision {revision}').get_output_in_json() + vmGroupCreate = self.cmd('az vmware workload-network vm-group create --resource-group {rg} --private-cloud {privatecloud} --vm-group {vm_group} --display-name {display_name} --members {members} --revision {revision}').get_output_in_json() self.assertEqual(vmGroupCreate['name'], 'vmGroup1') - vmGroupUpdate = self.cmd('az vmware workload-network vm-group update --resource-group {rg} --private-cloud {privatecloud} --vm-group-id {vm_group_id} --display-name {display_name} --members {members} --revision {revision}').get_output_in_json() + vmGroupUpdate = self.cmd('az vmware workload-network vm-group update --resource-group {rg} --private-cloud {privatecloud} --vm-group {vm_group} --display-name {display_name} --members {members} --revision {revision}').get_output_in_json() self.assertEqual(vmGroupUpdate['name'], 'cloud1') - vmGroupDelete = self.cmd('az vmware workload-network vm-group delete --resource-group {rg} --private-cloud {privatecloud} --vm-group-id {vm_group_id}').output + vmGroupDelete = self.cmd('az vmware workload-network vm-group delete --resource-group {rg} --private-cloud {privatecloud} --vm-group {vm_group}').output self.assertEqual(len(vmGroupDelete), 0) vmList = self.cmd('az vmware workload-network vm list --resource-group {rg} --private-cloud {privatecloud}').get_output_in_json() self.assertEqual(len(vmList), 1, 'count expected to be 1') - vmGet = self.cmd('az vmware workload-network vm show --resource-group {rg} --private-cloud {privatecloud} --virtual-machine-id {virtual_machine_id}').get_output_in_json() + vmGet = self.cmd('az vmware workload-network vm show --resource-group {rg} --private-cloud {privatecloud} --virtual-machine {virtual_machine}').get_output_in_json() self.assertEqual(vmGet['name'], 'vm1') gatewayList = self.cmd('az vmware workload-network gateway list --resource-group {rg} --private-cloud {privatecloud}').get_output_in_json() self.assertEqual(len(gatewayList), 1, 'count expected to be 1') - gatewayGet = self.cmd('az vmware workload-network gateway show --resource-group {rg} --private-cloud {privatecloud} --gateway-id {gateway_id}').get_output_in_json() + gatewayGet = self.cmd('az vmware workload-network gateway show --resource-group {rg} --private-cloud {privatecloud} --gateway {gateway}').get_output_in_json() self.assertEqual(gatewayGet['name'], 'gateway1') From f1ad9d36aa00eb2b56cf8814d8684df5287e87fa Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Fri, 8 Oct 2021 12:21:32 -0500 Subject: [PATCH 25/34] fixed unit tests --- src/vmware/azext_vmware/_help.py | 4 +- src/vmware/azext_vmware/_params.py | 1 + src/vmware/azext_vmware/custom.py | 16 +- .../test_vmware_workload_network.yaml | 156 +++++++++--------- 4 files changed, 91 insertions(+), 86 deletions(-) diff --git a/src/vmware/azext_vmware/_help.py b/src/vmware/azext_vmware/_help.py index fb27686db64..c47582fa75b 100644 --- a/src/vmware/azext_vmware/_help.py +++ b/src/vmware/azext_vmware/_help.py @@ -739,7 +739,7 @@ short-summary: Create a segment by ID in a private cloud workload network. examples: - name: Create a segment by ID in a workload network. - text: az vmware workload-network segment create --resource-group group1 --private-cloud cloud1 --segment segment1 --display-name segment1 --connected-gateway /infra/tier-1s/gateway --revision 1 --dhcp-ranges 40.20.0.0 40.20.0.1 --gateway-address 40.20.20.20/16 + text: az vmware workload-network segment create --resource-group group1 --private-cloud cloud1 --segment segment1 --display-name segment1 --connected-gateway /infra/tier-1s/gateway --revision 1 --dhcp-ranges 40.20.0.0 40.20.0.1 --gateway-address 40.20.20.20/16 --port-name port1 """ helps['vmware workload-network segment update'] = """ @@ -747,7 +747,7 @@ short-summary: Update a segment by ID in a private cloud workload network. examples: - name: Update a segment by ID in a workload network. - text: az vmware workload-network segment update --resource-group group1 --private-cloud cloud1 --segment segment1 --display-name segment1 --connected-gateway /infra/tier-1s/gateway --revision 1 --dhcp-ranges 40.20.0.0 40.20.0.1 --gateway-address 40.20.20.20/16 + text: az vmware workload-network segment update --resource-group group1 --private-cloud cloud1 --segment segment1 --display-name segment1 --connected-gateway /infra/tier-1s/gateway --revision 1 --dhcp-ranges 40.20.0.0 40.20.0.1 --gateway-address 40.20.20.20/16 --port-name port1 """ helps['vmware workload-network segment delete'] = """ diff --git a/src/vmware/azext_vmware/_params.py b/src/vmware/azext_vmware/_params.py index 75165739bd3..09291de257f 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -182,6 +182,7 @@ def load_arguments(self, _): c.argument('revision', help='NSX revision number.') c.argument('dhcp_ranges', nargs='+', help='DHCP Range assigned for subnet.') c.argument('gateway_address', help='Gateway address.') + c.argument('port_name', help='Name of port or VIF attached to segment.') with self.argument_context('vmware workload-network public-ip') as c: c.argument('public_ip', help="NSX Public IP Block identifier. Generally the same as the Public IP.") diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index 3abc070b2f2..6d282a5a7e3 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -447,20 +447,24 @@ def workload_network_segment_get(client: AVSClient, resource_group_name, private return client.workload_networks.get_segment(resource_group_name=resource_group_name, private_cloud_name=private_cloud, segment_id=segment) -def workload_network_segment_create(client: AVSClient, resource_group_name, private_cloud, segment, display_name=None, connected_gateway=None, revision=None, dhcp_ranges=None, gateway_address=None): +def workload_network_segment_create(client: AVSClient, resource_group_name, private_cloud, segment, display_name=None, connected_gateway=None, revision=None, dhcp_ranges=None, gateway_address=None, port_name=None): + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkSegmentPortVif from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkSegmentSubnet from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkSegment + portVif = WorkloadNetworkSegmentPortVif(port_name=port_name) subnet = WorkloadNetworkSegmentSubnet(dhcp_ranges=dhcp_ranges, gateway_address=gateway_address) - segment = WorkloadNetworkSegment(display_name=display_name, connected_gateway=connected_gateway, subnet=subnet, revision=revision) - return client.workload_networks.begin_create_segments(resource_group_name=resource_group_name, private_cloud_name=private_cloud, segment_id=segment, workload_network_segment=segment) + segmentObj = WorkloadNetworkSegment(display_name=display_name, connected_gateway=connected_gateway, subnet=subnet, port_vif=portVif, revision=revision) + return client.workload_networks.begin_create_segments(resource_group_name=resource_group_name, private_cloud_name=private_cloud, segment_id=segment, workload_network_segment=segmentObj) -def workload_network_segment_update(client: AVSClient, resource_group_name, private_cloud, segment, display_name=None, connected_gateway=None, revision=None, dhcp_ranges=None, gateway_address=None): +def workload_network_segment_update(client: AVSClient, resource_group_name, private_cloud, segment, display_name=None, connected_gateway=None, revision=None, dhcp_ranges=None, gateway_address=None, port_name=None): + from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkSegmentPortVif from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkSegmentSubnet from azext_vmware.vendored_sdks.avs_client.models import WorkloadNetworkSegment + portVif = WorkloadNetworkSegmentPortVif(port_name=port_name) subnet = WorkloadNetworkSegmentSubnet(dhcp_ranges=dhcp_ranges, gateway_address=gateway_address) - segment = WorkloadNetworkSegment(display_name=display_name, connected_gateway=connected_gateway, subnet=subnet, revision=revision) - return client.workload_networks.begin_update_segments(resource_group_name=resource_group_name, private_cloud_name=private_cloud, segment_id=segment, workload_network_segment=segment) + segmentObj = WorkloadNetworkSegment(display_name=display_name, connected_gateway=connected_gateway, subnet=subnet, port_vif=portVif, revision=revision) + return client.workload_networks.begin_update_segments(resource_group_name=resource_group_name, private_cloud_name=private_cloud, segment_id=segment, workload_network_segment=segmentObj) def workload_network_segment_delete(client: AVSClient, resource_group_name, private_cloud, segment): diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml index 2ecc6000be7..74270b89d7a 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml @@ -15,7 +15,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations?api-version=2021-06-01 response: body: string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}]}' @@ -25,7 +25,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:03:05 GMT + - Fri, 08 Oct 2021 17:17:24 GMT server: - Rocket status: @@ -47,7 +47,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' @@ -57,7 +57,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:03:07 GMT + - Fri, 08 Oct 2021 17:17:28 GMT server: - Rocket status: @@ -84,7 +84,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' @@ -94,7 +94,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:03:09 GMT + - Fri, 08 Oct 2021 17:17:32 GMT server: - Rocket status: @@ -118,7 +118,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 response: body: string: '' @@ -126,7 +126,7 @@ interactions: content-length: - '0' date: - - Thu, 07 Oct 2021 20:03:11 GMT + - Fri, 08 Oct 2021 17:17:37 GMT server: - Rocket status: @@ -153,7 +153,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PATCH - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":2}}' @@ -163,7 +163,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:03:13 GMT + - Fri, 08 Oct 2021 17:17:41 GMT server: - Rocket status: @@ -191,7 +191,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' @@ -201,7 +201,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:03:16 GMT + - Fri, 08 Oct 2021 17:17:45 GMT server: - Rocket status: @@ -225,7 +225,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 response: body: string: '' @@ -233,7 +233,7 @@ interactions: content-length: - '0' date: - - Thu, 07 Oct 2021 20:03:18 GMT + - Fri, 08 Oct 2021 17:17:50 GMT server: - Rocket status: @@ -261,7 +261,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PATCH - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":2}}' @@ -271,7 +271,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:03:20 GMT + - Fri, 08 Oct 2021 17:17:54 GMT server: - Rocket status: @@ -293,7 +293,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices?api-version=2021-06-01 response: body: string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}]}' @@ -303,7 +303,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:03:22 GMT + - Fri, 08 Oct 2021 17:17:58 GMT server: - Rocket status: @@ -325,7 +325,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' @@ -335,7 +335,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:03:24 GMT + - Fri, 08 Oct 2021 17:18:02 GMT server: - Rocket status: @@ -364,7 +364,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"dnsService1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' @@ -374,7 +374,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:03:26 GMT + - Fri, 08 Oct 2021 17:18:07 GMT server: - Rocket status: @@ -403,7 +403,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PATCH - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"dnsService1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' @@ -413,7 +413,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:03:29 GMT + - Fri, 08 Oct 2021 17:18:11 GMT server: - Rocket status: @@ -437,7 +437,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 response: body: string: '' @@ -445,7 +445,7 @@ interactions: content-length: - '0' date: - - Thu, 07 Oct 2021 20:03:31 GMT + - Fri, 08 Oct 2021 17:18:15 GMT server: - Rocket status: @@ -467,7 +467,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones?api-version=2021-06-01 response: body: string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}]}' @@ -477,7 +477,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:03:33 GMT + - Fri, 08 Oct 2021 17:18:20 GMT server: - Rocket status: @@ -499,7 +499,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' @@ -509,7 +509,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:03:35 GMT + - Fri, 08 Oct 2021 17:18:24 GMT server: - Rocket status: @@ -538,7 +538,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"dnsZone1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' @@ -548,7 +548,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:03:37 GMT + - Fri, 08 Oct 2021 17:18:28 GMT server: - Rocket status: @@ -577,7 +577,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PATCH - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"dnsZone1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' @@ -587,7 +587,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:03:40 GMT + - Fri, 08 Oct 2021 17:18:33 GMT server: - Rocket status: @@ -611,7 +611,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 response: body: string: '' @@ -619,7 +619,7 @@ interactions: content-length: - '0' date: - - Thu, 07 Oct 2021 20:03:42 GMT + - Fri, 08 Oct 2021 17:18:37 GMT server: - Rocket status: @@ -641,7 +641,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles?api-version=2021-06-01 response: body: string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles","properties":{"displayName":"portMirroring1","direction":"INGRESS, @@ -653,7 +653,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:03:44 GMT + - Fri, 08 Oct 2021 17:18:41 GMT server: - Rocket status: @@ -675,7 +675,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles","properties":{"displayName":"portMirroring1","direction":"INGRESS, @@ -687,7 +687,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:03:46 GMT + - Fri, 08 Oct 2021 17:18:46 GMT server: - Rocket status: @@ -711,7 +711,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2021-06-01 response: body: string: '' @@ -719,7 +719,7 @@ interactions: content-length: - '0' date: - - Thu, 07 Oct 2021 20:03:48 GMT + - Fri, 08 Oct 2021 17:18:50 GMT server: - Rocket status: @@ -741,7 +741,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments?api-version=2021-06-01 response: body: string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"portVif":[{"portName":"vm1"}],"status":"SUCCESS, @@ -752,7 +752,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:03:51 GMT + - Fri, 08 Oct 2021 17:18:54 GMT server: - Rocket status: @@ -774,7 +774,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"portVif":[{"portName":"vm1"}],"status":"SUCCESS, @@ -785,7 +785,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:03:53 GMT + - Fri, 08 Oct 2021 17:18:59 GMT server: - Rocket status: @@ -814,7 +814,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/%7B%27additional_properties%27%3A%20%7B%7D%2C%20%27id%27%3A%20None%2C%20%27name%27%3A%20None%2C%20%27type%27%3A%20None%2C%20%27display_name%27%3A%20%27testDisplayName%27%2C%20%27connected_gateway%27%3A%20%27%2Finfra%2Ftier-1s%2Fgateway%27%2C%20%27subnet%27%3A%20%3Cazext_vmware.vendored_sdks.avs_client.models._models_py3.WorkloadNetworkSegmentSubnet%20object%20at%200x00000249DB4848B0%3E%2C%20%27port_vif%27%3A%20None%2C%20%27status%27%3A%20None%2C%20%27provisioning_state%27%3A%20None%2C%20%27revision%27%3A%20%271%27%7D?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"status":"SUCCESS, @@ -825,7 +825,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:03:55 GMT + - Fri, 08 Oct 2021 17:19:03 GMT server: - Rocket status: @@ -854,7 +854,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PATCH - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/%7B%27additional_properties%27%3A%20%7B%7D%2C%20%27id%27%3A%20None%2C%20%27name%27%3A%20None%2C%20%27type%27%3A%20None%2C%20%27display_name%27%3A%20%27testDisplayName%27%2C%20%27connected_gateway%27%3A%20%27%2Finfra%2Ftier-1s%2Fgateway%27%2C%20%27subnet%27%3A%20%3Cazext_vmware.vendored_sdks.avs_client.models._models_py3.WorkloadNetworkSegmentSubnet%20object%20at%200x00000249DE2A94C0%3E%2C%20%27port_vif%27%3A%20None%2C%20%27status%27%3A%20None%2C%20%27provisioning_state%27%3A%20None%2C%20%27revision%27%3A%20%271%27%7D?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"portVif":[{"portName":"vm1"}],"status":"SUCCESS, @@ -865,7 +865,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:03:57 GMT + - Fri, 08 Oct 2021 17:19:07 GMT server: - Rocket status: @@ -889,7 +889,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 response: body: string: '' @@ -897,7 +897,7 @@ interactions: content-length: - '0' date: - - Thu, 07 Oct 2021 20:03:59 GMT + - Fri, 08 Oct 2021 17:19:11 GMT server: - Rocket status: @@ -919,7 +919,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs?api-version=2021-06-01 response: body: string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1","name":"publicIP1","type":"Microsoft.AVS/privateClouds/workloadNetworks/publicIPs","properties":{"displayName":"publicIP1","publicIPBlock":"20.20.40.50/32"}}]}' @@ -929,7 +929,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:04:02 GMT + - Fri, 08 Oct 2021 17:19:16 GMT server: - Rocket status: @@ -951,7 +951,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1","name":"publicIP1","type":"Microsoft.AVS/privateClouds/workloadNetworks/publicIPs","properties":{"displayName":"publicIP1","publicIPBlock":"20.20.40.50/32"}}' @@ -961,7 +961,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:04:04 GMT + - Fri, 08 Oct 2021 17:19:20 GMT server: - Rocket status: @@ -988,7 +988,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1","name":"publicIP1","type":"Microsoft.AVS/privateClouds/workloadNetworks/publicIPs","properties":{"displayName":"publicIP1","publicIPBlock":"20.20.40.50/32"}}' @@ -998,7 +998,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:04:06 GMT + - Fri, 08 Oct 2021 17:19:23 GMT server: - Rocket status: @@ -1022,7 +1022,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-06-01 response: body: string: '' @@ -1030,7 +1030,7 @@ interactions: content-length: - '0' date: - - Thu, 07 Oct 2021 20:04:08 GMT + - Fri, 08 Oct 2021 17:19:29 GMT server: - Rocket status: @@ -1052,7 +1052,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups?api-version=2021-06-01 response: body: string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS, @@ -1063,7 +1063,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:04:10 GMT + - Fri, 08 Oct 2021 17:19:33 GMT server: - Rocket status: @@ -1085,7 +1085,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS, @@ -1096,7 +1096,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:04:13 GMT + - Fri, 08 Oct 2021 17:19:37 GMT server: - Rocket status: @@ -1123,7 +1123,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"vmGroup1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS, @@ -1134,7 +1134,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:04:15 GMT + - Fri, 08 Oct 2021 17:19:41 GMT server: - Rocket status: @@ -1161,7 +1161,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PATCH - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS, @@ -1172,7 +1172,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:04:17 GMT + - Fri, 08 Oct 2021 17:19:46 GMT server: - Rocket status: @@ -1196,7 +1196,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 response: body: string: '' @@ -1204,7 +1204,7 @@ interactions: content-length: - '0' date: - - Thu, 07 Oct 2021 20:04:19 GMT + - Fri, 08 Oct 2021 17:19:50 GMT server: - Rocket status: @@ -1226,7 +1226,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines?api-version=2021-06-01 response: body: string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines/vm1","name":"vm1","type":"Microsoft.AVS/privateClouds/workloadNetworks/virtualMachines","properties":{"displayName":"vm1","vmType":"REGULAR, @@ -1237,7 +1237,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:04:21 GMT + - Fri, 08 Oct 2021 17:19:54 GMT server: - Rocket status: @@ -1259,7 +1259,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines/vm1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines/vm1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines/vm1","name":"vm1","type":"Microsoft.AVS/privateClouds/workloadNetworks/virtualMachines","properties":{"displayName":"vm1","vmType":"REGULAR, @@ -1270,7 +1270,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:04:24 GMT + - Fri, 08 Oct 2021 17:19:59 GMT server: - Rocket status: @@ -1292,7 +1292,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways?api-version=2021-06-01 response: body: string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways/gateway1","name":"gateway1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"gateway1","path":"/infra/tier-1s/gateway1"}}]}' @@ -1302,7 +1302,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:04:26 GMT + - Fri, 08 Oct 2021 17:20:03 GMT server: - Rocket status: @@ -1324,7 +1324,7 @@ interactions: User-Agent: - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways/gateway1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways/gateway1?api-version=2021-06-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways/gateway1","name":"gateway1","type":"Microsoft.AVS/privateClouds/workloadNetworks/gateways","properties":{"displayName":"gateway1","path":"/infra/tier-1s/gateway1"}}' @@ -1334,7 +1334,7 @@ interactions: content-type: - application/json date: - - Thu, 07 Oct 2021 20:04:28 GMT + - Fri, 08 Oct 2021 17:20:07 GMT server: - Rocket status: From 23c697747abd4af07770f8d366995a46e5d544d6 Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Tue, 19 Oct 2021 17:15:45 -0500 Subject: [PATCH 26/34] updated sdk to 12-01 api and updated private cloud create and update commands --- src/vmware/DEVELOPMENT.md | 4 +- src/vmware/azext_vmware/_params.py | 9 + src/vmware/azext_vmware/custom.py | 16 +- .../azext_vmware/vendored_sdks/__init__.py | 12 - .../vendored_sdks/avs_client/_avs_client.py | 10 + .../avs_client/_configuration.py | 2 +- .../avs_client/aio/_avs_client.py | 10 + .../avs_client/aio/_configuration.py | 2 +- .../avs_client/aio/operations/__init__.py | 4 + .../aio/operations/_addons_operations.py | 20 +- .../operations/_authorizations_operations.py | 27 +- .../aio/operations/_cloud_links_operations.py | 20 +- .../aio/operations/_clusters_operations.py | 54 +- .../aio/operations/_datastores_operations.py | 20 +- .../_global_reach_connections_operations.py | 41 +- .../_hcx_enterprise_sites_operations.py | 16 +- .../aio/operations/_locations_operations.py | 4 +- .../avs_client/aio/operations/_operations.py | 2 +- .../_placement_policies_operations.py | 610 +++++++++++++++ .../operations/_private_clouds_operations.py | 44 +- .../operations/_script_cmdlets_operations.py | 12 +- .../_script_executions_operations.py | 36 +- .../operations/_script_packages_operations.py | 12 +- .../_virtual_machines_operations.py | 329 ++++++++ .../_workload_networks_operations.py | 192 ++--- .../avs_client/models/__init__.py | 61 ++ .../avs_client/models/_avs_client_enums.py | 103 ++- .../avs_client/models/_models.py | 649 ++++++++++++++-- .../avs_client/models/_models_py3.py | 710 ++++++++++++++++-- .../avs_client/operations/__init__.py | 4 + .../operations/_addons_operations.py | 20 +- .../operations/_authorizations_operations.py | 27 +- .../operations/_cloud_links_operations.py | 20 +- .../operations/_clusters_operations.py | 54 +- .../operations/_datastores_operations.py | 20 +- .../_global_reach_connections_operations.py | 41 +- .../_hcx_enterprise_sites_operations.py | 16 +- .../operations/_locations_operations.py | 4 +- .../avs_client/operations/_operations.py | 2 +- .../_placement_policies_operations.py | 622 +++++++++++++++ .../operations/_private_clouds_operations.py | 44 +- .../operations/_script_cmdlets_operations.py | 12 +- .../_script_executions_operations.py | 36 +- .../operations/_script_packages_operations.py | 12 +- .../_virtual_machines_operations.py | 337 +++++++++ .../_workload_networks_operations.py | 192 ++--- 46 files changed, 3865 insertions(+), 629 deletions(-) delete mode 100644 src/vmware/azext_vmware/vendored_sdks/__init__.py create mode 100644 src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_placement_policies_operations.py create mode 100644 src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_virtual_machines_operations.py create mode 100644 src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_placement_policies_operations.py create mode 100644 src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_virtual_machines_operations.py diff --git a/src/vmware/DEVELOPMENT.md b/src/vmware/DEVELOPMENT.md index c2631974ad4..530842ce938 100644 --- a/src/vmware/DEVELOPMENT.md +++ b/src/vmware/DEVELOPMENT.md @@ -5,10 +5,10 @@ ```powershell rm ..\azure-cli-extensions\src\vmware\azext_vmware\vendored_sdks -Recurse -autorest --python --output-folder=..\azure-cli-extensions\src\vmware\azext_vmware\vendored_sdks --use=@autorest/python@5.8.0 --tag=package-2021-06-01 --azure-arm=true --namespace=avs_client --override-client-name=AVSClient specification\vmware\resource-manager\readme.md +autorest --python --output-folder=..\azure-cli-extensions\src\vmware\azext_vmware\vendored_sdks --use=@autorest/python@5.9.3 --tag=package-2021-06-01 --azure-arm=true --namespace=avs_client --override-client-name=AVSClient specification\vmware\resource-manager\readme.md ``` -It was run from a git clone of [azure-rest-api-specs](https://github.com/Azure/azure-rest-api-specs). +It was run from a git clone of [azure-rest-api-specs](https://github.com/Azure/azure-rest-api-specs) within the python virtual environment (env\scripts\Activate.ps1). Ensure that no proxy has been set. ## Linter diff --git a/src/vmware/azext_vmware/_params.py b/src/vmware/azext_vmware/_params.py index 09291de257f..ec930726d4e 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -25,6 +25,7 @@ def load_arguments(self, _): c.argument('circuit_secondary_subnet', help='A /30 subnet for the secondary circuit in the Express Route to configure routing between your network and Microsoft\'s Enterprise edge (MSEEs) routers.') c.argument('cluster_size', help='Number of hosts for the default management cluster. Minimum of 3 and maximum of 16.') c.argument('network_block', help='A subnet at least of size /22. Make sure the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22.') + c.argument('type', help='The type of identity used for the private cloud. The type "SystemAssigned" refers to an implicitly created identity. The type "None" will remove any identities from the Private Cloud.') with self.argument_context('vmware cluster') as c: c.argument('name', options_list=['--name', '-n'], help='Name of the cluster.') @@ -44,6 +45,14 @@ def load_arguments(self, _): with self.argument_context('vmware private-cloud update') as c: c.argument('name', options_list=['--name', '-n'], help='Name of the private cloud.') + c.argument('zone', help='The primary availability zone for the private cloud') + c.argument('secondary_zone', help='The secondary availability zone for the private cloud.') + c.argument('status', help='Status of customer managed encryption key. Possible values include "Enabled" and "Disabled".') + c.argument('key_name', help='The name of the key.') + c.argument('key_state', help='The state of key provided. Possible values include "Connected" and "AccessDenied".') + c.argument('key_vault_url', help='The URL of the vault.') + c.argument('key_version', help='The version of the key.') + c.argument('version_type', help='Property of the key if user provided or auto detected.') with self.argument_context('vmware private-cloud delete') as c: c.argument('name', options_list=['--name', '-n'], help='Name of the private cloud.') diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index 6d282a5a7e3..d246b35fb94 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -32,7 +32,7 @@ def privatecloud_show(client: AVSClient, resource_group_name, name): return client.private_clouds.get(resource_group_name, name) -def privatecloud_create(client: AVSClient, resource_group_name, name, location, sku, cluster_size, network_block, circuit_primary_subnet=None, circuit_secondary_subnet=None, internet=None, vcenter_password=None, nsxt_password=None, tags=None, accept_eula=False): +def privatecloud_create(client: AVSClient, resource_group_name, name, location, sku, cluster_size, network_block, circuit_primary_subnet=None, circuit_secondary_subnet=None, internet=None, vcenter_password=None, nsxt_password=None, tags=None, accept_eula=False, identity_type=None): from knack.prompting import prompt_y_n if not accept_eula: print(LEGAL_TERMS) @@ -40,13 +40,13 @@ def privatecloud_create(client: AVSClient, resource_group_name, name, location, if not prompt_y_n(msg, default="n"): return None - from azext_vmware.vendored_sdks.avs_client.models import PrivateCloud, Circuit, ManagementCluster, Sku + from azext_vmware.vendored_sdks.avs_client.models import PrivateCloud, Circuit, ManagementCluster, Sku, PrivateCloudIdentity if circuit_primary_subnet is not None or circuit_secondary_subnet is not None: circuit = Circuit(primary_subnet=circuit_primary_subnet, secondary_subnet=circuit_secondary_subnet) else: circuit = None management_cluster = ManagementCluster(cluster_size=cluster_size) - cloud = PrivateCloud(location=location, sku=Sku(name=sku), circuit=circuit, management_cluster=management_cluster, network_block=network_block, tags=tags) + cloud = PrivateCloud(location=location, sku=Sku(name=sku), circuit=circuit, management_cluster=management_cluster, network_block=network_block, tags=tags, identity=PrivateCloudIdentity(type=identity_type)) if internet is not None: cloud.internet = internet if vcenter_password is not None: @@ -56,13 +56,19 @@ def privatecloud_create(client: AVSClient, resource_group_name, name, location, return client.private_clouds.begin_create_or_update(resource_group_name, name, cloud) -def privatecloud_update(client: AVSClient, resource_group_name, name, cluster_size=None, internet=None): - from azext_vmware.vendored_sdks.avs_client.models import PrivateCloudUpdate, ManagementCluster +def privatecloud_update(client: AVSClient, resource_group_name, name, cluster_size=None, internet=None, zone=None, secondary_zone=None, identity_type=None, status=None, key_name=None, key_version=None, key_vault_url=None, key_state=None, version_type=None): + from azext_vmware.vendored_sdks.avs_client.models import PrivateCloudUpdate, ManagementCluster, PrivateCloudIdentity, AvailabilityProperties, Encryption, EncryptionKeyVaultProperties private_cloud_update = PrivateCloudUpdate() if cluster_size is not None: private_cloud_update.management_cluster = ManagementCluster(cluster_size=cluster_size) if internet is not None: private_cloud_update.internet = internet + if zone is not None: + private_cloud_update.availability = AvailabilityProperties(zone=zone, secondary_zone=secondary_zone) + if type is not None: + private_cloud_update.identity = PrivateCloudIdentity(type=identity_type) + if status is not None: + private_cloud_update.encryption = Encryption(status=status, key_vault_properties=EncryptionKeyVaultProperties(key_name=key_name, key_version=key_version, key_vault_url=key_vault_url, key_state=key_state, version_type=version_type)) return client.private_clouds.begin_update(resource_group_name, name, private_cloud_update) diff --git a/src/vmware/azext_vmware/vendored_sdks/__init__.py b/src/vmware/azext_vmware/vendored_sdks/__init__.py deleted file mode 100644 index c9cfdc73e77..00000000000 --- a/src/vmware/azext_vmware/vendored_sdks/__init__.py +++ /dev/null @@ -1,12 +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. -# -------------------------------------------------------------------------- - -__path__ = __import__('pkgutil').extend_path(__path__, __name__) diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/_avs_client.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/_avs_client.py index 8f5f84f3de4..30022992217 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/_avs_client.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/_avs_client.py @@ -30,6 +30,8 @@ from .operations import WorkloadNetworksOperations from .operations import CloudLinksOperations from .operations import AddonsOperations +from .operations import VirtualMachinesOperations +from .operations import PlacementPoliciesOperations from .operations import ScriptPackagesOperations from .operations import ScriptCmdletsOperations from .operations import ScriptExecutionsOperations @@ -61,6 +63,10 @@ class AVSClient(object): :vartype cloud_links: avs_client.operations.CloudLinksOperations :ivar addons: AddonsOperations operations :vartype addons: avs_client.operations.AddonsOperations + :ivar virtual_machines: VirtualMachinesOperations operations + :vartype virtual_machines: avs_client.operations.VirtualMachinesOperations + :ivar placement_policies: PlacementPoliciesOperations operations + :vartype placement_policies: avs_client.operations.PlacementPoliciesOperations :ivar script_packages: ScriptPackagesOperations operations :vartype script_packages: avs_client.operations.ScriptPackagesOperations :ivar script_cmdlets: ScriptCmdletsOperations operations @@ -115,6 +121,10 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.addons = AddonsOperations( self._client, self._config, self._serialize, self._deserialize) + self.virtual_machines = VirtualMachinesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.placement_policies = PlacementPoliciesOperations( + self._client, self._config, self._serialize, self._deserialize) self.script_packages = ScriptPackagesOperations( self._client, self._config, self._serialize, self._deserialize) self.script_cmdlets = ScriptCmdletsOperations( diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/_configuration.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/_configuration.py index 345b679841e..89bb55be8f9 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/_configuration.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/_configuration.py @@ -48,7 +48,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2021-06-01" + self.api_version = "2021-12-01" self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-avs/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/_avs_client.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/_avs_client.py index b6a8d7e2bbb..7fe07fd648c 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/_avs_client.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/_avs_client.py @@ -28,6 +28,8 @@ from .operations import WorkloadNetworksOperations from .operations import CloudLinksOperations from .operations import AddonsOperations +from .operations import VirtualMachinesOperations +from .operations import PlacementPoliciesOperations from .operations import ScriptPackagesOperations from .operations import ScriptCmdletsOperations from .operations import ScriptExecutionsOperations @@ -59,6 +61,10 @@ class AVSClient(object): :vartype cloud_links: avs_client.aio.operations.CloudLinksOperations :ivar addons: AddonsOperations operations :vartype addons: avs_client.aio.operations.AddonsOperations + :ivar virtual_machines: VirtualMachinesOperations operations + :vartype virtual_machines: avs_client.aio.operations.VirtualMachinesOperations + :ivar placement_policies: PlacementPoliciesOperations operations + :vartype placement_policies: avs_client.aio.operations.PlacementPoliciesOperations :ivar script_packages: ScriptPackagesOperations operations :vartype script_packages: avs_client.aio.operations.ScriptPackagesOperations :ivar script_cmdlets: ScriptCmdletsOperations operations @@ -112,6 +118,10 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.addons = AddonsOperations( self._client, self._config, self._serialize, self._deserialize) + self.virtual_machines = VirtualMachinesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.placement_policies = PlacementPoliciesOperations( + self._client, self._config, self._serialize, self._deserialize) self.script_packages = ScriptPackagesOperations( self._client, self._config, self._serialize, self._deserialize) self.script_cmdlets = ScriptCmdletsOperations( diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/_configuration.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/_configuration.py index 09d731cb67d..7337376a2a0 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/_configuration.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/_configuration.py @@ -45,7 +45,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2021-06-01" + self.api_version = "2021-12-01" self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-avs/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/__init__.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/__init__.py index 1e3c208eb0f..d6090880195 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/__init__.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/__init__.py @@ -17,6 +17,8 @@ from ._workload_networks_operations import WorkloadNetworksOperations from ._cloud_links_operations import CloudLinksOperations from ._addons_operations import AddonsOperations +from ._virtual_machines_operations import VirtualMachinesOperations +from ._placement_policies_operations import PlacementPoliciesOperations from ._script_packages_operations import ScriptPackagesOperations from ._script_cmdlets_operations import ScriptCmdletsOperations from ._script_executions_operations import ScriptExecutionsOperations @@ -33,6 +35,8 @@ 'WorkloadNetworksOperations', 'CloudLinksOperations', 'AddonsOperations', + 'VirtualMachinesOperations', + 'PlacementPoliciesOperations', 'ScriptPackagesOperations', 'ScriptCmdletsOperations', 'ScriptExecutionsOperations', diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_addons_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_addons_operations.py index 9423e350061..58bef166022 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_addons_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_addons_operations.py @@ -67,7 +67,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -80,7 +80,7 @@ def prepare_request(next_link=None): 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), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -146,14 +146,14 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'addonName': self._serialize.url("addon_name", addon_name, 'str'), } @@ -198,7 +198,7 @@ async def _create_or_update_initial( error_map.update(kwargs.pop('error_map', {})) _addon = _models.Addon(properties=properties) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -206,7 +206,7 @@ async def _create_or_update_initial( url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'addonName': self._serialize.url("addon_name", addon_name, 'str'), } @@ -303,7 +303,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'addonName': self._serialize.url("addon_name", addon_name, 'str'), } @@ -334,14 +334,14 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'addonName': self._serialize.url("addon_name", addon_name, 'str'), } @@ -420,7 +420,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'addonName': self._serialize.url("addon_name", addon_name, 'str'), } diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_authorizations_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_authorizations_operations.py index 33a79cc2af5..7c746d5c3ea 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_authorizations_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_authorizations_operations.py @@ -67,7 +67,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -80,7 +80,7 @@ def prepare_request(next_link=None): 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), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -146,14 +146,14 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'authorizationName': self._serialize.url("authorization_name", authorization_name, 'str'), } @@ -188,6 +188,7 @@ async def _create_or_update_initial( resource_group_name: str, private_cloud_name: str, authorization_name: str, + express_route_id: Optional[str] = None, **kwargs: Any ) -> "_models.ExpressRouteAuthorization": cls = kwargs.pop('cls', None) # type: ClsType["_models.ExpressRouteAuthorization"] @@ -196,8 +197,8 @@ async def _create_or_update_initial( } error_map.update(kwargs.pop('error_map', {})) - _authorization = _models.ExpressRouteAuthorization() - api_version = "2021-06-01" + _authorization = _models.ExpressRouteAuthorization(express_route_id=express_route_id) + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -205,7 +206,7 @@ async def _create_or_update_initial( url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'authorizationName': self._serialize.url("authorization_name", authorization_name, 'str'), } @@ -248,6 +249,7 @@ async def begin_create_or_update( resource_group_name: str, private_cloud_name: str, authorization_name: str, + express_route_id: Optional[str] = None, **kwargs: Any ) -> AsyncLROPoller["_models.ExpressRouteAuthorization"]: """Create or update an ExpressRoute Circuit Authorization in a private cloud. @@ -260,6 +262,8 @@ async def begin_create_or_update( :type private_cloud_name: str :param authorization_name: Name of the ExpressRoute Circuit Authorization in the private cloud. :type authorization_name: str + :param express_route_id: The ID of the ExpressRoute Circuit. + :type express_route_id: 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. @@ -282,6 +286,7 @@ async def begin_create_or_update( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, authorization_name=authorization_name, + express_route_id=express_route_id, cls=lambda x,y,z: x, **kwargs ) @@ -298,7 +303,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'authorizationName': self._serialize.url("authorization_name", authorization_name, 'str'), } @@ -329,14 +334,14 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'authorizationName': self._serialize.url("authorization_name", authorization_name, 'str'), } @@ -415,7 +420,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'authorizationName': self._serialize.url("authorization_name", authorization_name, 'str'), } diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_cloud_links_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_cloud_links_operations.py index 4f0eeed8211..09fe7ecfdf7 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_cloud_links_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_cloud_links_operations.py @@ -67,7 +67,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -80,7 +80,7 @@ def prepare_request(next_link=None): 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), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -146,14 +146,14 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_name, 'str'), } @@ -198,7 +198,7 @@ async def _create_or_update_initial( error_map.update(kwargs.pop('error_map', {})) _cloud_link = _models.CloudLink(linked_cloud=linked_cloud) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -206,7 +206,7 @@ async def _create_or_update_initial( url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_name, 'str'), } @@ -303,7 +303,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_name, 'str'), } @@ -334,14 +334,14 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_name, 'str'), } @@ -420,7 +420,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_name, 'str'), } diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_clusters_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_clusters_operations.py index 36eb63d8af1..313bc6da2b0 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_clusters_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_clusters_operations.py @@ -5,7 +5,7 @@ # 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 +from typing import Any, AsyncIterable, Callable, Dict, Generic, List, Optional, TypeVar, Union import warnings from azure.core.async_paging import AsyncItemPaged, AsyncList @@ -67,7 +67,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -80,7 +80,7 @@ def prepare_request(next_link=None): 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), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -146,14 +146,14 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), } @@ -188,8 +188,7 @@ async def _create_or_update_initial( resource_group_name: str, private_cloud_name: str, cluster_name: str, - sku: "_models.Sku", - cluster_size: Optional[int] = None, + cluster: "_models.Cluster", **kwargs: Any ) -> "_models.Cluster": cls = kwargs.pop('cls', None) # type: ClsType["_models.Cluster"] @@ -197,9 +196,7 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - _cluster = _models.Cluster(sku=sku, cluster_size=cluster_size) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -207,7 +204,7 @@ async def _create_or_update_initial( url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), } @@ -223,7 +220,7 @@ async def _create_or_update_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_cluster, 'Cluster') + body_content = self._serialize.body(cluster, 'Cluster') 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) @@ -250,8 +247,7 @@ async def begin_create_or_update( resource_group_name: str, private_cloud_name: str, cluster_name: str, - sku: "_models.Sku", - cluster_size: Optional[int] = None, + cluster: "_models.Cluster", **kwargs: Any ) -> AsyncLROPoller["_models.Cluster"]: """Create or update a cluster in a private cloud. @@ -264,10 +260,8 @@ async def begin_create_or_update( :type private_cloud_name: str :param cluster_name: Name of the cluster in the private cloud. :type cluster_name: str - :param sku: The cluster SKU. - :type sku: ~avs_client.models.Sku - :param cluster_size: The cluster size. - :type cluster_size: int + :param cluster: A cluster in the private cloud. + :type cluster: ~avs_client.models.Cluster :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. @@ -290,8 +284,7 @@ async def begin_create_or_update( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, cluster_name=cluster_name, - sku=sku, - cluster_size=cluster_size, + cluster=cluster, cls=lambda x,y,z: x, **kwargs ) @@ -308,7 +301,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), } @@ -333,6 +326,7 @@ async def _update_initial( private_cloud_name: str, cluster_name: str, cluster_size: Optional[int] = None, + hosts: Optional[List[str]] = None, **kwargs: Any ) -> "_models.Cluster": cls = kwargs.pop('cls', None) # type: ClsType["_models.Cluster"] @@ -341,8 +335,8 @@ async def _update_initial( } error_map.update(kwargs.pop('error_map', {})) - _cluster_update = _models.ClusterUpdate(cluster_size=cluster_size) - api_version = "2021-06-01" + _cluster_update = _models.ClusterUpdate(cluster_size=cluster_size, hosts=hosts) + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -350,7 +344,7 @@ async def _update_initial( url = self._update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), } @@ -394,6 +388,7 @@ async def begin_update( private_cloud_name: str, cluster_name: str, cluster_size: Optional[int] = None, + hosts: Optional[List[str]] = None, **kwargs: Any ) -> AsyncLROPoller["_models.Cluster"]: """Update a cluster in a private cloud. @@ -408,6 +403,8 @@ async def begin_update( :type cluster_name: str :param cluster_size: The cluster size. :type cluster_size: int + :param hosts: The hosts. + :type hosts: list[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. @@ -431,6 +428,7 @@ async def begin_update( private_cloud_name=private_cloud_name, cluster_name=cluster_name, cluster_size=cluster_size, + hosts=hosts, cls=lambda x,y,z: x, **kwargs ) @@ -447,7 +445,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), } @@ -478,14 +476,14 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), } @@ -564,7 +562,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), } diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_datastores_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_datastores_operations.py index 1d82843d079..ca52d7342c5 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_datastores_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_datastores_operations.py @@ -70,7 +70,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -83,7 +83,7 @@ def prepare_request(next_link=None): 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), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), } @@ -153,14 +153,14 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), 'datastoreName': self._serialize.url("datastore_name", datastore_name, 'str'), @@ -208,7 +208,7 @@ async def _create_or_update_initial( error_map.update(kwargs.pop('error_map', {})) _datastore = _models.Datastore(net_app_volume=net_app_volume, disk_pool_volume=disk_pool_volume) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -216,7 +216,7 @@ async def _create_or_update_initial( url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), 'datastoreName': self._serialize.url("datastore_name", datastore_name, 'str'), @@ -322,7 +322,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), 'datastoreName': self._serialize.url("datastore_name", datastore_name, 'str'), @@ -355,14 +355,14 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), 'datastoreName': self._serialize.url("datastore_name", datastore_name, 'str'), @@ -446,7 +446,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), 'datastoreName': self._serialize.url("datastore_name", datastore_name, 'str'), diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_global_reach_connections_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_global_reach_connections_operations.py index 53bf3e1bad1..3c7b25ae5c3 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_global_reach_connections_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_global_reach_connections_operations.py @@ -67,7 +67,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -80,7 +80,7 @@ def prepare_request(next_link=None): 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), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -146,14 +146,14 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'globalReachConnectionName': self._serialize.url("global_reach_connection_name", global_reach_connection_name, 'str'), } @@ -188,8 +188,7 @@ async def _create_or_update_initial( resource_group_name: str, private_cloud_name: str, global_reach_connection_name: str, - authorization_key: Optional[str] = None, - peer_express_route_circuit: Optional[str] = None, + global_reach_connection: "_models.GlobalReachConnection", **kwargs: Any ) -> "_models.GlobalReachConnection": cls = kwargs.pop('cls', None) # type: ClsType["_models.GlobalReachConnection"] @@ -197,9 +196,7 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - _global_reach_connection = _models.GlobalReachConnection(authorization_key=authorization_key, peer_express_route_circuit=peer_express_route_circuit) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -207,7 +204,7 @@ async def _create_or_update_initial( url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'globalReachConnectionName': self._serialize.url("global_reach_connection_name", global_reach_connection_name, 'str'), } @@ -223,7 +220,7 @@ async def _create_or_update_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_global_reach_connection, 'GlobalReachConnection') + body_content = self._serialize.body(global_reach_connection, 'GlobalReachConnection') 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) @@ -250,8 +247,7 @@ async def begin_create_or_update( resource_group_name: str, private_cloud_name: str, global_reach_connection_name: str, - authorization_key: Optional[str] = None, - peer_express_route_circuit: Optional[str] = None, + global_reach_connection: "_models.GlobalReachConnection", **kwargs: Any ) -> AsyncLROPoller["_models.GlobalReachConnection"]: """Create or update a global reach connection in a private cloud. @@ -264,12 +260,8 @@ async def begin_create_or_update( :type private_cloud_name: str :param global_reach_connection_name: Name of the global reach connection in the private cloud. :type global_reach_connection_name: str - :param authorization_key: Authorization key from the peer express route used for the global - reach connection. - :type authorization_key: str - :param peer_express_route_circuit: Identifier of the ExpressRoute Circuit to peer with in the - global reach connection. - :type peer_express_route_circuit: str + :param global_reach_connection: A global reach connection in the private cloud. + :type global_reach_connection: ~avs_client.models.GlobalReachConnection :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. @@ -292,8 +284,7 @@ async def begin_create_or_update( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, global_reach_connection_name=global_reach_connection_name, - authorization_key=authorization_key, - peer_express_route_circuit=peer_express_route_circuit, + global_reach_connection=global_reach_connection, cls=lambda x,y,z: x, **kwargs ) @@ -310,7 +301,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'globalReachConnectionName': self._serialize.url("global_reach_connection_name", global_reach_connection_name, 'str'), } @@ -341,14 +332,14 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'globalReachConnectionName': self._serialize.url("global_reach_connection_name", global_reach_connection_name, 'str'), } @@ -427,7 +418,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'globalReachConnectionName': self._serialize.url("global_reach_connection_name", global_reach_connection_name, 'str'), } diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_hcx_enterprise_sites_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_hcx_enterprise_sites_operations.py index b7077fc376b..b923d28b929 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_hcx_enterprise_sites_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_hcx_enterprise_sites_operations.py @@ -65,7 +65,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -78,7 +78,7 @@ def prepare_request(next_link=None): 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), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -144,14 +144,14 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'hcxEnterpriseSiteName': self._serialize.url("hcx_enterprise_site_name", hcx_enterprise_site_name, 'str'), } @@ -210,7 +210,7 @@ async def create_or_update( error_map.update(kwargs.pop('error_map', {})) _hcx_enterprise_site = _models.HcxEnterpriseSite() - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -218,7 +218,7 @@ async def create_or_update( url = self.create_or_update.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'hcxEnterpriseSiteName': self._serialize.url("hcx_enterprise_site_name", hcx_enterprise_site_name, 'str'), } @@ -283,14 +283,14 @@ async def delete( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.delete.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'hcxEnterpriseSiteName': self._serialize.url("hcx_enterprise_site_name", hcx_enterprise_site_name, 'str'), } diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_locations_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_locations_operations.py index 0aa93c924ff..ca66e6f05a5 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_locations_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_locations_operations.py @@ -59,7 +59,7 @@ async def check_trial_availability( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL @@ -113,7 +113,7 @@ async def check_quota_availability( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_operations.py index 507c63fc576..2bc3c0aefb7 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_operations.py @@ -57,7 +57,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_placement_policies_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_placement_policies_operations.py new file mode 100644 index 00000000000..b253e047816 --- /dev/null +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_placement_policies_operations.py @@ -0,0 +1,610 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class PlacementPoliciesOperations: + """PlacementPoliciesOperations 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: ~avs_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name: str, + private_cloud_name: str, + cluster_name: str, + **kwargs: Any + ) -> AsyncIterable["_models.PlacementPoliciesList"]: + """List placement policies in a private cloud cluster. + + List placement policies in a private cloud cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param cluster_name: Name of the cluster in the private cloud. + :type cluster_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either PlacementPoliciesList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~avs_client.models.PlacementPoliciesList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.PlacementPoliciesList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-12-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('PlacementPoliciesList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + 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}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies'} # type: ignore + + async def get( + self, + resource_group_name: str, + private_cloud_name: str, + cluster_name: str, + placement_policy_name: str, + **kwargs: Any + ) -> "_models.PlacementPolicy": + """Get a placement policy by name in a private cloud cluster. + + Get a placement policy by name in a private cloud cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param cluster_name: Name of the cluster in the private cloud. + :type cluster_name: str + :param placement_policy_name: Name of the VMware vSphere Distributed Resource Scheduler (DRS) + placement policy. + :type placement_policy_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: PlacementPolicy, or the result of cls(response) + :rtype: ~avs_client.models.PlacementPolicy + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.PlacementPolicy"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-12-01" + 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), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'placementPolicyName': self._serialize.url("placement_policy_name", placement_policy_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize('PlacementPolicy', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}'} # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + private_cloud_name: str, + cluster_name: str, + placement_policy_name: str, + properties: Optional["_models.PlacementPolicyProperties"] = None, + **kwargs: Any + ) -> "_models.PlacementPolicy": + cls = kwargs.pop('cls', None) # type: ClsType["_models.PlacementPolicy"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + _placement_policy = _models.PlacementPolicy(properties=properties) + api_version = "2021-12-01" + 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), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'placementPolicyName': self._serialize.url("placement_policy_name", placement_policy_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(_placement_policy, 'PlacementPolicy') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('PlacementPolicy', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('PlacementPolicy', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}'} # type: ignore + + async def begin_create_or_update( + self, + resource_group_name: str, + private_cloud_name: str, + cluster_name: str, + placement_policy_name: str, + properties: Optional["_models.PlacementPolicyProperties"] = None, + **kwargs: Any + ) -> AsyncLROPoller["_models.PlacementPolicy"]: + """Create or update a placement policy in a private cloud cluster. + + Create or update a placement policy in a private cloud cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param cluster_name: Name of the cluster in the private cloud. + :type cluster_name: str + :param placement_policy_name: Name of the VMware vSphere Distributed Resource Scheduler (DRS) + placement policy. + :type placement_policy_name: str + :param properties: placement policy properties. + :type properties: ~avs_client.models.PlacementPolicyProperties + :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 PlacementPolicy or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~avs_client.models.PlacementPolicy] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PlacementPolicy"] + 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, + private_cloud_name=private_cloud_name, + cluster_name=cluster_name, + placement_policy_name=placement_policy_name, + properties=properties, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('PlacementPolicy', 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), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'placementPolicyName': self._serialize.url("placement_policy_name", placement_policy_name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}'} # type: ignore + + async def _update_initial( + self, + resource_group_name: str, + private_cloud_name: str, + cluster_name: str, + placement_policy_name: str, + placement_policy_update: "_models.PlacementPolicyUpdate", + **kwargs: Any + ) -> "_models.PlacementPolicy": + cls = kwargs.pop('cls', None) # type: ClsType["_models.PlacementPolicy"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-12-01" + 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), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'placementPolicyName': self._serialize.url("placement_policy_name", placement_policy_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(placement_policy_update, 'PlacementPolicyUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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('PlacementPolicy', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('PlacementPolicy', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}'} # type: ignore + + async def begin_update( + self, + resource_group_name: str, + private_cloud_name: str, + cluster_name: str, + placement_policy_name: str, + placement_policy_update: "_models.PlacementPolicyUpdate", + **kwargs: Any + ) -> AsyncLROPoller["_models.PlacementPolicy"]: + """Update a placement policy in a private cloud cluster. + + Update a placement policy in a private cloud cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param cluster_name: Name of the cluster in the private cloud. + :type cluster_name: str + :param placement_policy_name: Name of the VMware vSphere Distributed Resource Scheduler (DRS) + placement policy. + :type placement_policy_name: str + :param placement_policy_update: The placement policy properties that may be updated. + :type placement_policy_update: ~avs_client.models.PlacementPolicyUpdate + :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 PlacementPolicy or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~avs_client.models.PlacementPolicy] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PlacementPolicy"] + 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, + private_cloud_name=private_cloud_name, + cluster_name=cluster_name, + placement_policy_name=placement_policy_name, + placement_policy_update=placement_policy_update, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('PlacementPolicy', 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), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'placementPolicyName': self._serialize.url("placement_policy_name", placement_policy_name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + private_cloud_name: str, + cluster_name: str, + placement_policy_name: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-12-01" + 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), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'placementPolicyName': self._serialize.url("placement_policy_name", placement_policy_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + private_cloud_name: str, + cluster_name: str, + placement_policy_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete a placement policy in a private cloud cluster. + + Delete a placement policy in a private cloud cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param cluster_name: Name of the cluster in the private cloud. + :type cluster_name: str + :param placement_policy_name: Name of the VMware vSphere Distributed Resource Scheduler (DRS) + placement policy. + :type placement_policy_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + private_cloud_name=private_cloud_name, + cluster_name=cluster_name, + placement_policy_name=placement_policy_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'placementPolicyName': self._serialize.url("placement_policy_name", placement_policy_name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}'} # type: ignore diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_private_clouds_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_private_clouds_operations.py index 0608f5fb87f..a28a28b663b 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_private_clouds_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_private_clouds_operations.py @@ -64,7 +64,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -77,7 +77,7 @@ def prepare_request(next_link=None): 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), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters @@ -133,7 +133,7 @@ def list_in_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -207,14 +207,14 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -255,7 +255,7 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -263,7 +263,7 @@ async def _create_or_update_initial( url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -355,7 +355,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -385,7 +385,7 @@ async def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -393,7 +393,7 @@ async def _update_initial( url = self._update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -485,7 +485,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -514,14 +514,14 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -595,7 +595,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -624,14 +624,14 @@ async def _rotate_vcenter_password_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._rotate_vcenter_password_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -705,7 +705,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -734,14 +734,14 @@ async def _rotate_nsxt_password_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._rotate_nsxt_password_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -815,7 +815,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -857,14 +857,14 @@ async def list_admin_credentials( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.list_admin_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\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_cmdlets_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_cmdlets_operations.py index 50f340fcd4e..806033d0971 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_cmdlets_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_cmdlets_operations.py @@ -48,8 +48,8 @@ def list( script_package_name: str, **kwargs: Any ) -> AsyncIterable["_models.ScriptCmdletsList"]: - """Return script cmdlet resources available for a private cloud to create a script execution - resource on their Private Cloud. + """List script cmdlet resources available for a private cloud to create a script execution + resource on a private cloud. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -67,7 +67,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -80,7 +80,7 @@ def prepare_request(next_link=None): 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), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'scriptPackageName': self._serialize.url("script_package_name", script_package_name, 'str'), } @@ -149,14 +149,14 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'scriptPackageName': self._serialize.url("script_package_name", script_package_name, 'str'), 'scriptCmdletName': self._serialize.url("script_cmdlet_name", script_cmdlet_name, 'str'), diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_executions_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_executions_operations.py index bf302ecd17f..4abb847dec5 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_executions_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_executions_operations.py @@ -49,9 +49,9 @@ def list( private_cloud_name: str, **kwargs: Any ) -> AsyncIterable["_models.ScriptExecutionsList"]: - """Get an script execution resource by name in a private cloud. + """List script executions in a private cloud. - Get an script execution resource by name in a private cloud. + List script executions in a private cloud. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -67,7 +67,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -80,7 +80,7 @@ def prepare_request(next_link=None): 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), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -126,9 +126,9 @@ async def get( script_execution_name: str, **kwargs: Any ) -> "_models.ScriptExecution": - """Get an script execution resource by name in a private cloud. + """Get an script execution by name in a private cloud. - Get an script execution resource by name in a private cloud. + Get an script execution by name in a private cloud. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -146,14 +146,14 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_name, 'str'), } @@ -196,7 +196,7 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -204,7 +204,7 @@ async def _create_or_update_initial( url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_name, 'str'), } @@ -250,9 +250,9 @@ async def begin_create_or_update( script_execution: "_models.ScriptExecution", **kwargs: Any ) -> AsyncLROPoller["_models.ScriptExecution"]: - """Create or update a script execution resource in a private cloud. + """Create or update a script execution in a private cloud. - Create or update a script execution resource in a private cloud. + Create or update a script execution in a private cloud. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -301,7 +301,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_name, 'str'), } @@ -332,14 +332,14 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_name, 'str'), } @@ -418,7 +418,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_name, 'str'), } @@ -466,7 +466,7 @@ async def get_execution_logs( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -474,7 +474,7 @@ async def get_execution_logs( url = self.get_execution_logs.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_name, 'str'), } diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_packages_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_packages_operations.py index e7322288107..08b7f0d7216 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_packages_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_script_packages_operations.py @@ -47,7 +47,7 @@ def list( private_cloud_name: str, **kwargs: Any ) -> AsyncIterable["_models.ScriptPackagesList"]: - """Return script packages available for a private cloud to run on their Private Cloud. + """List script packages available to run on the private cloud. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -63,7 +63,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -76,7 +76,7 @@ def prepare_request(next_link=None): 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), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -122,7 +122,7 @@ async def get( script_package_name: str, **kwargs: Any ) -> "_models.ScriptPackage": - """Return script package available to run on an Private Cloud. + """Get a script package available to run on a private cloud. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -140,14 +140,14 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'scriptPackageName': self._serialize.url("script_package_name", script_package_name, 'str'), } diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_virtual_machines_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_virtual_machines_operations.py new file mode 100644 index 00000000000..3fbca19d10d --- /dev/null +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_virtual_machines_operations.py @@ -0,0 +1,329 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachinesOperations: + """VirtualMachinesOperations 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: ~avs_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name: str, + private_cloud_name: str, + cluster_name: str, + **kwargs: Any + ) -> AsyncIterable["_models.VirtualMachinesList"]: + """List of virtual machines in a private cloud cluster. + + List of virtual machines in a private cloud cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param cluster_name: Name of the cluster in the private cloud. + :type cluster_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachinesList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~avs_client.models.VirtualMachinesList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachinesList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-12-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('VirtualMachinesList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + 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}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines'} # type: ignore + + async def get( + self, + resource_group_name: str, + private_cloud_name: str, + cluster_name: str, + virtual_machine_id: str, + **kwargs: Any + ) -> "_models.VirtualMachine": + """Get a virtual machine by id in a private cloud cluster. + + Get a virtual machine by id in a private cloud cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param cluster_name: Name of the cluster in the private cloud. + :type cluster_name: str + :param virtual_machine_id: Virtual Machine identifier. + :type virtual_machine_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachine, or the result of cls(response) + :rtype: ~avs_client.models.VirtualMachine + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-12-01" + 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), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'virtualMachineId': self._serialize.url("virtual_machine_id", virtual_machine_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize('VirtualMachine', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}'} # type: ignore + + async def _restrict_movement_initial( + self, + resource_group_name: str, + private_cloud_name: str, + cluster_name: str, + virtual_machine_id: str, + restrict_movement: Optional[Union[str, "_models.VirtualMachineRestrictMovementState"]] = None, + **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', {})) + + _restrict_movement = _models.VirtualMachineRestrictMovement(restrict_movement=restrict_movement) + api_version = "2021-12-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._restrict_movement_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), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'virtualMachineId': self._serialize.url("virtual_machine_id", virtual_machine_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # 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(_restrict_movement, 'VirtualMachineRestrictMovement') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [202]: + 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, {}) + + _restrict_movement_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}/restrictMovement'} # type: ignore + + async def begin_restrict_movement( + self, + resource_group_name: str, + private_cloud_name: str, + cluster_name: str, + virtual_machine_id: str, + restrict_movement: Optional[Union[str, "_models.VirtualMachineRestrictMovementState"]] = None, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Enable or disable DRS-driven VM movement restriction. + + Enable or disable DRS-driven VM movement restriction. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param cluster_name: Name of the cluster in the private cloud. + :type cluster_name: str + :param virtual_machine_id: Virtual Machine identifier. + :type virtual_machine_id: str + :param restrict_movement: Whether VM DRS-driven movement is restricted (enabled) or not + (disabled). + :type restrict_movement: str or ~avs_client.models.VirtualMachineRestrictMovementState + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._restrict_movement_initial( + resource_group_name=resource_group_name, + private_cloud_name=private_cloud_name, + cluster_name=cluster_name, + virtual_machine_id=virtual_machine_id, + restrict_movement=restrict_movement, + 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), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'virtualMachineId': self._serialize.url("virtual_machine_id", virtual_machine_id, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_restrict_movement.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}/restrictMovement'} # type: ignore diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_workload_networks_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_workload_networks_operations.py index 62c7ed9ef8a..86cdca32640 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_workload_networks_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/aio/operations/_workload_networks_operations.py @@ -67,7 +67,7 @@ def list_segments( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -80,7 +80,7 @@ def prepare_request(next_link=None): url = self.list_segments.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -146,14 +146,14 @@ async def get_segment( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get_segment.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'segmentId': self._serialize.url("segment_id", segment_id, 'str'), } @@ -196,7 +196,7 @@ async def _create_segments_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -204,7 +204,7 @@ async def _create_segments_initial( url = self._create_segments_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'segmentId': self._serialize.url("segment_id", segment_id, 'str'), } @@ -301,7 +301,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'segmentId': self._serialize.url("segment_id", segment_id, 'str'), } @@ -333,7 +333,7 @@ async def _update_segments_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -341,7 +341,7 @@ async def _update_segments_initial( url = self._update_segments_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'segmentId': self._serialize.url("segment_id", segment_id, 'str'), } @@ -436,7 +436,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'segmentId': self._serialize.url("segment_id", segment_id, 'str'), } @@ -467,14 +467,14 @@ async def _delete_segment_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_segment_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'segmentId': self._serialize.url("segment_id", segment_id, 'str'), } @@ -553,7 +553,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'segmentId': self._serialize.url("segment_id", segment_id, 'str'), } @@ -596,7 +596,7 @@ def list_dhcp( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -609,7 +609,7 @@ def prepare_request(next_link=None): url = self.list_dhcp.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -675,14 +675,14 @@ async def get_dhcp( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get_dhcp.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'dhcpId': self._serialize.url("dhcp_id", dhcp_id, 'str'), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -727,7 +727,7 @@ async def _create_dhcp_initial( error_map.update(kwargs.pop('error_map', {})) _workload_network_dhcp = _models.WorkloadNetworkDhcp(properties=properties) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -735,7 +735,7 @@ async def _create_dhcp_initial( url = self._create_dhcp_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dhcpId': self._serialize.url("dhcp_id", dhcp_id, 'str'), } @@ -832,7 +832,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dhcpId': self._serialize.url("dhcp_id", dhcp_id, 'str'), } @@ -866,7 +866,7 @@ async def _update_dhcp_initial( error_map.update(kwargs.pop('error_map', {})) _workload_network_dhcp = _models.WorkloadNetworkDhcp(properties=properties) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -874,7 +874,7 @@ async def _update_dhcp_initial( url = self._update_dhcp_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dhcpId': self._serialize.url("dhcp_id", dhcp_id, 'str'), } @@ -969,7 +969,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dhcpId': self._serialize.url("dhcp_id", dhcp_id, 'str'), } @@ -1000,14 +1000,14 @@ async def _delete_dhcp_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_dhcp_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dhcpId': self._serialize.url("dhcp_id", dhcp_id, 'str'), } @@ -1086,7 +1086,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dhcpId': self._serialize.url("dhcp_id", dhcp_id, 'str'), } @@ -1129,7 +1129,7 @@ def list_gateways( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -1142,7 +1142,7 @@ def prepare_request(next_link=None): url = self.list_gateways.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -1208,14 +1208,14 @@ async def get_gateway( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get_gateway.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'gatewayId': self._serialize.url("gateway_id", gateway_id, 'str'), } @@ -1269,7 +1269,7 @@ def list_port_mirroring( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -1282,7 +1282,7 @@ def prepare_request(next_link=None): url = self.list_port_mirroring.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -1349,14 +1349,14 @@ async def get_port_mirroring( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get_port_mirroring.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'portMirroringId': self._serialize.url("port_mirroring_id", port_mirroring_id, 'str'), } @@ -1399,7 +1399,7 @@ async def _create_port_mirroring_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1407,7 +1407,7 @@ async def _create_port_mirroring_initial( url = self._create_port_mirroring_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'portMirroringId': self._serialize.url("port_mirroring_id", port_mirroring_id, 'str'), } @@ -1505,7 +1505,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'portMirroringId': self._serialize.url("port_mirroring_id", port_mirroring_id, 'str'), } @@ -1537,7 +1537,7 @@ async def _update_port_mirroring_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1545,7 +1545,7 @@ async def _update_port_mirroring_initial( url = self._update_port_mirroring_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'portMirroringId': self._serialize.url("port_mirroring_id", port_mirroring_id, 'str'), } @@ -1641,7 +1641,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'portMirroringId': self._serialize.url("port_mirroring_id", port_mirroring_id, 'str'), } @@ -1672,14 +1672,14 @@ async def _delete_port_mirroring_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_port_mirroring_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'portMirroringId': self._serialize.url("port_mirroring_id", port_mirroring_id, 'str'), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -1759,7 +1759,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'portMirroringId': self._serialize.url("port_mirroring_id", port_mirroring_id, 'str'), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -1802,7 +1802,7 @@ def list_vm_groups( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -1815,7 +1815,7 @@ def prepare_request(next_link=None): url = self.list_vm_groups.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -1881,14 +1881,14 @@ async def get_vm_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get_vm_group.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'vmGroupId': self._serialize.url("vm_group_id", vm_group_id, 'str'), } @@ -1931,7 +1931,7 @@ async def _create_vm_group_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1939,7 +1939,7 @@ async def _create_vm_group_initial( url = self._create_vm_group_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'vmGroupId': self._serialize.url("vm_group_id", vm_group_id, 'str'), } @@ -2036,7 +2036,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'vmGroupId': self._serialize.url("vm_group_id", vm_group_id, 'str'), } @@ -2068,7 +2068,7 @@ async def _update_vm_group_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -2076,7 +2076,7 @@ async def _update_vm_group_initial( url = self._update_vm_group_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'vmGroupId': self._serialize.url("vm_group_id", vm_group_id, 'str'), } @@ -2171,7 +2171,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'vmGroupId': self._serialize.url("vm_group_id", vm_group_id, 'str'), } @@ -2202,14 +2202,14 @@ async def _delete_vm_group_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_vm_group_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'vmGroupId': self._serialize.url("vm_group_id", vm_group_id, 'str'), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -2288,7 +2288,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'vmGroupId': self._serialize.url("vm_group_id", vm_group_id, 'str'), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -2331,7 +2331,7 @@ def list_virtual_machines( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -2344,7 +2344,7 @@ def prepare_request(next_link=None): url = self.list_virtual_machines.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -2410,14 +2410,14 @@ async def get_virtual_machine( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get_virtual_machine.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'virtualMachineId': self._serialize.url("virtual_machine_id", virtual_machine_id, 'str'), } @@ -2471,7 +2471,7 @@ def list_dns_services( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -2484,7 +2484,7 @@ def prepare_request(next_link=None): url = self.list_dns_services.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -2551,14 +2551,14 @@ async def get_dns_service( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get_dns_service.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dnsServiceId': self._serialize.url("dns_service_id", dns_service_id, 'str'), } @@ -2601,7 +2601,7 @@ async def _create_dns_service_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -2609,7 +2609,7 @@ async def _create_dns_service_initial( url = self._create_dns_service_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dnsServiceId': self._serialize.url("dns_service_id", dns_service_id, 'str'), } @@ -2707,7 +2707,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dnsServiceId': self._serialize.url("dns_service_id", dns_service_id, 'str'), } @@ -2739,7 +2739,7 @@ async def _update_dns_service_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -2747,7 +2747,7 @@ async def _update_dns_service_initial( url = self._update_dns_service_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dnsServiceId': self._serialize.url("dns_service_id", dns_service_id, 'str'), } @@ -2843,7 +2843,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dnsServiceId': self._serialize.url("dns_service_id", dns_service_id, 'str'), } @@ -2874,14 +2874,14 @@ async def _delete_dns_service_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_dns_service_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'dnsServiceId': self._serialize.url("dns_service_id", dns_service_id, 'str'), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -2961,7 +2961,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'dnsServiceId': self._serialize.url("dns_service_id", dns_service_id, 'str'), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -3004,7 +3004,7 @@ def list_dns_zones( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -3017,7 +3017,7 @@ def prepare_request(next_link=None): url = self.list_dns_zones.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -3083,14 +3083,14 @@ async def get_dns_zone( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get_dns_zone.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dnsZoneId': self._serialize.url("dns_zone_id", dns_zone_id, 'str'), } @@ -3133,7 +3133,7 @@ async def _create_dns_zone_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -3141,7 +3141,7 @@ async def _create_dns_zone_initial( url = self._create_dns_zone_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dnsZoneId': self._serialize.url("dns_zone_id", dns_zone_id, 'str'), } @@ -3238,7 +3238,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dnsZoneId': self._serialize.url("dns_zone_id", dns_zone_id, 'str'), } @@ -3270,7 +3270,7 @@ async def _update_dns_zone_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -3278,7 +3278,7 @@ async def _update_dns_zone_initial( url = self._update_dns_zone_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dnsZoneId': self._serialize.url("dns_zone_id", dns_zone_id, 'str'), } @@ -3373,7 +3373,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dnsZoneId': self._serialize.url("dns_zone_id", dns_zone_id, 'str'), } @@ -3404,14 +3404,14 @@ async def _delete_dns_zone_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_dns_zone_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'dnsZoneId': self._serialize.url("dns_zone_id", dns_zone_id, 'str'), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -3490,7 +3490,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'dnsZoneId': self._serialize.url("dns_zone_id", dns_zone_id, 'str'), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -3533,7 +3533,7 @@ def list_public_i_ps( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -3546,7 +3546,7 @@ def prepare_request(next_link=None): url = self.list_public_i_ps.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -3613,14 +3613,14 @@ async def get_public_ip( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get_public_ip.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'publicIPId': self._serialize.url("public_ip_id", public_ip_id, 'str'), } @@ -3666,7 +3666,7 @@ async def _create_public_ip_initial( error_map.update(kwargs.pop('error_map', {})) _workload_network_public_ip = _models.WorkloadNetworkPublicIP(display_name=display_name, number_of_public_i_ps=number_of_public_i_ps) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -3674,7 +3674,7 @@ async def _create_public_ip_initial( url = self._create_public_ip_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'publicIPId': self._serialize.url("public_ip_id", public_ip_id, 'str'), } @@ -3776,7 +3776,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'publicIPId': self._serialize.url("public_ip_id", public_ip_id, 'str'), } @@ -3807,14 +3807,14 @@ async def _delete_public_ip_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_public_ip_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'publicIPId': self._serialize.url("public_ip_id", public_ip_id, 'str'), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -3894,7 +3894,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'publicIPId': self._serialize.url("public_ip_id", public_ip_id, 'str'), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/models/__init__.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/models/__init__.py index 819b169fecf..7ec2a63b7e5 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/models/__init__.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/models/__init__.py @@ -14,6 +14,7 @@ from ._models_py3 import AddonSrmProperties from ._models_py3 import AddonVrProperties from ._models_py3 import AdminCredentials + from ._models_py3 import AvailabilityProperties from ._models_py3 import Circuit from ._models_py3 import CloudLink from ._models_py3 import CloudLinkList @@ -25,6 +26,8 @@ from ._models_py3 import Datastore from ._models_py3 import DatastoreList from ._models_py3 import DiskPoolVolume + from ._models_py3 import Encryption + from ._models_py3 import EncryptionKeyVaultProperties from ._models_py3 import Endpoints from ._models_py3 import ErrorAdditionalInfo from ._models_py3 import ErrorResponse @@ -45,7 +48,12 @@ from ._models_py3 import OperationList from ._models_py3 import OperationProperties from ._models_py3 import PSCredentialExecutionParameter + from ._models_py3 import PlacementPoliciesList + from ._models_py3 import PlacementPolicy + from ._models_py3 import PlacementPolicyProperties + from ._models_py3 import PlacementPolicyUpdate from ._models_py3 import PrivateCloud + from ._models_py3 import PrivateCloudIdentity from ._models_py3 import PrivateCloudList from ._models_py3 import PrivateCloudProperties from ._models_py3 import PrivateCloudUpdate @@ -67,6 +75,11 @@ from ._models_py3 import Sku from ._models_py3 import TrackedResource from ._models_py3 import Trial + from ._models_py3 import VirtualMachine + from ._models_py3 import VirtualMachineRestrictMovement + from ._models_py3 import VirtualMachinesList + from ._models_py3 import VmHostPlacementPolicyProperties + from ._models_py3 import VmPlacementPolicyProperties from ._models_py3 import WorkloadNetworkDhcp from ._models_py3 import WorkloadNetworkDhcpEntity from ._models_py3 import WorkloadNetworkDhcpList @@ -98,6 +111,7 @@ from ._models import AddonSrmProperties # type: ignore from ._models import AddonVrProperties # type: ignore from ._models import AdminCredentials # type: ignore + from ._models import AvailabilityProperties # type: ignore from ._models import Circuit # type: ignore from ._models import CloudLink # type: ignore from ._models import CloudLinkList # type: ignore @@ -109,6 +123,8 @@ from ._models import Datastore # type: ignore from ._models import DatastoreList # type: ignore from ._models import DiskPoolVolume # type: ignore + from ._models import Encryption # type: ignore + from ._models import EncryptionKeyVaultProperties # type: ignore from ._models import Endpoints # type: ignore from ._models import ErrorAdditionalInfo # type: ignore from ._models import ErrorResponse # type: ignore @@ -129,7 +145,12 @@ from ._models import OperationList # type: ignore from ._models import OperationProperties # type: ignore from ._models import PSCredentialExecutionParameter # type: ignore + from ._models import PlacementPoliciesList # type: ignore + from ._models import PlacementPolicy # type: ignore + from ._models import PlacementPolicyProperties # type: ignore + from ._models import PlacementPolicyUpdate # type: ignore from ._models import PrivateCloud # type: ignore + from ._models import PrivateCloudIdentity # type: ignore from ._models import PrivateCloudList # type: ignore from ._models import PrivateCloudProperties # type: ignore from ._models import PrivateCloudUpdate # type: ignore @@ -151,6 +172,11 @@ from ._models import Sku # type: ignore from ._models import TrackedResource # type: ignore from ._models import Trial # type: ignore + from ._models import VirtualMachine # type: ignore + from ._models import VirtualMachineRestrictMovement # type: ignore + from ._models import VirtualMachinesList # type: ignore + from ._models import VmHostPlacementPolicyProperties # type: ignore + from ._models import VmPlacementPolicyProperties # type: ignore from ._models import WorkloadNetworkDhcp # type: ignore from ._models import WorkloadNetworkDhcpEntity # type: ignore from ._models import WorkloadNetworkDhcpList # type: ignore @@ -178,12 +204,18 @@ from ._avs_client_enums import ( AddonProvisioningState, AddonType, + AffinityType, + AvailabilityStrategy, CloudLinkStatus, ClusterProvisioningState, DatastoreProvisioningState, + DatastoreStatus, DhcpTypeEnum, DnsServiceLogLevelEnum, DnsServiceStatusEnum, + EncryptionKeyStatus, + EncryptionState, + EncryptionVersionType, ExpressRouteAuthorizationProvisioningState, GlobalReachConnectionProvisioningState, GlobalReachConnectionStatus, @@ -191,10 +223,14 @@ InternetEnum, MountOptionEnum, OptionalParamEnum, + PlacementPolicyProvisioningState, + PlacementPolicyState, + PlacementPolicyType, PortMirroringDirectionEnum, PortMirroringStatusEnum, PrivateCloudProvisioningState, QuotaEnabled, + ResourceIdentityType, ScriptExecutionParameterType, ScriptExecutionProvisioningState, ScriptOutputStreamType, @@ -204,6 +240,7 @@ TrialStatus, VMGroupStatusEnum, VMTypeEnum, + VirtualMachineRestrictMovementState, VisibilityParameterEnum, WorkloadNetworkDhcpProvisioningState, WorkloadNetworkDnsServiceProvisioningState, @@ -222,6 +259,7 @@ 'AddonSrmProperties', 'AddonVrProperties', 'AdminCredentials', + 'AvailabilityProperties', 'Circuit', 'CloudLink', 'CloudLinkList', @@ -233,6 +271,8 @@ 'Datastore', 'DatastoreList', 'DiskPoolVolume', + 'Encryption', + 'EncryptionKeyVaultProperties', 'Endpoints', 'ErrorAdditionalInfo', 'ErrorResponse', @@ -253,7 +293,12 @@ 'OperationList', 'OperationProperties', 'PSCredentialExecutionParameter', + 'PlacementPoliciesList', + 'PlacementPolicy', + 'PlacementPolicyProperties', + 'PlacementPolicyUpdate', 'PrivateCloud', + 'PrivateCloudIdentity', 'PrivateCloudList', 'PrivateCloudProperties', 'PrivateCloudUpdate', @@ -275,6 +320,11 @@ 'Sku', 'TrackedResource', 'Trial', + 'VirtualMachine', + 'VirtualMachineRestrictMovement', + 'VirtualMachinesList', + 'VmHostPlacementPolicyProperties', + 'VmPlacementPolicyProperties', 'WorkloadNetworkDhcp', 'WorkloadNetworkDhcpEntity', 'WorkloadNetworkDhcpList', @@ -300,12 +350,18 @@ 'WorkloadNetworkVirtualMachinesList', 'AddonProvisioningState', 'AddonType', + 'AffinityType', + 'AvailabilityStrategy', 'CloudLinkStatus', 'ClusterProvisioningState', 'DatastoreProvisioningState', + 'DatastoreStatus', 'DhcpTypeEnum', 'DnsServiceLogLevelEnum', 'DnsServiceStatusEnum', + 'EncryptionKeyStatus', + 'EncryptionState', + 'EncryptionVersionType', 'ExpressRouteAuthorizationProvisioningState', 'GlobalReachConnectionProvisioningState', 'GlobalReachConnectionStatus', @@ -313,10 +369,14 @@ 'InternetEnum', 'MountOptionEnum', 'OptionalParamEnum', + 'PlacementPolicyProvisioningState', + 'PlacementPolicyState', + 'PlacementPolicyType', 'PortMirroringDirectionEnum', 'PortMirroringStatusEnum', 'PrivateCloudProvisioningState', 'QuotaEnabled', + 'ResourceIdentityType', 'ScriptExecutionParameterType', 'ScriptExecutionProvisioningState', 'ScriptOutputStreamType', @@ -326,6 +386,7 @@ 'TrialStatus', 'VMGroupStatusEnum', 'VMTypeEnum', + 'VirtualMachineRestrictMovementState', 'VisibilityParameterEnum', 'WorkloadNetworkDhcpProvisioningState', 'WorkloadNetworkDnsServiceProvisioningState', diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_avs_client_enums.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_avs_client_enums.py index f0a7e9e57cd..8ce01af77ec 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_avs_client_enums.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_avs_client_enums.py @@ -45,6 +45,20 @@ class AddonType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): VR = "VR" HCX = "HCX" +class AffinityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Placement policy affinity type + """ + + AFFINITY = "Affinity" + ANTI_AFFINITY = "AntiAffinity" + +class AvailabilityStrategy(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The availability strategy for the private cloud + """ + + SINGLE_ZONE = "SingleZone" + DUAL_ZONE = "DualZone" + class CloudLinkStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The state of the cloud link. """ @@ -77,6 +91,18 @@ class DatastoreProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, E UPDATING = "Updating" DELETING = "Deleting" +class DatastoreStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The operational status of the datastore + """ + + UNKNOWN = "Unknown" + ACCESSIBLE = "Accessible" + INACCESSIBLE = "Inaccessible" + ATTACHED = "Attached" + DETACHED = "Detached" + LOST_COMMUNICATION = "LostCommunication" + DEAD_OR_ERROR = "DeadOrError" + class DhcpTypeEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Type of DHCP: SERVER or RELAY. """ @@ -101,6 +127,27 @@ class DnsServiceStatusEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): SUCCESS = "SUCCESS" FAILURE = "FAILURE" +class EncryptionKeyStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The state of key provided + """ + + CONNECTED = "Connected" + ACCESS_DENIED = "AccessDenied" + +class EncryptionState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Status of customer managed encryption key + """ + + ENABLED = "Enabled" + DISABLED = "Disabled" + +class EncryptionVersionType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Property of the key if user provided or auto detected + """ + + FIXED = "Fixed" + AUTO_DETECTED = "AutoDetected" + class ExpressRouteAuthorizationProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The state of the ExpressRoute Circuit Authorization provisioning """ @@ -155,17 +202,44 @@ class OptionalParamEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): OPTIONAL = "Optional" REQUIRED = "Required" +class PlacementPolicyProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The provisioning state + """ + + SUCCEEDED = "Succeeded" + FAILED = "Failed" + BUILDING = "Building" + DELETING = "Deleting" + UPDATING = "Updating" + +class PlacementPolicyState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Whether the placement policy is enabled or disabled + """ + + ENABLED = "Enabled" + DISABLED = "Disabled" + +class PlacementPolicyType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """placement policy type + """ + + VM_VM = "VmVm" + VM_HOST = "VmHost" + class PortMirroringDirectionEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Direction of port mirroring profile. """ - INGRESS_EGRESS_BIDIRECTIONAL = "INGRESS, EGRESS, BIDIRECTIONAL" + INGRESS = "INGRESS" + EGRESS = "EGRESS" + BIDIRECTIONAL = "BIDIRECTIONAL" class PortMirroringStatusEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Port Mirroring Status. """ - SUCCESS_FAILURE = "SUCCESS, FAILURE" + SUCCESS = "SUCCESS" + FAILURE = "FAILURE" class PrivateCloudProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The provisioning state @@ -186,6 +260,14 @@ class QuotaEnabled(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): ENABLED = "Enabled" DISABLED = "Disabled" +class ResourceIdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type of identity used for the private cloud. The type 'SystemAssigned' refers to an + implicitly created identity. The type 'None' will remove any identities from the Private Cloud. + """ + + SYSTEM_ASSIGNED = "SystemAssigned" + NONE = "None" + class ScriptExecutionParameterType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The type of execution parameter """ @@ -228,7 +310,8 @@ class SegmentStatusEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Segment status. """ - SUCCESS_FAILURE = "SUCCESS, FAILURE" + SUCCESS = "SUCCESS" + FAILURE = "FAILURE" class SslEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Protect LDAP communication using SSL certificate (LDAPS) @@ -245,6 +328,13 @@ class TrialStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): TRIAL_USED = "TrialUsed" TRIAL_DISABLED = "TrialDisabled" +class VirtualMachineRestrictMovementState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Whether VM DRS-driven movement is restricted (enabled) or not (disabled) + """ + + ENABLED = "Enabled" + DISABLED = "Disabled" + class VisibilityParameterEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Should this parameter be visible to arm and passed in the parameters argument when executing """ @@ -256,13 +346,16 @@ class VMGroupStatusEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """VM Group status. """ - SUCCESS_FAILURE = "SUCCESS, FAILURE" + SUCCESS = "SUCCESS" + FAILURE = "FAILURE" class VMTypeEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Virtual machine type. """ - REGULAR_EDGE_SERVICE = "REGULAR, EDGE, SERVICE" + REGULAR = "REGULAR" + EDGE = "EDGE" + SERVICE = "SERVICE" class WorkloadNetworkDhcpProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The provisioning state diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_models.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_models.py index ad4824ec05c..32aef5ee473 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_models.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_models.py @@ -202,14 +202,13 @@ class AddonSrmProperties(AddonProperties): :ivar provisioning_state: The state of the addon provisioning. Possible values include: "Succeeded", "Failed", "Cancelled", "Building", "Deleting", "Updating". :vartype provisioning_state: str or ~avs_client.models.AddonProvisioningState - :param license_key: Required. The Site Recovery Manager (SRM) license. + :param license_key: The Site Recovery Manager (SRM) license. :type license_key: str """ _validation = { 'addon_type': {'required': True}, 'provisioning_state': {'readonly': True}, - 'license_key': {'required': True}, } _attribute_map = { @@ -224,7 +223,7 @@ def __init__( ): super(AddonSrmProperties, self).__init__(**kwargs) self.addon_type = 'SRM' # type: str - self.license_key = kwargs['license_key'] + self.license_key = kwargs.get('license_key', None) class AddonVrProperties(AddonProperties): @@ -305,6 +304,34 @@ def __init__( self.vcenter_password = None +class AvailabilityProperties(msrest.serialization.Model): + """The properties describing private cloud availability zone distribution. + + :param strategy: The availability strategy for the private cloud. Possible values include: + "SingleZone", "DualZone". + :type strategy: str or ~avs_client.models.AvailabilityStrategy + :param zone: The primary availability zone for the private cloud. + :type zone: int + :param secondary_zone: The secondary availability zone for the private cloud. + :type secondary_zone: int + """ + + _attribute_map = { + 'strategy': {'key': 'strategy', 'type': 'str'}, + 'zone': {'key': 'zone', 'type': 'int'}, + 'secondary_zone': {'key': 'secondaryZone', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + super(AvailabilityProperties, self).__init__(**kwargs) + self.strategy = kwargs.get('strategy', None) + self.zone = kwargs.get('zone', None) + self.secondary_zone = kwargs.get('secondary_zone', None) + + class Circuit(msrest.serialization.Model): """An ExpressRoute Circuit. @@ -432,15 +459,15 @@ class Cluster(Resource): :vartype type: str :param sku: Required. The cluster SKU. :type sku: ~avs_client.models.Sku + :param cluster_size: The cluster size. + :type cluster_size: int :ivar provisioning_state: The state of the cluster provisioning. Possible values include: "Succeeded", "Failed", "Cancelled", "Deleting", "Updating". :vartype provisioning_state: str or ~avs_client.models.ClusterProvisioningState - :param cluster_size: The cluster size. - :type cluster_size: int :ivar cluster_id: The identity. :vartype cluster_id: int - :ivar hosts: The hosts. - :vartype hosts: list[str] + :param hosts: The hosts. + :type hosts: list[str] """ _validation = { @@ -450,7 +477,6 @@ class Cluster(Resource): 'sku': {'required': True}, 'provisioning_state': {'readonly': True}, 'cluster_id': {'readonly': True}, - 'hosts': {'readonly': True}, } _attribute_map = { @@ -458,8 +484,8 @@ class Cluster(Resource): 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'cluster_size': {'key': 'properties.clusterSize', 'type': 'int'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'cluster_id': {'key': 'properties.clusterId', 'type': 'int'}, 'hosts': {'key': 'properties.hosts', 'type': '[str]'}, } @@ -470,10 +496,10 @@ def __init__( ): super(Cluster, self).__init__(**kwargs) self.sku = kwargs['sku'] - self.provisioning_state = None self.cluster_size = kwargs.get('cluster_size', None) + self.provisioning_state = None self.cluster_id = None - self.hosts = None + self.hosts = kwargs.get('hosts', None) class ClusterList(msrest.serialization.Model): @@ -511,26 +537,25 @@ class CommonClusterProperties(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. + :param cluster_size: The cluster size. + :type cluster_size: int :ivar provisioning_state: The state of the cluster provisioning. Possible values include: "Succeeded", "Failed", "Cancelled", "Deleting", "Updating". :vartype provisioning_state: str or ~avs_client.models.ClusterProvisioningState - :param cluster_size: The cluster size. - :type cluster_size: int :ivar cluster_id: The identity. :vartype cluster_id: int - :ivar hosts: The hosts. - :vartype hosts: list[str] + :param hosts: The hosts. + :type hosts: list[str] """ _validation = { 'provisioning_state': {'readonly': True}, 'cluster_id': {'readonly': True}, - 'hosts': {'readonly': True}, } _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'cluster_size': {'key': 'clusterSize', 'type': 'int'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'cluster_id': {'key': 'clusterId', 'type': 'int'}, 'hosts': {'key': 'hosts', 'type': '[str]'}, } @@ -540,10 +565,10 @@ def __init__( **kwargs ): super(CommonClusterProperties, self).__init__(**kwargs) - self.provisioning_state = None self.cluster_size = kwargs.get('cluster_size', None) + self.provisioning_state = None self.cluster_id = None - self.hosts = None + self.hosts = kwargs.get('hosts', None) class ClusterProperties(CommonClusterProperties): @@ -551,26 +576,25 @@ class ClusterProperties(CommonClusterProperties): Variables are only populated by the server, and will be ignored when sending a request. + :param cluster_size: The cluster size. + :type cluster_size: int :ivar provisioning_state: The state of the cluster provisioning. Possible values include: "Succeeded", "Failed", "Cancelled", "Deleting", "Updating". :vartype provisioning_state: str or ~avs_client.models.ClusterProvisioningState - :param cluster_size: The cluster size. - :type cluster_size: int :ivar cluster_id: The identity. :vartype cluster_id: int - :ivar hosts: The hosts. - :vartype hosts: list[str] + :param hosts: The hosts. + :type hosts: list[str] """ _validation = { 'provisioning_state': {'readonly': True}, 'cluster_id': {'readonly': True}, - 'hosts': {'readonly': True}, } _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'cluster_size': {'key': 'clusterSize', 'type': 'int'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'cluster_id': {'key': 'clusterId', 'type': 'int'}, 'hosts': {'key': 'hosts', 'type': '[str]'}, } @@ -587,10 +611,13 @@ class ClusterUpdate(msrest.serialization.Model): :param cluster_size: The cluster size. :type cluster_size: int + :param hosts: The hosts. + :type hosts: list[str] """ _attribute_map = { 'cluster_size': {'key': 'properties.clusterSize', 'type': 'int'}, + 'hosts': {'key': 'properties.hosts', 'type': '[str]'}, } def __init__( @@ -599,6 +626,7 @@ def __init__( ): super(ClusterUpdate, self).__init__(**kwargs) self.cluster_size = kwargs.get('cluster_size', None) + self.hosts = kwargs.get('hosts', None) class Datastore(Resource): @@ -619,6 +647,9 @@ class Datastore(Resource): :type net_app_volume: ~avs_client.models.NetAppVolume :param disk_pool_volume: An iSCSI volume. :type disk_pool_volume: ~avs_client.models.DiskPoolVolume + :ivar status: The operational status of the datastore. Possible values include: "Unknown", + "Accessible", "Inaccessible", "Attached", "Detached", "LostCommunication", "DeadOrError". + :vartype status: str or ~avs_client.models.DatastoreStatus """ _validation = { @@ -626,6 +657,7 @@ class Datastore(Resource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'provisioning_state': {'readonly': True}, + 'status': {'readonly': True}, } _attribute_map = { @@ -635,6 +667,7 @@ class Datastore(Resource): 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'net_app_volume': {'key': 'properties.netAppVolume', 'type': 'NetAppVolume'}, 'disk_pool_volume': {'key': 'properties.diskPoolVolume', 'type': 'DiskPoolVolume'}, + 'status': {'key': 'properties.status', 'type': 'str'}, } def __init__( @@ -645,6 +678,7 @@ def __init__( self.provisioning_state = None self.net_app_volume = kwargs.get('net_app_volume', None) self.disk_pool_volume = kwargs.get('disk_pool_volume', None) + self.status = None class DatastoreList(msrest.serialization.Model): @@ -719,6 +753,74 @@ def __init__( self.path = None +class Encryption(msrest.serialization.Model): + """The properties of customer managed encryption key. + + :param status: Status of customer managed encryption key. Possible values include: "Enabled", + "Disabled". + :type status: str or ~avs_client.models.EncryptionState + :param key_vault_properties: The key vault where the encryption key is stored. + :type key_vault_properties: ~avs_client.models.EncryptionKeyVaultProperties + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'key_vault_properties': {'key': 'keyVaultProperties', 'type': 'EncryptionKeyVaultProperties'}, + } + + def __init__( + self, + **kwargs + ): + super(Encryption, self).__init__(**kwargs) + self.status = kwargs.get('status', None) + self.key_vault_properties = kwargs.get('key_vault_properties', None) + + +class EncryptionKeyVaultProperties(msrest.serialization.Model): + """An Encryption Key. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param key_name: The name of the key. + :type key_name: str + :param key_version: The version of the key. + :type key_version: str + :param key_vault_url: The URL of the vault. + :type key_vault_url: str + :ivar key_state: The state of key provided. Possible values include: "Connected", + "AccessDenied". + :vartype key_state: str or ~avs_client.models.EncryptionKeyStatus + :ivar version_type: Property of the key if user provided or auto detected. Possible values + include: "Fixed", "AutoDetected". + :vartype version_type: str or ~avs_client.models.EncryptionVersionType + """ + + _validation = { + 'key_state': {'readonly': True}, + 'version_type': {'readonly': True}, + } + + _attribute_map = { + 'key_name': {'key': 'keyName', 'type': 'str'}, + 'key_version': {'key': 'keyVersion', 'type': 'str'}, + 'key_vault_url': {'key': 'keyVaultUrl', 'type': 'str'}, + 'key_state': {'key': 'keyState', 'type': 'str'}, + 'version_type': {'key': 'versionType', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(EncryptionKeyVaultProperties, self).__init__(**kwargs) + self.key_name = kwargs.get('key_name', None) + self.key_version = kwargs.get('key_version', None) + self.key_vault_url = kwargs.get('key_vault_url', None) + self.key_state = None + self.version_type = None + + class Endpoints(msrest.serialization.Model): """Endpoint addresses. @@ -848,6 +950,8 @@ class ExpressRouteAuthorization(Resource): :vartype express_route_authorization_id: str :ivar express_route_authorization_key: The key of the ExpressRoute Circuit Authorization. :vartype express_route_authorization_key: str + :param express_route_id: The ID of the ExpressRoute Circuit. + :type express_route_id: str """ _validation = { @@ -866,6 +970,7 @@ class ExpressRouteAuthorization(Resource): 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'express_route_authorization_id': {'key': 'properties.expressRouteAuthorizationId', 'type': 'str'}, 'express_route_authorization_key': {'key': 'properties.expressRouteAuthorizationKey', 'type': 'str'}, + 'express_route_id': {'key': 'properties.expressRouteId', 'type': 'str'}, } def __init__( @@ -876,6 +981,7 @@ def __init__( self.provisioning_state = None self.express_route_authorization_id = None self.express_route_authorization_key = None + self.express_route_id = kwargs.get('express_route_id', None) class ExpressRouteAuthorizationList(msrest.serialization.Model): @@ -934,6 +1040,9 @@ class GlobalReachConnection(Resource): :param peer_express_route_circuit: Identifier of the ExpressRoute Circuit to peer with in the global reach connection. :type peer_express_route_circuit: str + :param express_route_id: The ID of the Private Cloud's ExpressRoute Circuit that is + participating in the global reach connection. + :type express_route_id: str """ _validation = { @@ -954,6 +1063,7 @@ class GlobalReachConnection(Resource): 'authorization_key': {'key': 'properties.authorizationKey', 'type': 'str'}, 'circuit_connection_status': {'key': 'properties.circuitConnectionStatus', 'type': 'str'}, 'peer_express_route_circuit': {'key': 'properties.peerExpressRouteCircuit', 'type': 'str'}, + 'express_route_id': {'key': 'properties.expressRouteId', 'type': 'str'}, } def __init__( @@ -966,6 +1076,7 @@ def __init__( self.authorization_key = kwargs.get('authorization_key', None) self.circuit_connection_status = None self.peer_express_route_circuit = kwargs.get('peer_express_route_circuit', None) + self.express_route_id = kwargs.get('express_route_id', None) class GlobalReachConnectionList(msrest.serialization.Model): @@ -1161,26 +1272,25 @@ class ManagementCluster(CommonClusterProperties): Variables are only populated by the server, and will be ignored when sending a request. + :param cluster_size: The cluster size. + :type cluster_size: int :ivar provisioning_state: The state of the cluster provisioning. Possible values include: "Succeeded", "Failed", "Cancelled", "Deleting", "Updating". :vartype provisioning_state: str or ~avs_client.models.ClusterProvisioningState - :param cluster_size: The cluster size. - :type cluster_size: int :ivar cluster_id: The identity. :vartype cluster_id: int - :ivar hosts: The hosts. - :vartype hosts: list[str] + :param hosts: The hosts. + :type hosts: list[str] """ _validation = { 'provisioning_state': {'readonly': True}, 'cluster_id': {'readonly': True}, - 'hosts': {'readonly': True}, } _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'cluster_size': {'key': 'clusterSize', 'type': 'int'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'cluster_id': {'key': 'clusterId', 'type': 'int'}, 'hosts': {'key': 'hosts', 'type': '[str]'}, } @@ -1451,6 +1561,150 @@ def __init__( self.service_specification = kwargs.get('service_specification', None) +class PlacementPoliciesList(msrest.serialization.Model): + """Represents list of placement policies. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: The items on the page. + :vartype value: list[~avs_client.models.PlacementPolicy] + :ivar next_link: URL to get the next page if any. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[PlacementPolicy]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(PlacementPoliciesList, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class PlacementPolicy(Resource): + """A vSphere Distributed Resource Scheduler (DRS) placement policy. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param properties: placement policy properties. + :type properties: ~avs_client.models.PlacementPolicyProperties + """ + + _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'}, + 'properties': {'key': 'properties', 'type': 'PlacementPolicyProperties'}, + } + + def __init__( + self, + **kwargs + ): + super(PlacementPolicy, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class PlacementPolicyProperties(msrest.serialization.Model): + """Abstract placement policy properties. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: VmHostPlacementPolicyProperties, VmPlacementPolicyProperties. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :param type: Required. placement policy type.Constant filled by server. Possible values + include: "VmVm", "VmHost". + :type type: str or ~avs_client.models.PlacementPolicyType + :param state: Whether the placement policy is enabled or disabled. Possible values include: + "Enabled", "Disabled". + :type state: str or ~avs_client.models.PlacementPolicyState + :param display_name: Display name of the placement policy. + :type display_name: str + :ivar provisioning_state: The provisioning state. Possible values include: "Succeeded", + "Failed", "Building", "Deleting", "Updating". + :vartype provisioning_state: str or ~avs_client.models.PlacementPolicyProvisioningState + """ + + _validation = { + 'type': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + _subtype_map = { + 'type': {'VmHost': 'VmHostPlacementPolicyProperties', 'VmVm': 'VmPlacementPolicyProperties'} + } + + def __init__( + self, + **kwargs + ): + super(PlacementPolicyProperties, self).__init__(**kwargs) + self.type = None # type: Optional[str] + self.state = kwargs.get('state', None) + self.display_name = kwargs.get('display_name', None) + self.provisioning_state = None + + +class PlacementPolicyUpdate(msrest.serialization.Model): + """An update of a DRS placement policy resource. + + :param state: Whether the placement policy is enabled or disabled. Possible values include: + "Enabled", "Disabled". + :type state: str or ~avs_client.models.PlacementPolicyState + :param vm_members: Virtual machine members list. + :type vm_members: list[str] + :param host_members: Host members list. + :type host_members: list[str] + """ + + _attribute_map = { + 'state': {'key': 'properties.state', 'type': 'str'}, + 'vm_members': {'key': 'properties.vmMembers', 'type': '[str]'}, + 'host_members': {'key': 'properties.hostMembers', 'type': '[str]'}, + } + + def __init__( + self, + **kwargs + ): + super(PlacementPolicyUpdate, self).__init__(**kwargs) + self.state = kwargs.get('state', None) + self.vm_members = kwargs.get('vm_members', None) + self.host_members = kwargs.get('host_members', None) + + class TrackedResource(Resource): """The resource model definition for a ARM tracked top level resource. @@ -1510,6 +1764,8 @@ class PrivateCloud(TrackedResource): :type tags: dict[str, str] :param sku: Required. The private cloud SKU. :type sku: ~avs_client.models.Sku + :param identity: The identity of the private cloud, if configured. + :type identity: ~avs_client.models.PrivateCloudIdentity :param management_cluster: The default cluster used for management. :type management_cluster: ~avs_client.models.ManagementCluster :param internet: Connectivity to internet is enabled or disabled. Possible values include: @@ -1517,6 +1773,11 @@ class PrivateCloud(TrackedResource): :type internet: str or ~avs_client.models.InternetEnum :param identity_sources: vCenter Single Sign On Identity Sources. :type identity_sources: list[~avs_client.models.IdentitySource] + :param availability: Properties describing how the cloud is distributed across availability + zones. + :type availability: ~avs_client.models.AvailabilityProperties + :param encryption: Customer managed key encryption, can be enabled or disabled. + :type encryption: ~avs_client.models.Encryption :ivar provisioning_state: The provisioning state. Possible values include: "Succeeded", "Failed", "Cancelled", "Pending", "Building", "Deleting", "Updating". :vartype provisioning_state: str or ~avs_client.models.PrivateCloudProvisioningState @@ -1528,8 +1789,6 @@ class PrivateCloud(TrackedResource): as well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22. :type network_block: str - :ivar external_cloud_links: Array of cloud link IDs from other clouds that connect to this one. - :vartype external_cloud_links: list[str] :ivar management_network: Network used to access vCenter Server and NSX-T Manager. :vartype management_network: str :ivar provisioning_network: Used for virtual machine cold migration, cloning, and snapshot @@ -1547,6 +1806,11 @@ class PrivateCloud(TrackedResource): :vartype vcenter_certificate_thumbprint: str :ivar nsxt_certificate_thumbprint: Thumbprint of the NSX-T Manager SSL certificate. :vartype nsxt_certificate_thumbprint: str + :ivar external_cloud_links: Array of cloud link IDs from other clouds that connect to this one. + :vartype external_cloud_links: list[str] + :param secondary_circuit: A secondary expressRoute circuit from a separate AZ. Only present in + a stretched private cloud. + :type secondary_circuit: ~avs_client.models.Circuit """ _validation = { @@ -1556,12 +1820,12 @@ class PrivateCloud(TrackedResource): 'sku': {'required': True}, 'provisioning_state': {'readonly': True}, 'endpoints': {'readonly': True}, - 'external_cloud_links': {'readonly': True}, 'management_network': {'readonly': True}, 'provisioning_network': {'readonly': True}, 'vmotion_network': {'readonly': True}, 'vcenter_certificate_thumbprint': {'readonly': True}, 'nsxt_certificate_thumbprint': {'readonly': True}, + 'external_cloud_links': {'readonly': True}, } _attribute_map = { @@ -1571,14 +1835,16 @@ class PrivateCloud(TrackedResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'sku': {'key': 'sku', 'type': 'Sku'}, + 'identity': {'key': 'identity', 'type': 'PrivateCloudIdentity'}, 'management_cluster': {'key': 'properties.managementCluster', 'type': 'ManagementCluster'}, 'internet': {'key': 'properties.internet', 'type': 'str'}, 'identity_sources': {'key': 'properties.identitySources', 'type': '[IdentitySource]'}, + 'availability': {'key': 'properties.availability', 'type': 'AvailabilityProperties'}, + 'encryption': {'key': 'properties.encryption', 'type': 'Encryption'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'circuit': {'key': 'properties.circuit', 'type': 'Circuit'}, 'endpoints': {'key': 'properties.endpoints', 'type': 'Endpoints'}, 'network_block': {'key': 'properties.networkBlock', 'type': 'str'}, - 'external_cloud_links': {'key': 'properties.externalCloudLinks', 'type': '[str]'}, 'management_network': {'key': 'properties.managementNetwork', 'type': 'str'}, 'provisioning_network': {'key': 'properties.provisioningNetwork', 'type': 'str'}, 'vmotion_network': {'key': 'properties.vmotionNetwork', 'type': 'str'}, @@ -1586,6 +1852,8 @@ class PrivateCloud(TrackedResource): 'nsxt_password': {'key': 'properties.nsxtPassword', 'type': 'str'}, 'vcenter_certificate_thumbprint': {'key': 'properties.vcenterCertificateThumbprint', 'type': 'str'}, 'nsxt_certificate_thumbprint': {'key': 'properties.nsxtCertificateThumbprint', 'type': 'str'}, + 'external_cloud_links': {'key': 'properties.externalCloudLinks', 'type': '[str]'}, + 'secondary_circuit': {'key': 'properties.secondaryCircuit', 'type': 'Circuit'}, } def __init__( @@ -1594,14 +1862,16 @@ def __init__( ): super(PrivateCloud, self).__init__(**kwargs) self.sku = kwargs['sku'] + self.identity = kwargs.get('identity', None) self.management_cluster = kwargs.get('management_cluster', None) self.internet = kwargs.get('internet', "Disabled") self.identity_sources = kwargs.get('identity_sources', None) + self.availability = kwargs.get('availability', None) + self.encryption = kwargs.get('encryption', None) self.provisioning_state = None self.circuit = kwargs.get('circuit', None) self.endpoints = None self.network_block = kwargs.get('network_block', None) - self.external_cloud_links = None self.management_network = None self.provisioning_network = None self.vmotion_network = None @@ -1609,6 +1879,46 @@ def __init__( self.nsxt_password = kwargs.get('nsxt_password', None) self.vcenter_certificate_thumbprint = None self.nsxt_certificate_thumbprint = None + self.external_cloud_links = None + self.secondary_circuit = kwargs.get('secondary_circuit', None) + + +class PrivateCloudIdentity(msrest.serialization.Model): + """Identity for the virtual machine. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar principal_id: The principal ID of private cloud identity. This property will only be + provided for a system assigned identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID associated with the private cloud. This property will only be + provided for a system assigned identity. + :vartype tenant_id: str + :param type: The type of identity used for the private cloud. The type 'SystemAssigned' refers + to an implicitly created identity. The type 'None' will remove any identities from the Private + Cloud. Possible values include: "SystemAssigned", "None". + :type type: str or ~avs_client.models.ResourceIdentityType + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(PrivateCloudIdentity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = kwargs.get('type', None) class PrivateCloudList(msrest.serialization.Model): @@ -1651,12 +1961,19 @@ class PrivateCloudUpdateProperties(msrest.serialization.Model): :type internet: str or ~avs_client.models.InternetEnum :param identity_sources: vCenter Single Sign On Identity Sources. :type identity_sources: list[~avs_client.models.IdentitySource] + :param availability: Properties describing how the cloud is distributed across availability + zones. + :type availability: ~avs_client.models.AvailabilityProperties + :param encryption: Customer managed key encryption, can be enabled or disabled. + :type encryption: ~avs_client.models.Encryption """ _attribute_map = { 'management_cluster': {'key': 'managementCluster', 'type': 'ManagementCluster'}, 'internet': {'key': 'internet', 'type': 'str'}, 'identity_sources': {'key': 'identitySources', 'type': '[IdentitySource]'}, + 'availability': {'key': 'availability', 'type': 'AvailabilityProperties'}, + 'encryption': {'key': 'encryption', 'type': 'Encryption'}, } def __init__( @@ -1667,6 +1984,8 @@ def __init__( self.management_cluster = kwargs.get('management_cluster', None) self.internet = kwargs.get('internet', "Disabled") self.identity_sources = kwargs.get('identity_sources', None) + self.availability = kwargs.get('availability', None) + self.encryption = kwargs.get('encryption', None) class PrivateCloudProperties(PrivateCloudUpdateProperties): @@ -1683,6 +2002,11 @@ class PrivateCloudProperties(PrivateCloudUpdateProperties): :type internet: str or ~avs_client.models.InternetEnum :param identity_sources: vCenter Single Sign On Identity Sources. :type identity_sources: list[~avs_client.models.IdentitySource] + :param availability: Properties describing how the cloud is distributed across availability + zones. + :type availability: ~avs_client.models.AvailabilityProperties + :param encryption: Customer managed key encryption, can be enabled or disabled. + :type encryption: ~avs_client.models.Encryption :ivar provisioning_state: The provisioning state. Possible values include: "Succeeded", "Failed", "Cancelled", "Pending", "Building", "Deleting", "Updating". :vartype provisioning_state: str or ~avs_client.models.PrivateCloudProvisioningState @@ -1694,8 +2018,6 @@ class PrivateCloudProperties(PrivateCloudUpdateProperties): subscription as well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22. :type network_block: str - :ivar external_cloud_links: Array of cloud link IDs from other clouds that connect to this one. - :vartype external_cloud_links: list[str] :ivar management_network: Network used to access vCenter Server and NSX-T Manager. :vartype management_network: str :ivar provisioning_network: Used for virtual machine cold migration, cloning, and snapshot @@ -1713,29 +2035,35 @@ class PrivateCloudProperties(PrivateCloudUpdateProperties): :vartype vcenter_certificate_thumbprint: str :ivar nsxt_certificate_thumbprint: Thumbprint of the NSX-T Manager SSL certificate. :vartype nsxt_certificate_thumbprint: str + :ivar external_cloud_links: Array of cloud link IDs from other clouds that connect to this one. + :vartype external_cloud_links: list[str] + :param secondary_circuit: A secondary expressRoute circuit from a separate AZ. Only present in + a stretched private cloud. + :type secondary_circuit: ~avs_client.models.Circuit """ _validation = { 'provisioning_state': {'readonly': True}, 'endpoints': {'readonly': True}, 'network_block': {'required': True}, - 'external_cloud_links': {'readonly': True}, 'management_network': {'readonly': True}, 'provisioning_network': {'readonly': True}, 'vmotion_network': {'readonly': True}, 'vcenter_certificate_thumbprint': {'readonly': True}, 'nsxt_certificate_thumbprint': {'readonly': True}, + 'external_cloud_links': {'readonly': True}, } _attribute_map = { 'management_cluster': {'key': 'managementCluster', 'type': 'ManagementCluster'}, 'internet': {'key': 'internet', 'type': 'str'}, 'identity_sources': {'key': 'identitySources', 'type': '[IdentitySource]'}, + 'availability': {'key': 'availability', 'type': 'AvailabilityProperties'}, + 'encryption': {'key': 'encryption', 'type': 'Encryption'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'circuit': {'key': 'circuit', 'type': 'Circuit'}, 'endpoints': {'key': 'endpoints', 'type': 'Endpoints'}, 'network_block': {'key': 'networkBlock', 'type': 'str'}, - 'external_cloud_links': {'key': 'externalCloudLinks', 'type': '[str]'}, 'management_network': {'key': 'managementNetwork', 'type': 'str'}, 'provisioning_network': {'key': 'provisioningNetwork', 'type': 'str'}, 'vmotion_network': {'key': 'vmotionNetwork', 'type': 'str'}, @@ -1743,6 +2071,8 @@ class PrivateCloudProperties(PrivateCloudUpdateProperties): 'nsxt_password': {'key': 'nsxtPassword', 'type': 'str'}, 'vcenter_certificate_thumbprint': {'key': 'vcenterCertificateThumbprint', 'type': 'str'}, 'nsxt_certificate_thumbprint': {'key': 'nsxtCertificateThumbprint', 'type': 'str'}, + 'external_cloud_links': {'key': 'externalCloudLinks', 'type': '[str]'}, + 'secondary_circuit': {'key': 'secondaryCircuit', 'type': 'Circuit'}, } def __init__( @@ -1754,7 +2084,6 @@ def __init__( self.circuit = kwargs.get('circuit', None) self.endpoints = None self.network_block = kwargs['network_block'] - self.external_cloud_links = None self.management_network = None self.provisioning_network = None self.vmotion_network = None @@ -1762,6 +2091,8 @@ def __init__( self.nsxt_password = kwargs.get('nsxt_password', None) self.vcenter_certificate_thumbprint = None self.nsxt_certificate_thumbprint = None + self.external_cloud_links = None + self.secondary_circuit = kwargs.get('secondary_circuit', None) class PrivateCloudUpdate(msrest.serialization.Model): @@ -1769,6 +2100,8 @@ class PrivateCloudUpdate(msrest.serialization.Model): :param tags: A set of tags. Resource tags. :type tags: dict[str, str] + :param identity: The identity of the private cloud, if configured. + :type identity: ~avs_client.models.PrivateCloudIdentity :param management_cluster: The default cluster used for management. :type management_cluster: ~avs_client.models.ManagementCluster :param internet: Connectivity to internet is enabled or disabled. Possible values include: @@ -1776,13 +2109,21 @@ class PrivateCloudUpdate(msrest.serialization.Model): :type internet: str or ~avs_client.models.InternetEnum :param identity_sources: vCenter Single Sign On Identity Sources. :type identity_sources: list[~avs_client.models.IdentitySource] + :param availability: Properties describing how the cloud is distributed across availability + zones. + :type availability: ~avs_client.models.AvailabilityProperties + :param encryption: Customer managed key encryption, can be enabled or disabled. + :type encryption: ~avs_client.models.Encryption """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, + 'identity': {'key': 'identity', 'type': 'PrivateCloudIdentity'}, 'management_cluster': {'key': 'properties.managementCluster', 'type': 'ManagementCluster'}, 'internet': {'key': 'properties.internet', 'type': 'str'}, 'identity_sources': {'key': 'properties.identitySources', 'type': '[IdentitySource]'}, + 'availability': {'key': 'properties.availability', 'type': 'AvailabilityProperties'}, + 'encryption': {'key': 'properties.encryption', 'type': 'Encryption'}, } def __init__( @@ -1791,9 +2132,12 @@ def __init__( ): super(PrivateCloudUpdate, self).__init__(**kwargs) self.tags = kwargs.get('tags', None) + self.identity = kwargs.get('identity', None) self.management_cluster = kwargs.get('management_cluster', None) self.internet = kwargs.get('internet', "Disabled") self.identity_sources = kwargs.get('identity_sources', None) + self.availability = kwargs.get('availability', None) + self.encryption = kwargs.get('encryption', None) class ProxyResource(Resource): @@ -2413,6 +2757,217 @@ def __init__( self.available_hosts = None +class VirtualMachine(ProxyResource): + """Virtual Machine. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar display_name: Display name of the VM. + :vartype display_name: str + :ivar mo_ref_id: Virtual machine managed object reference id. + :vartype mo_ref_id: str + :ivar folder_path: Path to virtual machine's folder starting from datacenter virtual machine + folder. + :vartype folder_path: str + :ivar restrict_movement: Whether VM DRS-driven movement is restricted (enabled) or not + (disabled). Possible values include: "Enabled", "Disabled". + :vartype restrict_movement: str or ~avs_client.models.VirtualMachineRestrictMovementState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'display_name': {'readonly': True}, + 'mo_ref_id': {'readonly': True}, + 'folder_path': {'readonly': True}, + 'restrict_movement': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'mo_ref_id': {'key': 'properties.moRefId', 'type': 'str'}, + 'folder_path': {'key': 'properties.folderPath', 'type': 'str'}, + 'restrict_movement': {'key': 'properties.restrictMovement', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachine, self).__init__(**kwargs) + self.display_name = None + self.mo_ref_id = None + self.folder_path = None + self.restrict_movement = None + + +class VirtualMachineRestrictMovement(msrest.serialization.Model): + """Set VM DRS-driven movement to restricted (enabled) or not (disabled). + + :param restrict_movement: Whether VM DRS-driven movement is restricted (enabled) or not + (disabled). Possible values include: "Enabled", "Disabled". + :type restrict_movement: str or ~avs_client.models.VirtualMachineRestrictMovementState + """ + + _attribute_map = { + 'restrict_movement': {'key': 'restrictMovement', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachineRestrictMovement, self).__init__(**kwargs) + self.restrict_movement = kwargs.get('restrict_movement', None) + + +class VirtualMachinesList(msrest.serialization.Model): + """A list of Virtual Machines. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: The items to be displayed on the page. + :vartype value: list[~avs_client.models.VirtualMachine] + :ivar next_link: URL to get the next page if any. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[VirtualMachine]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachinesList, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class VmHostPlacementPolicyProperties(PlacementPolicyProperties): + """VM-Host placement policy properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :param type: Required. placement policy type.Constant filled by server. Possible values + include: "VmVm", "VmHost". + :type type: str or ~avs_client.models.PlacementPolicyType + :param state: Whether the placement policy is enabled or disabled. Possible values include: + "Enabled", "Disabled". + :type state: str or ~avs_client.models.PlacementPolicyState + :param display_name: Display name of the placement policy. + :type display_name: str + :ivar provisioning_state: The provisioning state. Possible values include: "Succeeded", + "Failed", "Building", "Deleting", "Updating". + :vartype provisioning_state: str or ~avs_client.models.PlacementPolicyProvisioningState + :param vm_members: Required. Virtual machine members list. + :type vm_members: list[str] + :param host_members: Required. Host members list. + :type host_members: list[str] + :param affinity_type: Required. placement policy affinity type. Possible values include: + "Affinity", "AntiAffinity". + :type affinity_type: str or ~avs_client.models.AffinityType + """ + + _validation = { + 'type': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'vm_members': {'required': True}, + 'host_members': {'required': True}, + 'affinity_type': {'required': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'vm_members': {'key': 'vmMembers', 'type': '[str]'}, + 'host_members': {'key': 'hostMembers', 'type': '[str]'}, + 'affinity_type': {'key': 'affinityType', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VmHostPlacementPolicyProperties, self).__init__(**kwargs) + self.type = 'VmHost' # type: str + self.vm_members = kwargs['vm_members'] + self.host_members = kwargs['host_members'] + self.affinity_type = kwargs['affinity_type'] + + +class VmPlacementPolicyProperties(PlacementPolicyProperties): + """VM-VM placement policy properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :param type: Required. placement policy type.Constant filled by server. Possible values + include: "VmVm", "VmHost". + :type type: str or ~avs_client.models.PlacementPolicyType + :param state: Whether the placement policy is enabled or disabled. Possible values include: + "Enabled", "Disabled". + :type state: str or ~avs_client.models.PlacementPolicyState + :param display_name: Display name of the placement policy. + :type display_name: str + :ivar provisioning_state: The provisioning state. Possible values include: "Succeeded", + "Failed", "Building", "Deleting", "Updating". + :vartype provisioning_state: str or ~avs_client.models.PlacementPolicyProvisioningState + :param vm_members: Required. Virtual machine members list. + :type vm_members: list[str] + :param affinity_type: Required. placement policy affinity type. Possible values include: + "Affinity", "AntiAffinity". + :type affinity_type: str or ~avs_client.models.AffinityType + """ + + _validation = { + 'type': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'vm_members': {'required': True}, + 'affinity_type': {'required': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'vm_members': {'key': 'vmMembers', 'type': '[str]'}, + 'affinity_type': {'key': 'affinityType', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VmPlacementPolicyProperties, self).__init__(**kwargs) + self.type = 'VmVm' # type: str + self.vm_members = kwargs['vm_members'] + self.affinity_type = kwargs['affinity_type'] + + class WorkloadNetworkDhcp(ProxyResource): """NSX DHCP. @@ -2907,14 +3462,14 @@ class WorkloadNetworkPortMirroring(ProxyResource): :vartype type: str :param display_name: Display name of the port mirroring profile. :type display_name: str - :param direction: Direction of port mirroring profile. Possible values include: "INGRESS, - EGRESS, BIDIRECTIONAL". + :param direction: Direction of port mirroring profile. Possible values include: "INGRESS", + "EGRESS", "BIDIRECTIONAL". :type direction: str or ~avs_client.models.PortMirroringDirectionEnum :param source: Source VM Group. :type source: str :param destination: Destination VM Group. :type destination: str - :ivar status: Port Mirroring Status. Possible values include: "SUCCESS, FAILURE". + :ivar status: Port Mirroring Status. Possible values include: "SUCCESS", "FAILURE". :vartype status: str or ~avs_client.models.PortMirroringStatusEnum :ivar provisioning_state: The provisioning state. Possible values include: "Succeeded", "Failed", "Building", "Deleting", "Updating". @@ -3089,7 +3644,7 @@ class WorkloadNetworkSegment(ProxyResource): :type subnet: ~avs_client.models.WorkloadNetworkSegmentSubnet :ivar port_vif: Port Vif which segment is associated with. :vartype port_vif: list[~avs_client.models.WorkloadNetworkSegmentPortVif] - :ivar status: Segment status. Possible values include: "SUCCESS, FAILURE". + :ivar status: Segment status. Possible values include: "SUCCESS", "FAILURE". :vartype status: str or ~avs_client.models.SegmentStatusEnum :ivar provisioning_state: The provisioning state. Possible values include: "Succeeded", "Failed", "Building", "Deleting", "Updating". @@ -3219,7 +3774,7 @@ class WorkloadNetworkVirtualMachine(ProxyResource): :vartype type: str :param display_name: Display name of the VM. :type display_name: str - :ivar vm_type: Virtual machine type. Possible values include: "REGULAR, EDGE, SERVICE". + :ivar vm_type: Virtual machine type. Possible values include: "REGULAR", "EDGE", "SERVICE". :vartype vm_type: str or ~avs_client.models.VMTypeEnum """ @@ -3292,7 +3847,7 @@ class WorkloadNetworkVMGroup(ProxyResource): :type display_name: str :param members: Virtual machine members of this group. :type members: list[str] - :ivar status: VM Group status. Possible values include: "SUCCESS, FAILURE". + :ivar status: VM Group status. Possible values include: "SUCCESS", "FAILURE". :vartype status: str or ~avs_client.models.VMGroupStatusEnum :ivar provisioning_state: The provisioning state. Possible values include: "Succeeded", "Failed", "Building", "Deleting", "Updating". diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_models_py3.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_models_py3.py index 2cd7ab4c787..6d33e09b7d1 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_models_py3.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/models/_models_py3.py @@ -210,14 +210,13 @@ class AddonSrmProperties(AddonProperties): :ivar provisioning_state: The state of the addon provisioning. Possible values include: "Succeeded", "Failed", "Cancelled", "Building", "Deleting", "Updating". :vartype provisioning_state: str or ~avs_client.models.AddonProvisioningState - :param license_key: Required. The Site Recovery Manager (SRM) license. + :param license_key: The Site Recovery Manager (SRM) license. :type license_key: str """ _validation = { 'addon_type': {'required': True}, 'provisioning_state': {'readonly': True}, - 'license_key': {'required': True}, } _attribute_map = { @@ -229,7 +228,7 @@ class AddonSrmProperties(AddonProperties): def __init__( self, *, - license_key: str, + license_key: Optional[str] = None, **kwargs ): super(AddonSrmProperties, self).__init__(**kwargs) @@ -317,6 +316,38 @@ def __init__( self.vcenter_password = None +class AvailabilityProperties(msrest.serialization.Model): + """The properties describing private cloud availability zone distribution. + + :param strategy: The availability strategy for the private cloud. Possible values include: + "SingleZone", "DualZone". + :type strategy: str or ~avs_client.models.AvailabilityStrategy + :param zone: The primary availability zone for the private cloud. + :type zone: int + :param secondary_zone: The secondary availability zone for the private cloud. + :type secondary_zone: int + """ + + _attribute_map = { + 'strategy': {'key': 'strategy', 'type': 'str'}, + 'zone': {'key': 'zone', 'type': 'int'}, + 'secondary_zone': {'key': 'secondaryZone', 'type': 'int'}, + } + + def __init__( + self, + *, + strategy: Optional[Union[str, "AvailabilityStrategy"]] = None, + zone: Optional[int] = None, + secondary_zone: Optional[int] = None, + **kwargs + ): + super(AvailabilityProperties, self).__init__(**kwargs) + self.strategy = strategy + self.zone = zone + self.secondary_zone = secondary_zone + + class Circuit(msrest.serialization.Model): """An ExpressRoute Circuit. @@ -446,15 +477,15 @@ class Cluster(Resource): :vartype type: str :param sku: Required. The cluster SKU. :type sku: ~avs_client.models.Sku + :param cluster_size: The cluster size. + :type cluster_size: int :ivar provisioning_state: The state of the cluster provisioning. Possible values include: "Succeeded", "Failed", "Cancelled", "Deleting", "Updating". :vartype provisioning_state: str or ~avs_client.models.ClusterProvisioningState - :param cluster_size: The cluster size. - :type cluster_size: int :ivar cluster_id: The identity. :vartype cluster_id: int - :ivar hosts: The hosts. - :vartype hosts: list[str] + :param hosts: The hosts. + :type hosts: list[str] """ _validation = { @@ -464,7 +495,6 @@ class Cluster(Resource): 'sku': {'required': True}, 'provisioning_state': {'readonly': True}, 'cluster_id': {'readonly': True}, - 'hosts': {'readonly': True}, } _attribute_map = { @@ -472,8 +502,8 @@ class Cluster(Resource): 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'Sku'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'cluster_size': {'key': 'properties.clusterSize', 'type': 'int'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'cluster_id': {'key': 'properties.clusterId', 'type': 'int'}, 'hosts': {'key': 'properties.hosts', 'type': '[str]'}, } @@ -483,14 +513,15 @@ def __init__( *, sku: "Sku", cluster_size: Optional[int] = None, + hosts: Optional[List[str]] = None, **kwargs ): super(Cluster, self).__init__(**kwargs) self.sku = sku - self.provisioning_state = None self.cluster_size = cluster_size + self.provisioning_state = None self.cluster_id = None - self.hosts = None + self.hosts = hosts class ClusterList(msrest.serialization.Model): @@ -528,26 +559,25 @@ class CommonClusterProperties(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. + :param cluster_size: The cluster size. + :type cluster_size: int :ivar provisioning_state: The state of the cluster provisioning. Possible values include: "Succeeded", "Failed", "Cancelled", "Deleting", "Updating". :vartype provisioning_state: str or ~avs_client.models.ClusterProvisioningState - :param cluster_size: The cluster size. - :type cluster_size: int :ivar cluster_id: The identity. :vartype cluster_id: int - :ivar hosts: The hosts. - :vartype hosts: list[str] + :param hosts: The hosts. + :type hosts: list[str] """ _validation = { 'provisioning_state': {'readonly': True}, 'cluster_id': {'readonly': True}, - 'hosts': {'readonly': True}, } _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'cluster_size': {'key': 'clusterSize', 'type': 'int'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'cluster_id': {'key': 'clusterId', 'type': 'int'}, 'hosts': {'key': 'hosts', 'type': '[str]'}, } @@ -556,13 +586,14 @@ def __init__( self, *, cluster_size: Optional[int] = None, + hosts: Optional[List[str]] = None, **kwargs ): super(CommonClusterProperties, self).__init__(**kwargs) - self.provisioning_state = None self.cluster_size = cluster_size + self.provisioning_state = None self.cluster_id = None - self.hosts = None + self.hosts = hosts class ClusterProperties(CommonClusterProperties): @@ -570,26 +601,25 @@ class ClusterProperties(CommonClusterProperties): Variables are only populated by the server, and will be ignored when sending a request. + :param cluster_size: The cluster size. + :type cluster_size: int :ivar provisioning_state: The state of the cluster provisioning. Possible values include: "Succeeded", "Failed", "Cancelled", "Deleting", "Updating". :vartype provisioning_state: str or ~avs_client.models.ClusterProvisioningState - :param cluster_size: The cluster size. - :type cluster_size: int :ivar cluster_id: The identity. :vartype cluster_id: int - :ivar hosts: The hosts. - :vartype hosts: list[str] + :param hosts: The hosts. + :type hosts: list[str] """ _validation = { 'provisioning_state': {'readonly': True}, 'cluster_id': {'readonly': True}, - 'hosts': {'readonly': True}, } _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'cluster_size': {'key': 'clusterSize', 'type': 'int'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'cluster_id': {'key': 'clusterId', 'type': 'int'}, 'hosts': {'key': 'hosts', 'type': '[str]'}, } @@ -598,9 +628,10 @@ def __init__( self, *, cluster_size: Optional[int] = None, + hosts: Optional[List[str]] = None, **kwargs ): - super(ClusterProperties, self).__init__(cluster_size=cluster_size, **kwargs) + super(ClusterProperties, self).__init__(cluster_size=cluster_size, hosts=hosts, **kwargs) class ClusterUpdate(msrest.serialization.Model): @@ -608,20 +639,25 @@ class ClusterUpdate(msrest.serialization.Model): :param cluster_size: The cluster size. :type cluster_size: int + :param hosts: The hosts. + :type hosts: list[str] """ _attribute_map = { 'cluster_size': {'key': 'properties.clusterSize', 'type': 'int'}, + 'hosts': {'key': 'properties.hosts', 'type': '[str]'}, } def __init__( self, *, cluster_size: Optional[int] = None, + hosts: Optional[List[str]] = None, **kwargs ): super(ClusterUpdate, self).__init__(**kwargs) self.cluster_size = cluster_size + self.hosts = hosts class Datastore(Resource): @@ -642,6 +678,9 @@ class Datastore(Resource): :type net_app_volume: ~avs_client.models.NetAppVolume :param disk_pool_volume: An iSCSI volume. :type disk_pool_volume: ~avs_client.models.DiskPoolVolume + :ivar status: The operational status of the datastore. Possible values include: "Unknown", + "Accessible", "Inaccessible", "Attached", "Detached", "LostCommunication", "DeadOrError". + :vartype status: str or ~avs_client.models.DatastoreStatus """ _validation = { @@ -649,6 +688,7 @@ class Datastore(Resource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'provisioning_state': {'readonly': True}, + 'status': {'readonly': True}, } _attribute_map = { @@ -658,6 +698,7 @@ class Datastore(Resource): 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'net_app_volume': {'key': 'properties.netAppVolume', 'type': 'NetAppVolume'}, 'disk_pool_volume': {'key': 'properties.diskPoolVolume', 'type': 'DiskPoolVolume'}, + 'status': {'key': 'properties.status', 'type': 'str'}, } def __init__( @@ -671,6 +712,7 @@ def __init__( self.provisioning_state = None self.net_app_volume = net_app_volume self.disk_pool_volume = disk_pool_volume + self.status = None class DatastoreList(msrest.serialization.Model): @@ -749,6 +791,81 @@ def __init__( self.path = None +class Encryption(msrest.serialization.Model): + """The properties of customer managed encryption key. + + :param status: Status of customer managed encryption key. Possible values include: "Enabled", + "Disabled". + :type status: str or ~avs_client.models.EncryptionState + :param key_vault_properties: The key vault where the encryption key is stored. + :type key_vault_properties: ~avs_client.models.EncryptionKeyVaultProperties + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'key_vault_properties': {'key': 'keyVaultProperties', 'type': 'EncryptionKeyVaultProperties'}, + } + + def __init__( + self, + *, + status: Optional[Union[str, "EncryptionState"]] = None, + key_vault_properties: Optional["EncryptionKeyVaultProperties"] = None, + **kwargs + ): + super(Encryption, self).__init__(**kwargs) + self.status = status + self.key_vault_properties = key_vault_properties + + +class EncryptionKeyVaultProperties(msrest.serialization.Model): + """An Encryption Key. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param key_name: The name of the key. + :type key_name: str + :param key_version: The version of the key. + :type key_version: str + :param key_vault_url: The URL of the vault. + :type key_vault_url: str + :ivar key_state: The state of key provided. Possible values include: "Connected", + "AccessDenied". + :vartype key_state: str or ~avs_client.models.EncryptionKeyStatus + :ivar version_type: Property of the key if user provided or auto detected. Possible values + include: "Fixed", "AutoDetected". + :vartype version_type: str or ~avs_client.models.EncryptionVersionType + """ + + _validation = { + 'key_state': {'readonly': True}, + 'version_type': {'readonly': True}, + } + + _attribute_map = { + 'key_name': {'key': 'keyName', 'type': 'str'}, + 'key_version': {'key': 'keyVersion', 'type': 'str'}, + 'key_vault_url': {'key': 'keyVaultUrl', 'type': 'str'}, + 'key_state': {'key': 'keyState', 'type': 'str'}, + 'version_type': {'key': 'versionType', 'type': 'str'}, + } + + def __init__( + self, + *, + key_name: Optional[str] = None, + key_version: Optional[str] = None, + key_vault_url: Optional[str] = None, + **kwargs + ): + super(EncryptionKeyVaultProperties, self).__init__(**kwargs) + self.key_name = key_name + self.key_version = key_version + self.key_vault_url = key_vault_url + self.key_state = None + self.version_type = None + + class Endpoints(msrest.serialization.Model): """Endpoint addresses. @@ -878,6 +995,8 @@ class ExpressRouteAuthorization(Resource): :vartype express_route_authorization_id: str :ivar express_route_authorization_key: The key of the ExpressRoute Circuit Authorization. :vartype express_route_authorization_key: str + :param express_route_id: The ID of the ExpressRoute Circuit. + :type express_route_id: str """ _validation = { @@ -896,16 +1015,20 @@ class ExpressRouteAuthorization(Resource): 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'express_route_authorization_id': {'key': 'properties.expressRouteAuthorizationId', 'type': 'str'}, 'express_route_authorization_key': {'key': 'properties.expressRouteAuthorizationKey', 'type': 'str'}, + 'express_route_id': {'key': 'properties.expressRouteId', 'type': 'str'}, } def __init__( self, + *, + express_route_id: Optional[str] = None, **kwargs ): super(ExpressRouteAuthorization, self).__init__(**kwargs) self.provisioning_state = None self.express_route_authorization_id = None self.express_route_authorization_key = None + self.express_route_id = express_route_id class ExpressRouteAuthorizationList(msrest.serialization.Model): @@ -964,6 +1087,9 @@ class GlobalReachConnection(Resource): :param peer_express_route_circuit: Identifier of the ExpressRoute Circuit to peer with in the global reach connection. :type peer_express_route_circuit: str + :param express_route_id: The ID of the Private Cloud's ExpressRoute Circuit that is + participating in the global reach connection. + :type express_route_id: str """ _validation = { @@ -984,6 +1110,7 @@ class GlobalReachConnection(Resource): 'authorization_key': {'key': 'properties.authorizationKey', 'type': 'str'}, 'circuit_connection_status': {'key': 'properties.circuitConnectionStatus', 'type': 'str'}, 'peer_express_route_circuit': {'key': 'properties.peerExpressRouteCircuit', 'type': 'str'}, + 'express_route_id': {'key': 'properties.expressRouteId', 'type': 'str'}, } def __init__( @@ -991,6 +1118,7 @@ def __init__( *, authorization_key: Optional[str] = None, peer_express_route_circuit: Optional[str] = None, + express_route_id: Optional[str] = None, **kwargs ): super(GlobalReachConnection, self).__init__(**kwargs) @@ -999,6 +1127,7 @@ def __init__( self.authorization_key = authorization_key self.circuit_connection_status = None self.peer_express_route_circuit = peer_express_route_circuit + self.express_route_id = express_route_id class GlobalReachConnectionList(msrest.serialization.Model): @@ -1209,26 +1338,25 @@ class ManagementCluster(CommonClusterProperties): Variables are only populated by the server, and will be ignored when sending a request. + :param cluster_size: The cluster size. + :type cluster_size: int :ivar provisioning_state: The state of the cluster provisioning. Possible values include: "Succeeded", "Failed", "Cancelled", "Deleting", "Updating". :vartype provisioning_state: str or ~avs_client.models.ClusterProvisioningState - :param cluster_size: The cluster size. - :type cluster_size: int :ivar cluster_id: The identity. :vartype cluster_id: int - :ivar hosts: The hosts. - :vartype hosts: list[str] + :param hosts: The hosts. + :type hosts: list[str] """ _validation = { 'provisioning_state': {'readonly': True}, 'cluster_id': {'readonly': True}, - 'hosts': {'readonly': True}, } _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'cluster_size': {'key': 'clusterSize', 'type': 'int'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'cluster_id': {'key': 'clusterId', 'type': 'int'}, 'hosts': {'key': 'hosts', 'type': '[str]'}, } @@ -1237,9 +1365,10 @@ def __init__( self, *, cluster_size: Optional[int] = None, + hosts: Optional[List[str]] = None, **kwargs ): - super(ManagementCluster, self).__init__(cluster_size=cluster_size, **kwargs) + super(ManagementCluster, self).__init__(cluster_size=cluster_size, hosts=hosts, **kwargs) class MetricDimension(msrest.serialization.Model): @@ -1528,6 +1657,159 @@ def __init__( self.service_specification = service_specification +class PlacementPoliciesList(msrest.serialization.Model): + """Represents list of placement policies. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: The items on the page. + :vartype value: list[~avs_client.models.PlacementPolicy] + :ivar next_link: URL to get the next page if any. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[PlacementPolicy]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(PlacementPoliciesList, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class PlacementPolicy(Resource): + """A vSphere Distributed Resource Scheduler (DRS) placement policy. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param properties: placement policy properties. + :type properties: ~avs_client.models.PlacementPolicyProperties + """ + + _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'}, + 'properties': {'key': 'properties', 'type': 'PlacementPolicyProperties'}, + } + + def __init__( + self, + *, + properties: Optional["PlacementPolicyProperties"] = None, + **kwargs + ): + super(PlacementPolicy, self).__init__(**kwargs) + self.properties = properties + + +class PlacementPolicyProperties(msrest.serialization.Model): + """Abstract placement policy properties. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: VmHostPlacementPolicyProperties, VmPlacementPolicyProperties. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :param type: Required. placement policy type.Constant filled by server. Possible values + include: "VmVm", "VmHost". + :type type: str or ~avs_client.models.PlacementPolicyType + :param state: Whether the placement policy is enabled or disabled. Possible values include: + "Enabled", "Disabled". + :type state: str or ~avs_client.models.PlacementPolicyState + :param display_name: Display name of the placement policy. + :type display_name: str + :ivar provisioning_state: The provisioning state. Possible values include: "Succeeded", + "Failed", "Building", "Deleting", "Updating". + :vartype provisioning_state: str or ~avs_client.models.PlacementPolicyProvisioningState + """ + + _validation = { + 'type': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + _subtype_map = { + 'type': {'VmHost': 'VmHostPlacementPolicyProperties', 'VmVm': 'VmPlacementPolicyProperties'} + } + + def __init__( + self, + *, + state: Optional[Union[str, "PlacementPolicyState"]] = None, + display_name: Optional[str] = None, + **kwargs + ): + super(PlacementPolicyProperties, self).__init__(**kwargs) + self.type = None # type: Optional[str] + self.state = state + self.display_name = display_name + self.provisioning_state = None + + +class PlacementPolicyUpdate(msrest.serialization.Model): + """An update of a DRS placement policy resource. + + :param state: Whether the placement policy is enabled or disabled. Possible values include: + "Enabled", "Disabled". + :type state: str or ~avs_client.models.PlacementPolicyState + :param vm_members: Virtual machine members list. + :type vm_members: list[str] + :param host_members: Host members list. + :type host_members: list[str] + """ + + _attribute_map = { + 'state': {'key': 'properties.state', 'type': 'str'}, + 'vm_members': {'key': 'properties.vmMembers', 'type': '[str]'}, + 'host_members': {'key': 'properties.hostMembers', 'type': '[str]'}, + } + + def __init__( + self, + *, + state: Optional[Union[str, "PlacementPolicyState"]] = None, + vm_members: Optional[List[str]] = None, + host_members: Optional[List[str]] = None, + **kwargs + ): + super(PlacementPolicyUpdate, self).__init__(**kwargs) + self.state = state + self.vm_members = vm_members + self.host_members = host_members + + class TrackedResource(Resource): """The resource model definition for a ARM tracked top level resource. @@ -1590,6 +1872,8 @@ class PrivateCloud(TrackedResource): :type tags: dict[str, str] :param sku: Required. The private cloud SKU. :type sku: ~avs_client.models.Sku + :param identity: The identity of the private cloud, if configured. + :type identity: ~avs_client.models.PrivateCloudIdentity :param management_cluster: The default cluster used for management. :type management_cluster: ~avs_client.models.ManagementCluster :param internet: Connectivity to internet is enabled or disabled. Possible values include: @@ -1597,6 +1881,11 @@ class PrivateCloud(TrackedResource): :type internet: str or ~avs_client.models.InternetEnum :param identity_sources: vCenter Single Sign On Identity Sources. :type identity_sources: list[~avs_client.models.IdentitySource] + :param availability: Properties describing how the cloud is distributed across availability + zones. + :type availability: ~avs_client.models.AvailabilityProperties + :param encryption: Customer managed key encryption, can be enabled or disabled. + :type encryption: ~avs_client.models.Encryption :ivar provisioning_state: The provisioning state. Possible values include: "Succeeded", "Failed", "Cancelled", "Pending", "Building", "Deleting", "Updating". :vartype provisioning_state: str or ~avs_client.models.PrivateCloudProvisioningState @@ -1608,8 +1897,6 @@ class PrivateCloud(TrackedResource): as well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22. :type network_block: str - :ivar external_cloud_links: Array of cloud link IDs from other clouds that connect to this one. - :vartype external_cloud_links: list[str] :ivar management_network: Network used to access vCenter Server and NSX-T Manager. :vartype management_network: str :ivar provisioning_network: Used for virtual machine cold migration, cloning, and snapshot @@ -1627,6 +1914,11 @@ class PrivateCloud(TrackedResource): :vartype vcenter_certificate_thumbprint: str :ivar nsxt_certificate_thumbprint: Thumbprint of the NSX-T Manager SSL certificate. :vartype nsxt_certificate_thumbprint: str + :ivar external_cloud_links: Array of cloud link IDs from other clouds that connect to this one. + :vartype external_cloud_links: list[str] + :param secondary_circuit: A secondary expressRoute circuit from a separate AZ. Only present in + a stretched private cloud. + :type secondary_circuit: ~avs_client.models.Circuit """ _validation = { @@ -1636,12 +1928,12 @@ class PrivateCloud(TrackedResource): 'sku': {'required': True}, 'provisioning_state': {'readonly': True}, 'endpoints': {'readonly': True}, - 'external_cloud_links': {'readonly': True}, 'management_network': {'readonly': True}, 'provisioning_network': {'readonly': True}, 'vmotion_network': {'readonly': True}, 'vcenter_certificate_thumbprint': {'readonly': True}, 'nsxt_certificate_thumbprint': {'readonly': True}, + 'external_cloud_links': {'readonly': True}, } _attribute_map = { @@ -1651,14 +1943,16 @@ class PrivateCloud(TrackedResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'sku': {'key': 'sku', 'type': 'Sku'}, + 'identity': {'key': 'identity', 'type': 'PrivateCloudIdentity'}, 'management_cluster': {'key': 'properties.managementCluster', 'type': 'ManagementCluster'}, 'internet': {'key': 'properties.internet', 'type': 'str'}, 'identity_sources': {'key': 'properties.identitySources', 'type': '[IdentitySource]'}, + 'availability': {'key': 'properties.availability', 'type': 'AvailabilityProperties'}, + 'encryption': {'key': 'properties.encryption', 'type': 'Encryption'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'circuit': {'key': 'properties.circuit', 'type': 'Circuit'}, 'endpoints': {'key': 'properties.endpoints', 'type': 'Endpoints'}, 'network_block': {'key': 'properties.networkBlock', 'type': 'str'}, - 'external_cloud_links': {'key': 'properties.externalCloudLinks', 'type': '[str]'}, 'management_network': {'key': 'properties.managementNetwork', 'type': 'str'}, 'provisioning_network': {'key': 'properties.provisioningNetwork', 'type': 'str'}, 'vmotion_network': {'key': 'properties.vmotionNetwork', 'type': 'str'}, @@ -1666,6 +1960,8 @@ class PrivateCloud(TrackedResource): 'nsxt_password': {'key': 'properties.nsxtPassword', 'type': 'str'}, 'vcenter_certificate_thumbprint': {'key': 'properties.vcenterCertificateThumbprint', 'type': 'str'}, 'nsxt_certificate_thumbprint': {'key': 'properties.nsxtCertificateThumbprint', 'type': 'str'}, + 'external_cloud_links': {'key': 'properties.externalCloudLinks', 'type': '[str]'}, + 'secondary_circuit': {'key': 'properties.secondaryCircuit', 'type': 'Circuit'}, } def __init__( @@ -1674,25 +1970,31 @@ def __init__( sku: "Sku", location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, + identity: Optional["PrivateCloudIdentity"] = None, management_cluster: Optional["ManagementCluster"] = None, internet: Optional[Union[str, "InternetEnum"]] = "Disabled", identity_sources: Optional[List["IdentitySource"]] = None, + availability: Optional["AvailabilityProperties"] = None, + encryption: Optional["Encryption"] = None, circuit: Optional["Circuit"] = None, network_block: Optional[str] = None, vcenter_password: Optional[str] = None, nsxt_password: Optional[str] = None, + secondary_circuit: Optional["Circuit"] = None, **kwargs ): super(PrivateCloud, self).__init__(location=location, tags=tags, **kwargs) self.sku = sku + self.identity = identity self.management_cluster = management_cluster self.internet = internet self.identity_sources = identity_sources + self.availability = availability + self.encryption = encryption self.provisioning_state = None self.circuit = circuit self.endpoints = None self.network_block = network_block - self.external_cloud_links = None self.management_network = None self.provisioning_network = None self.vmotion_network = None @@ -1700,6 +2002,48 @@ def __init__( self.nsxt_password = nsxt_password self.vcenter_certificate_thumbprint = None self.nsxt_certificate_thumbprint = None + self.external_cloud_links = None + self.secondary_circuit = secondary_circuit + + +class PrivateCloudIdentity(msrest.serialization.Model): + """Identity for the virtual machine. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar principal_id: The principal ID of private cloud identity. This property will only be + provided for a system assigned identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID associated with the private cloud. This property will only be + provided for a system assigned identity. + :vartype tenant_id: str + :param type: The type of identity used for the private cloud. The type 'SystemAssigned' refers + to an implicitly created identity. The type 'None' will remove any identities from the Private + Cloud. Possible values include: "SystemAssigned", "None". + :type type: str or ~avs_client.models.ResourceIdentityType + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + *, + type: Optional[Union[str, "ResourceIdentityType"]] = None, + **kwargs + ): + super(PrivateCloudIdentity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = type class PrivateCloudList(msrest.serialization.Model): @@ -1742,12 +2086,19 @@ class PrivateCloudUpdateProperties(msrest.serialization.Model): :type internet: str or ~avs_client.models.InternetEnum :param identity_sources: vCenter Single Sign On Identity Sources. :type identity_sources: list[~avs_client.models.IdentitySource] + :param availability: Properties describing how the cloud is distributed across availability + zones. + :type availability: ~avs_client.models.AvailabilityProperties + :param encryption: Customer managed key encryption, can be enabled or disabled. + :type encryption: ~avs_client.models.Encryption """ _attribute_map = { 'management_cluster': {'key': 'managementCluster', 'type': 'ManagementCluster'}, 'internet': {'key': 'internet', 'type': 'str'}, 'identity_sources': {'key': 'identitySources', 'type': '[IdentitySource]'}, + 'availability': {'key': 'availability', 'type': 'AvailabilityProperties'}, + 'encryption': {'key': 'encryption', 'type': 'Encryption'}, } def __init__( @@ -1756,12 +2107,16 @@ def __init__( management_cluster: Optional["ManagementCluster"] = None, internet: Optional[Union[str, "InternetEnum"]] = "Disabled", identity_sources: Optional[List["IdentitySource"]] = None, + availability: Optional["AvailabilityProperties"] = None, + encryption: Optional["Encryption"] = None, **kwargs ): super(PrivateCloudUpdateProperties, self).__init__(**kwargs) self.management_cluster = management_cluster self.internet = internet self.identity_sources = identity_sources + self.availability = availability + self.encryption = encryption class PrivateCloudProperties(PrivateCloudUpdateProperties): @@ -1778,6 +2133,11 @@ class PrivateCloudProperties(PrivateCloudUpdateProperties): :type internet: str or ~avs_client.models.InternetEnum :param identity_sources: vCenter Single Sign On Identity Sources. :type identity_sources: list[~avs_client.models.IdentitySource] + :param availability: Properties describing how the cloud is distributed across availability + zones. + :type availability: ~avs_client.models.AvailabilityProperties + :param encryption: Customer managed key encryption, can be enabled or disabled. + :type encryption: ~avs_client.models.Encryption :ivar provisioning_state: The provisioning state. Possible values include: "Succeeded", "Failed", "Cancelled", "Pending", "Building", "Deleting", "Updating". :vartype provisioning_state: str or ~avs_client.models.PrivateCloudProvisioningState @@ -1789,8 +2149,6 @@ class PrivateCloudProperties(PrivateCloudUpdateProperties): subscription as well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22. :type network_block: str - :ivar external_cloud_links: Array of cloud link IDs from other clouds that connect to this one. - :vartype external_cloud_links: list[str] :ivar management_network: Network used to access vCenter Server and NSX-T Manager. :vartype management_network: str :ivar provisioning_network: Used for virtual machine cold migration, cloning, and snapshot @@ -1808,29 +2166,35 @@ class PrivateCloudProperties(PrivateCloudUpdateProperties): :vartype vcenter_certificate_thumbprint: str :ivar nsxt_certificate_thumbprint: Thumbprint of the NSX-T Manager SSL certificate. :vartype nsxt_certificate_thumbprint: str + :ivar external_cloud_links: Array of cloud link IDs from other clouds that connect to this one. + :vartype external_cloud_links: list[str] + :param secondary_circuit: A secondary expressRoute circuit from a separate AZ. Only present in + a stretched private cloud. + :type secondary_circuit: ~avs_client.models.Circuit """ _validation = { 'provisioning_state': {'readonly': True}, 'endpoints': {'readonly': True}, 'network_block': {'required': True}, - 'external_cloud_links': {'readonly': True}, 'management_network': {'readonly': True}, 'provisioning_network': {'readonly': True}, 'vmotion_network': {'readonly': True}, 'vcenter_certificate_thumbprint': {'readonly': True}, 'nsxt_certificate_thumbprint': {'readonly': True}, + 'external_cloud_links': {'readonly': True}, } _attribute_map = { 'management_cluster': {'key': 'managementCluster', 'type': 'ManagementCluster'}, 'internet': {'key': 'internet', 'type': 'str'}, 'identity_sources': {'key': 'identitySources', 'type': '[IdentitySource]'}, + 'availability': {'key': 'availability', 'type': 'AvailabilityProperties'}, + 'encryption': {'key': 'encryption', 'type': 'Encryption'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'circuit': {'key': 'circuit', 'type': 'Circuit'}, 'endpoints': {'key': 'endpoints', 'type': 'Endpoints'}, 'network_block': {'key': 'networkBlock', 'type': 'str'}, - 'external_cloud_links': {'key': 'externalCloudLinks', 'type': '[str]'}, 'management_network': {'key': 'managementNetwork', 'type': 'str'}, 'provisioning_network': {'key': 'provisioningNetwork', 'type': 'str'}, 'vmotion_network': {'key': 'vmotionNetwork', 'type': 'str'}, @@ -1838,6 +2202,8 @@ class PrivateCloudProperties(PrivateCloudUpdateProperties): 'nsxt_password': {'key': 'nsxtPassword', 'type': 'str'}, 'vcenter_certificate_thumbprint': {'key': 'vcenterCertificateThumbprint', 'type': 'str'}, 'nsxt_certificate_thumbprint': {'key': 'nsxtCertificateThumbprint', 'type': 'str'}, + 'external_cloud_links': {'key': 'externalCloudLinks', 'type': '[str]'}, + 'secondary_circuit': {'key': 'secondaryCircuit', 'type': 'Circuit'}, } def __init__( @@ -1847,17 +2213,19 @@ def __init__( management_cluster: Optional["ManagementCluster"] = None, internet: Optional[Union[str, "InternetEnum"]] = "Disabled", identity_sources: Optional[List["IdentitySource"]] = None, + availability: Optional["AvailabilityProperties"] = None, + encryption: Optional["Encryption"] = None, circuit: Optional["Circuit"] = None, vcenter_password: Optional[str] = None, nsxt_password: Optional[str] = None, + secondary_circuit: Optional["Circuit"] = None, **kwargs ): - super(PrivateCloudProperties, self).__init__(management_cluster=management_cluster, internet=internet, identity_sources=identity_sources, **kwargs) + super(PrivateCloudProperties, self).__init__(management_cluster=management_cluster, internet=internet, identity_sources=identity_sources, availability=availability, encryption=encryption, **kwargs) self.provisioning_state = None self.circuit = circuit self.endpoints = None self.network_block = network_block - self.external_cloud_links = None self.management_network = None self.provisioning_network = None self.vmotion_network = None @@ -1865,6 +2233,8 @@ def __init__( self.nsxt_password = nsxt_password self.vcenter_certificate_thumbprint = None self.nsxt_certificate_thumbprint = None + self.external_cloud_links = None + self.secondary_circuit = secondary_circuit class PrivateCloudUpdate(msrest.serialization.Model): @@ -1872,6 +2242,8 @@ class PrivateCloudUpdate(msrest.serialization.Model): :param tags: A set of tags. Resource tags. :type tags: dict[str, str] + :param identity: The identity of the private cloud, if configured. + :type identity: ~avs_client.models.PrivateCloudIdentity :param management_cluster: The default cluster used for management. :type management_cluster: ~avs_client.models.ManagementCluster :param internet: Connectivity to internet is enabled or disabled. Possible values include: @@ -1879,29 +2251,43 @@ class PrivateCloudUpdate(msrest.serialization.Model): :type internet: str or ~avs_client.models.InternetEnum :param identity_sources: vCenter Single Sign On Identity Sources. :type identity_sources: list[~avs_client.models.IdentitySource] + :param availability: Properties describing how the cloud is distributed across availability + zones. + :type availability: ~avs_client.models.AvailabilityProperties + :param encryption: Customer managed key encryption, can be enabled or disabled. + :type encryption: ~avs_client.models.Encryption """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, + 'identity': {'key': 'identity', 'type': 'PrivateCloudIdentity'}, 'management_cluster': {'key': 'properties.managementCluster', 'type': 'ManagementCluster'}, 'internet': {'key': 'properties.internet', 'type': 'str'}, 'identity_sources': {'key': 'properties.identitySources', 'type': '[IdentitySource]'}, + 'availability': {'key': 'properties.availability', 'type': 'AvailabilityProperties'}, + 'encryption': {'key': 'properties.encryption', 'type': 'Encryption'}, } def __init__( self, *, tags: Optional[Dict[str, str]] = None, + identity: Optional["PrivateCloudIdentity"] = None, management_cluster: Optional["ManagementCluster"] = None, internet: Optional[Union[str, "InternetEnum"]] = "Disabled", identity_sources: Optional[List["IdentitySource"]] = None, + availability: Optional["AvailabilityProperties"] = None, + encryption: Optional["Encryption"] = None, **kwargs ): super(PrivateCloudUpdate, self).__init__(**kwargs) self.tags = tags + self.identity = identity self.management_cluster = management_cluster self.internet = internet self.identity_sources = identity_sources + self.availability = availability + self.encryption = encryption class ProxyResource(Resource): @@ -2549,6 +2935,230 @@ def __init__( self.available_hosts = None +class VirtualMachine(ProxyResource): + """Virtual Machine. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar display_name: Display name of the VM. + :vartype display_name: str + :ivar mo_ref_id: Virtual machine managed object reference id. + :vartype mo_ref_id: str + :ivar folder_path: Path to virtual machine's folder starting from datacenter virtual machine + folder. + :vartype folder_path: str + :ivar restrict_movement: Whether VM DRS-driven movement is restricted (enabled) or not + (disabled). Possible values include: "Enabled", "Disabled". + :vartype restrict_movement: str or ~avs_client.models.VirtualMachineRestrictMovementState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'display_name': {'readonly': True}, + 'mo_ref_id': {'readonly': True}, + 'folder_path': {'readonly': True}, + 'restrict_movement': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'mo_ref_id': {'key': 'properties.moRefId', 'type': 'str'}, + 'folder_path': {'key': 'properties.folderPath', 'type': 'str'}, + 'restrict_movement': {'key': 'properties.restrictMovement', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachine, self).__init__(**kwargs) + self.display_name = None + self.mo_ref_id = None + self.folder_path = None + self.restrict_movement = None + + +class VirtualMachineRestrictMovement(msrest.serialization.Model): + """Set VM DRS-driven movement to restricted (enabled) or not (disabled). + + :param restrict_movement: Whether VM DRS-driven movement is restricted (enabled) or not + (disabled). Possible values include: "Enabled", "Disabled". + :type restrict_movement: str or ~avs_client.models.VirtualMachineRestrictMovementState + """ + + _attribute_map = { + 'restrict_movement': {'key': 'restrictMovement', 'type': 'str'}, + } + + def __init__( + self, + *, + restrict_movement: Optional[Union[str, "VirtualMachineRestrictMovementState"]] = None, + **kwargs + ): + super(VirtualMachineRestrictMovement, self).__init__(**kwargs) + self.restrict_movement = restrict_movement + + +class VirtualMachinesList(msrest.serialization.Model): + """A list of Virtual Machines. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: The items to be displayed on the page. + :vartype value: list[~avs_client.models.VirtualMachine] + :ivar next_link: URL to get the next page if any. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[VirtualMachine]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualMachinesList, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class VmHostPlacementPolicyProperties(PlacementPolicyProperties): + """VM-Host placement policy properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :param type: Required. placement policy type.Constant filled by server. Possible values + include: "VmVm", "VmHost". + :type type: str or ~avs_client.models.PlacementPolicyType + :param state: Whether the placement policy is enabled or disabled. Possible values include: + "Enabled", "Disabled". + :type state: str or ~avs_client.models.PlacementPolicyState + :param display_name: Display name of the placement policy. + :type display_name: str + :ivar provisioning_state: The provisioning state. Possible values include: "Succeeded", + "Failed", "Building", "Deleting", "Updating". + :vartype provisioning_state: str or ~avs_client.models.PlacementPolicyProvisioningState + :param vm_members: Required. Virtual machine members list. + :type vm_members: list[str] + :param host_members: Required. Host members list. + :type host_members: list[str] + :param affinity_type: Required. placement policy affinity type. Possible values include: + "Affinity", "AntiAffinity". + :type affinity_type: str or ~avs_client.models.AffinityType + """ + + _validation = { + 'type': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'vm_members': {'required': True}, + 'host_members': {'required': True}, + 'affinity_type': {'required': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'vm_members': {'key': 'vmMembers', 'type': '[str]'}, + 'host_members': {'key': 'hostMembers', 'type': '[str]'}, + 'affinity_type': {'key': 'affinityType', 'type': 'str'}, + } + + def __init__( + self, + *, + vm_members: List[str], + host_members: List[str], + affinity_type: Union[str, "AffinityType"], + state: Optional[Union[str, "PlacementPolicyState"]] = None, + display_name: Optional[str] = None, + **kwargs + ): + super(VmHostPlacementPolicyProperties, self).__init__(state=state, display_name=display_name, **kwargs) + self.type = 'VmHost' # type: str + self.vm_members = vm_members + self.host_members = host_members + self.affinity_type = affinity_type + + +class VmPlacementPolicyProperties(PlacementPolicyProperties): + """VM-VM placement policy properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :param type: Required. placement policy type.Constant filled by server. Possible values + include: "VmVm", "VmHost". + :type type: str or ~avs_client.models.PlacementPolicyType + :param state: Whether the placement policy is enabled or disabled. Possible values include: + "Enabled", "Disabled". + :type state: str or ~avs_client.models.PlacementPolicyState + :param display_name: Display name of the placement policy. + :type display_name: str + :ivar provisioning_state: The provisioning state. Possible values include: "Succeeded", + "Failed", "Building", "Deleting", "Updating". + :vartype provisioning_state: str or ~avs_client.models.PlacementPolicyProvisioningState + :param vm_members: Required. Virtual machine members list. + :type vm_members: list[str] + :param affinity_type: Required. placement policy affinity type. Possible values include: + "Affinity", "AntiAffinity". + :type affinity_type: str or ~avs_client.models.AffinityType + """ + + _validation = { + 'type': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'vm_members': {'required': True}, + 'affinity_type': {'required': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'vm_members': {'key': 'vmMembers', 'type': '[str]'}, + 'affinity_type': {'key': 'affinityType', 'type': 'str'}, + } + + def __init__( + self, + *, + vm_members: List[str], + affinity_type: Union[str, "AffinityType"], + state: Optional[Union[str, "PlacementPolicyState"]] = None, + display_name: Optional[str] = None, + **kwargs + ): + super(VmPlacementPolicyProperties, self).__init__(state=state, display_name=display_name, **kwargs) + self.type = 'VmVm' # type: str + self.vm_members = vm_members + self.affinity_type = affinity_type + + class WorkloadNetworkDhcp(ProxyResource): """NSX DHCP. @@ -3073,14 +3683,14 @@ class WorkloadNetworkPortMirroring(ProxyResource): :vartype type: str :param display_name: Display name of the port mirroring profile. :type display_name: str - :param direction: Direction of port mirroring profile. Possible values include: "INGRESS, - EGRESS, BIDIRECTIONAL". + :param direction: Direction of port mirroring profile. Possible values include: "INGRESS", + "EGRESS", "BIDIRECTIONAL". :type direction: str or ~avs_client.models.PortMirroringDirectionEnum :param source: Source VM Group. :type source: str :param destination: Destination VM Group. :type destination: str - :ivar status: Port Mirroring Status. Possible values include: "SUCCESS, FAILURE". + :ivar status: Port Mirroring Status. Possible values include: "SUCCESS", "FAILURE". :vartype status: str or ~avs_client.models.PortMirroringStatusEnum :ivar provisioning_state: The provisioning state. Possible values include: "Succeeded", "Failed", "Building", "Deleting", "Updating". @@ -3264,7 +3874,7 @@ class WorkloadNetworkSegment(ProxyResource): :type subnet: ~avs_client.models.WorkloadNetworkSegmentSubnet :ivar port_vif: Port Vif which segment is associated with. :vartype port_vif: list[~avs_client.models.WorkloadNetworkSegmentPortVif] - :ivar status: Segment status. Possible values include: "SUCCESS, FAILURE". + :ivar status: Segment status. Possible values include: "SUCCESS", "FAILURE". :vartype status: str or ~avs_client.models.SegmentStatusEnum :ivar provisioning_state: The provisioning state. Possible values include: "Succeeded", "Failed", "Building", "Deleting", "Updating". @@ -3404,7 +4014,7 @@ class WorkloadNetworkVirtualMachine(ProxyResource): :vartype type: str :param display_name: Display name of the VM. :type display_name: str - :ivar vm_type: Virtual machine type. Possible values include: "REGULAR, EDGE, SERVICE". + :ivar vm_type: Virtual machine type. Possible values include: "REGULAR", "EDGE", "SERVICE". :vartype vm_type: str or ~avs_client.models.VMTypeEnum """ @@ -3479,7 +4089,7 @@ class WorkloadNetworkVMGroup(ProxyResource): :type display_name: str :param members: Virtual machine members of this group. :type members: list[str] - :ivar status: VM Group status. Possible values include: "SUCCESS, FAILURE". + :ivar status: VM Group status. Possible values include: "SUCCESS", "FAILURE". :vartype status: str or ~avs_client.models.VMGroupStatusEnum :ivar provisioning_state: The provisioning state. Possible values include: "Succeeded", "Failed", "Building", "Deleting", "Updating". diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/__init__.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/__init__.py index 1e3c208eb0f..d6090880195 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/__init__.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/__init__.py @@ -17,6 +17,8 @@ from ._workload_networks_operations import WorkloadNetworksOperations from ._cloud_links_operations import CloudLinksOperations from ._addons_operations import AddonsOperations +from ._virtual_machines_operations import VirtualMachinesOperations +from ._placement_policies_operations import PlacementPoliciesOperations from ._script_packages_operations import ScriptPackagesOperations from ._script_cmdlets_operations import ScriptCmdletsOperations from ._script_executions_operations import ScriptExecutionsOperations @@ -33,6 +35,8 @@ 'WorkloadNetworksOperations', 'CloudLinksOperations', 'AddonsOperations', + 'VirtualMachinesOperations', + 'PlacementPoliciesOperations', 'ScriptPackagesOperations', 'ScriptCmdletsOperations', 'ScriptExecutionsOperations', diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_addons_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_addons_operations.py index 30cec0806fc..0f85357fa76 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_addons_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_addons_operations.py @@ -72,7 +72,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -85,7 +85,7 @@ def prepare_request(next_link=None): 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), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -152,14 +152,14 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'addonName': self._serialize.url("addon_name", addon_name, 'str'), } @@ -205,7 +205,7 @@ def _create_or_update_initial( error_map.update(kwargs.pop('error_map', {})) _addon = _models.Addon(properties=properties) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -213,7 +213,7 @@ def _create_or_update_initial( url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'addonName': self._serialize.url("addon_name", addon_name, 'str'), } @@ -311,7 +311,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'addonName': self._serialize.url("addon_name", addon_name, 'str'), } @@ -343,14 +343,14 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'addonName': self._serialize.url("addon_name", addon_name, 'str'), } @@ -430,7 +430,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'addonName': self._serialize.url("addon_name", addon_name, 'str'), } diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_authorizations_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_authorizations_operations.py index cc65b642af1..467887b5a3e 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_authorizations_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_authorizations_operations.py @@ -72,7 +72,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -85,7 +85,7 @@ def prepare_request(next_link=None): 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), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -152,14 +152,14 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'authorizationName': self._serialize.url("authorization_name", authorization_name, 'str'), } @@ -194,6 +194,7 @@ def _create_or_update_initial( resource_group_name, # type: str private_cloud_name, # type: str authorization_name, # type: str + express_route_id=None, # type: Optional[str] **kwargs # type: Any ): # type: (...) -> "_models.ExpressRouteAuthorization" @@ -203,8 +204,8 @@ def _create_or_update_initial( } error_map.update(kwargs.pop('error_map', {})) - _authorization = _models.ExpressRouteAuthorization() - api_version = "2021-06-01" + _authorization = _models.ExpressRouteAuthorization(express_route_id=express_route_id) + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -212,7 +213,7 @@ def _create_or_update_initial( url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'authorizationName': self._serialize.url("authorization_name", authorization_name, 'str'), } @@ -255,6 +256,7 @@ def begin_create_or_update( resource_group_name, # type: str private_cloud_name, # type: str authorization_name, # type: str + express_route_id=None, # type: Optional[str] **kwargs # type: Any ): # type: (...) -> LROPoller["_models.ExpressRouteAuthorization"] @@ -268,6 +270,8 @@ def begin_create_or_update( :type private_cloud_name: str :param authorization_name: Name of the ExpressRoute Circuit Authorization in the private cloud. :type authorization_name: str + :param express_route_id: The ID of the ExpressRoute Circuit. + :type express_route_id: 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. @@ -290,6 +294,7 @@ def begin_create_or_update( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, authorization_name=authorization_name, + express_route_id=express_route_id, cls=lambda x,y,z: x, **kwargs ) @@ -306,7 +311,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'authorizationName': self._serialize.url("authorization_name", authorization_name, 'str'), } @@ -338,14 +343,14 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'authorizationName': self._serialize.url("authorization_name", authorization_name, 'str'), } @@ -425,7 +430,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'authorizationName': self._serialize.url("authorization_name", authorization_name, 'str'), } diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_cloud_links_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_cloud_links_operations.py index da121ac6ebb..aa8f9f1cc93 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_cloud_links_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_cloud_links_operations.py @@ -72,7 +72,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -85,7 +85,7 @@ def prepare_request(next_link=None): 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), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -152,14 +152,14 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_name, 'str'), } @@ -205,7 +205,7 @@ def _create_or_update_initial( error_map.update(kwargs.pop('error_map', {})) _cloud_link = _models.CloudLink(linked_cloud=linked_cloud) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -213,7 +213,7 @@ def _create_or_update_initial( url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_name, 'str'), } @@ -311,7 +311,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_name, 'str'), } @@ -343,14 +343,14 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_name, 'str'), } @@ -430,7 +430,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'cloudLinkName': self._serialize.url("cloud_link_name", cloud_link_name, 'str'), } diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_clusters_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_clusters_operations.py index 503dbc52d10..e960a5ef552 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_clusters_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_clusters_operations.py @@ -20,7 +20,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Generic, Iterable, List, Optional, TypeVar, Union T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -72,7 +72,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -85,7 +85,7 @@ def prepare_request(next_link=None): 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), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -152,14 +152,14 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), } @@ -194,8 +194,7 @@ def _create_or_update_initial( resource_group_name, # type: str private_cloud_name, # type: str cluster_name, # type: str - sku, # type: "_models.Sku" - cluster_size=None, # type: Optional[int] + cluster, # type: "_models.Cluster" **kwargs # type: Any ): # type: (...) -> "_models.Cluster" @@ -204,9 +203,7 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - _cluster = _models.Cluster(sku=sku, cluster_size=cluster_size) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -214,7 +211,7 @@ def _create_or_update_initial( url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), } @@ -230,7 +227,7 @@ def _create_or_update_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_cluster, 'Cluster') + body_content = self._serialize.body(cluster, 'Cluster') 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) @@ -257,8 +254,7 @@ def begin_create_or_update( resource_group_name, # type: str private_cloud_name, # type: str cluster_name, # type: str - sku, # type: "_models.Sku" - cluster_size=None, # type: Optional[int] + cluster, # type: "_models.Cluster" **kwargs # type: Any ): # type: (...) -> LROPoller["_models.Cluster"] @@ -272,10 +268,8 @@ def begin_create_or_update( :type private_cloud_name: str :param cluster_name: Name of the cluster in the private cloud. :type cluster_name: str - :param sku: The cluster SKU. - :type sku: ~avs_client.models.Sku - :param cluster_size: The cluster size. - :type cluster_size: int + :param cluster: A cluster in the private cloud. + :type cluster: ~avs_client.models.Cluster :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. @@ -298,8 +292,7 @@ def begin_create_or_update( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, cluster_name=cluster_name, - sku=sku, - cluster_size=cluster_size, + cluster=cluster, cls=lambda x,y,z: x, **kwargs ) @@ -316,7 +309,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), } @@ -341,6 +334,7 @@ def _update_initial( private_cloud_name, # type: str cluster_name, # type: str cluster_size=None, # type: Optional[int] + hosts=None, # type: Optional[List[str]] **kwargs # type: Any ): # type: (...) -> "_models.Cluster" @@ -350,8 +344,8 @@ def _update_initial( } error_map.update(kwargs.pop('error_map', {})) - _cluster_update = _models.ClusterUpdate(cluster_size=cluster_size) - api_version = "2021-06-01" + _cluster_update = _models.ClusterUpdate(cluster_size=cluster_size, hosts=hosts) + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -359,7 +353,7 @@ def _update_initial( url = self._update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), } @@ -403,6 +397,7 @@ def begin_update( private_cloud_name, # type: str cluster_name, # type: str cluster_size=None, # type: Optional[int] + hosts=None, # type: Optional[List[str]] **kwargs # type: Any ): # type: (...) -> LROPoller["_models.Cluster"] @@ -418,6 +413,8 @@ def begin_update( :type cluster_name: str :param cluster_size: The cluster size. :type cluster_size: int + :param hosts: The hosts. + :type hosts: list[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. @@ -441,6 +438,7 @@ def begin_update( private_cloud_name=private_cloud_name, cluster_name=cluster_name, cluster_size=cluster_size, + hosts=hosts, cls=lambda x,y,z: x, **kwargs ) @@ -457,7 +455,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), } @@ -489,14 +487,14 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), } @@ -576,7 +574,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), } diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_datastores_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_datastores_operations.py index 0a54cf9cfdc..78b07681147 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_datastores_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_datastores_operations.py @@ -75,7 +75,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -88,7 +88,7 @@ def prepare_request(next_link=None): 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), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), } @@ -159,14 +159,14 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), 'datastoreName': self._serialize.url("datastore_name", datastore_name, 'str'), @@ -215,7 +215,7 @@ def _create_or_update_initial( error_map.update(kwargs.pop('error_map', {})) _datastore = _models.Datastore(net_app_volume=net_app_volume, disk_pool_volume=disk_pool_volume) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -223,7 +223,7 @@ def _create_or_update_initial( url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), 'datastoreName': self._serialize.url("datastore_name", datastore_name, 'str'), @@ -330,7 +330,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), 'datastoreName': self._serialize.url("datastore_name", datastore_name, 'str'), @@ -364,14 +364,14 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), 'datastoreName': self._serialize.url("datastore_name", datastore_name, 'str'), @@ -456,7 +456,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), 'datastoreName': self._serialize.url("datastore_name", datastore_name, 'str'), diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_global_reach_connections_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_global_reach_connections_operations.py index 9a7d8d99f16..f2ed771c4c4 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_global_reach_connections_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_global_reach_connections_operations.py @@ -72,7 +72,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -85,7 +85,7 @@ def prepare_request(next_link=None): 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), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -152,14 +152,14 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'globalReachConnectionName': self._serialize.url("global_reach_connection_name", global_reach_connection_name, 'str'), } @@ -194,8 +194,7 @@ def _create_or_update_initial( resource_group_name, # type: str private_cloud_name, # type: str global_reach_connection_name, # type: str - authorization_key=None, # type: Optional[str] - peer_express_route_circuit=None, # type: Optional[str] + global_reach_connection, # type: "_models.GlobalReachConnection" **kwargs # type: Any ): # type: (...) -> "_models.GlobalReachConnection" @@ -204,9 +203,7 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - _global_reach_connection = _models.GlobalReachConnection(authorization_key=authorization_key, peer_express_route_circuit=peer_express_route_circuit) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -214,7 +211,7 @@ def _create_or_update_initial( url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'globalReachConnectionName': self._serialize.url("global_reach_connection_name", global_reach_connection_name, 'str'), } @@ -230,7 +227,7 @@ def _create_or_update_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_global_reach_connection, 'GlobalReachConnection') + body_content = self._serialize.body(global_reach_connection, 'GlobalReachConnection') 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) @@ -257,8 +254,7 @@ def begin_create_or_update( resource_group_name, # type: str private_cloud_name, # type: str global_reach_connection_name, # type: str - authorization_key=None, # type: Optional[str] - peer_express_route_circuit=None, # type: Optional[str] + global_reach_connection, # type: "_models.GlobalReachConnection" **kwargs # type: Any ): # type: (...) -> LROPoller["_models.GlobalReachConnection"] @@ -272,12 +268,8 @@ def begin_create_or_update( :type private_cloud_name: str :param global_reach_connection_name: Name of the global reach connection in the private cloud. :type global_reach_connection_name: str - :param authorization_key: Authorization key from the peer express route used for the global - reach connection. - :type authorization_key: str - :param peer_express_route_circuit: Identifier of the ExpressRoute Circuit to peer with in the - global reach connection. - :type peer_express_route_circuit: str + :param global_reach_connection: A global reach connection in the private cloud. + :type global_reach_connection: ~avs_client.models.GlobalReachConnection :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. @@ -300,8 +292,7 @@ def begin_create_or_update( resource_group_name=resource_group_name, private_cloud_name=private_cloud_name, global_reach_connection_name=global_reach_connection_name, - authorization_key=authorization_key, - peer_express_route_circuit=peer_express_route_circuit, + global_reach_connection=global_reach_connection, cls=lambda x,y,z: x, **kwargs ) @@ -318,7 +309,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'globalReachConnectionName': self._serialize.url("global_reach_connection_name", global_reach_connection_name, 'str'), } @@ -350,14 +341,14 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'globalReachConnectionName': self._serialize.url("global_reach_connection_name", global_reach_connection_name, 'str'), } @@ -437,7 +428,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'globalReachConnectionName': self._serialize.url("global_reach_connection_name", global_reach_connection_name, 'str'), } diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_hcx_enterprise_sites_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_hcx_enterprise_sites_operations.py index edf72a1838d..f7760a2b09d 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_hcx_enterprise_sites_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_hcx_enterprise_sites_operations.py @@ -70,7 +70,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -83,7 +83,7 @@ def prepare_request(next_link=None): 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), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -150,14 +150,14 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'hcxEnterpriseSiteName': self._serialize.url("hcx_enterprise_site_name", hcx_enterprise_site_name, 'str'), } @@ -217,7 +217,7 @@ def create_or_update( error_map.update(kwargs.pop('error_map', {})) _hcx_enterprise_site = _models.HcxEnterpriseSite() - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -225,7 +225,7 @@ def create_or_update( url = self.create_or_update.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'hcxEnterpriseSiteName': self._serialize.url("hcx_enterprise_site_name", hcx_enterprise_site_name, 'str'), } @@ -291,14 +291,14 @@ def delete( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.delete.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'hcxEnterpriseSiteName': self._serialize.url("hcx_enterprise_site_name", hcx_enterprise_site_name, 'str'), } diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_locations_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_locations_operations.py index 4afc0da377f..eb7bc2ab16a 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_locations_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_locations_operations.py @@ -64,7 +64,7 @@ def check_trial_availability( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL @@ -119,7 +119,7 @@ def check_quota_availability( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_operations.py index 40c16c04d6e..45cc4156e82 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_operations.py @@ -62,7 +62,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_placement_policies_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_placement_policies_operations.py new file mode 100644 index 00000000000..df2473a5f34 --- /dev/null +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_placement_policies_operations.py @@ -0,0 +1,622 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class PlacementPoliciesOperations(object): + """PlacementPoliciesOperations 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: ~avs_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + cluster_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.PlacementPoliciesList"] + """List placement policies in a private cloud cluster. + + List placement policies in a private cloud cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param cluster_name: Name of the cluster in the private cloud. + :type cluster_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either PlacementPoliciesList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~avs_client.models.PlacementPoliciesList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.PlacementPoliciesList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-12-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('PlacementPoliciesList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + 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}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies'} # type: ignore + + def get( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + cluster_name, # type: str + placement_policy_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.PlacementPolicy" + """Get a placement policy by name in a private cloud cluster. + + Get a placement policy by name in a private cloud cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param cluster_name: Name of the cluster in the private cloud. + :type cluster_name: str + :param placement_policy_name: Name of the VMware vSphere Distributed Resource Scheduler (DRS) + placement policy. + :type placement_policy_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: PlacementPolicy, or the result of cls(response) + :rtype: ~avs_client.models.PlacementPolicy + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.PlacementPolicy"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-12-01" + 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), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'placementPolicyName': self._serialize.url("placement_policy_name", placement_policy_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize('PlacementPolicy', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}'} # type: ignore + + def _create_or_update_initial( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + cluster_name, # type: str + placement_policy_name, # type: str + properties=None, # type: Optional["_models.PlacementPolicyProperties"] + **kwargs # type: Any + ): + # type: (...) -> "_models.PlacementPolicy" + cls = kwargs.pop('cls', None) # type: ClsType["_models.PlacementPolicy"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + _placement_policy = _models.PlacementPolicy(properties=properties) + api_version = "2021-12-01" + 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), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'placementPolicyName': self._serialize.url("placement_policy_name", placement_policy_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(_placement_policy, 'PlacementPolicy') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('PlacementPolicy', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('PlacementPolicy', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}'} # type: ignore + + def begin_create_or_update( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + cluster_name, # type: str + placement_policy_name, # type: str + properties=None, # type: Optional["_models.PlacementPolicyProperties"] + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.PlacementPolicy"] + """Create or update a placement policy in a private cloud cluster. + + Create or update a placement policy in a private cloud cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param cluster_name: Name of the cluster in the private cloud. + :type cluster_name: str + :param placement_policy_name: Name of the VMware vSphere Distributed Resource Scheduler (DRS) + placement policy. + :type placement_policy_name: str + :param properties: placement policy properties. + :type properties: ~avs_client.models.PlacementPolicyProperties + :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 PlacementPolicy or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~avs_client.models.PlacementPolicy] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PlacementPolicy"] + 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, + private_cloud_name=private_cloud_name, + cluster_name=cluster_name, + placement_policy_name=placement_policy_name, + properties=properties, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('PlacementPolicy', 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), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'placementPolicyName': self._serialize.url("placement_policy_name", placement_policy_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}'} # type: ignore + + def _update_initial( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + cluster_name, # type: str + placement_policy_name, # type: str + placement_policy_update, # type: "_models.PlacementPolicyUpdate" + **kwargs # type: Any + ): + # type: (...) -> "_models.PlacementPolicy" + cls = kwargs.pop('cls', None) # type: ClsType["_models.PlacementPolicy"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-12-01" + 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), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'placementPolicyName': self._serialize.url("placement_policy_name", placement_policy_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(placement_policy_update, 'PlacementPolicyUpdate') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + 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('PlacementPolicy', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('PlacementPolicy', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}'} # type: ignore + + def begin_update( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + cluster_name, # type: str + placement_policy_name, # type: str + placement_policy_update, # type: "_models.PlacementPolicyUpdate" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.PlacementPolicy"] + """Update a placement policy in a private cloud cluster. + + Update a placement policy in a private cloud cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param cluster_name: Name of the cluster in the private cloud. + :type cluster_name: str + :param placement_policy_name: Name of the VMware vSphere Distributed Resource Scheduler (DRS) + placement policy. + :type placement_policy_name: str + :param placement_policy_update: The placement policy properties that may be updated. + :type placement_policy_update: ~avs_client.models.PlacementPolicyUpdate + :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 PlacementPolicy or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~avs_client.models.PlacementPolicy] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PlacementPolicy"] + 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, + private_cloud_name=private_cloud_name, + cluster_name=cluster_name, + placement_policy_name=placement_policy_name, + placement_policy_update=placement_policy_update, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('PlacementPolicy', 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), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'placementPolicyName': self._serialize.url("placement_policy_name", placement_policy_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + cluster_name, # type: str + placement_policy_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-12-01" + 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), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'placementPolicyName': self._serialize.url("placement_policy_name", placement_policy_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + cluster_name, # type: str + placement_policy_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Delete a placement policy in a private cloud cluster. + + Delete a placement policy in a private cloud cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param cluster_name: Name of the cluster in the private cloud. + :type cluster_name: str + :param placement_policy_name: Name of the VMware vSphere Distributed Resource Scheduler (DRS) + placement policy. + :type placement_policy_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + private_cloud_name=private_cloud_name, + cluster_name=cluster_name, + placement_policy_name=placement_policy_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'placementPolicyName': self._serialize.url("placement_policy_name", placement_policy_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}'} # type: ignore diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_private_clouds_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_private_clouds_operations.py index c585b999ec1..0569be7701a 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_private_clouds_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_private_clouds_operations.py @@ -69,7 +69,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -82,7 +82,7 @@ def prepare_request(next_link=None): 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), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters @@ -139,7 +139,7 @@ def list_in_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -214,14 +214,14 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -263,7 +263,7 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -271,7 +271,7 @@ def _create_or_update_initial( url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -364,7 +364,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -395,7 +395,7 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -403,7 +403,7 @@ def _update_initial( url = self._update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -496,7 +496,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -526,14 +526,14 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -608,7 +608,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -638,14 +638,14 @@ def _rotate_vcenter_password_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._rotate_vcenter_password_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -720,7 +720,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -750,14 +750,14 @@ def _rotate_nsxt_password_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._rotate_nsxt_password_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -832,7 +832,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -875,14 +875,14 @@ def list_admin_credentials( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.list_admin_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\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_cmdlets_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_cmdlets_operations.py index 1659acc8a58..134225136fd 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_cmdlets_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_cmdlets_operations.py @@ -53,8 +53,8 @@ def list( **kwargs # type: Any ): # type: (...) -> Iterable["_models.ScriptCmdletsList"] - """Return script cmdlet resources available for a private cloud to create a script execution - resource on their Private Cloud. + """List script cmdlet resources available for a private cloud to create a script execution + resource on a private cloud. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -72,7 +72,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -85,7 +85,7 @@ def prepare_request(next_link=None): 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), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'scriptPackageName': self._serialize.url("script_package_name", script_package_name, 'str'), } @@ -155,14 +155,14 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'scriptPackageName': self._serialize.url("script_package_name", script_package_name, 'str'), 'scriptCmdletName': self._serialize.url("script_cmdlet_name", script_cmdlet_name, 'str'), diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_executions_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_executions_operations.py index 2b7a50e39ea..23ba8bc400b 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_executions_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_executions_operations.py @@ -54,9 +54,9 @@ def list( **kwargs # type: Any ): # type: (...) -> Iterable["_models.ScriptExecutionsList"] - """Get an script execution resource by name in a private cloud. + """List script executions in a private cloud. - Get an script execution resource by name in a private cloud. + List script executions in a private cloud. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -72,7 +72,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -85,7 +85,7 @@ def prepare_request(next_link=None): 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), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -132,9 +132,9 @@ def get( **kwargs # type: Any ): # type: (...) -> "_models.ScriptExecution" - """Get an script execution resource by name in a private cloud. + """Get an script execution by name in a private cloud. - Get an script execution resource by name in a private cloud. + Get an script execution by name in a private cloud. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -152,14 +152,14 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_name, 'str'), } @@ -203,7 +203,7 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -211,7 +211,7 @@ def _create_or_update_initial( url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_name, 'str'), } @@ -258,9 +258,9 @@ def begin_create_or_update( **kwargs # type: Any ): # type: (...) -> LROPoller["_models.ScriptExecution"] - """Create or update a script execution resource in a private cloud. + """Create or update a script execution in a private cloud. - Create or update a script execution resource in a private cloud. + Create or update a script execution in a private cloud. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -309,7 +309,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_name, 'str'), } @@ -341,14 +341,14 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_name, 'str'), } @@ -428,7 +428,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_name, 'str'), } @@ -477,7 +477,7 @@ def get_execution_logs( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -485,7 +485,7 @@ def get_execution_logs( url = self.get_execution_logs.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'scriptExecutionName': self._serialize.url("script_execution_name", script_execution_name, 'str'), } diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_packages_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_packages_operations.py index ae78334d8fa..299e8e7089e 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_packages_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_script_packages_operations.py @@ -52,7 +52,7 @@ def list( **kwargs # type: Any ): # type: (...) -> Iterable["_models.ScriptPackagesList"] - """Return script packages available for a private cloud to run on their Private Cloud. + """List script packages available to run on the private cloud. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -68,7 +68,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -81,7 +81,7 @@ def prepare_request(next_link=None): 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), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -128,7 +128,7 @@ def get( **kwargs # type: Any ): # type: (...) -> "_models.ScriptPackage" - """Return script package available to run on an Private Cloud. + """Get a script package available to run on a private cloud. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -146,14 +146,14 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'scriptPackageName': self._serialize.url("script_package_name", script_package_name, 'str'), } diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_virtual_machines_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_virtual_machines_operations.py new file mode 100644 index 00000000000..508d0657a23 --- /dev/null +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_virtual_machines_operations.py @@ -0,0 +1,337 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class VirtualMachinesOperations(object): + """VirtualMachinesOperations 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: ~avs_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + cluster_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.VirtualMachinesList"] + """List of virtual machines in a private cloud cluster. + + List of virtual machines in a private cloud cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param cluster_name: Name of the cluster in the private cloud. + :type cluster_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either VirtualMachinesList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~avs_client.models.VirtualMachinesList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachinesList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-12-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('VirtualMachinesList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + 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}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines'} # type: ignore + + def get( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + cluster_name, # type: str + virtual_machine_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.VirtualMachine" + """Get a virtual machine by id in a private cloud cluster. + + Get a virtual machine by id in a private cloud cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param cluster_name: Name of the cluster in the private cloud. + :type cluster_name: str + :param virtual_machine_id: Virtual Machine identifier. + :type virtual_machine_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: VirtualMachine, or the result of cls(response) + :rtype: ~avs_client.models.VirtualMachine + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualMachine"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-12-01" + 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), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'virtualMachineId': self._serialize.url("virtual_machine_id", virtual_machine_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize('VirtualMachine', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}'} # type: ignore + + def _restrict_movement_initial( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + cluster_name, # type: str + virtual_machine_id, # type: str + restrict_movement=None, # type: Optional[Union[str, "_models.VirtualMachineRestrictMovementState"]] + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + + _restrict_movement = _models.VirtualMachineRestrictMovement(restrict_movement=restrict_movement) + api_version = "2021-12-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._restrict_movement_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), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'virtualMachineId': self._serialize.url("virtual_machine_id", virtual_machine_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # 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(_restrict_movement, 'VirtualMachineRestrictMovement') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [202]: + 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, {}) + + _restrict_movement_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}/restrictMovement'} # type: ignore + + def begin_restrict_movement( + self, + resource_group_name, # type: str + private_cloud_name, # type: str + cluster_name, # type: str + virtual_machine_id, # type: str + restrict_movement=None, # type: Optional[Union[str, "_models.VirtualMachineRestrictMovementState"]] + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Enable or disable DRS-driven VM movement restriction. + + Enable or disable DRS-driven VM movement restriction. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param private_cloud_name: Name of the private cloud. + :type private_cloud_name: str + :param cluster_name: Name of the cluster in the private cloud. + :type cluster_name: str + :param virtual_machine_id: Virtual Machine identifier. + :type virtual_machine_id: str + :param restrict_movement: Whether VM DRS-driven movement is restricted (enabled) or not + (disabled). + :type restrict_movement: str or ~avs_client.models.VirtualMachineRestrictMovementState + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._restrict_movement_initial( + resource_group_name=resource_group_name, + private_cloud_name=private_cloud_name, + cluster_name=cluster_name, + virtual_machine_id=virtual_machine_id, + restrict_movement=restrict_movement, + 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), + 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'virtualMachineId': self._serialize.url("virtual_machine_id", virtual_machine_id, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_restrict_movement.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}/restrictMovement'} # type: ignore diff --git a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_workload_networks_operations.py b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_workload_networks_operations.py index 5a94175b75e..b0989117ea4 100644 --- a/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_workload_networks_operations.py +++ b/src/vmware/azext_vmware/vendored_sdks/avs_client/operations/_workload_networks_operations.py @@ -72,7 +72,7 @@ def list_segments( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -85,7 +85,7 @@ def prepare_request(next_link=None): url = self.list_segments.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -152,14 +152,14 @@ def get_segment( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get_segment.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'segmentId': self._serialize.url("segment_id", segment_id, 'str'), } @@ -203,7 +203,7 @@ def _create_segments_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -211,7 +211,7 @@ def _create_segments_initial( url = self._create_segments_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'segmentId': self._serialize.url("segment_id", segment_id, 'str'), } @@ -309,7 +309,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'segmentId': self._serialize.url("segment_id", segment_id, 'str'), } @@ -342,7 +342,7 @@ def _update_segments_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -350,7 +350,7 @@ def _update_segments_initial( url = self._update_segments_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'segmentId': self._serialize.url("segment_id", segment_id, 'str'), } @@ -446,7 +446,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'segmentId': self._serialize.url("segment_id", segment_id, 'str'), } @@ -478,14 +478,14 @@ def _delete_segment_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_segment_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'segmentId': self._serialize.url("segment_id", segment_id, 'str'), } @@ -565,7 +565,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'segmentId': self._serialize.url("segment_id", segment_id, 'str'), } @@ -609,7 +609,7 @@ def list_dhcp( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -622,7 +622,7 @@ def prepare_request(next_link=None): url = self.list_dhcp.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -689,14 +689,14 @@ def get_dhcp( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get_dhcp.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'dhcpId': self._serialize.url("dhcp_id", dhcp_id, 'str'), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -742,7 +742,7 @@ def _create_dhcp_initial( error_map.update(kwargs.pop('error_map', {})) _workload_network_dhcp = _models.WorkloadNetworkDhcp(properties=properties) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -750,7 +750,7 @@ def _create_dhcp_initial( url = self._create_dhcp_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dhcpId': self._serialize.url("dhcp_id", dhcp_id, 'str'), } @@ -848,7 +848,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dhcpId': self._serialize.url("dhcp_id", dhcp_id, 'str'), } @@ -883,7 +883,7 @@ def _update_dhcp_initial( error_map.update(kwargs.pop('error_map', {})) _workload_network_dhcp = _models.WorkloadNetworkDhcp(properties=properties) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -891,7 +891,7 @@ def _update_dhcp_initial( url = self._update_dhcp_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dhcpId': self._serialize.url("dhcp_id", dhcp_id, 'str'), } @@ -987,7 +987,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dhcpId': self._serialize.url("dhcp_id", dhcp_id, 'str'), } @@ -1019,14 +1019,14 @@ def _delete_dhcp_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_dhcp_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dhcpId': self._serialize.url("dhcp_id", dhcp_id, 'str'), } @@ -1106,7 +1106,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dhcpId': self._serialize.url("dhcp_id", dhcp_id, 'str'), } @@ -1150,7 +1150,7 @@ def list_gateways( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -1163,7 +1163,7 @@ def prepare_request(next_link=None): url = self.list_gateways.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -1230,14 +1230,14 @@ def get_gateway( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get_gateway.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'gatewayId': self._serialize.url("gateway_id", gateway_id, 'str'), } @@ -1292,7 +1292,7 @@ def list_port_mirroring( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -1305,7 +1305,7 @@ def prepare_request(next_link=None): url = self.list_port_mirroring.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -1373,14 +1373,14 @@ def get_port_mirroring( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get_port_mirroring.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'portMirroringId': self._serialize.url("port_mirroring_id", port_mirroring_id, 'str'), } @@ -1424,7 +1424,7 @@ def _create_port_mirroring_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1432,7 +1432,7 @@ def _create_port_mirroring_initial( url = self._create_port_mirroring_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'portMirroringId': self._serialize.url("port_mirroring_id", port_mirroring_id, 'str'), } @@ -1531,7 +1531,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'portMirroringId': self._serialize.url("port_mirroring_id", port_mirroring_id, 'str'), } @@ -1564,7 +1564,7 @@ def _update_port_mirroring_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1572,7 +1572,7 @@ def _update_port_mirroring_initial( url = self._update_port_mirroring_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'portMirroringId': self._serialize.url("port_mirroring_id", port_mirroring_id, 'str'), } @@ -1669,7 +1669,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'portMirroringId': self._serialize.url("port_mirroring_id", port_mirroring_id, 'str'), } @@ -1701,14 +1701,14 @@ def _delete_port_mirroring_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_port_mirroring_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'portMirroringId': self._serialize.url("port_mirroring_id", port_mirroring_id, 'str'), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -1789,7 +1789,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'portMirroringId': self._serialize.url("port_mirroring_id", port_mirroring_id, 'str'), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -1833,7 +1833,7 @@ def list_vm_groups( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -1846,7 +1846,7 @@ def prepare_request(next_link=None): url = self.list_vm_groups.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -1913,14 +1913,14 @@ def get_vm_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get_vm_group.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'vmGroupId': self._serialize.url("vm_group_id", vm_group_id, 'str'), } @@ -1964,7 +1964,7 @@ def _create_vm_group_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1972,7 +1972,7 @@ def _create_vm_group_initial( url = self._create_vm_group_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'vmGroupId': self._serialize.url("vm_group_id", vm_group_id, 'str'), } @@ -2070,7 +2070,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'vmGroupId': self._serialize.url("vm_group_id", vm_group_id, 'str'), } @@ -2103,7 +2103,7 @@ def _update_vm_group_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -2111,7 +2111,7 @@ def _update_vm_group_initial( url = self._update_vm_group_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'vmGroupId': self._serialize.url("vm_group_id", vm_group_id, 'str'), } @@ -2207,7 +2207,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'vmGroupId': self._serialize.url("vm_group_id", vm_group_id, 'str'), } @@ -2239,14 +2239,14 @@ def _delete_vm_group_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_vm_group_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'vmGroupId': self._serialize.url("vm_group_id", vm_group_id, 'str'), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -2326,7 +2326,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'vmGroupId': self._serialize.url("vm_group_id", vm_group_id, 'str'), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -2370,7 +2370,7 @@ def list_virtual_machines( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -2383,7 +2383,7 @@ def prepare_request(next_link=None): url = self.list_virtual_machines.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -2450,14 +2450,14 @@ def get_virtual_machine( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get_virtual_machine.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'virtualMachineId': self._serialize.url("virtual_machine_id", virtual_machine_id, 'str'), } @@ -2512,7 +2512,7 @@ def list_dns_services( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -2525,7 +2525,7 @@ def prepare_request(next_link=None): url = self.list_dns_services.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -2593,14 +2593,14 @@ def get_dns_service( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get_dns_service.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dnsServiceId': self._serialize.url("dns_service_id", dns_service_id, 'str'), } @@ -2644,7 +2644,7 @@ def _create_dns_service_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -2652,7 +2652,7 @@ def _create_dns_service_initial( url = self._create_dns_service_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dnsServiceId': self._serialize.url("dns_service_id", dns_service_id, 'str'), } @@ -2751,7 +2751,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dnsServiceId': self._serialize.url("dns_service_id", dns_service_id, 'str'), } @@ -2784,7 +2784,7 @@ def _update_dns_service_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -2792,7 +2792,7 @@ def _update_dns_service_initial( url = self._update_dns_service_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dnsServiceId': self._serialize.url("dns_service_id", dns_service_id, 'str'), } @@ -2889,7 +2889,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dnsServiceId': self._serialize.url("dns_service_id", dns_service_id, 'str'), } @@ -2921,14 +2921,14 @@ def _delete_dns_service_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_dns_service_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'dnsServiceId': self._serialize.url("dns_service_id", dns_service_id, 'str'), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -3009,7 +3009,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'dnsServiceId': self._serialize.url("dns_service_id", dns_service_id, 'str'), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -3053,7 +3053,7 @@ def list_dns_zones( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -3066,7 +3066,7 @@ def prepare_request(next_link=None): url = self.list_dns_zones.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -3133,14 +3133,14 @@ def get_dns_zone( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get_dns_zone.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dnsZoneId': self._serialize.url("dns_zone_id", dns_zone_id, 'str'), } @@ -3184,7 +3184,7 @@ def _create_dns_zone_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -3192,7 +3192,7 @@ def _create_dns_zone_initial( url = self._create_dns_zone_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dnsZoneId': self._serialize.url("dns_zone_id", dns_zone_id, 'str'), } @@ -3290,7 +3290,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dnsZoneId': self._serialize.url("dns_zone_id", dns_zone_id, 'str'), } @@ -3323,7 +3323,7 @@ def _update_dns_zone_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -3331,7 +3331,7 @@ def _update_dns_zone_initial( url = self._update_dns_zone_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dnsZoneId': self._serialize.url("dns_zone_id", dns_zone_id, 'str'), } @@ -3427,7 +3427,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'dnsZoneId': self._serialize.url("dns_zone_id", dns_zone_id, 'str'), } @@ -3459,14 +3459,14 @@ def _delete_dns_zone_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_dns_zone_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'dnsZoneId': self._serialize.url("dns_zone_id", dns_zone_id, 'str'), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -3546,7 +3546,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'dnsZoneId': self._serialize.url("dns_zone_id", dns_zone_id, 'str'), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -3590,7 +3590,7 @@ def list_public_i_ps( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -3603,7 +3603,7 @@ def prepare_request(next_link=None): url = self.list_public_i_ps.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -3671,14 +3671,14 @@ def get_public_ip( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self.get_public_ip.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'publicIPId': self._serialize.url("public_ip_id", public_ip_id, 'str'), } @@ -3725,7 +3725,7 @@ def _create_public_ip_initial( error_map.update(kwargs.pop('error_map', {})) _workload_network_public_ip = _models.WorkloadNetworkPublicIP(display_name=display_name, number_of_public_i_ps=number_of_public_i_ps) - api_version = "2021-06-01" + api_version = "2021-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -3733,7 +3733,7 @@ def _create_public_ip_initial( url = self._create_public_ip_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'publicIPId': self._serialize.url("public_ip_id", public_ip_id, 'str'), } @@ -3836,7 +3836,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), 'publicIPId': self._serialize.url("public_ip_id", public_ip_id, 'str'), } @@ -3868,14 +3868,14 @@ def _delete_public_ip_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-06-01" + api_version = "2021-12-01" accept = "application/json" # Construct URL url = self._delete_public_ip_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'publicIPId': self._serialize.url("public_ip_id", public_ip_id, 'str'), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } @@ -3956,7 +3956,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'publicIPId': self._serialize.url("public_ip_id", public_ip_id, 'str'), 'privateCloudName': self._serialize.url("private_cloud_name", private_cloud_name, 'str'), } From 6444f1999c629886296c2ea878bf1f6fba4c6f54 Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Wed, 20 Oct 2021 17:08:23 -0500 Subject: [PATCH 27/34] fixed unit tests that were broken from upgrade to 12-01-21 --- src/vmware/azext_vmware/_params.py | 4 +- src/vmware/azext_vmware/custom.py | 11 +- .../tests/latest/recordings/test_vmware.yaml | 4177 ++--------------- .../latest/recordings/test_vmware_addon.yaml | 2690 +---------- .../recordings/test_vmware_cloud_link.yaml | 32 +- .../recordings/test_vmware_datastores.yaml | 490 +- .../test_vmware_global_reach_connection.yaml | 1375 ------ .../latest/recordings/test_vmware_hcx.yaml | 1674 +------ .../latest/recordings/test_vmware_script.yaml | 48 +- .../test_vmware_workload_network.yaml | 296 +- .../tests/latest/test_addon_scenario.py | 6 +- .../test_global_reach_connection_scenario.py | 33 +- .../tests/latest/test_hcx_scenario.py | 10 +- .../tests/latest/test_vmware_scenario.py | 11 +- 14 files changed, 741 insertions(+), 10116 deletions(-) delete mode 100644 src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml diff --git a/src/vmware/azext_vmware/_params.py b/src/vmware/azext_vmware/_params.py index ec930726d4e..eee266815c7 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -25,12 +25,13 @@ def load_arguments(self, _): c.argument('circuit_secondary_subnet', help='A /30 subnet for the secondary circuit in the Express Route to configure routing between your network and Microsoft\'s Enterprise edge (MSEEs) routers.') c.argument('cluster_size', help='Number of hosts for the default management cluster. Minimum of 3 and maximum of 16.') c.argument('network_block', help='A subnet at least of size /22. Make sure the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22.') - c.argument('type', help='The type of identity used for the private cloud. The type "SystemAssigned" refers to an implicitly created identity. The type "None" will remove any identities from the Private Cloud.') + c.argument('identity_type', help='The type of identity used for the private cloud. The type "SystemAssigned" refers to an implicitly created identity. The type "None" will remove any identities from the Private Cloud.') with self.argument_context('vmware cluster') as c: c.argument('name', options_list=['--name', '-n'], help='Name of the cluster.') c.argument('sku', help='The product SKU.') c.argument('size', help='Number of hosts for the cluster. Minimum of 3 and a maximum of 16.') + c.argument('hosts', nargs='+', help='A cluster\'s hosts in the private cloud.') with self.argument_context('vmware private-cloud create') as c: c.argument('name', options_list=['--name', '-n'], help='Name of the private cloud.') @@ -121,6 +122,7 @@ def load_arguments(self, _): with self.argument_context('vmware global-reach-connection create') as c: c.argument('peer_express_route_circuit', help='Identifier of the ExpressRoute Circuit to peer with.') c.argument('authorization_key', help='Authorization key from the peer express route.') + c.argument('express_route_id', help="The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection.") with self.argument_context('vmware cloud-link') as c: c.argument('name', options_list=['--name', '-n'], help='The name of the cloud link.') diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index d246b35fb94..ad5a9ab7850 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -112,9 +112,9 @@ def privatecloud_rotate_nsxt_password(client: AVSClient, resource_group_name, pr return client.private_clouds.begin_rotate_nsxt_password(resource_group_name=resource_group_name, private_cloud_name=private_cloud) -def cluster_create(client: AVSClient, resource_group_name, name, sku, private_cloud, size): - from azext_vmware.vendored_sdks.avs_client.models import Sku - return client.clusters.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=name, sku=Sku(name=sku), cluster_size=size) +def cluster_create(client: AVSClient, resource_group_name, name, sku, private_cloud, size, hosts): + from azext_vmware.vendored_sdks.avs_client.models import Sku, Cluster + return client.clusters.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=name, cluster=Cluster(sku=Sku(name=sku), cluster_size=size, hosts=hosts)) def cluster_update(client: AVSClient, resource_group_name, name, private_cloud, size): @@ -265,8 +265,9 @@ def addon_srm_delete(client: AVSClient, resource_group_name, private_cloud): return client.addons.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, addon_name="srm") -def globalreachconnection_create(client: AVSClient, resource_group_name, private_cloud, name, authorization_key=None, peer_express_route_circuit=None): - return client.global_reach_connections.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, global_reach_connection_name=name, authorization_key=authorization_key, peer_express_route_circuit=peer_express_route_circuit) +def globalreachconnection_create(client: AVSClient, resource_group_name, private_cloud, name, authorization_key=None, peer_express_route_circuit=None, express_route_id=None): + from azext_vmware.vendored_sdks.avs_client.models import GlobalReachConnection + return client.global_reach_connections.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, global_reach_connection_name=name, global_reach_connection=GlobalReachConnection(authorization_key=authorization_key, peer_express_route_circuit=peer_express_route_circuit, express_route_id=express_route_id)) def globalreachconnection_list(client: AVSClient, resource_group_name, private_cloud): diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml index 45f7b190b4f..dc76f4c872d 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml @@ -1,63 +1,4 @@ interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:25:50 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=Ar6DUEZ-Y_REtKLn10PQL8Q; expires=Sat, 03-Jul-2021 21:25:51 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr_buZmUg8fcc1z1kOugbjDYCdjg5NYasqgfzKdi2TUCitY_FvOMzxqmUAf530AZt2fkn2RCOL4JvNNiOgga0rIPF_OE8IcS7q7WPDeQXc9-zAs32Ho_SshT6eIZpxDDapSDuiiRywkOQYOXVuslsgwRO5Z-jBuG7q59qtLyaWQyogAA; - 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.11722.21 - NCUS ProdSlices - status: - code: 200 - message: OK - request: body: null headers: @@ -74,92 +15,21 @@ interactions: ParameterSetName: - --location User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: POST - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AVS/locations/centralus/checkQuotaAvailability?api-version=2021-06-01 - response: - body: - string: '{"hostsRemaining":{"gp":976,"he":980},"quotaEnabled":"Enabled"}' - headers: - cache-control: - - no-cache - content-length: - - '63' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:25:54 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: BC47B999904A45429E894D674702F3CF Ref B: PDX31EDGE0122 Ref C: 2021-06-03T21:25:51Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AVS/locations/centralus/checkQuotaAvailability?api-version=2021-12-01 response: body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + string: '{"hostsRemaining":{"AV20":0,"AV36":999},"quotaEnabled":"Enabled"}' headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private content-length: - - '131' + - '65' content-type: - - application/json; charset=utf-8 + - application/json date: - - Thu, 03 Jun 2021 21:25:55 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AnVw8SWsgd9FhNjfo4GBMYs; expires=Sat, 03-Jul-2021 21:25:55 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrb9PrOU0nLmf76kZI1UKtXtUmiCL1bDiSh7z-p2RoQX3tPbQ4vH_RiN83RCsDdsrF44sKO7WmuKJ_LFXGu2hSGJHRvUzohhZpjXJXx3hS0TKDD7wzay5Uu4z1FjRnlgmnLSficU3lnHwF1RygeyWoO-UySFXI6pY1ISGO4ayVbrcgAA; - 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.11722.21 - EUS ProdSlices + - Wed, 20 Oct 2021 22:02:26 GMT + server: + - Rocket status: code: 200 message: OK @@ -179,94 +49,21 @@ interactions: ParameterSetName: - --location User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: POST - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AVS/locations/centralus/checkTrialAvailability?api-version=2021-06-01 - response: - body: - string: '{"availableHosts":0,"status":"TrialDisabled"}' - headers: - cache-control: - - no-cache - content-length: - - '45' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:25:56 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-msedge-ref: - - 'Ref A: 4B202D8AE34E4021941DF49D102DD462 Ref B: PDX31EDGE0112 Ref C: 2021-06-03T21:25:55Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AVS/locations/centralus/checkTrialAvailability?api-version=2021-12-01 response: body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + string: '{"status":"TrialAvailable","availableHosts":4}' headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private content-length: - - '131' + - '46' content-type: - - application/json; charset=utf-8 + - application/json date: - - Thu, 03 Jun 2021 21:25:56 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AmU7i0S_j85GsQQHuA2RIFg; expires=Sat, 03-Jul-2021 21:25:56 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr7L0ff6RnUhGq-qmVEb_7ZiDrX6t-FGsbrhSeMM2fIaKz1voC9PBTkOwTNWbPKLCFVvcLmP0COtDCD8P9rvGla_P5UXBzWP7twP6RuFJFbD-m2zbR9C8PjEP5QJt4PwWLoxla-OcE4Wz9LRM72YXY9YIifwkfo-L90F7pq92bKeggAA; - 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.11722.21 - EUS ProdSlices + - Wed, 20 Oct 2021 22:02:31 GMT + server: + - Rocket status: code: 200 message: OK @@ -284,97 +81,26 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds?api-version=2021-06-01 - response: - body: - string: '{"value":[]}' - headers: - cache-control: - - no-cache - content-length: - - '12' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:25:57 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 8B63EBE9422F49829388AFF9E4D5BC4E Ref B: PDX31EDGE0110 Ref C: 2021-06-03T21:25:56Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds?api-version=2021-12-01 response: body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/{subscription-id}/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/","hcxCloudManager":"https://192.168.50.4/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]}}]}' headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private content-length: - - '131' + - '1597' content-type: - - application/json; charset=utf-8 + - application/json date: - - Thu, 03 Jun 2021 21:25:57 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AtAZno-QR05GuofpoPnHzug; expires=Sat, 03-Jul-2021 21:25:57 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr8vfX9fzzoM5_MEVUXTfCIIQMla7K4kvI-K8w-GRXTdWPNrheqiuj8VZVG8FRZCvOHhjbKAxTWe2RnaM-b7vDK8Ydfyll3fR6NFzk_ufFIDz-E-_NAHB9gbnRM9XLdjpwsZZryG0IlJiWwPs0ssA_CwCKHmMCSf3R5Zpi87xMx40gAA; - 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.11722.26 - WUS2 ProdSlices + - Wed, 20 Oct 2021 22:02:35 GMT + server: + - Rocket status: code: 200 message: OK - request: - body: '{"location": "centralus", "tags": {}, "sku": {"name": "av20"}, "properties": + body: '{"location": "centralus", "sku": {"name": "av20"}, "identity": {}, "properties": {"managementCluster": {"clusterSize": 3}, "internet": "Disabled", "networkBlock": "192.168.48.0/22", "vcenterPassword": "UpfBXae9ZquZSDXk(", "nsxtPassword": "5rqdLj4GF3cePUe6("}}' headers: @@ -387,89 +113,60 @@ interactions: Connection: - keep-alive Content-Length: - - '255' + - '259' Content-Type: - application/json ParameterSetName: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management"],"provisioningState":"Building"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","provisioningNetwork":"192.168.50.0/24","provisioningState":"Building","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]}}' headers: - azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 - cache-control: - - no-cache content-length: - - '922' + - '1339' content-type: - - application/json; charset=utf-8 + - application/json date: - - Thu, 03 Jun 2021 21:26:03 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-msedge-ref: - - 'Ref A: 7ED20D716DE44BEA94C3ABFF01E1B888 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:25:58Z' + - Wed, 20 Oct 2021 22:02:40 GMT + server: + - Rocket status: - code: 201 - message: Created + code: 200 + message: OK - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware private-cloud create + - vmware private-cloud list Connection: - keep-alive ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula + - -g User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9","name":"7202cf35-fca2-491b-8aa5-886816d038f9","percentComplete":0,"startTime":"2021-06-03T21:25:41.6805166+00:00","status":"Building"}' + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/{subscription-id}/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/","hcxCloudManager":"https://192.168.50.4/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]}}]}' headers: - cache-control: - - no-cache content-length: - - '385' + - '1597' content-type: - - application/json; charset=utf-8 + - application/json date: - - Thu, 03 Jun 2021 21:26:13 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: CBDFF4FC83C147E1BA1ECF36F6756664 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:26:14Z' + - Wed, 20 Oct 2021 22:02:44 GMT + server: + - Rocket status: code: 200 message: OK @@ -477,224 +174,172 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware private-cloud create + - vmware private-cloud rotate-vcenter-password Connection: - keep-alive + Content-Length: + - '0' ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula + - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: POST + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateVcenterPassword?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9","name":"7202cf35-fca2-491b-8aa5-886816d038f9","percentComplete":0,"startTime":"2021-06-03T21:25:41.6805166+00:00","status":"Building"}' + string: '' headers: - cache-control: - - no-cache content-length: - - '385' - content-type: - - application/json; charset=utf-8 + - '0' date: - - Thu, 03 Jun 2021 21:26:24 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 31DA2B65CC624D16985FCB8A183FEAD7 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:26:24Z' + - Wed, 20 Oct 2021 22:02:48 GMT + server: + - Rocket status: - code: 200 - message: OK + code: 202 + message: Accepted - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware private-cloud create + - vmware private-cloud rotate-nsxt-password Connection: - keep-alive + Content-Length: + - '0' ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula + - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: POST + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateNsxtPassword?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9","name":"7202cf35-fca2-491b-8aa5-886816d038f9","percentComplete":88.75,"startTime":"2021-06-03T21:25:41.6805166+00:00","status":"Building"}' + string: '' headers: - cache-control: - - no-cache content-length: - - '389' - content-type: - - application/json; charset=utf-8 + - '0' date: - - Thu, 03 Jun 2021 21:26:34 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 2F2F2FAF3CA64DAAA859D351030E9EEA Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:26:34Z' + - Wed, 20 Oct 2021 22:02:53 GMT + server: + - Rocket status: - code: 200 - message: OK + code: 202 + message: Accepted - request: - body: null + body: '{"identity": {}, "properties": {"managementCluster": {"clusterSize": 4}, + "internet": "Disabled"}}' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware private-cloud create + - vmware private-cloud update Connection: - keep-alive + Content-Length: + - '97' + Content-Type: + - application/json ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula + - -g -n --cluster-size User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PATCH + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9","name":"7202cf35-fca2-491b-8aa5-886816d038f9","percentComplete":88.75,"startTime":"2021-06-03T21:25:41.6805166+00:00","status":"Building"}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"encryption":{"status":"Enabled","keyVaultProperties":{"keyName":"keyname1","keyVersion":"ver1.0","keyVaultUrl":"https://keyvault1-kmip-kvault.vault.azure.net/","versionType":"Fixed"}},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/{subscription-id}/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/","hcxCloudManager":"https://192.168.50.4/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]}}' headers: - cache-control: - - no-cache content-length: - - '389' + - '1770' content-type: - - application/json; charset=utf-8 + - application/json date: - - Thu, 03 Jun 2021 21:26:44 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: E7D4423613C54B719B84620F2BB38398 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:26:44Z' + - Wed, 20 Oct 2021 22:02:57 GMT + server: + - Rocket status: code: 200 message: OK - request: - body: null + body: '{"identity": {}, "properties": {"internet": "Enabled"}}' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware private-cloud create + - vmware private-cloud update Connection: - keep-alive + Content-Length: + - '55' + Content-Type: + - application/json ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula + - -g -n --internet User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PATCH + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9","name":"7202cf35-fca2-491b-8aa5-886816d038f9","percentComplete":100,"startTime":"2021-06-03T21:25:41.6805166+00:00","status":"Building"}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"encryption":{"status":"Enabled","keyVaultProperties":{"keyName":"keyname1","keyVersion":"ver1.0","keyVaultUrl":"https://keyvault1-kmip-kvault.vault.azure.net/","versionType":"Fixed"}},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/{subscription-id}/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/","hcxCloudManager":"https://192.168.50.4/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]}}' headers: - cache-control: - - no-cache content-length: - - '387' + - '1770' content-type: - - application/json; charset=utf-8 + - application/json date: - - Thu, 03 Jun 2021 21:26:55 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: BEDFF789B1DB490B96F75855F27FD836 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:26:55Z' + - Wed, 20 Oct 2021 22:03:01 GMT + server: + - Rocket status: code: 200 message: OK - request: - body: null + body: '{}' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware private-cloud create + - vmware authorization create Connection: - keep-alive + Content-Length: + - '2' + Content-Type: + - application/json ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula + - -g -c -n User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/myauthname?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9","name":"7202cf35-fca2-491b-8aa5-886816d038f9","percentComplete":100,"startTime":"2021-06-03T21:25:41.6805166+00:00","status":"Building"}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/authorization1","name":"authorization1","type":"Microsoft.AVS/privateClouds/authorizations","properties":{"provisioningState":"Succeeded","expressRouteAuthorizationId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt34-cust-mockp02-spearj2dev/providers/Microsoft.Network/expressroutecircuits/tnt34-cust-mockp02-spearj2dev-er/authorizations/myauth","expressRouteAuthorizationKey":"37b0db3b-3b17-4c7b-bf76-bf13b01bcadc","expressRouteID":"/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"}}' headers: - cache-control: - - no-cache content-length: - - '387' + - '791' content-type: - - application/json; charset=utf-8 + - application/json date: - - Thu, 03 Jun 2021 21:27:05 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 17726E9550D14FD9A89A67C18670DD61 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:27:05Z' + - Wed, 20 Oct 2021 22:03:06 GMT + server: + - Rocket status: code: 200 message: OK @@ -702,44 +347,31 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware private-cloud create + - vmware authorization delete Connection: - keep-alive + Content-Length: + - '0' ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula + - -g -c -n User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: DELETE + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/myauthname?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9","name":"7202cf35-fca2-491b-8aa5-886816d038f9","percentComplete":100,"startTime":"2021-06-03T21:25:41.6805166+00:00","status":"Building"}' + string: '' headers: - cache-control: - - no-cache content-length: - - '387' - content-type: - - application/json; charset=utf-8 + - '0' date: - - Thu, 03 Jun 2021 21:27:15 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: A9CA9AD0F3EC4B2EBA9EAD0FA91C862C Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:27:15Z' + - Wed, 20 Oct 2021 22:03:11 GMT + server: + - Rocket status: code: 200 message: OK @@ -747,89 +379,82 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware private-cloud create + - vmware private-cloud addidentitysource Connection: - keep-alive ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula + - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server + --username --password User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9","name":"7202cf35-fca2-491b-8aa5-886816d038f9","percentComplete":100,"startTime":"2021-06-03T21:25:41.6805166+00:00","status":"Building"}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"encryption":{"status":"Enabled","keyVaultProperties":{"keyName":"keyname1","keyVersion":"ver1.0","keyVaultUrl":"https://keyvault1-kmip-kvault.vault.azure.net/","keyState":"Connected","versionType":"Fixed"}},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/{subscription-id}/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/","hcxCloudManager":"https://192.168.50.4/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"identity":{"principalId":"881e5573-063f-49e4-8c08-79d7df0169d8","tenantId":"881e5573-063f-49e4-8c08-79d7df0169d8","type":"SystemAssigned"}}' headers: - cache-control: - - no-cache content-length: - - '387' + - '1933' content-type: - - application/json; charset=utf-8 + - application/json date: - - Thu, 03 Jun 2021 21:27:25 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 51FEA5C9B2FD4B6E94503A72C36DCA32 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:27:26Z' + - Wed, 20 Oct 2021 22:03:15 GMT + server: + - Rocket status: code: 200 message: OK - request: - body: null + body: '{"location": "eastus2", "tags": {}, "sku": {"name": "AV36"}, "identity": + {"type": "SystemAssigned"}, "properties": {"managementCluster": {"clusterSize": + 4, "hosts": ["fakehost18.nyc1.kubernetes.center", "fakehost19.nyc1.kubernetes.center", + "fakehost20.nyc1.kubernetes.center", "fakehost21.nyc1.kubernetes.center"]}, + "internet": "Disabled", "identitySources": [{"name": "group1", "alias": "groupAlias", + "domain": "domain1", "baseUserDN": "ou=baseUser", "baseGroupDN": "ou=baseGroup", + "primaryServer": "ldaps://1.1.1.1:636/", "secondaryServer": "ldaps://1.1.1.2:636/", + "ssl": "Enabled"}, {"name": "groupName", "alias": "groupAlias", "domain": "domain", + "baseUserDN": "ou=baseUser", "baseGroupDN": "ou=baseGroup", "primaryServer": + "ldaps://1.1.1.1:636", "ssl": "Disabled", "username": "someone", "password": + "something"}], "availability": {"strategy": "SingleZone", "zone": 1}, "encryption": + {"status": "Enabled", "keyVaultProperties": {"keyName": "keyname1", "keyVersion": + "ver1.0", "keyVaultUrl": "https://keyvault1-kmip-kvault.vault.azure.net/"}}, + "circuit": {}, "networkBlock": "192.168.48.0/22"}}' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware private-cloud create + - vmware private-cloud addidentitysource Connection: - keep-alive + Content-Length: + - '1098' + Content-Type: + - application/json ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula + - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server + --username --password User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9","name":"7202cf35-fca2-491b-8aa5-886816d038f9","percentComplete":100,"startTime":"2021-06-03T21:25:41.6805166+00:00","status":"Building"}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]}}' headers: - cache-control: - - no-cache content-length: - - '387' + - '1339' content-type: - - application/json; charset=utf-8 + - application/json date: - - Thu, 03 Jun 2021 21:27:36 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 19615D3FB3C0459FB6D2E56E0EB9AB42 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:27:36Z' + - Wed, 20 Oct 2021 22:03:15 GMT + server: + - Rocket status: code: 200 message: OK @@ -837,44 +462,31 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware private-cloud create + - vmware private-cloud deleteidentitysource Connection: - keep-alive ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula + - -g -c -n --alias --domain User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9","name":"7202cf35-fca2-491b-8aa5-886816d038f9","percentComplete":100,"startTime":"2021-06-03T21:25:41.6805166+00:00","status":"Building"}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"encryption":{"status":"Enabled","keyVaultProperties":{"keyName":"keyname1","keyVersion":"ver1.0","keyVaultUrl":"https://keyvault1-kmip-kvault.vault.azure.net/","keyState":"Connected","versionType":"Fixed"}},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect","expressRoutePrivatePeeringID":"/subscriptions/{subscription-id}/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/","hcxCloudManager":"https://192.168.50.4/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]},"identity":{"principalId":"881e5573-063f-49e4-8c08-79d7df0169d8","tenantId":"881e5573-063f-49e4-8c08-79d7df0169d8","type":"SystemAssigned"}}' headers: - cache-control: - - no-cache content-length: - - '387' + - '1933' content-type: - - application/json; charset=utf-8 + - application/json date: - - Thu, 03 Jun 2021 21:27:46 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: D85E053DC94C4476BC2CE75FCA3DAD88 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:27:46Z' + - Wed, 20 Oct 2021 22:03:20 GMT + server: + - Rocket status: code: 200 message: OK @@ -882,89 +494,68 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware private-cloud create + - vmware cluster list Connection: - keep-alive ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula + - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9","name":"7202cf35-fca2-491b-8aa5-886816d038f9","percentComplete":100,"startTime":"2021-06-03T21:25:41.6805166+00:00","status":"Building"}' + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1","name":"cluster1","type":"Microsoft.AVS/privateClouds/clusters","sku":{"name":"AV20"},"properties":{"clusterSize":3,"provisioningState":"Succeeded","hosts":["fakehost22.nyc1.kubernetes.center","fakehost23.nyc1.kubernetes.center","fakehost24.nyc1.kubernetes.center"]}}]}' headers: - cache-control: - - no-cache content-length: - - '387' + - '405' content-type: - - application/json; charset=utf-8 + - application/json date: - - Thu, 03 Jun 2021 21:27:56 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 6EC09E44CB21452FB6C458924953637D Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:27:57Z' + - Wed, 20 Oct 2021 22:03:24 GMT + server: + - Rocket status: code: 200 message: OK - request: - body: null + body: '{"sku": {"name": "av20"}, "properties": {"clusterSize": 3, "hosts": ["fakehost22.nyc1.kubernetes.center", + "fakehost23.nyc1.kubernetes.center", "fakehost24.nyc1.kubernetes.center"]}}' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware private-cloud create + - vmware cluster create Connection: - keep-alive + Content-Length: + - '181' + Content-Type: + - application/json ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula + - -g -c -n --sku --size --hosts User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9","name":"7202cf35-fca2-491b-8aa5-886816d038f9","percentComplete":100,"startTime":"2021-06-03T21:25:41.6805166+00:00","status":"Building"}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1","name":"cluster1","type":"Microsoft.AVS/privateClouds/clusters","sku":{"name":"AV20"},"properties":{"clusterSize":3,"provisioningState":"Succeeded","hosts":["fakehost22.nyc1.kubernetes.center","fakehost23.nyc1.kubernetes.center","fakehost24.nyc1.kubernetes.center"]}}' headers: - cache-control: - - no-cache content-length: - - '387' + - '393' content-type: - - application/json; charset=utf-8 + - application/json date: - - Thu, 03 Jun 2021 21:28:07 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: A05D6EA049C54FFAAD606994BE263539 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:28:07Z' + - Wed, 20 Oct 2021 22:03:29 GMT + server: + - Rocket status: code: 200 message: OK @@ -972,89 +563,67 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware private-cloud create + - vmware cluster list Connection: - keep-alive ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula + - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters?api-version=2021-12-01 response: body: - string: '{"endTime":"2021-06-03T21:28:03.4821553+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/7202cf35-fca2-491b-8aa5-886816d038f9","name":"7202cf35-fca2-491b-8aa5-886816d038f9","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-06-03T21:25:41.6805166+00:00","status":"Succeeded"}' + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1","name":"cluster1","type":"Microsoft.AVS/privateClouds/clusters","sku":{"name":"AV20"},"properties":{"clusterSize":3,"provisioningState":"Succeeded","hosts":["fakehost22.nyc1.kubernetes.center","fakehost23.nyc1.kubernetes.center","fakehost24.nyc1.kubernetes.center"]}}]}' headers: - cache-control: - - no-cache content-length: - - '2011' + - '405' content-type: - - application/json; charset=utf-8 + - application/json date: - - Thu, 03 Jun 2021 21:28:17 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 56210098E501446FB02AC43C18166E6E Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:28:17Z' + - Wed, 20 Oct 2021 22:03:33 GMT + server: + - Rocket status: code: 200 message: OK - request: - body: null + body: '{"properties": {"clusterSize": 4}}' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware private-cloud create + - vmware cluster update Connection: - keep-alive + Content-Length: + - '34' + Content-Type: + - application/json ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula + - -g -c -n --size User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PATCH + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1","name":"cluster1","type":"Microsoft.AVS/privateClouds/clusters","sku":{"name":"AV20"},"properties":{"clusterSize":4,"provisioningState":"Succeeded","hosts":["fakehost22.nyc1.kubernetes.center","fakehost23.nyc1.kubernetes.center","fakehost24.nyc1.kubernetes.center","fakehost25.nyc1.kubernetes.center"]}}' headers: - cache-control: - - no-cache content-length: - - '1563' + - '429' content-type: - - application/json; charset=utf-8 + - application/json date: - - Thu, 03 Jun 2021 21:28:17 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 08C50C88440E4A739AA84C1DA8C37913 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:28:17Z' + - Wed, 20 Oct 2021 22:03:38 GMT + server: + - Rocket status: code: 200 message: OK @@ -1062,3245 +631,31 @@ interactions: body: null headers: Accept: - - '*/*' - Accept-Charset: - - utf-8 + - application/json Accept-Encoding: - gzip, deflate + CommandName: + - vmware cluster delete Connection: - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -c -n User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:28:17 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AjDdeGOhVX1EsePTm3E2YL0; expires=Sat, 03-Jul-2021 21:28:18 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrURoIupyrRWlGOKbVjeuP_qSV-UGeTVkDdEq_fiThNlHlWxzukaHdEn-IwSOWTk_sbA9AUWbuFQZSNfY-9seWcroEP9OfQw1G7adbNo4DzEZqjKwvBuE3worRRTLn3-DgJIl05MjTYIEiPYdUQbCXuYvbBlomPOfKlJDUnxbLi1AgAA; - 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.11722.21 - NCUS ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud list - Connection: - - keep-alive - ParameterSetName: - - -g - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds?api-version=2021-06-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":3,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}]}' - headers: - cache-control: - - no-cache - content-length: - - '1575' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:28:18 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 5939D40B70BD40A48A33F45875DF95F0 Ref B: PDX31EDGE0112 Ref C: 2021-06-03T21:28:18Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:28:18 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=ArOnZh7S9JtGr0f5XL6P1QU; expires=Sat, 03-Jul-2021 21:28:19 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrQLMIMBrJe2IzKY_3C3NxUGNlnH8wNgP9KIq2Iz7X4xOzHgfgA3VtympT_oo_ZUvWwzBtkvj9PRVl-XGx9EdYBOFPC9eb4wNx38rg-0yP_W0Fy_iAetUYk9xsEuzIKFSO5BOYCQ0-HYJMA4wG8WKdb2akD3AspbMA9lqGJ46e7EcgAA; - 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.11722.21 - EUS ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud rotate-vcenter-password - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -g -c - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateVcenterPassword?api-version=2021-06-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - content-type: - - text/html - date: - - Thu, 03 Jun 2021 21:28:20 GMT - expires: - - '-1' - location: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateVcenterPassword/operationresults/dd88ae15-28a0-4310-8aa0-2f3de328ec9c?api-version=2021-06-01 - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-msedge-ref: - - 'Ref A: 3F61849BD0BA48A29B88FDDB3AD1A02C Ref B: PDX31EDGE0122 Ref C: 2021-06-03T21:28:19Z' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud rotate-vcenter-password - Connection: - - keep-alive - ParameterSetName: - - -g -c - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateVcenterPassword/operationresults/dd88ae15-28a0-4310-8aa0-2f3de328ec9c?api-version=2021-06-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-type: - - text/html - date: - - Thu, 03 Jun 2021 21:28:50 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 5252D15A57284DAFB1BEBB5F6BF8B8C2 Ref B: PDX31EDGE0122 Ref C: 2021-06-03T21:28:51Z' - status: - code: 204 - message: No Content -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:28:52 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AhrGyKpw4xlAjgNgzgj_4Gs; expires=Sat, 03-Jul-2021 21:28:52 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevriYTRSP4jmRVLIwrQw_EHRu0gyzbE1KftGiRElombfJU9pgXjId4sghfFSTyaXIIE7tGpi0zOcqiAbsoyFy4EGTLSmM9nUzHBL74mgQKdLHxzDYy3wILcC7D1l6wc7AEPkg-dprzj6w2CRf_UsSKv8MgSb4dosjW2yo6i9NfZA5AgAA; - 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.11722.26 - EUS ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud rotate-nsxt-password - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -g -c - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateNsxtPassword?api-version=2021-06-01 + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: DELETE + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-12-01 response: body: string: '' headers: - cache-control: - - no-cache content-length: - '0' - content-type: - - text/html - date: - - Thu, 03 Jun 2021 21:28:53 GMT - expires: - - '-1' - location: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateNsxtPassword/operationresults/8c48a252-e4f6-4d72-a211-3de0855e0a2c?api-version=2021-06-01 - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-msedge-ref: - - 'Ref A: A101D04A8F024CC5BA705B9DA7FA85DB Ref B: PDX31EDGE0109 Ref C: 2021-06-03T21:28:52Z' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud rotate-nsxt-password - Connection: - - keep-alive - ParameterSetName: - - -g -c - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateNsxtPassword/operationresults/8c48a252-e4f6-4d72-a211-3de0855e0a2c?api-version=2021-06-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-type: - - text/html - date: - - Thu, 03 Jun 2021 21:29:24 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: E879511427DB42ECBBAFEB02928D9FAC Ref B: PDX31EDGE0109 Ref C: 2021-06-03T21:29:23Z' - status: - code: 204 - message: No Content -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:29:24 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AtCMGGYxth5MnNeuB2KRIXA; expires=Sat, 03-Jul-2021 21:29:25 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrLVidRp3AlH_mWudO5vpq4_HO6Xs2r7Gri_n682w0DoTfv7hDYOgQkuRyC8tbzITyi4TN5CohFW9BYmTouoSRw3tbYxkgKfIjleiR32t3aSIYHYis514l-yMfZ2oCXnCKQLNrSjppnHy6NBhxpTB0LoDmuX2rtU7o-JlT7lvD31EgAA; - 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.11722.26 - EUS ProdSlices - status: - code: 200 - message: OK -- request: - body: '{"properties": {"managementCluster": {"clusterSize": 4}, "internet": "Disabled"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud update - Connection: - - keep-alive - Content-Length: - - '81' - Content-Type: - - application/json - ParameterSetName: - - -g -n --cluster-size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Updating"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Updating","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' - headers: - azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a5515a88-124d-4650-b96b-10b613dd7932?api-version=2021-06-01 - cache-control: - - no-cache - content-length: - - '1608' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:29:27 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - x-msedge-ref: - - 'Ref A: 6CA833803C834A7184E78364BEFE5188 Ref B: PDX31EDGE0114 Ref C: 2021-06-03T21:29:25Z' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud update - Connection: - - keep-alive - ParameterSetName: - - -g -n --cluster-size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a5515a88-124d-4650-b96b-10b613dd7932?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a5515a88-124d-4650-b96b-10b613dd7932","name":"a5515a88-124d-4650-b96b-10b613dd7932","percentComplete":0,"startTime":"2021-06-03T21:29:05.6686202+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '385' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:29:38 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 6EC50F00DC5C4D82B447694BE07E2FC6 Ref B: PDX31EDGE0114 Ref C: 2021-06-03T21:29:37Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud update - Connection: - - keep-alive - ParameterSetName: - - -g -n --cluster-size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a5515a88-124d-4650-b96b-10b613dd7932?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a5515a88-124d-4650-b96b-10b613dd7932","name":"a5515a88-124d-4650-b96b-10b613dd7932","percentComplete":0,"startTime":"2021-06-03T21:29:05.6686202+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '385' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:29:48 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 48A2BA4DE0F74B9CB81D642BD3F0D727 Ref B: PDX31EDGE0114 Ref C: 2021-06-03T21:29:48Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud update - Connection: - - keep-alive - ParameterSetName: - - -g -n --cluster-size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a5515a88-124d-4650-b96b-10b613dd7932?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a5515a88-124d-4650-b96b-10b613dd7932","name":"a5515a88-124d-4650-b96b-10b613dd7932","percentComplete":0,"startTime":"2021-06-03T21:29:05.6686202+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '385' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:29:58 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 907862EC793B4CF58622DAB73F9152BB Ref B: PDX31EDGE0114 Ref C: 2021-06-03T21:29:58Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud update - Connection: - - keep-alive - ParameterSetName: - - -g -n --cluster-size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a5515a88-124d-4650-b96b-10b613dd7932?api-version=2021-06-01 - response: - body: - string: '{"endTime":"2021-06-03T21:30:03.3674197+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a5515a88-124d-4650-b96b-10b613dd7932","name":"a5515a88-124d-4650-b96b-10b613dd7932","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-06-03T21:29:05.6686202+00:00","status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '2058' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:30:09 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 2CF32CAFCA1B46A59B651E56FF502D93 Ref B: PDX31EDGE0114 Ref C: 2021-06-03T21:30:09Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud update - Connection: - - keep-alive - ParameterSetName: - - -g -n --cluster-size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' - headers: - cache-control: - - no-cache - content-length: - - '1610' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:30:09 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 991FDA8C9E9C41AF97DA6C3F8D1CAD4D Ref B: PDX31EDGE0114 Ref C: 2021-06-03T21:30:09Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:30:09 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=Agc3TmgzluRGq78QKoM3viM; expires=Sat, 03-Jul-2021 21:30:10 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrCtz6YUX1PLnNcAxYxN38vlWrtV9g8x7UYS-usVrup29jQoVVKZAeNQh1hSXUYRG8_1CceAR0LQ-wN-Re9OJV3-xn9mHqzyQbwgQrjkZvmtzsnyLib40HItNBC6M6KrCeB7Jl7g6zqwjcaV-pFAjMch4Wl3cN2YtOdheOgK1TNRYgAA; - 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.11722.26 - NCUS ProdSlices - status: - code: 200 - message: OK -- request: - body: '{"properties": {"internet": "enabled"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud update - Connection: - - keep-alive - Content-Length: - - '39' - Content-Type: - - application/json - ParameterSetName: - - -g -n --internet - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Updating","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' - headers: - azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/1638ac84-b1b4-4a86-99ac-46740c88c73c?api-version=2021-06-01 - cache-control: - - no-cache - content-length: - - '1609' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:30:10 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1197' - x-msedge-ref: - - 'Ref A: 8ACAB2A728114282BF9D1CFBE967E70B Ref B: PDX31EDGE0120 Ref C: 2021-06-03T21:30:10Z' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud update - Connection: - - keep-alive - ParameterSetName: - - -g -n --internet - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/1638ac84-b1b4-4a86-99ac-46740c88c73c?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/1638ac84-b1b4-4a86-99ac-46740c88c73c","name":"1638ac84-b1b4-4a86-99ac-46740c88c73c","percentComplete":10,"startTime":"2021-06-03T21:29:49.2793732+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '386' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:30:21 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 0D9DF3BB39A7414FA0726F5242BD91B9 Ref B: PDX31EDGE0120 Ref C: 2021-06-03T21:30:21Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud update - Connection: - - keep-alive - ParameterSetName: - - -g -n --internet - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/1638ac84-b1b4-4a86-99ac-46740c88c73c?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/1638ac84-b1b4-4a86-99ac-46740c88c73c","name":"1638ac84-b1b4-4a86-99ac-46740c88c73c","percentComplete":100,"startTime":"2021-06-03T21:29:49.2793732+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '387' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:30:31 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 85180DD0956940BEAEE1FB8C0B4A8494 Ref B: PDX31EDGE0120 Ref C: 2021-06-03T21:30:31Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud update - Connection: - - keep-alive - ParameterSetName: - - -g -n --internet - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/1638ac84-b1b4-4a86-99ac-46740c88c73c?api-version=2021-06-01 - response: - body: - string: '{"endTime":"2021-06-03T21:30:28.3548267+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/1638ac84-b1b4-4a86-99ac-46740c88c73c","name":"1638ac84-b1b4-4a86-99ac-46740c88c73c","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-06-03T21:29:49.2793732+00:00","status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '2057' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:30:41 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 42CBBC41C61E468CA6933F338C408155 Ref B: PDX31EDGE0120 Ref C: 2021-06-03T21:30:41Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud update - Connection: - - keep-alive - ParameterSetName: - - -g -n --internet - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' - headers: - cache-control: - - no-cache - content-length: - - '1609' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:30:41 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: D46A11FEB8F94B2D8FC2B70BA1B9BD57 Ref B: PDX31EDGE0120 Ref C: 2021-06-03T21:30:42Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:30:42 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AiT0zbd_kwpHiE-NG38-dQ0; expires=Sat, 03-Jul-2021 21:30:42 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrwPS5G6hOF5lTTGN7lBm3T3FHspuWWf2XbNboTH65Qcgb2maci_HhWcJiMqZ7BNmmoXxkDd-pJxE47-TaX05HF9nysU3zHYk2MsdQ6_tCm6bJtEbXPjd11o0S3DibT9AOuXbQWikpHDLe-A7lLkgfT14jw_jOvyggV3JVpT6JilEgAA; - 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.11722.26 - WUS2 ProdSlices - status: - code: 200 - message: OK -- request: - body: '{}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware authorization create - Connection: - - keep-alive - Content-Length: - - '2' - Content-Type: - - application/json - ParameterSetName: - - -g -c -n - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/myauthname?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/myauthname","name":"myauthname","properties":{"expressRouteAuthorizationId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/authorizations/avs_resource_myauthname","expressRouteAuthorizationKey":"1068feb7-16d6-4891-a630-7693d571e897","provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/authorizations"}' - headers: - cache-control: - - no-cache - content-length: - - '647' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:30:43 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-msedge-ref: - - 'Ref A: C07708B6D7F940D686B29965EA349AE9 Ref B: PDX31EDGE0122 Ref C: 2021-06-03T21:30:43Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:30:43 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AvaGWGy8T6xNkeQ4l4ucA_Y; expires=Sat, 03-Jul-2021 21:30:43 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrywjfrLP5bXNcCQ_FogR8ymLyK7FoSxu21EE6UbVu67PjMkXzQgbQoLMZcr7aLkdFkagvY325VZWMs9eJhAkIZzWZPFaYiQ-Hf8cQxlQBAUYloVcyYmhVGJN3t0plPMF3efEfjhWkxvgJNdZdNiIihK7HL4DztT8tghYTA0kWLwAgAA; - 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.11722.26 - NCUS ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware authorization delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -g -c -n - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/myauthname?api-version=2021-06-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - content-type: - - text/html - date: - - Thu, 03 Jun 2021 21:30:45 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - x-msedge-ref: - - 'Ref A: BB5F05C550B14A019B3DEF127FF9BA2F Ref B: PDX31EDGE0109 Ref C: 2021-06-03T21:30:44Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:30:44 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=Ar_NF3NUz-1BvIs1GZwM040; expires=Sat, 03-Jul-2021 21:30:45 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrR3eBLJIsVPF-6DT-_S39RAeXaiARi0ORW-G3Cu-BflERZcbe9_maNxXcb4zYZWQLJtJnkKXgivOk_9NY93uHwlDHfgpYx-tfTb4IHY_jnv0i5NNhqUo5c7hUAXo8OXyvturWL9zcP-4dX0p-FXRqz8zZTvlPcfdqz_DQh41wkcAgAA; - 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.11722.26 - SCUS ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud addidentitysource - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server - --username --password - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' - headers: - cache-control: - - no-cache - content-length: - - '1609' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:30:45 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: CEE786297D0F406CB01E9E5A6B65F5E7 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:30:45Z' - status: - code: 200 - message: OK -- request: - body: '{"location": "centralus", "tags": {}, "sku": {"name": "av20"}, "properties": - {"managementCluster": {"clusterSize": 4}, "internet": "Enabled", "identitySources": - [{"name": "groupName", "alias": "groupAlias", "domain": "domain", "baseUserDN": - "ou=baseUser", "baseGroupDN": "ou=baseGroup", "primaryServer": "ldaps://1.1.1.1:636", - "ssl": "Disabled", "username": "someone", "password": "something"}], "circuit": - {}, "networkBlock": "192.168.48.0/22"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud addidentitysource - Connection: - - keep-alive - Content-Length: - - '446' - Content-Type: - - application/json - ParameterSetName: - - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server - --username --password - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[{"alias":"groupAlias","baseGroupDN":"ou=baseGroup","baseUserDN":"ou=baseUser","domain":"domain","name":"groupName","primaryServer":"ldaps://1.1.1.1:636/","ssl":"Disabled"}],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Updating","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' - headers: - azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/c91a9015-fadc-46e1-aba9-e8783c413799?api-version=2021-06-01 - cache-control: - - no-cache - content-length: - - '1779' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:30:46 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - x-msedge-ref: - - 'Ref A: DCF855CFE78541F8BB9649482448FEF0 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:30:46Z' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud addidentitysource - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server - --username --password - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/c91a9015-fadc-46e1-aba9-e8783c413799?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/c91a9015-fadc-46e1-aba9-e8783c413799","name":"c91a9015-fadc-46e1-aba9-e8783c413799","percentComplete":10,"startTime":"2021-06-03T21:30:24.8469907+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '386' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:30:56 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 211E8152AFFA4DAF91047B03F852CCF2 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:30:56Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud addidentitysource - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server - --username --password - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/c91a9015-fadc-46e1-aba9-e8783c413799?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/c91a9015-fadc-46e1-aba9-e8783c413799","name":"c91a9015-fadc-46e1-aba9-e8783c413799","percentComplete":50,"startTime":"2021-06-03T21:30:24.8469907+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '386' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:31:06 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: B1C8FCCF76DE4693922B2678F9C12468 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:31:07Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud addidentitysource - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server - --username --password - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/c91a9015-fadc-46e1-aba9-e8783c413799?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/c91a9015-fadc-46e1-aba9-e8783c413799","name":"c91a9015-fadc-46e1-aba9-e8783c413799","percentComplete":100,"startTime":"2021-06-03T21:30:24.8469907+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '387' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:31:16 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 74989891D5EE463CBC0822A98A20266E Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:31:17Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud addidentitysource - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server - --username --password - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/c91a9015-fadc-46e1-aba9-e8783c413799?api-version=2021-06-01 - response: - body: - string: '{"endTime":"2021-06-03T21:30:24.8469907+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/c91a9015-fadc-46e1-aba9-e8783c413799","name":"c91a9015-fadc-46e1-aba9-e8783c413799","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[{"alias":"groupAlias","baseGroupDN":"ou=baseGroup","baseUserDN":"ou=baseUser","domain":"domain","name":"groupName","primaryServer":"ldaps://1.1.1.1:636/","ssl":"Disabled"}],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-06-03T21:30:24.8469907+00:00","status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '2228' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:31:27 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 23CCE311B0BB479099F8A2DAC6EFC8F2 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:31:27Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud addidentitysource - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server - --username --password - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[{"alias":"groupAlias","baseGroupDN":"ou=baseGroup","baseUserDN":"ou=baseUser","domain":"domain","name":"groupName","primaryServer":"ldaps://1.1.1.1:636/","ssl":"Disabled"}],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' - headers: - cache-control: - - no-cache - content-length: - - '1780' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:31:27 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 66A8067BA8064A50AA11C60621E1B40E Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:31:27Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:31:28 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AjtOMWM1Vv1OkUPoeUBKmNQ; expires=Sat, 03-Jul-2021 21:31:28 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrdldMghJxL41eghT8DLFed4uxk36kzDv2_Rmh6g9IQE6KFTUvwqeH-AMSQxFaULdfVndyhC_YKroM4WCHwIhfx0zbBdp7XDwNRMBcOb6WVjOLKg3IDfPyguy7Qu8tM9vSA9xqZQmeW2ZEC7TmrIpCy9ZlJchreYL5OA4MKTyUgUIgAA; - 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.11787.14 - SCUS ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud deleteidentitysource - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --alias --domain - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[{"alias":"groupAlias","baseGroupDN":"ou=baseGroup","baseUserDN":"ou=baseUser","domain":"domain","name":"groupName","primaryServer":"ldaps://1.1.1.1:636/","ssl":"Disabled"}],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' - headers: - cache-control: - - no-cache - content-length: - - '1780' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:31:28 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 0692B83F4B0D49EAA2794812F21F6849 Ref B: PDX31EDGE0116 Ref C: 2021-06-03T21:31:28Z' - status: - code: 200 - message: OK -- request: - body: '{"location": "centralus", "tags": {}, "sku": {"name": "av20"}, "properties": - {"managementCluster": {"clusterSize": 4}, "internet": "Enabled", "identitySources": - [], "circuit": {}, "networkBlock": "192.168.48.0/22"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud deleteidentitysource - Connection: - - keep-alive - Content-Length: - - '215' - Content-Type: - - application/json - ParameterSetName: - - -g -c -n --alias --domain - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[{"alias":"groupAlias","baseGroupDN":"ou=baseGroup","baseUserDN":"ou=baseUser","domain":"domain","name":"groupName","primaryServer":"ldaps://1.1.1.1:636/","ssl":"Disabled"}],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Updating","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' - headers: - azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/e10c7aab-c4a3-435c-8ccf-a431a43b701f?api-version=2021-06-01 - cache-control: - - no-cache - content-length: - - '1779' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:31:28 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - x-msedge-ref: - - 'Ref A: 1837C0679B4A4E1C91B8C7176B6C5815 Ref B: PDX31EDGE0116 Ref C: 2021-06-03T21:31:29Z' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud deleteidentitysource - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --alias --domain - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/e10c7aab-c4a3-435c-8ccf-a431a43b701f?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/e10c7aab-c4a3-435c-8ccf-a431a43b701f","name":"e10c7aab-c4a3-435c-8ccf-a431a43b701f","percentComplete":10,"startTime":"2021-06-03T21:31:07.6446736+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '386' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:31:39 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: A1191AD91CA444BE9AB6EAB33E1E879B Ref B: PDX31EDGE0116 Ref C: 2021-06-03T21:31:39Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud deleteidentitysource - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --alias --domain - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/e10c7aab-c4a3-435c-8ccf-a431a43b701f?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/e10c7aab-c4a3-435c-8ccf-a431a43b701f","name":"e10c7aab-c4a3-435c-8ccf-a431a43b701f","percentComplete":100,"startTime":"2021-06-03T21:31:07.6446736+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '387' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:31:49 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 9A287D863D604E26ADDDE4F92BE49286 Ref B: PDX31EDGE0116 Ref C: 2021-06-03T21:31:49Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud deleteidentitysource - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --alias --domain - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/e10c7aab-c4a3-435c-8ccf-a431a43b701f?api-version=2021-06-01 - response: - body: - string: '{"endTime":"2021-06-03T21:31:07.6446736+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/e10c7aab-c4a3-435c-8ccf-a431a43b701f","name":"e10c7aab-c4a3-435c-8ccf-a431a43b701f","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-06-03T21:31:07.6446736+00:00","status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '2057' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:31:59 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: A3DFA49199AC4181866A1741A9C19182 Ref B: PDX31EDGE0116 Ref C: 2021-06-03T21:32:00Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud deleteidentitysource - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --alias --domain - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"centralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt19-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt19-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.51.8/30","secondarySubnet":"192.168.51.12/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Enabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost17.mp01.mock01.vmcp.vs.management","gp-fakehost19.mp01.mock01.vmcp.vs.management","gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost34.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/24","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/24","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.0/24"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' - headers: - cache-control: - - no-cache - content-length: - - '1609' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:31:59 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 1E15F604DF9B4DE5A69F9823CF6B4A6C Ref B: PDX31EDGE0116 Ref C: 2021-06-03T21:32:00Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:32:01 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=Apetflg2vEhGjlBGK3ViI8s; expires=Sat, 03-Jul-2021 21:32:01 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrEstpQ1SVvCD2gaDknX0-enzCkOQKrvoxdxdnhwRbkB2t0JKvVKoD4MXQidjAiPwrvEaMAsdPLCBiuqBLk33wVxlSo38kv75Cz6jAiHzTBfwhwp6UqqL2k3d9ye2o3HOX2ky-1-fdpGL_41g-bZkNuH3eo62JrqPHbeWQxkYHTPogAA; - 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.11787.14 - EUS ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster list - Connection: - - keep-alive - ParameterSetName: - - -g -c - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters?api-version=2021-06-01 - response: - body: - string: '{"value":[]}' - headers: - cache-control: - - no-cache - content-length: - - '12' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:32:01 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 66100E60A9C94ABDB624F62ED62EC223 Ref B: PDX31EDGE0110 Ref C: 2021-06-03T21:32:01Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:32:01 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AlCus6Zp51FJoKcc9oqZu7Y; expires=Sat, 03-Jul-2021 21:32:02 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrwr5u3NWnBLPqvgBy_W4tl0gOuy8tF4827Ib4pen-vyYysD_UG7cS994yq9WqIakZ9DRvyQpHtEztdkRAEUfVhpr9Jatwkg2sDxFvIPykyyF-RapGQsC46LFEcv2eNdy1dOp1BhMLTyYOHvGG3QZ90IUAhc0xnw2j3lxi-IEvcQMgAA; - 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.11787.14 - SCUS ProdSlices - status: - code: 200 - message: OK -- request: - body: '{"sku": {"name": "av20"}, "properties": {"clusterSize": 3}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster create - Connection: - - keep-alive - Content-Length: - - '59' - Content-Type: - - application/json - ParameterSetName: - - -g -c -n --sku --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":3,"hosts":["gp-fakehost36.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management"],"provisioningState":"Building"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' - headers: - azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cca31ef1-5ef1-4cea-b2f3-c01ac8409994?api-version=2021-06-01 - cache-control: - - no-cache - content-length: - - '531' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:32:07 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1197' - x-msedge-ref: - - 'Ref A: 114EC2C99E0F4721B3F91F34322087FD Ref B: PDX31EDGE0121 Ref C: 2021-06-03T21:32:02Z' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster create - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --sku --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cca31ef1-5ef1-4cea-b2f3-c01ac8409994?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cca31ef1-5ef1-4cea-b2f3-c01ac8409994","name":"cca31ef1-5ef1-4cea-b2f3-c01ac8409994","percentComplete":0,"startTime":"2021-06-03T21:31:46.1403942+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '405' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:32:18 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 326561DAD735417BB26EAF510B768AF5 Ref B: PDX31EDGE0121 Ref C: 2021-06-03T21:32:18Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster create - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --sku --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cca31ef1-5ef1-4cea-b2f3-c01ac8409994?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cca31ef1-5ef1-4cea-b2f3-c01ac8409994","name":"cca31ef1-5ef1-4cea-b2f3-c01ac8409994","percentComplete":50,"startTime":"2021-06-03T21:31:46.1403942+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '406' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:32:28 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 7A0AC25D8C724BA0A42BA4D9258B8234 Ref B: PDX31EDGE0121 Ref C: 2021-06-03T21:32:28Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster create - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --sku --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cca31ef1-5ef1-4cea-b2f3-c01ac8409994?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cca31ef1-5ef1-4cea-b2f3-c01ac8409994","name":"cca31ef1-5ef1-4cea-b2f3-c01ac8409994","percentComplete":75,"startTime":"2021-06-03T21:31:46.1403942+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '406' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:32:38 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: D8BAB3279BF14486AC5C6A1BA9421E92 Ref B: PDX31EDGE0121 Ref C: 2021-06-03T21:32:38Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster create - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --sku --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cca31ef1-5ef1-4cea-b2f3-c01ac8409994?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cca31ef1-5ef1-4cea-b2f3-c01ac8409994","name":"cca31ef1-5ef1-4cea-b2f3-c01ac8409994","percentComplete":75,"startTime":"2021-06-03T21:31:46.1403942+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '406' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:32:48 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: A5CC1DA2E32C4543B938366B6AC3540E Ref B: PDX31EDGE0121 Ref C: 2021-06-03T21:32:49Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster create - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --sku --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cca31ef1-5ef1-4cea-b2f3-c01ac8409994?api-version=2021-06-01 - response: - body: - string: '{"endTime":"2021-06-03T21:32:49.4811551+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/cca31ef1-5ef1-4cea-b2f3-c01ac8409994","name":"cca31ef1-5ef1-4cea-b2f3-c01ac8409994","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":3,"hosts":["gp-fakehost36.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"},"startTime":"2021-06-03T21:31:46.1403942+00:00","status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '1000' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:32:59 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 944C7661020E4CB49EEEC70DEAB93F79 Ref B: PDX31EDGE0121 Ref C: 2021-06-03T21:32:59Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster create - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --sku --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":3,"hosts":["gp-fakehost36.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' - headers: - cache-control: - - no-cache - content-length: - - '532' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:32:59 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: FEC7AB3A1F9B48EDB6C061CBAAB75667 Ref B: PDX31EDGE0121 Ref C: 2021-06-03T21:32:59Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:33:00 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AkS7dHT645hJk4EevJF72bo; expires=Sat, 03-Jul-2021 21:33:00 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr77_GKSaz99IeQ9YDC36xNJIQCVyiPUz6j_M7IpR8TIgnHWgM2qPWZeSQsqPGjI-fRCJSNOqx3pBwxxYNZiUjSubIiDOaVyjJh3GB9EXkHsvjqmFMt7l8JwiOH2H2nQW6gbfjmQt7r5r_PticMVjHgq3rAOCAYeYJbhaDLoeWwpkgAA; - 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.11722.21 - NCUS ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster list - Connection: - - keep-alive - ParameterSetName: - - -g -c - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters?api-version=2021-06-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":3,"hosts":["gp-fakehost36.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}]}' - headers: - cache-control: - - no-cache - content-length: - - '544' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:33:00 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 569945C26CDD47E79CC1A7048E2C4DE4 Ref B: PDX31EDGE0116 Ref C: 2021-06-03T21:33:00Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:33:01 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AiSADO4-FRlAsMAT1bUm2xc; expires=Sat, 03-Jul-2021 21:33:01 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr1QkrTZy2J6f7zVQdYNyNVMziecspG_Kx8hzjblyy7YZiL7bs8uQWtydOJlHzsFfAh1G3Z8gLWJB-tDZK1pYHsEjpYbLnHgySU19WKZi1XOyD9hreow1NIYwWjpGskDdJ2Q6BK5197U8RXQayYvSzykMIHNkXajTvVajx4t-ugXsgAA; - 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.11722.21 - WUS2 ProdSlices - status: - code: 200 - message: OK -- request: - body: '{"properties": {"clusterSize": 4}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster update - Connection: - - keep-alive - Content-Length: - - '34' - Content-Type: - - application/json - ParameterSetName: - - -g -c -n --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":4,"hosts":["gp-fakehost36.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management","gp-fakehost04.mp01.mock01.vmcp.vs.management"],"provisioningState":"Updating"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' - headers: - azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/27daa53f-9835-49bb-98aa-a109f9b2f9f7?api-version=2021-06-01 - cache-control: - - no-cache - content-length: - - '578' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:33:02 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1196' - x-msedge-ref: - - 'Ref A: D302D2B24C6F4276A87F739352EB130A Ref B: PDX31EDGE0117 Ref C: 2021-06-03T21:33:01Z' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster update - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/27daa53f-9835-49bb-98aa-a109f9b2f9f7?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/27daa53f-9835-49bb-98aa-a109f9b2f9f7","name":"27daa53f-9835-49bb-98aa-a109f9b2f9f7","percentComplete":0,"startTime":"2021-06-03T21:32:41.3365440+00:00","status":"Pending"}' - headers: - cache-control: - - no-cache - content-length: - - '404' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:33:12 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 894DF56468F54DFEBD81FE9662A87B51 Ref B: PDX31EDGE0117 Ref C: 2021-06-03T21:33:13Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster update - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/27daa53f-9835-49bb-98aa-a109f9b2f9f7?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/27daa53f-9835-49bb-98aa-a109f9b2f9f7","name":"27daa53f-9835-49bb-98aa-a109f9b2f9f7","percentComplete":0,"startTime":"2021-06-03T21:32:41.3365440+00:00","status":"Pending"}' - headers: - cache-control: - - no-cache - content-length: - - '404' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:33:23 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 8D44A32778DD4BCF9A7C503C1F44E790 Ref B: PDX31EDGE0117 Ref C: 2021-06-03T21:33:23Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster update - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/27daa53f-9835-49bb-98aa-a109f9b2f9f7?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/27daa53f-9835-49bb-98aa-a109f9b2f9f7","name":"27daa53f-9835-49bb-98aa-a109f9b2f9f7","percentComplete":0,"startTime":"2021-06-03T21:32:41.3365440+00:00","status":"Pending"}' - headers: - cache-control: - - no-cache - content-length: - - '404' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:33:33 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 20A96CF80861437691D6C825D9827D38 Ref B: PDX31EDGE0117 Ref C: 2021-06-03T21:33:34Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster update - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/27daa53f-9835-49bb-98aa-a109f9b2f9f7?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/27daa53f-9835-49bb-98aa-a109f9b2f9f7","name":"27daa53f-9835-49bb-98aa-a109f9b2f9f7","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":4,"hosts":["gp-fakehost36.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management","gp-fakehost04.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"},"startTime":"2021-06-03T21:32:41.3365440+00:00","status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '1001' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:33:43 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 856A8B04C4534D1C881E69778E60C941 Ref B: PDX31EDGE0117 Ref C: 2021-06-03T21:33:44Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster update - Connection: - - keep-alive - ParameterSetName: - - -g -c -n --size - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":4,"hosts":["gp-fakehost36.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management","gp-fakehost04.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' - headers: - cache-control: - - no-cache - content-length: - - '579' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:33:43 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 99B1DCEA7D6640938C2C978A5AB8DD93 Ref B: PDX31EDGE0117 Ref C: 2021-06-03T21:33:44Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:33:45 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=Aqd9KH0cr_1CnNlNnp4iMuE; expires=Sat, 03-Jul-2021 21:33:45 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrYyhJoCmq29tCivhCXPta0oCP3rVJt2RP-K2mN1CcGFbnXh6PcEcfhwyuefvmO3sww6ZLAATEeh0e7v4qmZsg5j4qJNjgF9dXa6U0kqs1bTWSYQH62EzO0f0P8-pYZF8tXAeal7yQtRxbEVbU6hEegC47v8OhS6jMp88pEcFoUp0gAA; - 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.11722.26 - WUS2 ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -g -c -n - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1","name":"pycluster1","properties":{"clusterId":2,"clusterSize":4,"hosts":["gp-fakehost36.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management","gp-fakehost04.mp01.mock01.vmcp.vs.management"],"provisioningState":"Deleting"},"sku":{"name":"av20"},"type":"Microsoft.AVS/privateClouds/clusters"}' - headers: - azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/b08b75e9-4a1f-427d-8d6e-53d56e511186?api-version=2021-06-01 - cache-control: - - no-cache - content-length: - - '578' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:33:46 GMT - expires: - - '-1' - location: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationresults/b08b75e9-4a1f-427d-8d6e-53d56e511186?api-version=2021-06-01 - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - x-msedge-ref: - - 'Ref A: F366BFA33B6B40D8AA9852126AA3A6E1 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:33:45Z' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster delete - Connection: - - keep-alive - ParameterSetName: - - -g -c -n - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/b08b75e9-4a1f-427d-8d6e-53d56e511186?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/b08b75e9-4a1f-427d-8d6e-53d56e511186","name":"b08b75e9-4a1f-427d-8d6e-53d56e511186","percentComplete":0,"startTime":"2021-06-03T21:33:24.5517420+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '405' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:33:56 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: B676E46C924446B0BED0E7A8315E83C8 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:33:56Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster delete - Connection: - - keep-alive - ParameterSetName: - - -g -c -n - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/b08b75e9-4a1f-427d-8d6e-53d56e511186?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/b08b75e9-4a1f-427d-8d6e-53d56e511186","name":"b08b75e9-4a1f-427d-8d6e-53d56e511186","percentComplete":50,"startTime":"2021-06-03T21:33:24.5517420+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '406' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:34:06 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 4FFD0E0D3B604DDE9AB2ABA928F1740C Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:34:07Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster delete - Connection: - - keep-alive - ParameterSetName: - - -g -c -n - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/b08b75e9-4a1f-427d-8d6e-53d56e511186?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/b08b75e9-4a1f-427d-8d6e-53d56e511186","name":"b08b75e9-4a1f-427d-8d6e-53d56e511186","percentComplete":50,"startTime":"2021-06-03T21:33:24.5517420+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '406' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:34:16 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 4F2BE48EF1A9430598126F17FF2CA36B Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:34:17Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster delete - Connection: - - keep-alive - ParameterSetName: - - -g -c -n - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/b08b75e9-4a1f-427d-8d6e-53d56e511186?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/b08b75e9-4a1f-427d-8d6e-53d56e511186","name":"b08b75e9-4a1f-427d-8d6e-53d56e511186","percentComplete":75,"startTime":"2021-06-03T21:33:24.5517420+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '406' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:34:26 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 6E68400F2F05470D93CB69FD1D6BC032 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:34:27Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster delete - Connection: - - keep-alive - ParameterSetName: - - -g -c -n - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/b08b75e9-4a1f-427d-8d6e-53d56e511186?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/b08b75e9-4a1f-427d-8d6e-53d56e511186","name":"b08b75e9-4a1f-427d-8d6e-53d56e511186","percentComplete":75,"startTime":"2021-06-03T21:33:24.5517420+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '406' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 21:34:37 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 6D2C9B03F7AD4093AFBE21EE9FBF813D Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:34:37Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware cluster delete - Connection: - - keep-alive - ParameterSetName: - - -g -c -n - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/b08b75e9-4a1f-427d-8d6e-53d56e511186?api-version=2021-06-01 - response: - body: - string: '{"endTime":"2021-06-03T21:34:38.3993479+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1/operationstatuses/b08b75e9-4a1f-427d-8d6e-53d56e511186","name":"b08b75e9-4a1f-427d-8d6e-53d56e511186","percentComplete":100,"startTime":"2021-06-03T21:33:24.5517420+00:00","status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '454' - content-type: - - application/json; charset=utf-8 date: - - Thu, 03 Jun 2021 21:34:47 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: E299D00C2D16454F8E86228489216440 Ref B: PDX31EDGE0119 Ref C: 2021-06-03T21:34:48Z' + - Wed, 20 Oct 2021 22:03:42 GMT + server: + - Rocket status: code: 200 message: OK diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml index 6950c6b262f..c509e3a599c 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml @@ -1,2091 +1,39 @@ interactions: - request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:26:12 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=Ag7RmEAofDVCkHeKzXTSl3Y; expires=Thu, 22-Jul-2021 14:26:12 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrzYX5pqjfocXUFB3gXv1Bolu-crimgQVjhs240rCxupR2CVNOOLKKyemDoRLBgYVOGY7kwMbi4lDCR2zpR2xKlVZBNPRP2i0EK-P9NhZVkL8in6vE0h6Z6Kxmum6bKV0A7yzvyhqqV5RFURSJWoTPzqWkqlApRO3TtjbJ2A_fl4QgAA; - 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.11829.4 - WUS2 ProdSlices - status: - code: 200 - message: OK -- request: - body: '{"location": "northcentralus", "tags": {}, "sku": {"name": "av20"}, "properties": - {"managementCluster": {"clusterSize": 4}, "internet": "Disabled", "networkBlock": - "192.168.48.0/22"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - Content-Length: - - '183' - Content-Type: - - application/json - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1","location":"northcentralus","name":"mycloud1","properties":{"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost42.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost38.mp01.mock01.vmcp.vs.management","gp-fakehost39.mp01.mock01.vmcp.vs.management"],"provisioningState":"Building"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","provisioningNetwork":"192.168.50.0/25","provisioningState":"Building","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' - headers: - azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/36755fb6-4acb-41ff-b64d-30fdc320fb33?api-version=2021-06-01 - cache-control: - - no-cache - content-length: - - '980' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:26:25 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-msedge-ref: - - 'Ref A: E665DED7E34D401991A3DF1BDDA97E14 Ref B: LAX311000113019 Ref C: 2021-06-22T14:26:14Z' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/36755fb6-4acb-41ff-b64d-30fdc320fb33?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/36755fb6-4acb-41ff-b64d-30fdc320fb33","name":"36755fb6-4acb-41ff-b64d-30fdc320fb33","percentComplete":0,"startTime":"2021-06-22T14:26:25.1286132+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '387' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:26:35 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 88C5609070D540408506367BAE82E776 Ref B: LAX311000113019 Ref C: 2021-06-22T14:26:35Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/36755fb6-4acb-41ff-b64d-30fdc320fb33?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/36755fb6-4acb-41ff-b64d-30fdc320fb33","name":"36755fb6-4acb-41ff-b64d-30fdc320fb33","percentComplete":0,"startTime":"2021-06-22T14:26:25.1286132+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '387' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:26:46 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 6CDCFC648EB04D01965E2DD01F69320B Ref B: LAX311000113019 Ref C: 2021-06-22T14:26:46Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/36755fb6-4acb-41ff-b64d-30fdc320fb33?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/36755fb6-4acb-41ff-b64d-30fdc320fb33","name":"36755fb6-4acb-41ff-b64d-30fdc320fb33","percentComplete":88.75,"startTime":"2021-06-22T14:26:25.1286132+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '391' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:26:56 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 8F35A3655D2549879682543EA2B763ED Ref B: LAX311000113019 Ref C: 2021-06-22T14:26:56Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/36755fb6-4acb-41ff-b64d-30fdc320fb33?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/36755fb6-4acb-41ff-b64d-30fdc320fb33","name":"36755fb6-4acb-41ff-b64d-30fdc320fb33","percentComplete":88.75,"startTime":"2021-06-22T14:26:25.1286132+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '391' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:27:06 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 7A00B94E2BF44DE9A42A20EEC7912985 Ref B: LAX311000113019 Ref C: 2021-06-22T14:27:06Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/36755fb6-4acb-41ff-b64d-30fdc320fb33?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/36755fb6-4acb-41ff-b64d-30fdc320fb33","name":"36755fb6-4acb-41ff-b64d-30fdc320fb33","percentComplete":100,"startTime":"2021-06-22T14:26:25.1286132+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '389' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:27:16 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: BD7E470595934875B39A3F73426275CA Ref B: LAX311000113019 Ref C: 2021-06-22T14:27:17Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/36755fb6-4acb-41ff-b64d-30fdc320fb33?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/36755fb6-4acb-41ff-b64d-30fdc320fb33","name":"36755fb6-4acb-41ff-b64d-30fdc320fb33","percentComplete":100,"startTime":"2021-06-22T14:26:25.1286132+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '389' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:27:27 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: A39BA79AE2A84B83A049CD415745256D Ref B: LAX311000113019 Ref C: 2021-06-22T14:27:27Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/36755fb6-4acb-41ff-b64d-30fdc320fb33?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/36755fb6-4acb-41ff-b64d-30fdc320fb33","name":"36755fb6-4acb-41ff-b64d-30fdc320fb33","percentComplete":100,"startTime":"2021-06-22T14:26:25.1286132+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '389' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:27:37 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 710981C0ABD64AD8A1EA3575D3AEA44D Ref B: LAX311000113019 Ref C: 2021-06-22T14:27:37Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/36755fb6-4acb-41ff-b64d-30fdc320fb33?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/36755fb6-4acb-41ff-b64d-30fdc320fb33","name":"36755fb6-4acb-41ff-b64d-30fdc320fb33","percentComplete":100,"startTime":"2021-06-22T14:26:25.1286132+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '389' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:27:47 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: DE2E51E344CD4EB7B7325817790A15B6 Ref B: LAX311000113019 Ref C: 2021-06-22T14:27:47Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/36755fb6-4acb-41ff-b64d-30fdc320fb33?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/36755fb6-4acb-41ff-b64d-30fdc320fb33","name":"36755fb6-4acb-41ff-b64d-30fdc320fb33","percentComplete":100,"startTime":"2021-06-22T14:26:25.1286132+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '389' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:27:58 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 39B86360B53D4B03B981AC89BAC90692 Ref B: LAX311000113019 Ref C: 2021-06-22T14:27:58Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/36755fb6-4acb-41ff-b64d-30fdc320fb33?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/36755fb6-4acb-41ff-b64d-30fdc320fb33","name":"36755fb6-4acb-41ff-b64d-30fdc320fb33","percentComplete":100,"startTime":"2021-06-22T14:26:25.1286132+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '389' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:28:08 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: B463EAD80F68420696A089E8B01D0CBD Ref B: LAX311000113019 Ref C: 2021-06-22T14:28:08Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/36755fb6-4acb-41ff-b64d-30fdc320fb33?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/36755fb6-4acb-41ff-b64d-30fdc320fb33","name":"36755fb6-4acb-41ff-b64d-30fdc320fb33","percentComplete":100,"startTime":"2021-06-22T14:26:25.1286132+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '389' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:28:18 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 0D122BF089964235A7401AC8BC298B0C Ref B: LAX311000113019 Ref C: 2021-06-22T14:28:18Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/36755fb6-4acb-41ff-b64d-30fdc320fb33?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/36755fb6-4acb-41ff-b64d-30fdc320fb33","name":"36755fb6-4acb-41ff-b64d-30fdc320fb33","percentComplete":100,"startTime":"2021-06-22T14:26:25.1286132+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '389' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:28:28 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 4AC5AFB36A30403E989107A5CE9FC336 Ref B: LAX311000113019 Ref C: 2021-06-22T14:28:28Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/36755fb6-4acb-41ff-b64d-30fdc320fb33?api-version=2021-06-01 - response: - body: - string: '{"endTime":"2021-06-22T14:28:26.7438593+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/operationstatuses/36755fb6-4acb-41ff-b64d-30fdc320fb33","name":"36755fb6-4acb-41ff-b64d-30fdc320fb33","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1","location":"northcentralus","name":"mycloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt24-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt24-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt24-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt24-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.48.232/30","secondarySubnet":"192.168.48.236/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost42.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost38.mp01.mock01.vmcp.vs.management","gp-fakehost39.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/25","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-06-22T14:26:25.1286132+00:00","status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '2074' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:28:39 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: B4050301F5314410B2403D97CCCA502B Ref B: LAX311000113019 Ref C: 2021-06-22T14:28:39Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1","location":"northcentralus","name":"mycloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt24-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt24-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt24-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt24-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.48.232/30","secondarySubnet":"192.168.48.236/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost42.mp01.mock01.vmcp.vs.management","gp-fakehost41.mp01.mock01.vmcp.vs.management","gp-fakehost38.mp01.mock01.vmcp.vs.management","gp-fakehost39.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/25","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' - headers: - cache-control: - - no-cache - content-length: - - '1624' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:28:39 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 2ED2A13699554EE28E4905D6CEE24542 Ref B: LAX311000113019 Ref C: 2021-06-22T14:28:39Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:28:42 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=Al-jRvG9QitPrMBjVWS3qcQ; expires=Thu, 22-Jul-2021 14:28:42 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrI78JItPXDBKyxYJUWTDJ82ydX99vWo_-ac1LG--7VWAGYbBVPl1PB-AfCoxlnjQxXwdi5Knr5pdYw0YCfTkHpIswdJl8c-wk371v1PaiF0PAR0_lEINeE4l7lWrdVMnnQlim2rRG20o7gK7VOcWawFPrX4wEim6KKtJ3WCiuBRkgAA; - 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.11829.4 - NCUS ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware addon list - Connection: - - keep-alive - ParameterSetName: - - -g -c - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2021-06-01 - response: - body: - string: '{"value":[]}' - headers: - cache-control: - - no-cache - content-length: - - '12' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:28:44 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 0B4BCDC41075475ABFAC89CA920E29CD Ref B: LAXEDGE1516 Ref C: 2021-06-22T14:28:44Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:28:47 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AkHPXhR209pMvYq0U1G1FBc; expires=Thu, 22-Jul-2021 14:28:48 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrkGquA-G5lGSwmeoPd9bT8AOvNz70Uxo8k7AQhL9S5AAxvfascqgtGQT5TEzZv4qZQDjuTj7XLLxP8pzxZlzgFUk2C2zjFu1jpZOAfKbbVgULGXiDraY-x7ka5gbQpp70os1dKVtT3YORGYtHo-dl6QJjdzptGvPaaV9aK4rHBacgAA; - 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.11829.8 - WUS2 ProdSlices - status: - code: 200 - message: OK -- request: - body: '{"properties": {"addonType": "VR", "vrsCount": 1}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware addon vr create - Connection: - - keep-alive - Content-Length: - - '50' - Content-Type: - - application/json - ParameterSetName: - - -g -c --vrs-count - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr","name":"vr","properties":{"addonType":"VR","provisioningState":"Building","vrsCount":1},"type":"Microsoft.AVS/privateClouds/addons"}' - headers: - azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/123d1b24-3710-462c-893b-c5c18d71eb24?api-version=2021-06-01 - cache-control: - - no-cache - content-length: - - '340' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:28:51 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-msedge-ref: - - 'Ref A: B4C3BFE125314C56884365824DCF8C27 Ref B: LAX311000110051 Ref C: 2021-06-22T14:28:50Z' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware addon vr create - Connection: - - keep-alive - ParameterSetName: - - -g -c --vrs-count - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/123d1b24-3710-462c-893b-c5c18d71eb24?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/123d1b24-3710-462c-893b-c5c18d71eb24","name":"123d1b24-3710-462c-893b-c5c18d71eb24","percentComplete":25,"startTime":"2021-06-22T14:28:52.0125818+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '398' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:29:02 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: BCE109EFDE9E43D898F72F0430F6716A Ref B: LAX311000110051 Ref C: 2021-06-22T14:29:02Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware addon vr create - Connection: - - keep-alive - ParameterSetName: - - -g -c --vrs-count - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/123d1b24-3710-462c-893b-c5c18d71eb24?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/123d1b24-3710-462c-893b-c5c18d71eb24","name":"123d1b24-3710-462c-893b-c5c18d71eb24","percentComplete":0,"startTime":"2021-06-22T14:28:52.0125818+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '397' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:29:12 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 9FDA367B7D1B4C948C21D37A9229EBCE Ref B: LAX311000110051 Ref C: 2021-06-22T14:29:12Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware addon vr create - Connection: - - keep-alive - ParameterSetName: - - -g -c --vrs-count - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/123d1b24-3710-462c-893b-c5c18d71eb24?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/123d1b24-3710-462c-893b-c5c18d71eb24","name":"123d1b24-3710-462c-893b-c5c18d71eb24","percentComplete":50,"startTime":"2021-06-22T14:28:52.0125818+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '398' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:29:22 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 8EC3AF47A7BD4EC9AF2F4C2408D558A9 Ref B: LAX311000110051 Ref C: 2021-06-22T14:29:23Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware addon vr create - Connection: - - keep-alive - ParameterSetName: - - -g -c --vrs-count - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/123d1b24-3710-462c-893b-c5c18d71eb24?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/123d1b24-3710-462c-893b-c5c18d71eb24","name":"123d1b24-3710-462c-893b-c5c18d71eb24","percentComplete":0,"startTime":"2021-06-22T14:28:52.0125818+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '397' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:29:33 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: ABB32745A3C746A08144792995AEE416 Ref B: LAX311000110051 Ref C: 2021-06-22T14:29:33Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware addon vr create - Connection: - - keep-alive - ParameterSetName: - - -g -c --vrs-count - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/123d1b24-3710-462c-893b-c5c18d71eb24?api-version=2021-06-01 - response: - body: - string: '{"endTime":"2021-06-22T14:29:31.6168753+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/123d1b24-3710-462c-893b-c5c18d71eb24","name":"123d1b24-3710-462c-893b-c5c18d71eb24","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr","name":"vr","properties":{"addonType":"VR","provisioningState":"Succeeded","vrsCount":1},"type":"Microsoft.AVS/privateClouds/addons"},"startTime":"2021-06-22T14:28:52.0125818+00:00","status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '801' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:29:43 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: FFBB937CFE1D419AB52C0552288505BE Ref B: LAX311000110051 Ref C: 2021-06-22T14:29:43Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware addon vr create - Connection: - - keep-alive - ParameterSetName: - - -g -c --vrs-count - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr","name":"vr","properties":{"addonType":"VR","provisioningState":"Succeeded","vrsCount":1},"type":"Microsoft.AVS/privateClouds/addons"}' - headers: - cache-control: - - no-cache - content-length: - - '341' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:29:43 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 9B0ECE8EDAD348B6991D83D57B7C3701 Ref B: LAX311000110051 Ref C: 2021-06-22T14:29:44Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:29:46 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AgfaJ22iEP5NkbKA6iZ0NOI; expires=Thu, 22-Jul-2021 14:29:47 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrOl3YBdgvhdVrd7Ih7brdSnokzoaTIuwI90l452onQpKMyeITWjkCvy30i4mh3hPPJNdgHn5l-aorC4fqLga4WXxNj_QyFBhBdU47DSrsdA8pOX4v40s4sB0pQ-bSI3X5TV46ZdUAeoCGh4lsHw5nOqcYtVJzcbRbw9vpMpU7PPkgAA; - 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.11829.8 - EUS ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware addon list - Connection: - - keep-alive - ParameterSetName: - - -g -c - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2021-06-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr","name":"vr","properties":{"addonType":"VR","provisioningState":"Succeeded","vrsCount":1},"type":"Microsoft.AVS/privateClouds/addons"}]}' - headers: - cache-control: - - no-cache - content-length: - - '353' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:29:49 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 9828FF9CFECB41E199BCF6607C263D9B Ref B: LAXEDGE1507 Ref C: 2021-06-22T14:29:49Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:29:53 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AlBToC54zCBAomzQqCjRNbE; expires=Thu, 22-Jul-2021 14:29:53 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrE9IEfC9c5n68PM2m-rrgTaHPN8DMy8NwVN1lKRmXmOmvFKju7pxEs90WhwnDZgNOTvXUeQVR_h0aEDykW2BUHQ8oxtsyeqkEprHx-UNokTz-TvwFVyQkvlihmPc-TwMrQZpwLqoFaazj4xjd7WNc2RJv5If1zZZNU7pvqMt1FNggAA; - 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.11829.8 - EUS ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware addon vr show - Connection: - - keep-alive - ParameterSetName: - - -g -c - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr","name":"vr","properties":{"addonType":"VR","provisioningState":"Succeeded","vrsCount":1},"type":"Microsoft.AVS/privateClouds/addons"}' - headers: - cache-control: - - no-cache - content-length: - - '341' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:29:54 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: F15D58C3DDF74D5DAE783F20094353F4 Ref B: LAXEDGE1618 Ref C: 2021-06-22T14:29:55Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:29:58 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AgT2xr0DooJOuUqD8Nxc0vA; expires=Thu, 22-Jul-2021 14:29:58 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrBGwJxnKZPFmyTkbbrt5uCn3iVFx4bN2o9FXNCDi1IxDUtumYL3gYpeSOwOpo14ahInuENttuogKKME6cvyG8aQ_dpC4FurWe3XsJ2fjyvTk7T-ScDOFsa1DcSdJVO4nDe7P6qhHOuBp549PMZWlX7HE8-u_YXAsy699_sO0khmIgAA; - 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.11829.4 - NCUS ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware addon vr delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -g -c - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr","name":"vr","properties":{"addonType":"VR","provisioningState":"Deleting","vrsCount":1},"type":"Microsoft.AVS/privateClouds/addons"}' - headers: - azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/d4c93e9e-4431-4241-b0b2-2b7a41f751cb?api-version=2021-06-01 - cache-control: - - no-cache - content-length: - - '340' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:30:01 GMT - expires: - - '-1' - location: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationresults/d4c93e9e-4431-4241-b0b2-2b7a41f751cb?api-version=2021-06-01 - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - x-msedge-ref: - - 'Ref A: CBC3AD7151644D6F80017624035585B2 Ref B: LAXEDGE1720 Ref C: 2021-06-22T14:30:00Z' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware addon vr delete - Connection: - - keep-alive - ParameterSetName: - - -g -c - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/d4c93e9e-4431-4241-b0b2-2b7a41f751cb?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/d4c93e9e-4431-4241-b0b2-2b7a41f751cb","name":"d4c93e9e-4431-4241-b0b2-2b7a41f751cb","percentComplete":0,"startTime":"2021-06-22T14:30:01.2766941+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '397' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:30:11 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 95FD424F2F6D42158F179519BAEE41B3 Ref B: LAXEDGE1720 Ref C: 2021-06-22T14:30:11Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware addon vr delete - Connection: - - keep-alive - ParameterSetName: - - -g -c - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/d4c93e9e-4431-4241-b0b2-2b7a41f751cb?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/d4c93e9e-4431-4241-b0b2-2b7a41f751cb","name":"d4c93e9e-4431-4241-b0b2-2b7a41f751cb","percentComplete":50,"startTime":"2021-06-22T14:30:01.2766941+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '398' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:30:21 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 110EA0F27F5C4599A543E1F545C87FCE Ref B: LAXEDGE1720 Ref C: 2021-06-22T14:30:21Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware addon vr delete - Connection: - - keep-alive - ParameterSetName: - - -g -c - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/d4c93e9e-4431-4241-b0b2-2b7a41f751cb?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/d4c93e9e-4431-4241-b0b2-2b7a41f751cb","name":"d4c93e9e-4431-4241-b0b2-2b7a41f751cb","percentComplete":0,"startTime":"2021-06-22T14:30:01.2766941+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '397' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:30:31 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 9BB43327D17241C9B365CDB3A139E4E8 Ref B: LAXEDGE1720 Ref C: 2021-06-22T14:30:31Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware addon vr delete - Connection: - - keep-alive - ParameterSetName: - - -g -c - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/d4c93e9e-4431-4241-b0b2-2b7a41f751cb?api-version=2021-06-01 - response: - body: - string: '{"endTime":"2021-06-22T14:30:36.6323601+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr/operationstatuses/d4c93e9e-4431-4241-b0b2-2b7a41f751cb","name":"d4c93e9e-4431-4241-b0b2-2b7a41f751cb","percentComplete":100,"startTime":"2021-06-22T14:30:01.2766941+00:00","status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '446' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:30:41 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: E34ABF10EA434E7CBBFEF3DEB3C58ED9 Ref B: LAXEDGE1720 Ref C: 2021-06-22T14:30:42Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:30:45 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AmvJHgBrni5FlS9BT7ekDhI; expires=Thu, 22-Jul-2021 14:30:45 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrv6HHhjcADrhe9wwy1JGdD7lU6VX_FkBIaOs8eRotzIYwx3tABu9CLI1DrhxoxwGH6RknPadDMITsoz5DDliCo-vGi9nswpABU03_ZxB9lVhNLNp_gIOgv_Gdp9XC7WNFSzUcaTsZ50kEFoR1yMaXmEqr4MilMDuy8u3_3skZpF4gAA; - 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.11829.8 - SCUS ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware addon list - Connection: - - keep-alive - ParameterSetName: - - -g -c - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2021-06-01 - response: - body: - string: '{"value":[]}' - headers: - cache-control: - - no-cache - content-length: - - '12' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:30:47 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: E6789D34B71442FCAA2C85AF54327B55 Ref B: LAX311000110019 Ref C: 2021-06-22T14:30:47Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:30:50 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AnncqloWeppBgJvMAgcU4l0; expires=Thu, 22-Jul-2021 14:30:51 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr9Bj-QUqG_4BQlD9h5zbI3BVw52nMztk7SFeYFTuMV_VM4SxH6wdUWbznhAyGpczJnkS7Ut539FF0qHKBlI4fIQWrN6cmUuvwp67SCFcLOCz2jWKhzTAgReYU62bPp05CeDMAWN7HI0RPC1j9NWBBn43Rt4MoWv97WnQZdDoayNcgAA; - 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.11829.4 - NCUS ProdSlices - status: - code: 200 - message: OK -- request: - body: '{"properties": {"addonType": "SRM", "licenseKey": "41915-178A8-FF4A4-DB683-6D735"}}' + body: '{"location": "northcentralus", "sku": {"name": "av20"}, "identity": {}, + "properties": {"managementCluster": {"clusterSize": 4}, "internet": "Disabled", + "networkBlock": "192.168.48.0/22"}}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware addon srm create + - vmware private-cloud create Connection: - keep-alive Content-Length: - - '83' + - '187' Content-Type: - application/json ParameterSetName: - - -g -c --license-key + - -g -n --location --sku --cluster-size --network-block --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm","name":"srm","properties":{"addonType":"SRM","licenseKey":"41915-178A8-FF4A4-DB683-6D735","provisioningState":"Building"},"type":"Microsoft.AVS/privateClouds/addons"}' - headers: - azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm/operationstatuses/80af6ca5-35e9-4183-bfb9-55f1aa36e0ba?api-version=2021-06-01 - cache-control: - - no-cache - content-length: - - '375' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:30:53 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - x-msedge-ref: - - 'Ref A: 7A1F0606A7BE49FEA0A9216F70B8DD1D Ref B: LAXEDGE1611 Ref C: 2021-06-22T14:30:53Z' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware addon srm create - Connection: - - keep-alive - ParameterSetName: - - -g -c --license-key - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm/operationstatuses/80af6ca5-35e9-4183-bfb9-55f1aa36e0ba?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm/operationstatuses/80af6ca5-35e9-4183-bfb9-55f1aa36e0ba","name":"80af6ca5-35e9-4183-bfb9-55f1aa36e0ba","percentComplete":25,"startTime":"2021-06-22T14:30:54.0388632+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '399' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:31:03 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: E26311E7E1A54F1C84C685FC552B82F9 Ref B: LAXEDGE1611 Ref C: 2021-06-22T14:31:04Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware addon srm create - Connection: - - keep-alive - ParameterSetName: - - -g -c --license-key - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm/operationstatuses/80af6ca5-35e9-4183-bfb9-55f1aa36e0ba?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm/operationstatuses/80af6ca5-35e9-4183-bfb9-55f1aa36e0ba","name":"80af6ca5-35e9-4183-bfb9-55f1aa36e0ba","percentComplete":0,"startTime":"2021-06-22T14:30:54.0388632+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '398' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:31:14 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 88C5A67627BE4C65AF9FAF79706062E7 Ref B: LAXEDGE1611 Ref C: 2021-06-22T14:31:14Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware addon srm create - Connection: - - keep-alive - ParameterSetName: - - -g -c --license-key - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm/operationstatuses/80af6ca5-35e9-4183-bfb9-55f1aa36e0ba?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm/operationstatuses/80af6ca5-35e9-4183-bfb9-55f1aa36e0ba","name":"80af6ca5-35e9-4183-bfb9-55f1aa36e0ba","percentComplete":50,"startTime":"2021-06-22T14:30:54.0388632+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '399' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:31:24 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: D2B90998F676405E94843F0E610FCF0E Ref B: LAXEDGE1611 Ref C: 2021-06-22T14:31:25Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware addon srm create - Connection: - - keep-alive - ParameterSetName: - - -g -c --license-key - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm/operationstatuses/80af6ca5-35e9-4183-bfb9-55f1aa36e0ba?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm/operationstatuses/80af6ca5-35e9-4183-bfb9-55f1aa36e0ba","name":"80af6ca5-35e9-4183-bfb9-55f1aa36e0ba","percentComplete":75,"startTime":"2021-06-22T14:30:54.0388632+00:00","status":"Building"}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]}}' headers: - cache-control: - - no-cache content-length: - - '399' + - '1339' content-type: - - application/json; charset=utf-8 + - application/json date: - - Tue, 22 Jun 2021 14:31:34 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: A7B1B63FFADC43E6A2E32938B7A0B71C Ref B: LAXEDGE1611 Ref C: 2021-06-22T14:31:35Z' + - Wed, 20 Oct 2021 22:02:00 GMT + server: + - Rocket status: code: 200 message: OK @@ -2093,146 +41,67 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware addon srm create + - vmware addon list Connection: - keep-alive ParameterSetName: - - -g -c --license-key + - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm/operationstatuses/80af6ca5-35e9-4183-bfb9-55f1aa36e0ba?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2021-12-01 response: body: - string: '{"endTime":"2021-06-22T14:31:31.6176814+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm/operationstatuses/80af6ca5-35e9-4183-bfb9-55f1aa36e0ba","name":"80af6ca5-35e9-4183-bfb9-55f1aa36e0ba","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm","name":"srm","properties":{"addonType":"SRM","licenseKey":"41915-178A8-FF4A4-DB683-6D735","provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/addons"},"startTime":"2021-06-22T14:30:54.0388632+00:00","status":"Succeeded"}' + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}]}' headers: - cache-control: - - no-cache content-length: - - '837' + - '253' content-type: - - application/json; charset=utf-8 + - application/json date: - - Tue, 22 Jun 2021 14:31:44 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: A911C66370EE4A4C95DB85EC3D257345 Ref B: LAXEDGE1611 Ref C: 2021-06-22T14:31:45Z' + - Wed, 20 Oct 2021 22:02:04 GMT + server: + - Rocket status: code: 200 message: OK - request: - body: null + body: '{"properties": {"addonType": "VR", "vrsCount": 1}}' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware addon srm create + - vmware addon vr create Connection: - keep-alive + Content-Length: + - '50' + Content-Type: + - application/json ParameterSetName: - - -g -c --license-key - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm","name":"srm","properties":{"addonType":"SRM","licenseKey":"41915-178A8-FF4A4-DB683-6D735","provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/addons"}' - headers: - cache-control: - - no-cache - content-length: - - '376' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:31:45 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 86613A99A70D4C57A2FDB507223C7080 Ref B: LAXEDGE1611 Ref C: 2021-06-22T14:31:45Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive + - -g -c --vrs-count User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr?api-version=2021-12-01 response: body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}' headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private content-length: - - '131' + - '241' content-type: - - application/json; charset=utf-8 + - application/json date: - - Tue, 22 Jun 2021 14:31:48 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AtLwp-vYI4pEsIXd5O9xGYA; expires=Thu, 22-Jul-2021 14:31:49 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrFok1ZQiPwrZBnqqHKXJQEtc5QQGXGHyBf-CsmHj-veBegKwH1m0-GBE9TbfQzQ3JZv4PMwIUfLaO_S1YKT1Bv1oB2TvSKnbBL89STwhVTZ0zZLeo-gkwfXM2YrVORmFJ81EGo2Fv7uR6lP9vZoq6Mq2_jYJq4us8S1w_TQL2_Q4gAA; - 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.11829.4 - NCUS ProdSlices + - Wed, 20 Oct 2021 22:02:09 GMT + server: + - Rocket status: code: 200 message: OK @@ -2250,92 +119,21 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2021-06-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm","name":"srm","properties":{"addonType":"SRM","licenseKey":"41915-178A8-FF4A4-DB683-6D735","provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/addons"}]}' - headers: - cache-control: - - no-cache - content-length: - - '388' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:31:51 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 2A64509D01B341E7AB0A1C324CEE9521 Ref B: LAX311000112029 Ref C: 2021-06-22T14:31:51Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2021-12-01 response: body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}]}' headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private content-length: - - '131' + - '253' content-type: - - application/json; charset=utf-8 + - application/json date: - - Tue, 22 Jun 2021 14:31:54 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AmsjMx6JVkZNmmN7FZAyLAo; expires=Thu, 22-Jul-2021 14:31:54 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrcwYZN93qx-wvMu3n0bCWotKtFaJPuuErJb67hn7heC54wk-tnENlDxkKwaiQavyCWyBR4_ixIa9pjKNwLT2EBOECLID3MzTk9mBtxv12UpfP6xQ4psQv0_vIp0-ohJ6MtOzIh7m5RbmueT5yvn5Web0X9OE8FuzlVxs_mMgrVwAgAA; - 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.11829.4 - WUS2 ProdSlices + - Wed, 20 Oct 2021 22:02:13 GMT + server: + - Rocket status: code: 200 message: OK @@ -2347,98 +145,27 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - vmware addon srm show + - vmware addon vr show Connection: - keep-alive ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm","name":"srm","properties":{"addonType":"SRM","licenseKey":"41915-178A8-FF4A4-DB683-6D735","provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/addons"}' - headers: - cache-control: - - no-cache - content-length: - - '376' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:31:56 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: C5CE4366459340FB9DA8805EABC6DAD9 Ref B: LAX311000111049 Ref C: 2021-06-22T14:31:57Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr?api-version=2021-12-01 response: body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}' headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private content-length: - - '131' + - '241' content-type: - - application/json; charset=utf-8 + - application/json date: - - Tue, 22 Jun 2021 14:32:00 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AsGfmW9-zbdDhS2YjzbD0kA; expires=Thu, 22-Jul-2021 14:32:00 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr5jE_AzsmbYxzITjVD5BLzj5rj-Rdr6wIZVVpYYLVmGfA-Tvi6SA-Vc3hU6drgd7XGcpuSE3uuZSFiv23eGwYOSYxAQGUb0IEHAbBBrsLhqfPYx-FX9ZOCCWd83CZH1yK9nZ9DzJuPwtQ7kmyqwE7yVREA5Ody2S5FifTZU5gJvggAA; - 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.11829.8 - WUS2 ProdSlices + - Wed, 20 Oct 2021 22:02:17 GMT + server: + - Rocket status: code: 200 message: OK @@ -2450,7 +177,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - vmware addon srm delete + - vmware addon vr delete Connection: - keep-alive Content-Length: @@ -2458,127 +185,87 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm","name":"srm","properties":{"addonType":"SRM","licenseKey":"41915-178A8-FF4A4-DB683-6D735","provisioningState":"Deleting"},"type":"Microsoft.AVS/privateClouds/addons"}' + string: '' headers: - azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm/operationstatuses/f90bcbce-e2c6-40ab-bc62-f4414eca8a05?api-version=2021-06-01 - cache-control: - - no-cache content-length: - - '375' - content-type: - - application/json; charset=utf-8 + - '0' date: - - Tue, 22 Jun 2021 14:32:03 GMT - expires: - - '-1' - location: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm/operationresults/f90bcbce-e2c6-40ab-bc62-f4414eca8a05?api-version=2021-06-01 - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14998' - x-msedge-ref: - - 'Ref A: 0B3D19E213B1469E8E70636E8C402BA0 Ref B: LAX311000112021 Ref C: 2021-06-22T14:32:02Z' + - Wed, 20 Oct 2021 22:02:22 GMT + server: + - Rocket status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware addon srm delete + - vmware addon list Connection: - keep-alive ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm/operationstatuses/f90bcbce-e2c6-40ab-bc62-f4414eca8a05?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm/operationstatuses/f90bcbce-e2c6-40ab-bc62-f4414eca8a05","name":"f90bcbce-e2c6-40ab-bc62-f4414eca8a05","percentComplete":0,"startTime":"2021-06-22T14:32:02.9951519+00:00","status":"Building"}' + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}]}' headers: - cache-control: - - no-cache content-length: - - '398' + - '253' content-type: - - application/json; charset=utf-8 + - application/json date: - - Tue, 22 Jun 2021 14:32:13 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 6170F1BCD55C45618D1DF6FEE57ACEB7 Ref B: LAX311000112021 Ref C: 2021-06-22T14:32:13Z' + - Wed, 20 Oct 2021 22:02:26 GMT + server: + - Rocket status: code: 200 message: OK - request: - body: null + body: '{"properties": {"addonType": "SRM", "licenseKey": "41915-178A8-FF4A4-DB683-6D735"}}' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware addon srm delete + - vmware addon srm create Connection: - keep-alive + Content-Length: + - '83' + Content-Type: + - application/json ParameterSetName: - - -g -c + - -g -c --license-key User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm/operationstatuses/f90bcbce-e2c6-40ab-bc62-f4414eca8a05?api-version=2021-06-01 + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm/operationstatuses/f90bcbce-e2c6-40ab-bc62-f4414eca8a05","name":"f90bcbce-e2c6-40ab-bc62-f4414eca8a05","percentComplete":25,"startTime":"2021-06-22T14:32:02.9951519+00:00","status":"Building"}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}' headers: - cache-control: - - no-cache content-length: - - '399' + - '241' content-type: - - application/json; charset=utf-8 + - application/json date: - - Tue, 22 Jun 2021 14:32:23 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: B30520955E714512A5012B474D643B8A Ref B: LAX311000112021 Ref C: 2021-06-22T14:32:23Z' + - Wed, 20 Oct 2021 22:02:31 GMT + server: + - Rocket status: code: 200 message: OK @@ -2586,43 +273,31 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware addon srm delete + - vmware addon list Connection: - keep-alive ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm/operationstatuses/f90bcbce-e2c6-40ab-bc62-f4414eca8a05?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm/operationstatuses/f90bcbce-e2c6-40ab-bc62-f4414eca8a05","name":"f90bcbce-e2c6-40ab-bc62-f4414eca8a05","percentComplete":50,"startTime":"2021-06-22T14:32:02.9951519+00:00","status":"Building"}' + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}]}' headers: - cache-control: - - no-cache content-length: - - '399' + - '253' content-type: - - application/json; charset=utf-8 + - application/json date: - - Tue, 22 Jun 2021 14:32:33 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: F8C8912CD59C4F6C94A1794BBE285561 Ref B: LAX311000112021 Ref C: 2021-06-22T14:32:33Z' + - Wed, 20 Oct 2021 22:02:35 GMT + server: + - Rocket status: code: 200 message: OK @@ -2630,43 +305,31 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware addon srm delete + - vmware addon srm show Connection: - keep-alive ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm/operationstatuses/f90bcbce-e2c6-40ab-bc62-f4414eca8a05?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm/operationstatuses/f90bcbce-e2c6-40ab-bc62-f4414eca8a05","name":"f90bcbce-e2c6-40ab-bc62-f4414eca8a05","percentComplete":75,"startTime":"2021-06-22T14:32:02.9951519+00:00","status":"Building"}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}' headers: - cache-control: - - no-cache content-length: - - '399' + - '241' content-type: - - application/json; charset=utf-8 + - application/json date: - - Tue, 22 Jun 2021 14:32:43 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: C6EA54D9F9CB45789C6B1462AD29FF08 Ref B: LAX311000112021 Ref C: 2021-06-22T14:32:43Z' + - Wed, 20 Oct 2021 22:02:40 GMT + server: + - Rocket status: code: 200 message: OK @@ -2674,102 +337,31 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - vmware addon srm delete Connection: - keep-alive + Content-Length: + - '0' ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm/operationstatuses/f90bcbce-e2c6-40ab-bc62-f4414eca8a05?api-version=2021-06-01 - response: - body: - string: '{"endTime":"2021-06-22T14:32:41.6261102+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm/operationstatuses/f90bcbce-e2c6-40ab-bc62-f4414eca8a05","name":"f90bcbce-e2c6-40ab-bc62-f4414eca8a05","percentComplete":100,"startTime":"2021-06-22T14:32:02.9951519+00:00","status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '447' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Jun 2021 14:32:54 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 1D47AE1FF58B487F8434607CEB69F1C7 Ref B: LAX311000112021 Ref C: 2021-06-22T14:32:54Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: DELETE + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm?api-version=2021-12-01 response: body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + string: '' headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private content-length: - - '131' - content-type: - - application/json; charset=utf-8 + - '0' date: - - Tue, 22 Jun 2021 14:32:56 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=Atuqkns_aExAqz8bV79FoVU; expires=Thu, 22-Jul-2021 14:32:57 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrGv47Y-341-ZeQRxTCXSDzXojrt27RGYU6gFqw7D4uQ_JkFqqF6_S7-zpiKYKYT-6xl7qfIUOXC9NvyLFRYyoWb18NXtICDniRw5Jm9QnG5lKwIl0VmwBKCPWeTkk4CUUHCvcDiHCYQX9aGpt0vAmdimhCRmWiTq7uTNuXRLCEOUgAA; - 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.11829.4 - NCUS ProdSlices + - Wed, 20 Oct 2021 22:02:44 GMT + server: + - Rocket status: code: 200 message: OK @@ -2787,33 +379,21 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2021-12-01 response: body: - string: '{"value":[]}' + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}]}' headers: - cache-control: - - no-cache content-length: - - '12' + - '253' content-type: - - application/json; charset=utf-8 + - application/json date: - - Tue, 22 Jun 2021 14:32:59 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 80619451795648878D8A23D5320333E3 Ref B: LAX311000113047 Ref C: 2021-06-22T14:32:59Z' + - Wed, 20 Oct 2021 22:02:48 GMT + server: + - Rocket status: code: 200 message: OK diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml index ca4e0a71f87..93b961b97c1 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml @@ -17,9 +17,9 @@ interactions: ParameterSetName: - -g -c -n --linked-cloud User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/cloudLinks/cloudLink1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/cloudLinks/cloudLink1?api-version=2021-12-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/cloudLinks/cloudLink1","name":"cloudLink1","type":"Microsoft.AVS/privateClouds/cloudLinks","properties":{"status":"Active","linkedCloud":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"}}' @@ -29,7 +29,9 @@ interactions: content-type: - application/json date: - - Mon, 12 Jul 2021 22:04:02 GMT + - Wed, 20 Oct 2021 22:02:00 GMT + server: + - Rocket status: code: 200 message: OK @@ -47,9 +49,9 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/cloudLinks?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/cloudLinks?api-version=2021-12-01 response: body: string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/cloudLinks/cloudLink1","name":"cloudLink1","type":"Microsoft.AVS/privateClouds/cloudLinks","properties":{"status":"Active","linkedCloud":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"}}]}' @@ -59,7 +61,9 @@ interactions: content-type: - application/json date: - - Mon, 12 Jul 2021 22:04:04 GMT + - Wed, 20 Oct 2021 22:02:04 GMT + server: + - Rocket status: code: 200 message: OK @@ -77,9 +81,9 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/cloudLinks/cloudLink1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/cloudLinks/cloudLink1?api-version=2021-12-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/cloudLinks/cloudLink1","name":"cloudLink1","type":"Microsoft.AVS/privateClouds/cloudLinks","properties":{"status":"Active","linkedCloud":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"}}' @@ -89,7 +93,9 @@ interactions: content-type: - application/json date: - - Mon, 12 Jul 2021 22:04:06 GMT + - Wed, 20 Oct 2021 22:02:09 GMT + server: + - Rocket status: code: 200 message: OK @@ -109,9 +115,9 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/cloudLinks/cloudLink1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/cloudLinks/cloudLink1?api-version=2021-12-01 response: body: string: '' @@ -119,7 +125,9 @@ interactions: content-length: - '0' date: - - Mon, 12 Jul 2021 22:04:08 GMT + - Wed, 20 Oct 2021 22:02:13 GMT + server: + - Rocket status: code: 200 message: OK diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml index 0a1068ab48d..b8718fe4cc0 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml @@ -1,63 +1,4 @@ interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 20:37:12 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=Aj8f589qiTxOlJkgGY96Fuk; expires=Sat, 03-Jul-2021 20:37:13 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr9rbqiTYy_YgPA7uXITa-dCH8nwbQ2aezA6m87zoKX0OqjeX_vgRRbRdLlqG5NTGGRaJovA0mbXmoLkLrEWxszgE0gLV0WVZz046f46Y-_smUbp6vfkpbxQxPX0PggSi16VmLEbD4Z_VBY0XilG4NSH-w5XFN1Xlid3u30PzL7FIgAA; - 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.11722.21 - SCUS ProdSlices - status: - code: 200 - message: OK - request: body: '{"properties": {"diskPoolVolume": {"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-df-rg/providers/Microsoft.StoragePool/diskPools/rasivagu-df-diskpool/iscsiTargets/rasivagu-df-target", "lunName": "lun0", "mountOption": "MOUNT"}}}' @@ -77,184 +18,21 @@ interactions: ParameterSetName: - --name --resource-group --private-cloud --cluster --target-id --lun-name User-Agent: - - AZURECLI/2.19.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1","name":"iSCSIDatastore1","properties":{"diskPoolVolume":{"lunName":"lun0","mountOption":"Mount","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-df-rg/providers/Microsoft.StoragePool/diskPools/rasivagu-df-diskpool/iscsiTargets/rasivagu-df-target"},"provisioningState":"Pending"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"}' - headers: - azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1/operationstatuses/423677d7-f078-42fd-9e7e-321a0d73b2be?api-version=2021-06-01 - cache-control: - - no-cache - content-length: - - '570' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 20:37:16 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - x-msedge-ref: - - 'Ref A: AA01EC02673C4690A104744662D707B8 Ref B: WSTEDGE1110 Ref C: 2021-06-03T20:37:13Z' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware datastore disk-pool-volume create - Connection: - - keep-alive - ParameterSetName: - - --name --resource-group --private-cloud --cluster --target-id --lun-name - User-Agent: - - AZURECLI/2.19.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1/operationstatuses/423677d7-f078-42fd-9e7e-321a0d73b2be?api-version=2021-06-01 - response: - body: - string: '{"endTime":"2021-06-03T20:37:16.6433365+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1/operationstatuses/423677d7-f078-42fd-9e7e-321a0d73b2be","name":"423677d7-f078-42fd-9e7e-321a0d73b2be","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1","name":"iSCSIDatastore1","properties":{"diskPoolVolume":{"lunName":"lun0","mountOption":"Mount","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-df-rg/providers/Microsoft.StoragePool/diskPools/rasivagu-df-diskpool/iscsiTargets/rasivagu-df-target"},"provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"},"startTime":"2021-06-03T20:37:15.2647827+00:00","status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '1019' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 20:37:26 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: D1C2BA89AE78494DB5CBD42B6088A31E Ref B: WSTEDGE1110 Ref C: 2021-06-03T20:37:26Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware datastore disk-pool-volume create - Connection: - - keep-alive - ParameterSetName: - - --name --resource-group --private-cloud --cluster --target-id --lun-name - User-Agent: - - AZURECLI/2.19.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1","name":"iSCSIDatastore1","properties":{"diskPoolVolume":{"lunName":"lun0","mountOption":"Mount","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-df-rg/providers/Microsoft.StoragePool/diskPools/rasivagu-df-diskpool/iscsiTargets/rasivagu-df-target"},"provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"}' - headers: - cache-control: - - no-cache - content-length: - - '572' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 20:37:26 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: C8A051D94412485EADACEADAADD063FD Ref B: WSTEDGE1110 Ref C: 2021-06-03T20:37:26Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1?api-version=2021-12-01 response: body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/datastores/datastore1","name":"datastore1","type":"Microsoft.AVS/privateClouds/clusters/datastores","properties":{"provisioningState":"Succeeded","netAppVolume":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1"}}}' headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private content-length: - - '131' + - '479' content-type: - - application/json; charset=utf-8 + - application/json date: - - Thu, 03 Jun 2021 20:37:27 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=Arbzb2bM-L9Ftzsn1wLrU5k; expires=Sat, 03-Jul-2021 20:37:28 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrqdEzbk--0ngETuxmF7QdAWgb_PQEH4rX7_Rym0pYjW4q_jb_erIrZ3fRGA9WwbRuRZBY7S_8BMpqjBFn4FDJqHjXmOFhy3za3gilUPp40ihtBKNLghv7oA1mWbBDivhOHyznQhOw9_Jrw3TzdNmEDM8LpIi_twHxLVVTrS9UEzMgAA; - 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.11722.21 - SCUS ProdSlices + - Wed, 20 Oct 2021 22:02:00 GMT + server: + - Rocket status: code: 200 message: OK @@ -272,92 +50,21 @@ interactions: ParameterSetName: - --name --resource-group --private-cloud --cluster User-Agent: - - AZURECLI/2.19.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1","name":"iSCSIDatastore1","properties":{"diskPoolVolume":{"lunName":"lun0","mountOption":"Mount","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-df-rg/providers/Microsoft.StoragePool/diskPools/rasivagu-df-diskpool/iscsiTargets/rasivagu-df-target"},"provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/datastores/datastore1","name":"datastore1","type":"Microsoft.AVS/privateClouds/clusters/datastores","properties":{"provisioningState":"Succeeded","netAppVolume":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1"}}}' headers: - cache-control: - - no-cache content-length: - - '572' + - '479' content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 20:37:27 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: DFCC24212B144714BBB139A61191967D Ref B: WSTEDGE1005 Ref C: 2021-06-03T20:37:28Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 + - application/json date: - - Thu, 03 Jun 2021 20:37:28 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=ApQMTB7OmGxElejTI_nD-KI; expires=Sat, 03-Jul-2021 20:37:28 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrCttPgZbi6xCTUiOW-UwhtVE0J3ix7gmB6B6plUlVxibgnyYFi2YOH5hXKlH7u3mz2JFKBJOwjbK_lmN-gvWU9Gx7JEuwlB5yBE3_Xodqe6uY7xrsxJonQHAHGAHNeFw1FC-Q5yfGYVIUKEHM_CBoZvgiGvT-qKnwBm3qNyiaM6ogAA; - 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.11722.21 - SCUS ProdSlices + - Wed, 20 Oct 2021 22:02:04 GMT + server: + - Rocket status: code: 200 message: OK @@ -375,92 +82,21 @@ interactions: ParameterSetName: - --resource-group --private-cloud --cluster User-Agent: - - AZURECLI/2.19.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores?api-version=2021-12-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/df-iscsi-datastore-1","name":"df-iscsi-datastore-1","properties":{"diskPoolVolume":{"lunName":"lun0","mountOption":"Mount","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-df-rg/providers/Microsoft.StoragePool/diskPools/rasivagu-df-diskpool/iscsiTargets/rasivagu-df-target"},"provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/df-iscsi-datastore-2","name":"df-iscsi-datastore-2","properties":{"diskPoolVolume":{"lunName":"lun0","mountOption":"Mount","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-df-rg/providers/Microsoft.StoragePool/diskPools/rasivagu-df-diskpool/iscsiTargets/rasivagu-df-target"},"provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/df-iscsi-datastore-3","name":"df-iscsi-datastore-3","properties":{"diskPoolVolume":{"lunName":"lun0","mountOption":"Mount","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-df-rg/providers/Microsoft.StoragePool/diskPools/rasivagu-df-diskpool/iscsiTargets/rasivagu-df-target"},"provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/df-iscsi-datastore-4","name":"df-iscsi-datastore-4","properties":{"diskPoolVolume":{"lunName":"lun0","mountOption":"Mount","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-df-rg/providers/Microsoft.StoragePool/diskPools/rasivagu-df-diskpool/iscsiTargets/rasivagu-df-target"},"provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1","name":"iSCSIDatastore1","properties":{"diskPoolVolume":{"lunName":"lun0","mountOption":"Mount","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-df-rg/providers/Microsoft.StoragePool/diskPools/rasivagu-df-diskpool/iscsiTargets/rasivagu-df-target"},"provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"}]}' + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/datastores/datastore1","name":"datastore1","type":"Microsoft.AVS/privateClouds/clusters/datastores","properties":{"provisioningState":"Succeeded","netAppVolume":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1"}}},{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/datastores/datastore2","name":"datastore2","type":"Microsoft.AVS/privateClouds/clusters/datastores","properties":{"provisioningState":"Succeeded","diskPoolVolume":{"targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup1/providers/Microsoft.StoragePool/diskPools/DiskPool1/targets/Target1","lunName":"lun0","mountOption":"MOUNT","path":"/vmfs/devices/disks/naa.6001405f75f6bdf7f6f49db8b4b21723"}}}]}' headers: - cache-control: - - no-cache content-length: - - '2916' + - '1051' content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 20:37:29 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 79E2159D4A5C48E681027A444D877178 Ref B: WSTEDGE1017 Ref C: 2021-06-03T20:37:29Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 + - application/json date: - - Thu, 03 Jun 2021 20:37:30 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AriST5J3hzRAmiqgDxWKxdw; expires=Sat, 03-Jul-2021 20:37:30 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrnxGW_OEXcfY54JU6624WEQiDYZBKAZ6_P6Y_Qreb0h4gl2J1NObsS9UC1XqhN-Uyg5lU0Mk3xxumnpiMoIwHqsxNBr0NM1qkNAN7faHj5tg91CsiWyF3vwC_34u_1PGExigwyJ6cRmCSY7bOMdhvJXWnBf2U24F_wcYLtFHVof8gAA; - 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.11722.26 - WUS2 ProdSlices + - Wed, 20 Oct 2021 22:02:09 GMT + server: + - Rocket status: code: 200 message: OK @@ -480,83 +116,19 @@ interactions: ParameterSetName: - --name --resource-group --private-cloud --cluster User-Agent: - - AZURECLI/2.19.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1","name":"iSCSIDatastore1","properties":{"diskPoolVolume":{"lunName":"lun0","mountOption":"Mount","targetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-df-rg/providers/Microsoft.StoragePool/diskPools/rasivagu-df-diskpool/iscsiTargets/rasivagu-df-target"},"provisioningState":"Pending"},"type":"Microsoft.AVS/privateClouds/clusters/datastores"}' - headers: - azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1/operationstatuses/71b73745-5644-4172-8cfd-305fb265d3c3?api-version=2021-06-01 - cache-control: - - no-cache - content-length: - - '570' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 03 Jun 2021 20:37:31 GMT - expires: - - '-1' - location: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1/operationresults/71b73745-5644-4172-8cfd-305fb265d3c3?api-version=2021-06-01 - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - x-msedge-ref: - - 'Ref A: 506FAE2517144950846A0CE04475665E Ref B: WSTEDGE1015 Ref C: 2021-06-03T20:37:30Z' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware datastore delete - Connection: - - keep-alive - ParameterSetName: - - --name --resource-group --private-cloud --cluster - User-Agent: - - AZURECLI/2.19.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1/operationstatuses/71b73745-5644-4172-8cfd-305fb265d3c3?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1?api-version=2021-12-01 response: body: - string: '{"endTime":"2021-06-03T20:37:30.7641057+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1/operationstatuses/71b73745-5644-4172-8cfd-305fb265d3c3","name":"71b73745-5644-4172-8cfd-305fb265d3c3","percentComplete":100,"startTime":"2021-06-03T20:37:30.2163126+00:00","status":"Succeeded"}' + string: '' headers: - cache-control: - - no-cache content-length: - - '433' - content-type: - - application/json; charset=utf-8 + - '0' date: - - Thu, 03 Jun 2021 20:37:41 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 2A4A67D2A0974537AF413865BC47527D Ref B: WSTEDGE1015 Ref C: 2021-06-03T20:37:41Z' + - Wed, 20 Oct 2021 22:02:13 GMT + server: + - Rocket status: code: 200 message: OK diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml deleted file mode 100644 index bcb4b930092..00000000000 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml +++ /dev/null @@ -1,1375 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 16 Jun 2021 18:30:59 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AggNfcJuW3tOiJxsBRpkSYI; expires=Fri, 16-Jul-2021 18:30:59 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevriAnXvQ6vUu3Ms5jQYOeu8h_t65xEb_4IMH73ZPCXAiMdIhrBF7EbXq-fx433AolA-khFE1oscCXCDeumXk2HsRK7tSkXg2Um-plbzNdcFiHMK4TT2dZ27aztoIFPzB3YWy0HpDBUo6TwtG4PFIKuyXRuJ-ZxCSLjeMnJz-kmRwwgAA; - 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.11787.15 - EUS ProdSlices - status: - code: 200 - message: OK -- request: - body: '{"location": "westcentralus", "tags": {}, "sku": {"name": "av20"}, "properties": - {"managementCluster": {"clusterSize": 4}, "internet": "Disabled", "networkBlock": - "192.168.48.0/22", "vcenterPassword": "UpfBXae9ZquZSDXk(", "nsxtPassword": "5rqdLj4GF3cePUe6("}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - Content-Length: - - '259' - Content-Type: - - application/json - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"westcentralus","name":"cloud1","properties":{"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost32.mp01.mock01.vmcp.vs.management","gp-fakehost31.mp01.mock01.vmcp.vs.management","gp-fakehost35.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management"],"provisioningState":"Building"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","provisioningNetwork":"192.168.50.0/25","provisioningState":"Building","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' - headers: - azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a3970561-6113-45e9-80d3-36c4f8b70cef?api-version=2021-06-01 - cache-control: - - no-cache - content-length: - - '975' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 16 Jun 2021 18:31:07 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - x-msedge-ref: - - 'Ref A: A48C421106D744FDBA74C2B83DA1AE66 Ref B: LAXEDGE1414 Ref C: 2021-06-16T18:31:02Z' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a3970561-6113-45e9-80d3-36c4f8b70cef?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a3970561-6113-45e9-80d3-36c4f8b70cef","name":"a3970561-6113-45e9-80d3-36c4f8b70cef","percentComplete":0,"startTime":"2021-06-16T18:31:04.9031706+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '385' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 16 Jun 2021 18:31:17 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: A7F5055826E848CC89D63DABF7F730C5 Ref B: LAXEDGE1414 Ref C: 2021-06-16T18:31:18Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a3970561-6113-45e9-80d3-36c4f8b70cef?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a3970561-6113-45e9-80d3-36c4f8b70cef","name":"a3970561-6113-45e9-80d3-36c4f8b70cef","percentComplete":0,"startTime":"2021-06-16T18:31:04.9031706+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '385' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 16 Jun 2021 18:31:28 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 5A2DF10B42C44F6195236E3A4DCC1C90 Ref B: LAXEDGE1414 Ref C: 2021-06-16T18:31:28Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a3970561-6113-45e9-80d3-36c4f8b70cef?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a3970561-6113-45e9-80d3-36c4f8b70cef","name":"a3970561-6113-45e9-80d3-36c4f8b70cef","percentComplete":88.75,"startTime":"2021-06-16T18:31:04.9031706+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '389' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 16 Jun 2021 18:31:39 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 9A71AB1BF5C2492ABDBB0348E5FFD5E0 Ref B: LAXEDGE1414 Ref C: 2021-06-16T18:31:38Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a3970561-6113-45e9-80d3-36c4f8b70cef?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a3970561-6113-45e9-80d3-36c4f8b70cef","name":"a3970561-6113-45e9-80d3-36c4f8b70cef","percentComplete":88.75,"startTime":"2021-06-16T18:31:04.9031706+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '389' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 16 Jun 2021 18:31:49 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: D513923D84424D05B0032411BB6ABC88 Ref B: LAXEDGE1414 Ref C: 2021-06-16T18:31:50Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a3970561-6113-45e9-80d3-36c4f8b70cef?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a3970561-6113-45e9-80d3-36c4f8b70cef","name":"a3970561-6113-45e9-80d3-36c4f8b70cef","percentComplete":88.75,"startTime":"2021-06-16T18:31:04.9031706+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '389' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 16 Jun 2021 18:31:59 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: B8A1E952D01D49879789145F75E0C129 Ref B: LAXEDGE1414 Ref C: 2021-06-16T18:32:00Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a3970561-6113-45e9-80d3-36c4f8b70cef?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a3970561-6113-45e9-80d3-36c4f8b70cef","name":"a3970561-6113-45e9-80d3-36c4f8b70cef","percentComplete":100,"startTime":"2021-06-16T18:31:04.9031706+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '387' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 16 Jun 2021 18:32:10 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 84C4A64855EC474186ABCD0875CC2273 Ref B: LAXEDGE1414 Ref C: 2021-06-16T18:32:10Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a3970561-6113-45e9-80d3-36c4f8b70cef?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a3970561-6113-45e9-80d3-36c4f8b70cef","name":"a3970561-6113-45e9-80d3-36c4f8b70cef","percentComplete":100,"startTime":"2021-06-16T18:31:04.9031706+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '387' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 16 Jun 2021 18:32:20 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 2E594EDAC923487EB2E5C9EE3C86A857 Ref B: LAXEDGE1414 Ref C: 2021-06-16T18:32:21Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a3970561-6113-45e9-80d3-36c4f8b70cef?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a3970561-6113-45e9-80d3-36c4f8b70cef","name":"a3970561-6113-45e9-80d3-36c4f8b70cef","percentComplete":100,"startTime":"2021-06-16T18:31:04.9031706+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '387' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 16 Jun 2021 18:32:30 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: D90EC2FF56D54E90A18D63F39E316C94 Ref B: LAXEDGE1414 Ref C: 2021-06-16T18:32:31Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a3970561-6113-45e9-80d3-36c4f8b70cef?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a3970561-6113-45e9-80d3-36c4f8b70cef","name":"a3970561-6113-45e9-80d3-36c4f8b70cef","percentComplete":100,"startTime":"2021-06-16T18:31:04.9031706+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '387' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 16 Jun 2021 18:32:41 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 8701EDBA01F04A3BA737D1F08B3FD6C0 Ref B: LAXEDGE1414 Ref C: 2021-06-16T18:32:41Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a3970561-6113-45e9-80d3-36c4f8b70cef?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a3970561-6113-45e9-80d3-36c4f8b70cef","name":"a3970561-6113-45e9-80d3-36c4f8b70cef","percentComplete":100,"startTime":"2021-06-16T18:31:04.9031706+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '387' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 16 Jun 2021 18:32:51 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 01C3BB0A447B4E549629883EDFCBB3FC Ref B: LAXEDGE1414 Ref C: 2021-06-16T18:32:52Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a3970561-6113-45e9-80d3-36c4f8b70cef?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a3970561-6113-45e9-80d3-36c4f8b70cef","name":"a3970561-6113-45e9-80d3-36c4f8b70cef","percentComplete":100,"startTime":"2021-06-16T18:31:04.9031706+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '387' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 16 Jun 2021 18:33:01 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: A9115CA3A4F14E3AB91D85EDAC99C0BC Ref B: LAXEDGE1414 Ref C: 2021-06-16T18:33:02Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a3970561-6113-45e9-80d3-36c4f8b70cef?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a3970561-6113-45e9-80d3-36c4f8b70cef","name":"a3970561-6113-45e9-80d3-36c4f8b70cef","percentComplete":100,"startTime":"2021-06-16T18:31:04.9031706+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '387' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 16 Jun 2021 18:33:11 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: DDD84377BB76445F8AAC3A2CA47F6CB5 Ref B: LAXEDGE1414 Ref C: 2021-06-16T18:33:12Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a3970561-6113-45e9-80d3-36c4f8b70cef?api-version=2021-06-01 - response: - body: - string: '{"endTime":"2021-06-16T18:33:17.6247815+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/a3970561-6113-45e9-80d3-36c4f8b70cef","name":"a3970561-6113-45e9-80d3-36c4f8b70cef","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"westcentralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt38-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt38-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt38-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt38-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.48.232/30","secondarySubnet":"192.168.48.236/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost32.mp01.mock01.vmcp.vs.management","gp-fakehost31.mp01.mock01.vmcp.vs.management","gp-fakehost35.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/25","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-06-16T18:31:04.9031706+00:00","status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '2067' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 16 Jun 2021 18:33:22 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 7C13D211D3BB40F9A4308A9136E7723A Ref B: LAXEDGE1414 Ref C: 2021-06-16T18:33:22Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"westcentralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt38-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt38-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt38-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt38-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.48.232/30","secondarySubnet":"192.168.48.236/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost32.mp01.mock01.vmcp.vs.management","gp-fakehost31.mp01.mock01.vmcp.vs.management","gp-fakehost35.mp01.mock01.vmcp.vs.management","gp-fakehost33.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/25","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' - headers: - cache-control: - - no-cache - content-length: - - '1619' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 16 Jun 2021 18:33:22 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 22021F46B3334A2BAA1AF96537D01351 Ref B: LAXEDGE1414 Ref C: 2021-06-16T18:33:23Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 16 Jun 2021 18:33:25 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=An35iydOw-1LloiYBalnmAI; expires=Fri, 16-Jul-2021 18:33:26 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr_vrnxMBtaeFjr-Ht_9jFZ6pHW2I4qCmotPnAfjGN6CrgJCTM2U5UTRPI1sEdSuCWi_jN6tae2uRLgkZGDrWiW28T96Ee57oXA5ZimwXlvI3xJ9F_bxRQIip8Jr2fkwnypXXWKwfE5gq-rcCy1TnQpRpZ7DnmP2_jPGLDE5sKjQogAA; - 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.11829.4 - WUS2 ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware global-reach-connection list - Connection: - - keep-alive - ParameterSetName: - - -g -c - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections?api-version=2021-06-01 - response: - body: - string: '{"value":[]}' - headers: - cache-control: - - no-cache - content-length: - - '12' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 16 Jun 2021 18:33:29 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 5DD6EED41276432FA4C7ED7B9A4BA1A5 Ref B: LAXEDGE1313 Ref C: 2021-06-16T18:33:29Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 16 Jun 2021 18:33:32 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=Av0lksS2butIkMfRSiyWHtY; expires=Fri, 16-Jul-2021 18:33:32 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevryDCxNBU4JwAYX2vzxpCFH5mTR5SA6XPJnx9mTKUKzzPpjP684jOue7hkpZI9yRptZfBE9yKCq3hLAS3eXofry7b-Q974Vtjh7HLrc9CF5VeSEfQjUVqtyr1f0K6g2clUMFe4GX5Lj4zTHiwLSfRStYaP4QiAFQyXqx8Eciwc7ysgAA; - 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.11787.15 - SCUS ProdSlices - status: - code: 200 - message: OK -- request: - body: '{"properties": {"authorizationKey": "01010101-0101-0101-0101-010101010101", - "peerExpressRouteCircuit": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware global-reach-connection create - Connection: - - keep-alive - Content-Length: - - '237' - Content-Type: - - application/json - ParameterSetName: - - -g -c -n --peer-express-route-circuit --authorization-key - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1","name":"connection1","properties":{"addressPrefix":"192.168.48.128/29","authorizationKey":"01010101-0101-0101-0101-010101010101","circuitConnectionStatus":"Connected","peerExpressRouteCircuit":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer","provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/globalReachConnections"}' - headers: - cache-control: - - no-cache - content-length: - - '650' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 16 Jun 2021 18:33:37 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1197' - x-msedge-ref: - - 'Ref A: A3B484C50C994CEB9C8F1102B2CB5B8B Ref B: LAX311000110045 Ref C: 2021-06-16T18:33:34Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 16 Jun 2021 18:33:40 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AoD69EGLOwdAkNMeXxYy8yY; expires=Fri, 16-Jul-2021 18:33:41 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrPDz5PcwspIuNlYuBaKH_CXEuTn3wPEruQ413C1dgmrsBHupq9jK5JnNdAYsgeiiSeTic7gU3Inizx1rN4r8DF_DzQMNVuIflShlJTchSmVEVUvjJAxRnIIjzz28nzxsdhl9nmOtt35IQ2p3qlZPQNt5TgX9rvh-AX67Nlpy9jNkgAA; - 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.11829.4 - SCUS ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware global-reach-connection list - Connection: - - keep-alive - ParameterSetName: - - -g -c - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections?api-version=2021-06-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1","name":"connection1","properties":{"addressPrefix":"192.168.48.128/29","authorizationKey":"01010101-0101-0101-0101-010101010101","circuitConnectionStatus":"Connected","peerExpressRouteCircuit":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer","provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/globalReachConnections"}]}' - headers: - cache-control: - - no-cache - content-length: - - '662' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 16 Jun 2021 18:33:43 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 23D03EA98A8D40B1AED7DAB0753462A2 Ref B: LAXEDGE1507 Ref C: 2021-06-16T18:33:43Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 16 Jun 2021 18:33:46 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AiufH1Q4TlhGjS0FnHO-ZYg; expires=Fri, 16-Jul-2021 18:33:46 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrrcsJRZTy3qrlfoGI45CMppcI0X-HiDZMpuaf4Xz65N8g3a3ufFwQnK2aDVK7UTmApxHr7UJ1o3TuswUVS1L__hGidZztrUvTWLxLtK-BV8zanyZ0WadU14lUF2g3lVXng3-vbMkvNJwHfh6kV9wjxd9wHlgGx2sxHvFeWObpIHkgAA; - 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.11829.4 - WUS2 ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware global-reach-connection show - Connection: - - keep-alive - ParameterSetName: - - -g -c -n - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1","name":"connection1","properties":{"addressPrefix":"192.168.48.128/29","authorizationKey":"01010101-0101-0101-0101-010101010101","circuitConnectionStatus":"Connected","peerExpressRouteCircuit":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer","provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/globalReachConnections"}' - headers: - cache-control: - - no-cache - content-length: - - '650' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 16 Jun 2021 18:33:49 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: D4382A82F88C4CF690BD79E31A74BE92 Ref B: LAXEDGE0908 Ref C: 2021-06-16T18:33:49Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 16 Jun 2021 18:33:51 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AnPvMCpPyopNuILmsAR3bQ4; expires=Fri, 16-Jul-2021 18:33:52 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrKaaUnwWkEc_kvfbR7irS4PMZ--7SSeXfsREXazVM4LW7C6BxZvS34Enqabo0TZQcH0Lm58D5ZGRxXY8ODyIu4k_6jrj-YKNVjlO9L5CLYGPb_UVbE1ABmXja93pT6TaNsPuPzEkzRSsAOpTyeNf1kJSNqihYa3GLPMNtXL_gGE8gAA; - 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.11829.4 - EUS ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware global-reach-connection delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - -g -c -n - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1?api-version=2021-06-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - content-type: - - text/html - date: - - Wed, 16 Jun 2021 18:33:55 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14998' - x-msedge-ref: - - 'Ref A: 254CEE8C24944AADA685055E1D02BA56 Ref B: LAXEDGE0807 Ref C: 2021-06-16T18:33:54Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 16 Jun 2021 18:33:57 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=Al3x0vN6soBLgLdZYlT2wYw; expires=Fri, 16-Jul-2021 18:33:58 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevruiQILcR_l77Wj1FFIY-FMZjZRaoyXdqCyglZrmjaIqbqSqfuTcoiKP-ojtUdwIELgU__q8AyMNOehp-8WIn_mX2OCeQKH2_lBkM13IWTKQYeRnbGh167mWjx9r8GxtxAdcvH4JkHuTsSdmyQI5OJa5ktd_jKgvji1rD1k5QxRGsgAA; - 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.11787.15 - WUS2 ProdSlices - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware global-reach-connection list - Connection: - - keep-alive - ParameterSetName: - - -g -c - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections?api-version=2021-06-01 - response: - body: - string: '{"value":[]}' - headers: - cache-control: - - no-cache - content-length: - - '12' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 16 Jun 2021 18:34:00 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 1E82997E90B7412AA76545F261D77742 Ref B: LAXEDGE0810 Ref C: 2021-06-16T18:34:00Z' - status: - code: 200 - message: OK -version: 1 diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml index 92294a09967..59247fc717c 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml @@ -1,1138 +1,77 @@ interactions: - request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 04 Jun 2021 20:47:25 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=Av89MEb4STpCrAwDkrweVHI; expires=Sun, 04-Jul-2021 20:47:26 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrpykcMjdTlSALJN7grLCyywaReickhAU1aDPAhiOqtHxzuTfBeOTDL1sLKBLJwM9YNzvhFwJRnCk0O-vuWFydXOgYZo8s5pjIJKDCqLZxl87RxkUXK2HLcE-POsV-H0CFtgJr9gwTx0HunBGTU-eRXZ98vYCSknVXjwng0_ZvMyIgAA; - 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.11722.21 - NCUS ProdSlices - status: - code: 200 - message: OK -- request: - body: '{"location": "westcentralus", "tags": {}, "sku": {"name": "av20"}, "properties": - {"managementCluster": {"clusterSize": 4}, "internet": "Disabled", "networkBlock": - "192.168.48.0/22", "vcenterPassword": "UpfBXae9ZquZSDXk(", "nsxtPassword": "5rqdLj4GF3cePUe6("}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - Content-Length: - - '259' - Content-Type: - - application/json - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"westcentralus","name":"cloud1","properties":{"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost26.mp01.mock01.vmcp.vs.management","gp-fakehost23.mp01.mock01.vmcp.vs.management"],"provisioningState":"Building"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","provisioningNetwork":"192.168.50.0/25","provisioningState":"Building","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' - headers: - azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 - cache-control: - - no-cache - content-length: - - '975' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 04 Jun 2021 20:47:34 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1197' - x-msedge-ref: - - 'Ref A: F65592E081E84BBABACD849AE30059E9 Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:47:28Z' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c","name":"8799968a-d37f-4faf-a862-205936e3f76c","percentComplete":0,"startTime":"2021-06-04T20:47:28.4741907+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '385' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 04 Jun 2021 20:47:44 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 50479F585605401EA6C381F2A1C74FDC Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:47:45Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c","name":"8799968a-d37f-4faf-a862-205936e3f76c","percentComplete":0,"startTime":"2021-06-04T20:47:28.4741907+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '385' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 04 Jun 2021 20:47:54 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: DBF9EDFC2D38420F91926977935481A8 Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:47:55Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c","name":"8799968a-d37f-4faf-a862-205936e3f76c","percentComplete":88.75,"startTime":"2021-06-04T20:47:28.4741907+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '389' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 04 Jun 2021 20:48:04 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: F7CE87EE5B184BADBD8EEC74512D1692 Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:48:05Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c","name":"8799968a-d37f-4faf-a862-205936e3f76c","percentComplete":88.75,"startTime":"2021-06-04T20:47:28.4741907+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '389' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 04 Jun 2021 20:48:15 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: D62C34FDFB3C4EE2AF0DAA822FC7EFE5 Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:48:15Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c","name":"8799968a-d37f-4faf-a862-205936e3f76c","percentComplete":100,"startTime":"2021-06-04T20:47:28.4741907+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '387' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 04 Jun 2021 20:48:25 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: F5912C70FB214AA5BFF35779B9F83B2D Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:48:26Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c","name":"8799968a-d37f-4faf-a862-205936e3f76c","percentComplete":100,"startTime":"2021-06-04T20:47:28.4741907+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '387' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 04 Jun 2021 20:48:35 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 30BF35C47A534657883BFF79DCFA96DB Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:48:36Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c","name":"8799968a-d37f-4faf-a862-205936e3f76c","percentComplete":100,"startTime":"2021-06-04T20:47:28.4741907+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '387' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 04 Jun 2021 20:48:45 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 7EB6A35CA25C4EEBBBAE53230C6886EC Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:48:46Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c","name":"8799968a-d37f-4faf-a862-205936e3f76c","percentComplete":100,"startTime":"2021-06-04T20:47:28.4741907+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '387' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 04 Jun 2021 20:48:56 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: F5E70D4E76B84E94A53BF91C2B9BBB52 Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:48:56Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c","name":"8799968a-d37f-4faf-a862-205936e3f76c","percentComplete":100,"startTime":"2021-06-04T20:47:28.4741907+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '387' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 04 Jun 2021 20:49:06 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 8B22556FAF3941DD85129FC022D3956F Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:49:07Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c","name":"8799968a-d37f-4faf-a862-205936e3f76c","percentComplete":100,"startTime":"2021-06-04T20:47:28.4741907+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '387' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 04 Jun 2021 20:49:16 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 7EEF89A78A9F40968E42957C1C2D266F Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:49:17Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c","name":"8799968a-d37f-4faf-a862-205936e3f76c","percentComplete":100,"startTime":"2021-06-04T20:47:28.4741907+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '387' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 04 Jun 2021 20:49:26 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: E1DD2DC54B454DEEB9750D76E7C6059F Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:49:27Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c","name":"8799968a-d37f-4faf-a862-205936e3f76c","percentComplete":100,"startTime":"2021-06-04T20:47:28.4741907+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '387' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 04 Jun 2021 20:49:37 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 32C206FABEC641F2970FB35689C88C84 Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:49:37Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c?api-version=2021-06-01 - response: - body: - string: '{"endTime":"2021-06-04T20:49:38.7927014+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/operationstatuses/8799968a-d37f-4faf-a862-205936e3f76c","name":"8799968a-d37f-4faf-a862-205936e3f76c","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"westcentralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt93-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt93-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt93-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt93-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.48.232/30","secondarySubnet":"192.168.48.236/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost26.mp01.mock01.vmcp.vs.management","gp-fakehost23.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/25","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"},"startTime":"2021-06-04T20:47:28.4741907+00:00","status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '2067' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 04 Jun 2021 20:49:49 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 481BABE1BDE242FE9F87AE0262CA46A5 Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:49:48Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware private-cloud create - Connection: - - keep-alive - ParameterSetName: - - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password - --accept-eula - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1","location":"westcentralus","name":"cloud1","properties":{"circuit":{"expressRouteID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt93-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt93-cust-mp01-mock01-er","expressRoutePrivatePeeringID":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt93-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt93-cust-mp01-mock01-er/peerings/AzurePrivatePeering","primarySubnet":"192.168.48.232/30","secondarySubnet":"192.168.48.236/30"},"endpoints":{"hcxCloudManager":"https://192.168.48.9/","nsxtManager":"https://192.168.48.3/","vcsa":"https://192.168.48.2/"},"externalCloudLinks":[],"identitySources":[],"internet":"Disabled","managementCluster":{"clusterId":1,"clusterSize":4,"hosts":["gp-fakehost24.mp01.mock01.vmcp.vs.management","gp-fakehost29.mp01.mock01.vmcp.vs.management","gp-fakehost26.mp01.mock01.vmcp.vs.management","gp-fakehost23.mp01.mock01.vmcp.vs.management"],"provisioningState":"Succeeded"},"managementNetwork":"192.168.48.0/26","networkBlock":"192.168.48.0/22","nsxtCertificateThumbprint":"B9A9474616752565A3FAF23E0A013ECE3DC8B8FF","provisioningNetwork":"192.168.50.0/25","provisioningState":"Succeeded","vcenterCertificateThumbprint":"BE8EA855AA13D9662A115571636B9B1925C6DB68","vmotionNetwork":"192.168.49.128/25"},"sku":{"name":"av20"},"tags":{},"type":"Microsoft.AVS/privateClouds"}' - headers: - cache-control: - - no-cache - content-length: - - '1619' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 04 Jun 2021 20:49:49 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 6C3239151D31471080BCA1D9F4A77256 Ref B: PDX31EDGE0111 Ref C: 2021-06-04T20:49:49Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 04 Jun 2021 20:49:51 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AljdlyTyfspKnN_wMpTYKLg; expires=Sun, 04-Jul-2021 20:49:52 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrR51bU104JoVGEx4NZCFUx92HGTjJ7L_rIzSCP3ZcnbwnEOzgwyzLGUOW-XwXJEn_zqeLNY5pZPTObRI2CnZNYbzXlwjflYRb4Sk0jQ2Ul_lZLGBRyQF4jxgWIjkOgekFkmPnb8k0PTN3roSAeOAIe7MW_hW6NY2kqonkeEhc_JQgAA; - 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.11722.21 - NCUS ProdSlices - status: - code: 200 - message: OK -- request: - body: '{"properties": {"addonType": "HCX", "offer": "VMware MaaS Cloud Provider"}}' + body: '{"location": "westcentralus", "sku": {"name": "av20"}, "identity": {}, + "properties": {"managementCluster": {"clusterSize": 4}, "internet": "Disabled", + "networkBlock": "192.168.48.0/22", "vcenterPassword": "UpfBXae9ZquZSDXk(", "nsxtPassword": + "5rqdLj4GF3cePUe6("}}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware addon hcx create + - vmware private-cloud create Connection: - keep-alive Content-Length: - - '75' + - '263' Content-Type: - application/json ParameterSetName: - - -g -c --offer + - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password + --accept-eula User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx","name":"hcx","properties":{"addonType":"HCX","offer":"VMware - MaaS Cloud Provider","provisioningState":"Building"},"type":"Microsoft.AVS/privateClouds/addons"}' - headers: - azure-asyncoperation: - - https://api-dogfood.resources.windows-int.net/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx/operationstatuses/9f44e222-0450-4a61-94e8-7d3deafb7d16?api-version=2021-06-01 - cache-control: - - no-cache - content-length: - - '365' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 04 Jun 2021 20:49:56 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-msedge-ref: - - 'Ref A: 2FFE7DDABDA143E9A32D846A8F4E7797 Ref B: PDX31EDGE0110 Ref C: 2021-06-04T20:49:54Z' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware addon hcx create - Connection: - - keep-alive - ParameterSetName: - - -g -c --offer - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx/operationstatuses/9f44e222-0450-4a61-94e8-7d3deafb7d16?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx/operationstatuses/9f44e222-0450-4a61-94e8-7d3deafb7d16","name":"9f44e222-0450-4a61-94e8-7d3deafb7d16","percentComplete":25,"startTime":"2021-06-04T20:49:51.5280087+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '397' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 04 Jun 2021 20:50:07 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: A6DEFCC2809847FCA1AE160EA8EB220B Ref B: PDX31EDGE0110 Ref C: 2021-06-04T20:50:07Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware addon hcx create - Connection: - - keep-alive - ParameterSetName: - - -g -c --offer - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx/operationstatuses/9f44e222-0450-4a61-94e8-7d3deafb7d16?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx/operationstatuses/9f44e222-0450-4a61-94e8-7d3deafb7d16","name":"9f44e222-0450-4a61-94e8-7d3deafb7d16","percentComplete":0,"startTime":"2021-06-04T20:49:51.5280087+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '396' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 04 Jun 2021 20:50:17 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 342CCD8E3A1D487284793F5A802610BD Ref B: PDX31EDGE0110 Ref C: 2021-06-04T20:50:17Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware addon hcx create - Connection: - - keep-alive - ParameterSetName: - - -g -c --offer - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx/operationstatuses/9f44e222-0450-4a61-94e8-7d3deafb7d16?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx/operationstatuses/9f44e222-0450-4a61-94e8-7d3deafb7d16","name":"9f44e222-0450-4a61-94e8-7d3deafb7d16","percentComplete":50,"startTime":"2021-06-04T20:49:51.5280087+00:00","status":"Building"}' - headers: - cache-control: - - no-cache - content-length: - - '397' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 04 Jun 2021 20:50:27 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 12BB443BC56149CEB5C8B4E173178DBC Ref B: PDX31EDGE0110 Ref C: 2021-06-04T20:50:28Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmware addon hcx create - Connection: - - keep-alive - ParameterSetName: - - -g -c --offer - User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx/operationstatuses/9f44e222-0450-4a61-94e8-7d3deafb7d16?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-12-01 response: body: - string: '{"endTime":"2021-06-04T20:50:23.6911030+00:00","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx/operationstatuses/9f44e222-0450-4a61-94e8-7d3deafb7d16","name":"9f44e222-0450-4a61-94e8-7d3deafb7d16","percentComplete":100,"properties":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx","name":"hcx","properties":{"addonType":"HCX","offer":"VMware - MaaS Cloud Provider","provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/addons"},"startTime":"2021-06-04T20:49:51.5280087+00:00","status":"Succeeded"}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]}}' headers: - cache-control: - - no-cache content-length: - - '825' + - '1339' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 04 Jun 2021 20:50:37 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 047096156FCE4AA38C25E2647D994349 Ref B: PDX31EDGE0110 Ref C: 2021-06-04T20:50:38Z' + - Wed, 20 Oct 2021 22:03:01 GMT + server: + - Rocket status: code: 200 message: OK - request: - body: null + body: '{"properties": {"addonType": "HCX", "offer": "VMware MaaS Cloud Provider"}}' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - vmware addon hcx create Connection: - keep-alive + Content-Length: + - '75' + Content-Type: + - application/json ParameterSetName: - -g -c --offer User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx","name":"hcx","properties":{"addonType":"HCX","offer":"VMware - MaaS Cloud Provider","provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/addons"}' - headers: - cache-control: - - no-cache - content-length: - - '366' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 04 Jun 2021 20:50:37 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: FFDAFF65CF534F1392A274B3AC46A864 Ref B: PDX31EDGE0110 Ref C: 2021-06-04T20:50:38Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx?api-version=2021-12-01 response: body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}' headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private content-length: - - '131' + - '241' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 04 Jun 2021 20:50:40 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AilGX3jytwxNv0HFya5UWAg; expires=Sun, 04-Jul-2021 20:50:41 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr0xeWN09IaRY74CrEKI6Z0FpEGOtwuGx9wgmDZS6wMV6EQ1gEcV5Qdi-fnsGA6xgYPmAJk3f3FY30-CeQgAr2XGs1fYIPDck6VF_wEWGzy1YoIycGhU4pMiyMj6VrBQTd5zPcbjeE6JU_4TIiGP6rsEJ4gF5H-r-q0YPZcGMSGc4gAA; - 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.11722.21 - NCUS ProdSlices + - Wed, 20 Oct 2021 22:03:06 GMT + server: + - Rocket status: code: 200 message: OK @@ -1150,93 +89,21 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons?api-version=2021-06-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx","name":"hcx","properties":{"addonType":"HCX","offer":"VMware - MaaS Cloud Provider","provisioningState":"Succeeded"},"type":"Microsoft.AVS/privateClouds/addons"}]}' - headers: - cache-control: - - no-cache - content-length: - - '378' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 04 Jun 2021 20:50:44 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: E2EB7866377B43AA9D9680A2BD186960 Ref B: PDX31EDGE0108 Ref C: 2021-06-04T20:50:43Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons?api-version=2021-12-01 response: body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm","name":"srm","type":"Microsoft.AVS/privateClouds/addons","properties":{"addonType":"SRM","provisioningState":"Succeeded"}}]}' headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private content-length: - - '131' + - '253' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 04 Jun 2021 20:50:46 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AmWN7sC5pgJJlQZ_KUVjxT0; expires=Sun, 04-Jul-2021 20:50:46 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrmNUFBX-aJ4-HBCKSxDlMQWNiS2D2PbpuN8g8G8JN-JPO2e2nqkjcm61M-PdxL09IyOi0k5ekJhfdJ0HU0lu57JkBKPiWjg8usJKmUTxaH7BybIZBJ2RGeDETXSCBKi-GQvqAKiJ08Nqt-Mwmn5Fhh9fa4Uz1j8nGrTENiRlnJQYgAA; - 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.11722.21 - SCUS ProdSlices + - Wed, 20 Oct 2021 22:03:11 GMT + server: + - Rocket status: code: 200 message: OK @@ -1254,92 +121,21 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites?api-version=2021-06-01 - response: - body: - string: '{"value":[]}' - headers: - cache-control: - - no-cache - content-length: - - '12' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 04 Jun 2021 20:50:49 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: 5134F2F683AB41B79C616D1185330F7D Ref B: PDX31EDGE0121 Ref C: 2021-06-04T20:50:48Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites?api-version=2021-12-01 response: body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/site1","name":"site1","type":"Microsoft.AVS/privateClouds/hcxEnterpriseSites","properties":{"activationKey":"0276EF1A9A1749A5A362BF73EA9F8D0D","status":"Available"}}]}' headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private content-length: - - '131' + - '303' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 04 Jun 2021 20:50:51 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=Av74CRYTc25Bk6hotr9ND_I; expires=Sun, 04-Jul-2021 20:50:51 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr8tZEdo4066Ojo98k7mSxHXEbV1ev6IB02MiBgkQ7jXyqmO1QEXs7N48s9hGWTM7nVebQ2XZw-2BS-aoHwZRAQGTEGSRSE_UikUfHWdjLqzyGMPcJBuyVBcVMO6AIEPgUsFVYr4YdlQrS5cWFRdchKtcbcKyk2tG7YHrriU-nQdEgAA; - 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.11722.21 - NCUS ProdSlices + - Wed, 20 Oct 2021 22:03:15 GMT + server: + - Rocket status: code: 200 message: OK @@ -1361,94 +157,21 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx","name":"myhcx","properties":{"activationKey":"d85d1920606e47e899ad9886ded09317","status":"Available"},"type":"Microsoft.AVS/privateClouds/hcxEnterpriseSites"}' - headers: - cache-control: - - no-cache - content-length: - - '379' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 04 Jun 2021 20:50:54 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1196' - x-msedge-ref: - - 'Ref A: 5EFA30EDE9314B9C88684A3DCA63E328 Ref B: PDX31EDGE0107 Ref C: 2021-06-04T20:50:54Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx?api-version=2021-12-01 response: body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/site1","name":"site1","type":"Microsoft.AVS/privateClouds/hcxEnterpriseSites","properties":{"activationKey":"0276EF1A9A1749A5A362BF73EA9F8D0D","status":"Available"}}' headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private content-length: - - '131' + - '291' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 04 Jun 2021 20:50:56 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AuerVSNF0t1Cl-j3dWKQ19U; expires=Sun, 04-Jul-2021 20:50:57 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrWqvtDvi-EZqMIMFKFHBpH3DNRJhnGoAfZCnsdtS6JWAsr59OxJQNvBzmBjSGP9usg_gYBiDusyOwUPiA0W7p2ybZdfrDCPOPfDYH0Gocteohj_MgoBOQV3jm1-nefK4AN9LTbYoFMxzVWHs6GdIajRBs3Ihc6CUCIfXSmjg-5EwgAA; - 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.11722.21 - SCUS ProdSlices + - Wed, 20 Oct 2021 22:03:20 GMT + server: + - Rocket status: code: 200 message: OK @@ -1466,92 +189,21 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites?api-version=2021-06-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx","name":"myhcx","properties":{"activationKey":"d85d1920606e47e899ad9886ded09317","status":"Available"},"type":"Microsoft.AVS/privateClouds/hcxEnterpriseSites"}]}' - headers: - cache-control: - - no-cache - content-length: - - '391' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 04 Jun 2021 20:50:59 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: B9535F7206B448F69EF0D924FAD0475D Ref B: PDX31EDGE0110 Ref C: 2021-06-04T20:50:59Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites?api-version=2021-12-01 response: body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/site1","name":"site1","type":"Microsoft.AVS/privateClouds/hcxEnterpriseSites","properties":{"activationKey":"0276EF1A9A1749A5A362BF73EA9F8D0D","status":"Available"}}]}' headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private content-length: - - '131' + - '303' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 04 Jun 2021 20:51:02 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AvwAZLSU3eFJqD-LsoZCfpg; expires=Sun, 04-Jul-2021 20:51:02 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrBDmLg2fAL3sRkIZzZlPtgRlmQ5mXar8-NBlg_qpX6TstZLO2vzX6yLzSYtEfCh58qNRVrUuYQIACt2LXs0eQMjlrQJshcmFxnzj7gCIVfMnsTbqjkngjnEayPoVSyE-rMvrr__WGCq_YTUM899uNAtCW-XAowThiUwxGTUlvYuwgAA; - 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.11722.21 - WUS2 ProdSlices + - Wed, 20 Oct 2021 22:03:24 GMT + server: + - Rocket status: code: 200 message: OK @@ -1569,92 +221,21 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx?api-version=2021-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx","name":"myhcx","properties":{"activationKey":"d85d1920606e47e899ad9886ded09317","status":"Available"},"type":"Microsoft.AVS/privateClouds/hcxEnterpriseSites"}' - headers: - cache-control: - - no-cache - content-length: - - '379' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 04 Jun 2021 20:51:05 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: DE12268D387F47EAB0B5554F8C013761 Ref B: PDX31EDGE0122 Ref C: 2021-06-04T20:51:04Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx?api-version=2021-12-01 response: body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/site1","name":"site1","type":"Microsoft.AVS/privateClouds/hcxEnterpriseSites","properties":{"activationKey":"0276EF1A9A1749A5A362BF73EA9F8D0D","status":"Available"}}' headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private content-length: - - '131' + - '291' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 04 Jun 2021 20:51:07 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=AsTIUS5RlkRFpbgFOUNG68I; expires=Sun, 04-Jul-2021 20:51:08 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrEPFIznp3NQJLimGUARENSdsdmY9bPwa6WDWdHc9gZWZCsIHWizv3DgcVcc1xtWB1DBvxb4U1rF72ETSOGzbpts-1gpWMooDaMdUKV3kB2v5lvlwGXJ1X1UqJvoCn3BtM5ABIFQr4420GtUXwz-m95eFQQS-uPJMFaUn4DgjnlDkgAA; - 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.11722.21 - WUS2 ProdSlices + - Wed, 20 Oct 2021 22:03:29 GMT + server: + - Rocket status: code: 200 message: OK @@ -1674,94 +255,19 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx?api-version=2021-12-01 response: body: string: '' headers: - cache-control: - - no-cache content-length: - '0' - content-type: - - text/html - date: - - Fri, 04 Jun 2021 20:51:10 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14998' - x-msedge-ref: - - 'Ref A: E53C14394A334675AA518649A6161B86 Ref B: PDX31EDGE0115 Ref C: 2021-06-04T20:51:10Z' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.3 - method: GET - uri: https://localhost:8866/common/discovery/instance?authorization_endpoint=https%3A%2F%2Flogin.windows-ppe.net%2Ff686d426-8d16-42db-81b7-ab578e110ccd%2Foauth2%2Fauthorize&api-version=1.0 - response: - body: - string: '{"tenant_discovery_endpoint":"https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd/.well-known/openid-configuration"}' - headers: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private - content-length: - - '131' - content-type: - - application/json; charset=utf-8 date: - - Fri, 04 Jun 2021 20:51:13 GMT - p3p: - - CP="DSP CUR OTPi IND OTRi ONL FIN" - set-cookie: - - fpc=Aj8yZ8GrwmVDq9LXkoakPGA; expires=Sun, 04-Jul-2021 20:51:13 GMT; path=/; - secure; HttpOnly; SameSite=None - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevri_KslxqkfMpHbO4lwwtw2uL5XDtj4y_PkT4snJfk5jxQwCGqJQfeJPEOEihuWpFtfa-JD7sVrxb6po5vxRScKGzjXfHbt0_InpENxsKktFW-wO5r898BuntqZhilcIKIFOqFxCH651Zh8rMpg1NaV2Rcaz-OMAEbZw4Qmqhef6UgAA; - 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.11787.14 - WUS2 ProdSlices + - Wed, 20 Oct 2021 22:03:33 GMT + server: + - Rocket status: code: 200 message: OK @@ -1779,33 +285,21 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8866/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites?api-version=2021-12-01 response: body: - string: '{"value":[]}' + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/site1","name":"site1","type":"Microsoft.AVS/privateClouds/hcxEnterpriseSites","properties":{"activationKey":"0276EF1A9A1749A5A362BF73EA9F8D0D","status":"Available"}}]}' headers: - cache-control: - - no-cache content-length: - - '12' + - '303' content-type: - - application/json; charset=utf-8 + - application/json date: - - Fri, 04 Jun 2021 20:51:15 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-cache: - - CONFIG_NOCACHE - x-content-type-options: - - nosniff - x-msedge-ref: - - 'Ref A: AF004BCE885E437CA041E26FE6A8FC2E Ref B: PDX31EDGE0114 Ref C: 2021-06-04T20:51:15Z' + - Wed, 20 Oct 2021 22:03:38 GMT + server: + - Rocket status: code: 200 message: OK diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml index fba9f24ec60..177c5a964e3 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml @@ -13,9 +13,9 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages?api-version=2021-12-01 response: body: string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/AVS.PowerCommands@1.0.0","name":"AVS.PowerCommands@1.0.0","type":"Microsoft.AVS/privateClouds/scriptPackages","properties":{"description":"Various @@ -27,7 +27,7 @@ interactions: content-type: - application/json date: - - Thu, 29 Jul 2021 20:13:24 GMT + - Wed, 20 Oct 2021 22:02:26 GMT server: - Rocket status: @@ -47,9 +47,9 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/AVS.PowerCommands%401.0.0?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/AVS.PowerCommands%401.0.0?api-version=2021-12-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/{scriptPackageName}","name":"AVS.PowerCommands@1.0.0","type":"Microsoft.AVS/privateClouds/scriptPackages","properties":{"description":"Various @@ -60,7 +60,7 @@ interactions: content-type: - application/json date: - - Thu, 29 Jul 2021 20:13:29 GMT + - Wed, 20 Oct 2021 22:02:31 GMT server: - Rocket status: @@ -80,9 +80,9 @@ interactions: ParameterSetName: - -g -c -p User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/AVS.PowerCommands%401.0.0/scriptCmdlets?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/AVS.PowerCommands%401.0.0/scriptCmdlets?api-version=2021-12-01 response: body: string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/{scriptPackageName}/scriptCmdlets/Set-AvsStoragePolicy","name":"Set-AvsStoragePolicy","type":"Microsoft.AVS/privateClouds/scriptPackages/scriptCmdlets","properties":{"description":"Allow @@ -99,7 +99,7 @@ interactions: content-type: - application/json date: - - Thu, 29 Jul 2021 20:13:33 GMT + - Wed, 20 Oct 2021 22:02:35 GMT server: - Rocket status: @@ -119,9 +119,9 @@ interactions: ParameterSetName: - -g -c -p -n User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/AVS.PowerCommands%401.0.0/scriptCmdlets/New-ExternalSsoDomain?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/AVS.PowerCommands%401.0.0/scriptCmdlets/New-ExternalSsoDomain?api-version=2021-12-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets/New-ExternalSsoDomain","name":"New-ExternalSsoDomain","type":"Microsoft.AVS/privateClouds/scriptPackages/scriptCmdlets","properties":{"description":"Add @@ -135,7 +135,7 @@ interactions: content-type: - application/json date: - - Thu, 29 Jul 2021 20:13:37 GMT + - Wed, 20 Oct 2021 22:02:40 GMT server: - Rocket status: @@ -164,9 +164,9 @@ interactions: - --resource-group --private-cloud --name --script-cmdlet-id --timeout --retention --parameter --parameter --hidden-parameter User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions/addSsoServer?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions/addSsoServer?api-version=2021-12-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions/addSsoServer","name":"addSsoServer","type":"Microsoft.AVS/privateClouds/scriptExecutions","properties":{"scriptCmdletId":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/AVS.PowerCommands@1.0.0/scriptCmdlets/New-SsoExternalIdentitySource","parameters":[{"name":"DomainName","type":"Value"},{"name":"BaseUserDN","type":"Value"}],"failureReason":"vCenter @@ -178,7 +178,7 @@ interactions: content-type: - application/json date: - - Thu, 29 Jul 2021 20:13:41 GMT + - Wed, 20 Oct 2021 22:02:44 GMT server: - Rocket status: @@ -198,9 +198,9 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions?api-version=2021-12-01 response: body: string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions/addSsoServer","name":"addSsoServer","type":"Microsoft.AVS/privateClouds/scriptExecutions","properties":{"scriptCmdletId":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/AVS:1.0.0/scriptCmdlets/New-SsoExternalIdentitySource","parameters":[{"name":"DomainName","type":"Value"},{"name":"BaseUserDN","type":"Value"}],"failureReason":"vCenter @@ -211,7 +211,7 @@ interactions: content-type: - application/json date: - - Thu, 29 Jul 2021 20:13:46 GMT + - Wed, 20 Oct 2021 22:02:48 GMT server: - Rocket status: @@ -231,9 +231,9 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions/addSsoServer?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions/addSsoServer?api-version=2021-12-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions/addSsoServer","name":"addSsoServer","type":"Microsoft.AVS/privateClouds/scriptExecutions","properties":{"scriptCmdletId":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/AVS.PowerCommands@1.0.0/scriptCmdlets/New-SsoExternalIdentitySource","parameters":[{"name":"DomainName","type":"Value"},{"name":"BaseUserDN","type":"Value"}],"failureReason":"vCenter @@ -244,7 +244,7 @@ interactions: content-type: - application/json date: - - Thu, 29 Jul 2021 20:13:50 GMT + - Wed, 20 Oct 2021 22:02:53 GMT server: - Rocket status: @@ -266,9 +266,9 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.18.0 azsdk-python-mgmt-avs/0.1.0 Python/3.8.7 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions/addSsoServer?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions/addSsoServer?api-version=2021-12-01 response: body: string: '' @@ -276,7 +276,7 @@ interactions: content-length: - '0' date: - - Thu, 29 Jul 2021 20:13:54 GMT + - Wed, 20 Oct 2021 22:02:57 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml index 74270b89d7a..ee30e33e4c0 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml @@ -13,9 +13,9 @@ interactions: ParameterSetName: - --resource-group --private-cloud User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations?api-version=2021-12-01 response: body: string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}]}' @@ -25,7 +25,7 @@ interactions: content-type: - application/json date: - - Fri, 08 Oct 2021 17:17:24 GMT + - Wed, 20 Oct 2021 22:02:09 GMT server: - Rocket status: @@ -45,9 +45,9 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dhcp User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-12-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' @@ -57,7 +57,7 @@ interactions: content-type: - application/json date: - - Fri, 08 Oct 2021 17:17:28 GMT + - Wed, 20 Oct 2021 22:02:13 GMT server: - Rocket status: @@ -82,9 +82,9 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dhcp --display-name --revision --server-addresses User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-12-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' @@ -94,7 +94,7 @@ interactions: content-type: - application/json date: - - Fri, 08 Oct 2021 17:17:32 GMT + - Wed, 20 Oct 2021 22:02:17 GMT server: - Rocket status: @@ -116,9 +116,9 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dhcp User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-12-01 response: body: string: '' @@ -126,7 +126,7 @@ interactions: content-length: - '0' date: - - Fri, 08 Oct 2021 17:17:37 GMT + - Wed, 20 Oct 2021 22:02:22 GMT server: - Rocket status: @@ -151,9 +151,9 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dhcp --display-name --revision --server-addresses User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PATCH - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-12-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":2}}' @@ -163,7 +163,7 @@ interactions: content-type: - application/json date: - - Fri, 08 Oct 2021 17:17:41 GMT + - Wed, 20 Oct 2021 22:02:26 GMT server: - Rocket status: @@ -189,9 +189,9 @@ interactions: - --resource-group --private-cloud --dhcp --display-name --revision --server-address --lease-time User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-12-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":1}}' @@ -201,7 +201,7 @@ interactions: content-type: - application/json date: - - Fri, 08 Oct 2021 17:17:45 GMT + - Wed, 20 Oct 2021 22:02:31 GMT server: - Rocket status: @@ -223,9 +223,9 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dhcp User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-12-01 response: body: string: '' @@ -233,7 +233,7 @@ interactions: content-length: - '0' date: - - Fri, 08 Oct 2021 17:17:50 GMT + - Wed, 20 Oct 2021 22:02:35 GMT server: - Rocket status: @@ -259,9 +259,9 @@ interactions: - --resource-group --private-cloud --dhcp --display-name --revision --server-address --lease-time User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PATCH - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-12-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcpConfigurations1","name":"dhcp1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dhcpConfigurations","properties":{"dhcpType":"SERVER","displayName":"dhcpConfigurations1","segments":["segment1","segment2"],"revision":2}}' @@ -271,7 +271,7 @@ interactions: content-type: - application/json date: - - Fri, 08 Oct 2021 17:17:54 GMT + - Wed, 20 Oct 2021 22:02:40 GMT server: - Rocket status: @@ -291,9 +291,9 @@ interactions: ParameterSetName: - --resource-group --private-cloud User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices?api-version=2021-12-01 response: body: string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}]}' @@ -303,7 +303,7 @@ interactions: content-type: - application/json date: - - Fri, 08 Oct 2021 17:17:58 GMT + - Wed, 20 Oct 2021 22:02:44 GMT server: - Rocket status: @@ -323,9 +323,9 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dns-service User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-12-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' @@ -335,7 +335,7 @@ interactions: content-type: - application/json date: - - Fri, 08 Oct 2021 17:18:02 GMT + - Wed, 20 Oct 2021 22:02:49 GMT server: - Rocket status: @@ -362,9 +362,9 @@ interactions: - --resource-group --private-cloud --dns-service --display-name --dns-service-ip --default-dns-zone --fqdn-zones --log-level --revision User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-12-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"dnsService1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' @@ -374,7 +374,7 @@ interactions: content-type: - application/json date: - - Fri, 08 Oct 2021 17:18:07 GMT + - Wed, 20 Oct 2021 22:02:53 GMT server: - Rocket status: @@ -401,9 +401,9 @@ interactions: - --resource-group --private-cloud --dns-service --display-name --dns-service-ip --default-dns-zone --fqdn-zones --log-level --revision User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PATCH - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-12-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1","name":"dnsService1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsServices","properties":{"displayName":"dnsService1","dnsServiceIp":"5.5.5.5","defaultDnsZone":"defaultDnsZone1","fqdnZones":["fqdnZone1"],"logLevel":"INFO","status":"SUCCESS","revision":1}}' @@ -413,7 +413,7 @@ interactions: content-type: - application/json date: - - Fri, 08 Oct 2021 17:18:11 GMT + - Wed, 20 Oct 2021 22:02:57 GMT server: - Rocket status: @@ -435,9 +435,9 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dns-service User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-12-01 response: body: string: '' @@ -445,7 +445,7 @@ interactions: content-length: - '0' date: - - Fri, 08 Oct 2021 17:18:15 GMT + - Wed, 20 Oct 2021 22:03:01 GMT server: - Rocket status: @@ -465,9 +465,9 @@ interactions: ParameterSetName: - --resource-group --private-cloud User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones?api-version=2021-12-01 response: body: string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}]}' @@ -477,7 +477,7 @@ interactions: content-type: - application/json date: - - Fri, 08 Oct 2021 17:18:20 GMT + - Wed, 20 Oct 2021 22:03:06 GMT server: - Rocket status: @@ -497,9 +497,9 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dns-zone User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-12-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' @@ -509,7 +509,7 @@ interactions: content-type: - application/json date: - - Fri, 08 Oct 2021 17:18:24 GMT + - Wed, 20 Oct 2021 22:03:11 GMT server: - Rocket status: @@ -536,9 +536,9 @@ interactions: - --resource-group --private-cloud --dns-zone --display-name --domain --dns-server-ips --source-ip --dns-services --revision User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-12-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"dnsZone1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' @@ -548,7 +548,7 @@ interactions: content-type: - application/json date: - - Fri, 08 Oct 2021 17:18:28 GMT + - Wed, 20 Oct 2021 22:03:15 GMT server: - Rocket status: @@ -575,9 +575,9 @@ interactions: - --resource-group --private-cloud --dns-zone --display-name --domain --dns-server-ips --source-ip --dns-services --revision User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PATCH - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-12-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1","name":"dnsZone1","type":"Microsoft.AVS/privateClouds/workloadNetworks/dnsZones","properties":{"displayName":"dnsZone1","dnsServerIps":["1.1.1.1"],"sourceIp":"8.8.8.8","dnsServices":0,"revision":1}}' @@ -587,7 +587,7 @@ interactions: content-type: - application/json date: - - Fri, 08 Oct 2021 17:18:33 GMT + - Wed, 20 Oct 2021 22:03:20 GMT server: - Rocket status: @@ -609,9 +609,9 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dns-zone User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-12-01 response: body: string: '' @@ -619,7 +619,7 @@ interactions: content-length: - '0' date: - - Fri, 08 Oct 2021 17:18:37 GMT + - Wed, 20 Oct 2021 22:03:24 GMT server: - Rocket status: @@ -639,21 +639,19 @@ interactions: ParameterSetName: - --resource-group --private-cloud User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles?api-version=2021-12-01 response: body: - string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles","properties":{"displayName":"portMirroring1","direction":"INGRESS, - EGRESS, BIDIRECTIONAL","source":"vmGroup1","destination":"vmGroup2","status":"SUCCESS, - FAILURE","revision":1}}]}' + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles","properties":{"displayName":"portMirroring1","direction":"BIDIRECTIONAL","source":"vmGroup1","destination":"vmGroup2","status":"SUCCESS","revision":1}}]}' headers: content-length: - - '451' + - '425' content-type: - application/json date: - - Fri, 08 Oct 2021 17:18:41 GMT + - Wed, 20 Oct 2021 22:03:29 GMT server: - Rocket status: @@ -673,21 +671,19 @@ interactions: ParameterSetName: - --resource-group --private-cloud --port-mirroring User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles","properties":{"displayName":"portMirroring1","direction":"INGRESS, - EGRESS, BIDIRECTIONAL","source":"vmGroup1","destination":"vmGroup2","status":"SUCCESS, - FAILURE","revision":1}}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1","name":"portMirroring1","type":"Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles","properties":{"displayName":"portMirroring1","direction":"BIDIRECTIONAL","source":"vmGroup1","destination":"vmGroup2","status":"SUCCESS","revision":1}}' headers: content-length: - - '447' + - '421' content-type: - application/json date: - - Fri, 08 Oct 2021 17:18:46 GMT + - Wed, 20 Oct 2021 22:03:33 GMT server: - Rocket status: @@ -709,9 +705,9 @@ interactions: ParameterSetName: - --resource-group --private-cloud --port-mirroring User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2021-12-01 response: body: string: '' @@ -719,7 +715,7 @@ interactions: content-length: - '0' date: - - Fri, 08 Oct 2021 17:18:50 GMT + - Wed, 20 Oct 2021 22:03:38 GMT server: - Rocket status: @@ -739,20 +735,19 @@ interactions: ParameterSetName: - --resource-group --private-cloud User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments?api-version=2021-12-01 response: body: - string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"portVif":[{"portName":"vm1"}],"status":"SUCCESS, - FAILURE","revision":1}}]}' + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"portVif":[{"portName":"vm1"}],"status":"SUCCESS","revision":1}}]}' headers: content-length: - - '482' + - '473' content-type: - application/json date: - - Fri, 08 Oct 2021 17:18:54 GMT + - Wed, 20 Oct 2021 22:03:42 GMT server: - Rocket status: @@ -772,20 +767,19 @@ interactions: ParameterSetName: - --resource-group --private-cloud --segment User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"portVif":[{"portName":"vm1"}],"status":"SUCCESS, - FAILURE","revision":1}}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"portVif":[{"portName":"vm1"}],"status":"SUCCESS","revision":1}}' headers: content-length: - - '470' + - '461' content-type: - application/json date: - - Fri, 08 Oct 2021 17:18:59 GMT + - Wed, 20 Oct 2021 22:03:46 GMT server: - Rocket status: @@ -812,20 +806,19 @@ interactions: - --resource-group --private-cloud --segment --display-name --connected-gateway --revision --dhcp-ranges --gateway-address User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"status":"SUCCESS, - FAILURE","revision":1}}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"status":"SUCCESS","revision":1}}' headers: content-length: - - '439' + - '430' content-type: - application/json date: - - Fri, 08 Oct 2021 17:19:03 GMT + - Wed, 20 Oct 2021 22:03:51 GMT server: - Rocket status: @@ -852,20 +845,19 @@ interactions: - --resource-group --private-cloud --segment --display-name --connected-gateway --revision --dhcp-ranges --gateway-address User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PATCH - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"portVif":[{"portName":"vm1"}],"status":"SUCCESS, - FAILURE","revision":2}}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1","name":"segment1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"segment1","connectedGateway":"/infra/tier-1s/gateway","subnet":{"dhcpRanges":["40.20.0.0-40.20.0.1"],"gatewayAddress":"40.20.20.20/16"},"portVif":[{"portName":"vm1"}],"status":"SUCCESS","revision":2}}' headers: content-length: - - '470' + - '461' content-type: - application/json date: - - Fri, 08 Oct 2021 17:19:07 GMT + - Wed, 20 Oct 2021 22:03:55 GMT server: - Rocket status: @@ -887,9 +879,9 @@ interactions: ParameterSetName: - --resource-group --private-cloud --segment User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-12-01 response: body: string: '' @@ -897,7 +889,7 @@ interactions: content-length: - '0' date: - - Fri, 08 Oct 2021 17:19:11 GMT + - Wed, 20 Oct 2021 22:04:00 GMT server: - Rocket status: @@ -917,9 +909,9 @@ interactions: ParameterSetName: - --resource-group --private-cloud User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs?api-version=2021-12-01 response: body: string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1","name":"publicIP1","type":"Microsoft.AVS/privateClouds/workloadNetworks/publicIPs","properties":{"displayName":"publicIP1","publicIPBlock":"20.20.40.50/32"}}]}' @@ -929,7 +921,7 @@ interactions: content-type: - application/json date: - - Fri, 08 Oct 2021 17:19:16 GMT + - Wed, 20 Oct 2021 22:04:04 GMT server: - Rocket status: @@ -949,9 +941,9 @@ interactions: ParameterSetName: - --resource-group --private-cloud --public-ip User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-12-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1","name":"publicIP1","type":"Microsoft.AVS/privateClouds/workloadNetworks/publicIPs","properties":{"displayName":"publicIP1","publicIPBlock":"20.20.40.50/32"}}' @@ -961,7 +953,7 @@ interactions: content-type: - application/json date: - - Fri, 08 Oct 2021 17:19:20 GMT + - Wed, 20 Oct 2021 22:04:09 GMT server: - Rocket status: @@ -986,9 +978,9 @@ interactions: ParameterSetName: - --resource-group --private-cloud --public-ip --display-name --number-of-public-ips User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-12-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1","name":"publicIP1","type":"Microsoft.AVS/privateClouds/workloadNetworks/publicIPs","properties":{"displayName":"publicIP1","publicIPBlock":"20.20.40.50/32"}}' @@ -998,7 +990,7 @@ interactions: content-type: - application/json date: - - Fri, 08 Oct 2021 17:19:23 GMT + - Wed, 20 Oct 2021 22:04:13 GMT server: - Rocket status: @@ -1020,9 +1012,9 @@ interactions: ParameterSetName: - --resource-group --private-cloud --public-ip User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-12-01 response: body: string: '' @@ -1030,7 +1022,7 @@ interactions: content-length: - '0' date: - - Fri, 08 Oct 2021 17:19:29 GMT + - Wed, 20 Oct 2021 22:04:18 GMT server: - Rocket status: @@ -1050,20 +1042,19 @@ interactions: ParameterSetName: - --resource-group --private-cloud User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups?api-version=2021-12-01 response: body: - string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS, - FAILURE","revision":1}}]}' + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS","revision":1}}]}' headers: content-length: - - '374' + - '365' content-type: - application/json date: - - Fri, 08 Oct 2021 17:19:33 GMT + - Wed, 20 Oct 2021 22:04:22 GMT server: - Rocket status: @@ -1083,20 +1074,19 @@ interactions: ParameterSetName: - --resource-group --private-cloud --vm-group User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS, - FAILURE","revision":1}}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS","revision":1}}' headers: content-length: - - '362' + - '353' content-type: - application/json date: - - Fri, 08 Oct 2021 17:19:37 GMT + - Wed, 20 Oct 2021 22:04:27 GMT server: - Rocket status: @@ -1121,20 +1111,19 @@ interactions: ParameterSetName: - --resource-group --private-cloud --vm-group --display-name --members --revision User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"vmGroup1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS, - FAILURE","revision":1}}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"vmGroup1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS","revision":1}}' headers: content-length: - - '364' + - '355' content-type: - application/json date: - - Fri, 08 Oct 2021 17:19:41 GMT + - Wed, 20 Oct 2021 22:04:31 GMT server: - Rocket status: @@ -1159,20 +1148,19 @@ interactions: ParameterSetName: - --resource-group --private-cloud --vm-group --display-name --members --revision User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: PATCH - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS, - FAILURE","revision":2}}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1","name":"cloud1","type":"Microsoft.AVS/privateClouds/workloadNetworks/vmGroups","properties":{"displayName":"vmGroup1","members":["564d43da-fefc-2a3b-1d92-42855622fa50"],"status":"SUCCESS","revision":2}}' headers: content-length: - - '362' + - '353' content-type: - application/json date: - - Fri, 08 Oct 2021 17:19:46 GMT + - Wed, 20 Oct 2021 22:04:36 GMT server: - Rocket status: @@ -1194,9 +1182,9 @@ interactions: ParameterSetName: - --resource-group --private-cloud --vm-group User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: DELETE - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-12-01 response: body: string: '' @@ -1204,7 +1192,7 @@ interactions: content-length: - '0' date: - - Fri, 08 Oct 2021 17:19:50 GMT + - Wed, 20 Oct 2021 22:04:40 GMT server: - Rocket status: @@ -1224,20 +1212,19 @@ interactions: ParameterSetName: - --resource-group --private-cloud User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines?api-version=2021-12-01 response: body: - string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines/vm1","name":"vm1","type":"Microsoft.AVS/privateClouds/workloadNetworks/virtualMachines","properties":{"displayName":"vm1","vmType":"REGULAR, - EDGE, SERVICE"}}]}' + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines/vm1","name":"vm1","type":"Microsoft.AVS/privateClouds/workloadNetworks/virtualMachines","properties":{"displayName":"vm1","vmType":"REGULAR"}}]}' headers: content-length: - - '317' + - '302' content-type: - application/json date: - - Fri, 08 Oct 2021 17:19:54 GMT + - Wed, 20 Oct 2021 22:04:45 GMT server: - Rocket status: @@ -1257,20 +1244,19 @@ interactions: ParameterSetName: - --resource-group --private-cloud --virtual-machine User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines/vm1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines/vm1?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines/vm1","name":"vm1","type":"Microsoft.AVS/privateClouds/workloadNetworks/virtualMachines","properties":{"displayName":"vm1","vmType":"REGULAR, - EDGE, SERVICE"}}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines/vm1","name":"vm1","type":"Microsoft.AVS/privateClouds/workloadNetworks/virtualMachines","properties":{"displayName":"vm1","vmType":"REGULAR"}}' headers: content-length: - - '305' + - '290' content-type: - application/json date: - - Fri, 08 Oct 2021 17:19:59 GMT + - Wed, 20 Oct 2021 22:04:49 GMT server: - Rocket status: @@ -1290,9 +1276,9 @@ interactions: ParameterSetName: - --resource-group --private-cloud User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways?api-version=2021-12-01 response: body: string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways/gateway1","name":"gateway1","type":"Microsoft.AVS/privateClouds/workloadNetworks/segments","properties":{"displayName":"gateway1","path":"/infra/tier-1s/gateway1"}}]}' @@ -1302,7 +1288,7 @@ interactions: content-type: - application/json date: - - Fri, 08 Oct 2021 17:20:03 GMT + - Wed, 20 Oct 2021 22:04:54 GMT server: - Rocket status: @@ -1322,9 +1308,9 @@ interactions: ParameterSetName: - --resource-group --private-cloud --gateway User-Agent: - - AZURECLI/2.27.2 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) method: GET - uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways/gateway1?api-version=2021-06-01 + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways/gateway1?api-version=2021-12-01 response: body: string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways/gateway1","name":"gateway1","type":"Microsoft.AVS/privateClouds/workloadNetworks/gateways","properties":{"displayName":"gateway1","path":"/infra/tier-1s/gateway1"}}' @@ -1334,7 +1320,7 @@ interactions: content-type: - application/json date: - - Fri, 08 Oct 2021 17:20:07 GMT + - Wed, 20 Oct 2021 22:04:58 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/test_addon_scenario.py b/src/vmware/azext_vmware/tests/latest/test_addon_scenario.py index cfda2e68734..117d930b78a 100644 --- a/src/vmware/azext_vmware/tests/latest/test_addon_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_addon_scenario.py @@ -28,7 +28,7 @@ def test_vmware_addon(self): # List all existing addon count = len(self.cmd('vmware addon list -g {rg} -c {privatecloud}').get_output_in_json()) - self.assertEqual(count, 0, 'addon count expected to be 0') + self.assertEqual(count, 1, 'addon count expected to be 1') # Create a VR addon self.cmd('az vmware addon vr create -g {rg} -c {privatecloud} --vrs-count 1') @@ -45,7 +45,7 @@ def test_vmware_addon(self): # List all existing addon count = len(self.cmd('vmware addon list -g {rg} -c {privatecloud}').get_output_in_json()) - self.assertEqual(count, 0, 'addon count expected to be 0') + self.assertEqual(count, 1, 'addon count expected to be 1') # Create a SRM addon self.cmd('az vmware addon srm create -g {rg} -c {privatecloud} --license-key "41915-178A8-FF4A4-DB683-6D735"') @@ -62,4 +62,4 @@ def test_vmware_addon(self): # List all existing addon count = len(self.cmd('vmware addon list -g {rg} -c {privatecloud}').get_output_in_json()) - self.assertEqual(count, 0, 'addon count expected to be 0') + self.assertEqual(count, 1, 'addon count expected to be 1') diff --git a/src/vmware/azext_vmware/tests/latest/test_global_reach_connection_scenario.py b/src/vmware/azext_vmware/tests/latest/test_global_reach_connection_scenario.py index 35a29bc4e9e..95be8f4af2c 100644 --- a/src/vmware/azext_vmware/tests/latest/test_global_reach_connection_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_global_reach_connection_scenario.py @@ -22,27 +22,28 @@ def test_vmware_global_reach_connection(self): 'privatecloud': 'cloud1', 'global_reach_connection': 'connection1', 'peer_express_route_circuit': '/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer', - 'authorization_key': '01010101-0101-0101-0101-010101010101' + 'authorization_key': '01010101-0101-0101-0101-010101010101', + 'express_route_id': '/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect' }) - self.cmd('az vmware private-cloud create -g {rg} -n {privatecloud} --location {loc} --sku av20 --cluster-size 4 --network-block 192.168.48.0/22 --nsxt-password 5rqdLj4GF3cePUe6( --vcenter-password UpfBXae9ZquZSDXk( --accept-eula') + # self.cmd('az vmware private-cloud create -g {rg} -n {privatecloud} --location {loc} --sku av20 --cluster-size 4 --network-block 192.168.48.0/22 --nsxt-password 5rqdLj4GF3cePUe6 --vcenter-password UpfBXae9ZquZSDXk --accept-eula') - count = len(self.cmd('az vmware global-reach-connection list -g {rg} -c {privatecloud}').get_output_in_json()) - self.assertEqual(count, 0, 'count expected to be 0') + # count = len(self.cmd('az vmware global-reach-connection list -g {rg} -c {privatecloud}').get_output_in_json()) + # self.assertEqual(count, 1, 'count expected to be 1') - rsp = self.cmd('az vmware global-reach-connection create -g {rg} -c {privatecloud} -n {global_reach_connection} --peer-express-route-circuit {peer_express_route_circuit} --authorization-key {authorization_key}').get_output_in_json() - self.assertEqual(rsp['type'], 'Microsoft.AVS/privateClouds/globalReachConnections') - self.assertEqual(rsp['name'], self.kwargs.get('global_reach_connection')) + # rsp = self.cmd('az vmware global-reach-connection create -g {rg} -c {privatecloud} -n {global_reach_connection} --peer-express-route-circuit {peer_express_route_circuit} --authorization-key {authorization_key} --express-route-id {express_route_id}').get_output_in_json() + # self.assertEqual(rsp['type'], 'Microsoft.AVS/privateClouds/globalReachConnections') + # self.assertEqual(rsp['name'], self.kwargs.get('global_reach_connection')) - count = len(self.cmd('az vmware global-reach-connection list -g {rg} -c {privatecloud}').get_output_in_json()) - self.assertEqual(count, 1, 'count expected to be 1') + # count = len(self.cmd('az vmware global-reach-connection list -g {rg} -c {privatecloud}').get_output_in_json()) + # self.assertEqual(count, 1, 'count expected to be 1') - self.cmd('vmware global-reach-connection show -g {rg} -c {privatecloud} -n {global_reach_connection}').get_output_in_json() - self.assertEqual(rsp['type'], 'Microsoft.AVS/privateClouds/globalReachConnections') - self.assertEqual(rsp['name'], self.kwargs.get('global_reach_connection')) + # self.cmd('vmware global-reach-connection show -g {rg} -c {privatecloud} -n {global_reach_connection}').get_output_in_json() + # self.assertEqual(rsp['type'], 'Microsoft.AVS/privateClouds/globalReachConnections') + # self.assertEqual(rsp['name'], self.kwargs.get('global_reach_connection')) - rsp = self.cmd('vmware global-reach-connection delete -g {rg} -c {privatecloud} -n {global_reach_connection}').output - self.assertEqual(len(rsp), 0) + # rsp = self.cmd('vmware global-reach-connection delete -g {rg} -c {privatecloud} -n {global_reach_connection}').output + # self.assertEqual(len(rsp), 0) - count = len(self.cmd('az vmware global-reach-connection list -g {rg} -c {privatecloud}').get_output_in_json()) - self.assertEqual(count, 0, 'count expected to be 0') + # count = len(self.cmd('az vmware global-reach-connection list -g {rg} -c {privatecloud}').get_output_in_json()) + # self.assertEqual(count, 1, 'count expected to be 1') diff --git a/src/vmware/azext_vmware/tests/latest/test_hcx_scenario.py b/src/vmware/azext_vmware/tests/latest/test_hcx_scenario.py index 576e33da42e..1a754bed460 100644 --- a/src/vmware/azext_vmware/tests/latest/test_hcx_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_hcx_scenario.py @@ -32,21 +32,21 @@ def test_vmware_hcx(self): count = len(self.cmd('vmware addon list -g {rg} -c {privatecloud}').get_output_in_json()) self.assertEqual(count, 1, 'addon count expected to be 1') - # hcx-enterprise-site list should report 0 + # hcx-enterprise-site list should report 1 count = len(self.cmd('vmware hcx-enterprise-site list -g {rg} -c {privatecloud}').get_output_in_json()) - self.assertEqual(count, 0, 'hcx-enterprise-site count expected to be 0') + self.assertEqual(count, 1, 'hcx-enterprise-site count expected to be 1') # create authorization self.cmd('vmware hcx-enterprise-site create -g {rg} -c {privatecloud} -n myhcx') # hcx-enterprise-site list should report 1 count = len(self.cmd('vmware hcx-enterprise-site list -g {rg} -c {privatecloud}').get_output_in_json()) - self.assertEqual(count, 1, 'hcx-enterprise-site count expected to be 0') + self.assertEqual(count, 1, 'hcx-enterprise-site count expected to be 1') self.cmd('vmware hcx-enterprise-site show -g {rg} -c {privatecloud} -n myhcx') self.cmd('vmware hcx-enterprise-site delete -g {rg} -c {privatecloud} -n myhcx') - # hcx-enterprise-site list should report 0 + # hcx-enterprise-site list should report 1 count = len(self.cmd('vmware hcx-enterprise-site list -g {rg} -c {privatecloud}').get_output_in_json()) - self.assertEqual(count, 0, 'hcx-enterprise-site count expected to be 0') + self.assertEqual(count, 1, 'hcx-enterprise-site count expected to be 1') diff --git a/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py b/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py index cd004b6fff5..725d0660cb7 100644 --- a/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py @@ -21,7 +21,8 @@ def test_vmware(self): self.kwargs.update({ 'loc': 'centralus', 'privatecloud': 'cloud1', - 'cluster': 'pycluster1' + 'cluster': 'pycluster1', + 'hosts': 'fakehost22.nyc1.kubernetes.center fakehost23.nyc1.kubernetes.center fakehost24.nyc1.kubernetes.center' }) # check quote availability @@ -35,7 +36,7 @@ def test_vmware(self): # self.cmd('vmware private-cloud show -g {rg} -n {privatecloud}') count = len(self.cmd('vmware private-cloud list -g {rg}').get_output_in_json()) - self.assertEqual(count, 0, 'private cloud count expected to be 0') + self.assertEqual(count, 1, 'private cloud count expected to be 1') # create a private cloud self.cmd('vmware private-cloud create -g {rg} -n {privatecloud} --location {loc} --sku av20 --cluster-size 3 --network-block 192.168.48.0/22 --nsxt-password 5rqdLj4GF3cePUe6( --vcenter-password UpfBXae9ZquZSDXk( --accept-eula') @@ -60,7 +61,7 @@ def test_vmware(self): self.cmd('vmware private-cloud update -g {rg} -n {privatecloud} --cluster-size 4') # update private cloud to enable internet - self.cmd('vmware private-cloud update -g {rg} -n {privatecloud} --internet enabled') + self.cmd('vmware private-cloud update -g {rg} -n {privatecloud} --internet Enabled') # create authorization self.cmd('vmware authorization create -g {rg} -c {privatecloud} -n myauthname') @@ -76,10 +77,10 @@ def test_vmware(self): # cluster list should report 0 count = len(self.cmd('vmware cluster list -g {rg} -c {privatecloud}').get_output_in_json()) - self.assertEqual(count, 0, 'cluster count expected to be 0') + self.assertEqual(count, 1, 'cluster count expected to be 1') # cluster create - self.cmd('vmware cluster create -g {rg} -c {privatecloud} -n {cluster} --sku av20 --size 3') + self.cmd('vmware cluster create -g {rg} -c {privatecloud} -n {cluster} --sku av20 --size 3 --hosts {hosts}') # cluster list should report 1 count = len(self.cmd('vmware cluster list -g {rg} -c {privatecloud}').get_output_in_json()) From 045bd94dd74c0d63af78ba56598665b2c4e2a4d2 Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Thu, 21 Oct 2021 09:33:47 -0500 Subject: [PATCH 28/34] uncommented test file --- .../tests/latest/recordings/test_vmware.yaml | 38 +-- .../latest/recordings/test_vmware_addon.yaml | 24 +- .../recordings/test_vmware_cloud_link.yaml | 8 +- .../recordings/test_vmware_datastores.yaml | 8 +- .../test_vmware_global_reach_connection.yaml | 240 ++++++++++++++++++ .../latest/recordings/test_vmware_hcx.yaml | 18 +- .../latest/recordings/test_vmware_script.yaml | 16 +- .../test_vmware_workload_network.yaml | 78 +++--- .../test_global_reach_connection_scenario.py | 30 +-- 9 files changed, 350 insertions(+), 110 deletions(-) create mode 100644 src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml index dc76f4c872d..7c00a0d53a2 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml @@ -27,7 +27,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:26 GMT + - Thu, 21 Oct 2021 14:29:59 GMT server: - Rocket status: @@ -61,7 +61,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:31 GMT + - Thu, 21 Oct 2021 14:30:03 GMT server: - Rocket status: @@ -93,7 +93,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:35 GMT + - Thu, 21 Oct 2021 14:30:07 GMT server: - Rocket status: @@ -132,7 +132,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:40 GMT + - Thu, 21 Oct 2021 14:30:12 GMT server: - Rocket status: @@ -164,7 +164,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:44 GMT + - Thu, 21 Oct 2021 14:30:16 GMT server: - Rocket status: @@ -196,7 +196,7 @@ interactions: content-length: - '0' date: - - Wed, 20 Oct 2021 22:02:48 GMT + - Thu, 21 Oct 2021 14:30:20 GMT server: - Rocket status: @@ -228,7 +228,7 @@ interactions: content-length: - '0' date: - - Wed, 20 Oct 2021 22:02:53 GMT + - Thu, 21 Oct 2021 14:30:24 GMT server: - Rocket status: @@ -265,7 +265,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:57 GMT + - Thu, 21 Oct 2021 14:30:29 GMT server: - Rocket status: @@ -301,7 +301,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:03:01 GMT + - Thu, 21 Oct 2021 14:30:33 GMT server: - Rocket status: @@ -337,7 +337,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:03:06 GMT + - Thu, 21 Oct 2021 14:30:37 GMT server: - Rocket status: @@ -369,7 +369,7 @@ interactions: content-length: - '0' date: - - Wed, 20 Oct 2021 22:03:11 GMT + - Thu, 21 Oct 2021 14:30:42 GMT server: - Rocket status: @@ -402,7 +402,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:03:15 GMT + - Thu, 21 Oct 2021 14:30:46 GMT server: - Rocket status: @@ -452,7 +452,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:03:15 GMT + - Thu, 21 Oct 2021 14:30:46 GMT server: - Rocket status: @@ -484,7 +484,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:03:20 GMT + - Thu, 21 Oct 2021 14:30:50 GMT server: - Rocket status: @@ -516,7 +516,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:03:24 GMT + - Thu, 21 Oct 2021 14:30:55 GMT server: - Rocket status: @@ -553,7 +553,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:03:29 GMT + - Thu, 21 Oct 2021 14:30:59 GMT server: - Rocket status: @@ -585,7 +585,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:03:33 GMT + - Thu, 21 Oct 2021 14:31:03 GMT server: - Rocket status: @@ -621,7 +621,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:03:38 GMT + - Thu, 21 Oct 2021 14:31:08 GMT server: - Rocket status: @@ -653,7 +653,7 @@ interactions: content-length: - '0' date: - - Wed, 20 Oct 2021 22:03:42 GMT + - Thu, 21 Oct 2021 14:31:12 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml index c509e3a599c..bef68980511 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml @@ -31,7 +31,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:00 GMT + - Thu, 21 Oct 2021 14:29:33 GMT server: - Rocket status: @@ -63,7 +63,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:04 GMT + - Thu, 21 Oct 2021 14:29:38 GMT server: - Rocket status: @@ -99,7 +99,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:09 GMT + - Thu, 21 Oct 2021 14:29:42 GMT server: - Rocket status: @@ -131,7 +131,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:13 GMT + - Thu, 21 Oct 2021 14:29:46 GMT server: - Rocket status: @@ -163,7 +163,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:17 GMT + - Thu, 21 Oct 2021 14:29:50 GMT server: - Rocket status: @@ -195,7 +195,7 @@ interactions: content-length: - '0' date: - - Wed, 20 Oct 2021 22:02:22 GMT + - Thu, 21 Oct 2021 14:29:54 GMT server: - Rocket status: @@ -227,7 +227,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:26 GMT + - Thu, 21 Oct 2021 14:29:59 GMT server: - Rocket status: @@ -263,7 +263,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:31 GMT + - Thu, 21 Oct 2021 14:30:03 GMT server: - Rocket status: @@ -295,7 +295,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:35 GMT + - Thu, 21 Oct 2021 14:30:07 GMT server: - Rocket status: @@ -327,7 +327,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:40 GMT + - Thu, 21 Oct 2021 14:30:12 GMT server: - Rocket status: @@ -359,7 +359,7 @@ interactions: content-length: - '0' date: - - Wed, 20 Oct 2021 22:02:44 GMT + - Thu, 21 Oct 2021 14:30:16 GMT server: - Rocket status: @@ -391,7 +391,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:48 GMT + - Thu, 21 Oct 2021 14:30:20 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml index 93b961b97c1..bf87e41c3e9 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml @@ -29,7 +29,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:00 GMT + - Thu, 21 Oct 2021 14:29:33 GMT server: - Rocket status: @@ -61,7 +61,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:04 GMT + - Thu, 21 Oct 2021 14:29:38 GMT server: - Rocket status: @@ -93,7 +93,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:09 GMT + - Thu, 21 Oct 2021 14:29:42 GMT server: - Rocket status: @@ -125,7 +125,7 @@ interactions: content-length: - '0' date: - - Wed, 20 Oct 2021 22:02:13 GMT + - Thu, 21 Oct 2021 14:29:46 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml index b8718fe4cc0..d68dc8c0180 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml @@ -30,7 +30,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:00 GMT + - Thu, 21 Oct 2021 14:29:33 GMT server: - Rocket status: @@ -62,7 +62,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:04 GMT + - Thu, 21 Oct 2021 14:29:37 GMT server: - Rocket status: @@ -94,7 +94,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:09 GMT + - Thu, 21 Oct 2021 14:29:42 GMT server: - Rocket status: @@ -126,7 +126,7 @@ interactions: content-length: - '0' date: - - Wed, 20 Oct 2021 22:02:13 GMT + - Thu, 21 Oct 2021 14:29:46 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml new file mode 100644 index 00000000000..47aef3beed8 --- /dev/null +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml @@ -0,0 +1,240 @@ +interactions: +- request: + body: '{"location": "westcentralus", "sku": {"name": "av20"}, "identity": {}, + "properties": {"managementCluster": {"clusterSize": 4}, "internet": "Disabled", + "networkBlock": "192.168.48.0/22", "vcenterPassword": "UpfBXae9ZquZSDXk", "nsxtPassword": + "5rqdLj4GF3cePUe6"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware private-cloud create + Connection: + - keep-alive + Content-Length: + - '261' + Content-Type: + - application/json + ParameterSetName: + - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password + --accept-eula + User-Agent: + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-12-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1","name":"cloud1","type":"Microsoft.AVS/privateClouds","location":"eastus2","tags":{},"sku":{"name":"AV36"},"properties":{"managementCluster":{"clusterSize":4,"clusterId":1,"hosts":["fakehost18.nyc1.kubernetes.center","fakehost19.nyc1.kubernetes.center","fakehost20.nyc1.kubernetes.center","fakehost21.nyc1.kubernetes.center"]},"internet":"Disabled","identitySources":[{"name":"group1","alias":"groupAlias","domain":"domain1","baseUserDN":"ou=baseUser","baseGroupDN":"ou=baseGroup","primaryServer":"ldaps://1.1.1.1:636/","secondaryServer":"ldaps://1.1.1.2:636/","ssl":"Enabled"}],"availability":{"strategy":"SingleZone","zone":1},"provisioningState":"Succeeded","circuit":{"primarySubnet":"192.168.53.0/30","secondarySubnet":"192.168.53.4/30","expressRouteID":"/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"},"endpoints":{"nsxtManager":"https://192.168.50.3/","vcsa":"https://192.168.50.2/"},"networkBlock":"192.168.48.0/22","externalCloudLinks":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2"]}}' + headers: + content-length: + - '1339' + content-type: + - application/json + date: + - Thu, 21 Oct 2021 14:29:33 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware global-reach-connection list + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections?api-version=2021-12-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1","name":"connection1","type":"Microsoft.AVS/privateClouds/globalReachConnections","properties":{"provisioningState":"Succeeded","addressPrefix":"10.2.3.16/29","authorizationKey":"01010101-0101-0101-0101-010101010101","circuitConnectionStatus":"Connected","peerExpressRouteCircuit":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer","expressRouteID":"/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"}}]}' + headers: + content-length: + - '796' + content-type: + - application/json + date: + - Thu, 21 Oct 2021 14:29:37 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"authorizationKey": "01010101-0101-0101-0101-010101010101", + "peerExpressRouteCircuit": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer", + "expressRouteId": "/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware global-reach-connection create + Connection: + - keep-alive + Content-Length: + - '466' + Content-Type: + - application/json + ParameterSetName: + - -g -c -n --peer-express-route-circuit --authorization-key --express-route-id + User-Agent: + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1?api-version=2021-12-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1","name":"connection1","type":"Microsoft.AVS/privateClouds/globalReachConnections","properties":{"provisioningState":"Succeeded","addressPrefix":"10.2.3.16/29","authorizationKey":"01010101-0101-0101-0101-010101010101","circuitConnectionStatus":"Connected","peerExpressRouteCircuit":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer","expressRouteID":"/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"}}' + headers: + content-length: + - '784' + content-type: + - application/json + date: + - Thu, 21 Oct 2021 14:29:42 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware global-reach-connection list + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections?api-version=2021-12-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1","name":"connection1","type":"Microsoft.AVS/privateClouds/globalReachConnections","properties":{"provisioningState":"Succeeded","addressPrefix":"10.2.3.16/29","authorizationKey":"01010101-0101-0101-0101-010101010101","circuitConnectionStatus":"Connected","peerExpressRouteCircuit":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer","expressRouteID":"/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"}}]}' + headers: + content-length: + - '796' + content-type: + - application/json + date: + - Thu, 21 Oct 2021 14:29:46 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware global-reach-connection show + Connection: + - keep-alive + ParameterSetName: + - -g -c -n + User-Agent: + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1?api-version=2021-12-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1","name":"connection1","type":"Microsoft.AVS/privateClouds/globalReachConnections","properties":{"provisioningState":"Succeeded","addressPrefix":"10.2.3.16/29","authorizationKey":"01010101-0101-0101-0101-010101010101","circuitConnectionStatus":"Connected","peerExpressRouteCircuit":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer","expressRouteID":"/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"}}' + headers: + content-length: + - '784' + content-type: + - application/json + date: + - Thu, 21 Oct 2021 14:29:50 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware global-reach-connection delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -c -n + User-Agent: + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: DELETE + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1?api-version=2021-12-01 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Thu, 21 Oct 2021 14:29:55 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware global-reach-connection list + Connection: + - keep-alive + ParameterSetName: + - -g -c + User-Agent: + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections?api-version=2021-12-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1","name":"connection1","type":"Microsoft.AVS/privateClouds/globalReachConnections","properties":{"provisioningState":"Succeeded","addressPrefix":"10.2.3.16/29","authorizationKey":"01010101-0101-0101-0101-010101010101","circuitConnectionStatus":"Connected","peerExpressRouteCircuit":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer","expressRouteID":"/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"}}]}' + headers: + content-length: + - '796' + content-type: + - application/json + date: + - Thu, 21 Oct 2021 14:29:59 GMT + server: + - Rocket + status: + code: 200 + message: OK +version: 1 diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml index 59247fc717c..b27e0b04da0 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml @@ -33,7 +33,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:03:01 GMT + - Thu, 21 Oct 2021 14:30:33 GMT server: - Rocket status: @@ -69,7 +69,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:03:06 GMT + - Thu, 21 Oct 2021 14:30:37 GMT server: - Rocket status: @@ -101,7 +101,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:03:11 GMT + - Thu, 21 Oct 2021 14:30:42 GMT server: - Rocket status: @@ -133,7 +133,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:03:15 GMT + - Thu, 21 Oct 2021 14:30:46 GMT server: - Rocket status: @@ -169,7 +169,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:03:20 GMT + - Thu, 21 Oct 2021 14:30:50 GMT server: - Rocket status: @@ -201,7 +201,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:03:24 GMT + - Thu, 21 Oct 2021 14:30:55 GMT server: - Rocket status: @@ -233,7 +233,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:03:29 GMT + - Thu, 21 Oct 2021 14:30:59 GMT server: - Rocket status: @@ -265,7 +265,7 @@ interactions: content-length: - '0' date: - - Wed, 20 Oct 2021 22:03:33 GMT + - Thu, 21 Oct 2021 14:31:03 GMT server: - Rocket status: @@ -297,7 +297,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:03:38 GMT + - Thu, 21 Oct 2021 14:31:08 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml index 177c5a964e3..8176f55aeef 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml @@ -27,7 +27,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:26 GMT + - Thu, 21 Oct 2021 14:29:59 GMT server: - Rocket status: @@ -60,7 +60,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:31 GMT + - Thu, 21 Oct 2021 14:30:03 GMT server: - Rocket status: @@ -99,7 +99,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:35 GMT + - Thu, 21 Oct 2021 14:30:07 GMT server: - Rocket status: @@ -135,7 +135,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:40 GMT + - Thu, 21 Oct 2021 14:30:12 GMT server: - Rocket status: @@ -178,7 +178,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:44 GMT + - Thu, 21 Oct 2021 14:30:16 GMT server: - Rocket status: @@ -211,7 +211,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:48 GMT + - Thu, 21 Oct 2021 14:30:20 GMT server: - Rocket status: @@ -244,7 +244,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:53 GMT + - Thu, 21 Oct 2021 14:30:24 GMT server: - Rocket status: @@ -276,7 +276,7 @@ interactions: content-length: - '0' date: - - Wed, 20 Oct 2021 22:02:57 GMT + - Thu, 21 Oct 2021 14:30:29 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml index ee30e33e4c0..01c941ce01e 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml @@ -25,7 +25,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:09 GMT + - Thu, 21 Oct 2021 14:30:12 GMT server: - Rocket status: @@ -57,7 +57,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:13 GMT + - Thu, 21 Oct 2021 14:30:16 GMT server: - Rocket status: @@ -94,7 +94,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:17 GMT + - Thu, 21 Oct 2021 14:30:20 GMT server: - Rocket status: @@ -126,7 +126,7 @@ interactions: content-length: - '0' date: - - Wed, 20 Oct 2021 22:02:22 GMT + - Thu, 21 Oct 2021 14:30:24 GMT server: - Rocket status: @@ -163,7 +163,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:26 GMT + - Thu, 21 Oct 2021 14:30:29 GMT server: - Rocket status: @@ -201,7 +201,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:31 GMT + - Thu, 21 Oct 2021 14:30:33 GMT server: - Rocket status: @@ -233,7 +233,7 @@ interactions: content-length: - '0' date: - - Wed, 20 Oct 2021 22:02:35 GMT + - Thu, 21 Oct 2021 14:30:37 GMT server: - Rocket status: @@ -271,7 +271,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:40 GMT + - Thu, 21 Oct 2021 14:30:42 GMT server: - Rocket status: @@ -303,7 +303,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:44 GMT + - Thu, 21 Oct 2021 14:30:46 GMT server: - Rocket status: @@ -335,7 +335,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:49 GMT + - Thu, 21 Oct 2021 14:30:50 GMT server: - Rocket status: @@ -374,7 +374,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:53 GMT + - Thu, 21 Oct 2021 14:30:55 GMT server: - Rocket status: @@ -413,7 +413,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:02:57 GMT + - Thu, 21 Oct 2021 14:30:59 GMT server: - Rocket status: @@ -445,7 +445,7 @@ interactions: content-length: - '0' date: - - Wed, 20 Oct 2021 22:03:01 GMT + - Thu, 21 Oct 2021 14:31:03 GMT server: - Rocket status: @@ -477,7 +477,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:03:06 GMT + - Thu, 21 Oct 2021 14:31:08 GMT server: - Rocket status: @@ -509,7 +509,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:03:11 GMT + - Thu, 21 Oct 2021 14:31:12 GMT server: - Rocket status: @@ -548,7 +548,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:03:15 GMT + - Thu, 21 Oct 2021 14:31:17 GMT server: - Rocket status: @@ -587,7 +587,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:03:20 GMT + - Thu, 21 Oct 2021 14:31:21 GMT server: - Rocket status: @@ -619,7 +619,7 @@ interactions: content-length: - '0' date: - - Wed, 20 Oct 2021 22:03:24 GMT + - Thu, 21 Oct 2021 14:31:25 GMT server: - Rocket status: @@ -651,7 +651,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:03:29 GMT + - Thu, 21 Oct 2021 14:31:30 GMT server: - Rocket status: @@ -683,7 +683,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:03:33 GMT + - Thu, 21 Oct 2021 14:31:34 GMT server: - Rocket status: @@ -715,7 +715,7 @@ interactions: content-length: - '0' date: - - Wed, 20 Oct 2021 22:03:38 GMT + - Thu, 21 Oct 2021 14:31:38 GMT server: - Rocket status: @@ -747,7 +747,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:03:42 GMT + - Thu, 21 Oct 2021 14:31:43 GMT server: - Rocket status: @@ -779,7 +779,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:03:46 GMT + - Thu, 21 Oct 2021 14:31:47 GMT server: - Rocket status: @@ -818,7 +818,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:03:51 GMT + - Thu, 21 Oct 2021 14:31:52 GMT server: - Rocket status: @@ -857,7 +857,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:03:55 GMT + - Thu, 21 Oct 2021 14:31:56 GMT server: - Rocket status: @@ -889,7 +889,7 @@ interactions: content-length: - '0' date: - - Wed, 20 Oct 2021 22:04:00 GMT + - Thu, 21 Oct 2021 14:32:00 GMT server: - Rocket status: @@ -921,7 +921,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:04:04 GMT + - Thu, 21 Oct 2021 14:32:05 GMT server: - Rocket status: @@ -953,7 +953,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:04:09 GMT + - Thu, 21 Oct 2021 14:32:09 GMT server: - Rocket status: @@ -990,7 +990,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:04:13 GMT + - Thu, 21 Oct 2021 14:32:13 GMT server: - Rocket status: @@ -1022,7 +1022,7 @@ interactions: content-length: - '0' date: - - Wed, 20 Oct 2021 22:04:18 GMT + - Thu, 21 Oct 2021 14:32:18 GMT server: - Rocket status: @@ -1054,7 +1054,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:04:22 GMT + - Thu, 21 Oct 2021 14:32:22 GMT server: - Rocket status: @@ -1086,7 +1086,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:04:27 GMT + - Thu, 21 Oct 2021 14:32:26 GMT server: - Rocket status: @@ -1123,7 +1123,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:04:31 GMT + - Thu, 21 Oct 2021 14:32:31 GMT server: - Rocket status: @@ -1160,7 +1160,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:04:36 GMT + - Thu, 21 Oct 2021 14:32:35 GMT server: - Rocket status: @@ -1192,7 +1192,7 @@ interactions: content-length: - '0' date: - - Wed, 20 Oct 2021 22:04:40 GMT + - Thu, 21 Oct 2021 14:32:40 GMT server: - Rocket status: @@ -1224,7 +1224,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:04:45 GMT + - Thu, 21 Oct 2021 14:32:44 GMT server: - Rocket status: @@ -1256,7 +1256,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:04:49 GMT + - Thu, 21 Oct 2021 14:32:48 GMT server: - Rocket status: @@ -1288,7 +1288,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:04:54 GMT + - Thu, 21 Oct 2021 14:32:53 GMT server: - Rocket status: @@ -1320,7 +1320,7 @@ interactions: content-type: - application/json date: - - Wed, 20 Oct 2021 22:04:58 GMT + - Thu, 21 Oct 2021 14:32:57 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/test_global_reach_connection_scenario.py b/src/vmware/azext_vmware/tests/latest/test_global_reach_connection_scenario.py index 95be8f4af2c..8cf0a53ba31 100644 --- a/src/vmware/azext_vmware/tests/latest/test_global_reach_connection_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_global_reach_connection_scenario.py @@ -26,24 +26,24 @@ def test_vmware_global_reach_connection(self): 'express_route_id': '/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect' }) - # self.cmd('az vmware private-cloud create -g {rg} -n {privatecloud} --location {loc} --sku av20 --cluster-size 4 --network-block 192.168.48.0/22 --nsxt-password 5rqdLj4GF3cePUe6 --vcenter-password UpfBXae9ZquZSDXk --accept-eula') + self.cmd('az vmware private-cloud create -g {rg} -n {privatecloud} --location {loc} --sku av20 --cluster-size 4 --network-block 192.168.48.0/22 --nsxt-password 5rqdLj4GF3cePUe6 --vcenter-password UpfBXae9ZquZSDXk --accept-eula') - # count = len(self.cmd('az vmware global-reach-connection list -g {rg} -c {privatecloud}').get_output_in_json()) - # self.assertEqual(count, 1, 'count expected to be 1') + count = len(self.cmd('az vmware global-reach-connection list -g {rg} -c {privatecloud}').get_output_in_json()) + self.assertEqual(count, 1, 'count expected to be 1') - # rsp = self.cmd('az vmware global-reach-connection create -g {rg} -c {privatecloud} -n {global_reach_connection} --peer-express-route-circuit {peer_express_route_circuit} --authorization-key {authorization_key} --express-route-id {express_route_id}').get_output_in_json() - # self.assertEqual(rsp['type'], 'Microsoft.AVS/privateClouds/globalReachConnections') - # self.assertEqual(rsp['name'], self.kwargs.get('global_reach_connection')) + rsp = self.cmd('az vmware global-reach-connection create -g {rg} -c {privatecloud} -n {global_reach_connection} --peer-express-route-circuit {peer_express_route_circuit} --authorization-key {authorization_key} --express-route-id {express_route_id}').get_output_in_json() + self.assertEqual(rsp['type'], 'Microsoft.AVS/privateClouds/globalReachConnections') + self.assertEqual(rsp['name'], self.kwargs.get('global_reach_connection')) - # count = len(self.cmd('az vmware global-reach-connection list -g {rg} -c {privatecloud}').get_output_in_json()) - # self.assertEqual(count, 1, 'count expected to be 1') + count = len(self.cmd('az vmware global-reach-connection list -g {rg} -c {privatecloud}').get_output_in_json()) + self.assertEqual(count, 1, 'count expected to be 1') - # self.cmd('vmware global-reach-connection show -g {rg} -c {privatecloud} -n {global_reach_connection}').get_output_in_json() - # self.assertEqual(rsp['type'], 'Microsoft.AVS/privateClouds/globalReachConnections') - # self.assertEqual(rsp['name'], self.kwargs.get('global_reach_connection')) + self.cmd('vmware global-reach-connection show -g {rg} -c {privatecloud} -n {global_reach_connection}').get_output_in_json() + self.assertEqual(rsp['type'], 'Microsoft.AVS/privateClouds/globalReachConnections') + self.assertEqual(rsp['name'], self.kwargs.get('global_reach_connection')) - # rsp = self.cmd('vmware global-reach-connection delete -g {rg} -c {privatecloud} -n {global_reach_connection}').output - # self.assertEqual(len(rsp), 0) + rsp = self.cmd('vmware global-reach-connection delete -g {rg} -c {privatecloud} -n {global_reach_connection}').output + self.assertEqual(len(rsp), 0) - # count = len(self.cmd('az vmware global-reach-connection list -g {rg} -c {privatecloud}').get_output_in_json()) - # self.assertEqual(count, 1, 'count expected to be 1') + count = len(self.cmd('az vmware global-reach-connection list -g {rg} -c {privatecloud}').get_output_in_json()) + self.assertEqual(count, 1, 'count expected to be 1') From 9e66fd2773acc4cbf263269dfbaee36df3c808f7 Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Thu, 21 Oct 2021 10:50:46 -0500 Subject: [PATCH 29/34] merged with main --- .../tests/latest/recordings/test_vmware.yaml | 38 ++++----- .../latest/recordings/test_vmware_addon.yaml | 24 +++--- .../recordings/test_vmware_cloud_link.yaml | 8 +- .../recordings/test_vmware_datastores.yaml | 8 +- .../test_vmware_global_reach_connection.yaml | 14 ++-- .../latest/recordings/test_vmware_hcx.yaml | 18 ++--- .../latest/recordings/test_vmware_script.yaml | 16 ++-- .../test_vmware_workload_network.yaml | 78 +++++++++---------- 8 files changed, 102 insertions(+), 102 deletions(-) diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml index 7c00a0d53a2..8d7f26e7c0f 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml @@ -27,7 +27,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:29:59 GMT + - Thu, 21 Oct 2021 15:44:44 GMT server: - Rocket status: @@ -61,7 +61,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:03 GMT + - Thu, 21 Oct 2021 15:44:48 GMT server: - Rocket status: @@ -93,7 +93,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:07 GMT + - Thu, 21 Oct 2021 15:44:53 GMT server: - Rocket status: @@ -132,7 +132,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:12 GMT + - Thu, 21 Oct 2021 15:44:57 GMT server: - Rocket status: @@ -164,7 +164,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:16 GMT + - Thu, 21 Oct 2021 15:45:02 GMT server: - Rocket status: @@ -196,7 +196,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 14:30:20 GMT + - Thu, 21 Oct 2021 15:45:06 GMT server: - Rocket status: @@ -228,7 +228,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 14:30:24 GMT + - Thu, 21 Oct 2021 15:45:11 GMT server: - Rocket status: @@ -265,7 +265,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:29 GMT + - Thu, 21 Oct 2021 15:45:15 GMT server: - Rocket status: @@ -301,7 +301,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:33 GMT + - Thu, 21 Oct 2021 15:45:20 GMT server: - Rocket status: @@ -337,7 +337,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:37 GMT + - Thu, 21 Oct 2021 15:45:24 GMT server: - Rocket status: @@ -369,7 +369,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 14:30:42 GMT + - Thu, 21 Oct 2021 15:45:29 GMT server: - Rocket status: @@ -402,7 +402,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:46 GMT + - Thu, 21 Oct 2021 15:45:33 GMT server: - Rocket status: @@ -452,7 +452,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:46 GMT + - Thu, 21 Oct 2021 15:45:33 GMT server: - Rocket status: @@ -484,7 +484,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:50 GMT + - Thu, 21 Oct 2021 15:45:38 GMT server: - Rocket status: @@ -516,7 +516,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:55 GMT + - Thu, 21 Oct 2021 15:45:43 GMT server: - Rocket status: @@ -553,7 +553,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:59 GMT + - Thu, 21 Oct 2021 15:45:47 GMT server: - Rocket status: @@ -585,7 +585,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:31:03 GMT + - Thu, 21 Oct 2021 15:45:51 GMT server: - Rocket status: @@ -621,7 +621,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:31:08 GMT + - Thu, 21 Oct 2021 15:45:56 GMT server: - Rocket status: @@ -653,7 +653,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 14:31:12 GMT + - Thu, 21 Oct 2021 15:46:00 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml index bef68980511..77c8d9110ab 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml @@ -31,7 +31,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:29:33 GMT + - Thu, 21 Oct 2021 15:44:17 GMT server: - Rocket status: @@ -63,7 +63,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:29:38 GMT + - Thu, 21 Oct 2021 15:44:21 GMT server: - Rocket status: @@ -99,7 +99,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:29:42 GMT + - Thu, 21 Oct 2021 15:44:26 GMT server: - Rocket status: @@ -131,7 +131,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:29:46 GMT + - Thu, 21 Oct 2021 15:44:30 GMT server: - Rocket status: @@ -163,7 +163,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:29:50 GMT + - Thu, 21 Oct 2021 15:44:35 GMT server: - Rocket status: @@ -195,7 +195,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 14:29:54 GMT + - Thu, 21 Oct 2021 15:44:39 GMT server: - Rocket status: @@ -227,7 +227,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:29:59 GMT + - Thu, 21 Oct 2021 15:44:44 GMT server: - Rocket status: @@ -263,7 +263,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:03 GMT + - Thu, 21 Oct 2021 15:44:48 GMT server: - Rocket status: @@ -295,7 +295,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:07 GMT + - Thu, 21 Oct 2021 15:44:53 GMT server: - Rocket status: @@ -327,7 +327,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:12 GMT + - Thu, 21 Oct 2021 15:44:57 GMT server: - Rocket status: @@ -359,7 +359,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 14:30:16 GMT + - Thu, 21 Oct 2021 15:45:02 GMT server: - Rocket status: @@ -391,7 +391,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:20 GMT + - Thu, 21 Oct 2021 15:45:06 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml index bf87e41c3e9..bff23b2a627 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml @@ -29,7 +29,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:29:33 GMT + - Thu, 21 Oct 2021 15:44:17 GMT server: - Rocket status: @@ -61,7 +61,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:29:38 GMT + - Thu, 21 Oct 2021 15:44:21 GMT server: - Rocket status: @@ -93,7 +93,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:29:42 GMT + - Thu, 21 Oct 2021 15:44:26 GMT server: - Rocket status: @@ -125,7 +125,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 14:29:46 GMT + - Thu, 21 Oct 2021 15:44:30 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml index d68dc8c0180..a6d059e58ba 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml @@ -30,7 +30,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:29:33 GMT + - Thu, 21 Oct 2021 15:44:17 GMT server: - Rocket status: @@ -62,7 +62,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:29:37 GMT + - Thu, 21 Oct 2021 15:44:21 GMT server: - Rocket status: @@ -94,7 +94,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:29:42 GMT + - Thu, 21 Oct 2021 15:44:26 GMT server: - Rocket status: @@ -126,7 +126,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 14:29:46 GMT + - Thu, 21 Oct 2021 15:44:30 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml index 47aef3beed8..7523b0f4d3e 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml @@ -33,7 +33,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:29:33 GMT + - Thu, 21 Oct 2021 15:44:16 GMT server: - Rocket status: @@ -65,7 +65,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:29:37 GMT + - Thu, 21 Oct 2021 15:44:21 GMT server: - Rocket status: @@ -103,7 +103,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:29:42 GMT + - Thu, 21 Oct 2021 15:44:26 GMT server: - Rocket status: @@ -135,7 +135,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:29:46 GMT + - Thu, 21 Oct 2021 15:44:30 GMT server: - Rocket status: @@ -167,7 +167,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:29:50 GMT + - Thu, 21 Oct 2021 15:44:35 GMT server: - Rocket status: @@ -199,7 +199,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 14:29:55 GMT + - Thu, 21 Oct 2021 15:44:39 GMT server: - Rocket status: @@ -231,7 +231,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:29:59 GMT + - Thu, 21 Oct 2021 15:44:44 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml index b27e0b04da0..5de1fcc76ae 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml @@ -33,7 +33,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:33 GMT + - Thu, 21 Oct 2021 15:45:20 GMT server: - Rocket status: @@ -69,7 +69,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:37 GMT + - Thu, 21 Oct 2021 15:45:24 GMT server: - Rocket status: @@ -101,7 +101,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:42 GMT + - Thu, 21 Oct 2021 15:45:29 GMT server: - Rocket status: @@ -133,7 +133,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:46 GMT + - Thu, 21 Oct 2021 15:45:33 GMT server: - Rocket status: @@ -169,7 +169,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:50 GMT + - Thu, 21 Oct 2021 15:45:38 GMT server: - Rocket status: @@ -201,7 +201,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:55 GMT + - Thu, 21 Oct 2021 15:45:42 GMT server: - Rocket status: @@ -233,7 +233,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:59 GMT + - Thu, 21 Oct 2021 15:45:47 GMT server: - Rocket status: @@ -265,7 +265,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 14:31:03 GMT + - Thu, 21 Oct 2021 15:45:51 GMT server: - Rocket status: @@ -297,7 +297,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:31:08 GMT + - Thu, 21 Oct 2021 15:45:56 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml index 8176f55aeef..2a0f49e9937 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml @@ -27,7 +27,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:29:59 GMT + - Thu, 21 Oct 2021 15:44:44 GMT server: - Rocket status: @@ -60,7 +60,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:03 GMT + - Thu, 21 Oct 2021 15:44:48 GMT server: - Rocket status: @@ -99,7 +99,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:07 GMT + - Thu, 21 Oct 2021 15:44:53 GMT server: - Rocket status: @@ -135,7 +135,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:12 GMT + - Thu, 21 Oct 2021 15:44:57 GMT server: - Rocket status: @@ -178,7 +178,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:16 GMT + - Thu, 21 Oct 2021 15:45:02 GMT server: - Rocket status: @@ -211,7 +211,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:20 GMT + - Thu, 21 Oct 2021 15:45:06 GMT server: - Rocket status: @@ -244,7 +244,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:24 GMT + - Thu, 21 Oct 2021 15:45:11 GMT server: - Rocket status: @@ -276,7 +276,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 14:30:29 GMT + - Thu, 21 Oct 2021 15:45:15 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml index 01c941ce01e..f8fcf72a942 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml @@ -25,7 +25,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:12 GMT + - Thu, 21 Oct 2021 15:44:57 GMT server: - Rocket status: @@ -57,7 +57,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:16 GMT + - Thu, 21 Oct 2021 15:45:02 GMT server: - Rocket status: @@ -94,7 +94,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:20 GMT + - Thu, 21 Oct 2021 15:45:06 GMT server: - Rocket status: @@ -126,7 +126,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 14:30:24 GMT + - Thu, 21 Oct 2021 15:45:11 GMT server: - Rocket status: @@ -163,7 +163,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:29 GMT + - Thu, 21 Oct 2021 15:45:15 GMT server: - Rocket status: @@ -201,7 +201,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:33 GMT + - Thu, 21 Oct 2021 15:45:20 GMT server: - Rocket status: @@ -233,7 +233,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 14:30:37 GMT + - Thu, 21 Oct 2021 15:45:24 GMT server: - Rocket status: @@ -271,7 +271,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:42 GMT + - Thu, 21 Oct 2021 15:45:29 GMT server: - Rocket status: @@ -303,7 +303,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:46 GMT + - Thu, 21 Oct 2021 15:45:33 GMT server: - Rocket status: @@ -335,7 +335,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:50 GMT + - Thu, 21 Oct 2021 15:45:38 GMT server: - Rocket status: @@ -374,7 +374,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:55 GMT + - Thu, 21 Oct 2021 15:45:42 GMT server: - Rocket status: @@ -413,7 +413,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:30:59 GMT + - Thu, 21 Oct 2021 15:45:47 GMT server: - Rocket status: @@ -445,7 +445,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 14:31:03 GMT + - Thu, 21 Oct 2021 15:45:52 GMT server: - Rocket status: @@ -477,7 +477,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:31:08 GMT + - Thu, 21 Oct 2021 15:45:56 GMT server: - Rocket status: @@ -509,7 +509,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:31:12 GMT + - Thu, 21 Oct 2021 15:46:00 GMT server: - Rocket status: @@ -548,7 +548,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:31:17 GMT + - Thu, 21 Oct 2021 15:46:04 GMT server: - Rocket status: @@ -587,7 +587,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:31:21 GMT + - Thu, 21 Oct 2021 15:46:09 GMT server: - Rocket status: @@ -619,7 +619,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 14:31:25 GMT + - Thu, 21 Oct 2021 15:46:13 GMT server: - Rocket status: @@ -651,7 +651,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:31:30 GMT + - Thu, 21 Oct 2021 15:46:17 GMT server: - Rocket status: @@ -683,7 +683,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:31:34 GMT + - Thu, 21 Oct 2021 15:46:22 GMT server: - Rocket status: @@ -715,7 +715,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 14:31:38 GMT + - Thu, 21 Oct 2021 15:46:26 GMT server: - Rocket status: @@ -747,7 +747,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:31:43 GMT + - Thu, 21 Oct 2021 15:46:30 GMT server: - Rocket status: @@ -779,7 +779,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:31:47 GMT + - Thu, 21 Oct 2021 15:46:35 GMT server: - Rocket status: @@ -818,7 +818,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:31:52 GMT + - Thu, 21 Oct 2021 15:46:39 GMT server: - Rocket status: @@ -857,7 +857,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:31:56 GMT + - Thu, 21 Oct 2021 15:46:43 GMT server: - Rocket status: @@ -889,7 +889,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 14:32:00 GMT + - Thu, 21 Oct 2021 15:46:48 GMT server: - Rocket status: @@ -921,7 +921,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:32:05 GMT + - Thu, 21 Oct 2021 15:46:52 GMT server: - Rocket status: @@ -953,7 +953,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:32:09 GMT + - Thu, 21 Oct 2021 15:46:57 GMT server: - Rocket status: @@ -990,7 +990,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:32:13 GMT + - Thu, 21 Oct 2021 15:47:01 GMT server: - Rocket status: @@ -1022,7 +1022,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 14:32:18 GMT + - Thu, 21 Oct 2021 15:47:05 GMT server: - Rocket status: @@ -1054,7 +1054,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:32:22 GMT + - Thu, 21 Oct 2021 15:47:10 GMT server: - Rocket status: @@ -1086,7 +1086,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:32:26 GMT + - Thu, 21 Oct 2021 15:47:14 GMT server: - Rocket status: @@ -1123,7 +1123,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:32:31 GMT + - Thu, 21 Oct 2021 15:47:18 GMT server: - Rocket status: @@ -1160,7 +1160,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:32:35 GMT + - Thu, 21 Oct 2021 15:47:23 GMT server: - Rocket status: @@ -1192,7 +1192,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 14:32:40 GMT + - Thu, 21 Oct 2021 15:47:27 GMT server: - Rocket status: @@ -1224,7 +1224,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:32:44 GMT + - Thu, 21 Oct 2021 15:47:32 GMT server: - Rocket status: @@ -1256,7 +1256,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:32:48 GMT + - Thu, 21 Oct 2021 15:47:36 GMT server: - Rocket status: @@ -1288,7 +1288,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:32:53 GMT + - Thu, 21 Oct 2021 15:47:40 GMT server: - Rocket status: @@ -1320,7 +1320,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 14:32:57 GMT + - Thu, 21 Oct 2021 15:47:45 GMT server: - Rocket status: From 7c4306ca32975b28709a26c62458d626e46864b2 Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Tue, 26 Oct 2021 13:23:39 -0500 Subject: [PATCH 30/34] added unit tests for placement-policy and vm --- src/vmware/HISTORY.md | 7 + src/vmware/azext_vmware/_help.py | 108 +++++++ src/vmware/azext_vmware/_params.py | 14 + src/vmware/azext_vmware/commands.py | 19 ++ src/vmware/azext_vmware/custom.py | 51 +++- .../tests/latest/recordings/test_vmware.yaml | 124 +++++--- .../latest/recordings/test_vmware_addon.yaml | 48 +-- .../recordings/test_vmware_cloud_link.yaml | 16 +- .../recordings/test_vmware_datastores.yaml | 16 +- .../test_vmware_global_reach_connection.yaml | 48 +-- .../latest/recordings/test_vmware_hcx.yaml | 36 +-- .../test_vmware_placement_policy.yaml | 282 ++++++++++++++++++ .../latest/recordings/test_vmware_script.yaml | 32 +- .../test_vmware_virtual_machines.yaml | 100 +++++++ .../test_vmware_workload_network.yaml | 200 ++++++++----- .../test_placement_policies_scenario.py | 51 ++++ .../latest/test_virtual_machines_scenario.py | 32 ++ 17 files changed, 966 insertions(+), 218 deletions(-) create mode 100644 src/vmware/azext_vmware/tests/latest/recordings/test_vmware_placement_policy.yaml create mode 100644 src/vmware/azext_vmware/tests/latest/recordings/test_vmware_virtual_machines.yaml create mode 100644 src/vmware/azext_vmware/tests/latest/test_placement_policies_scenario.py create mode 100644 src/vmware/azext_vmware/tests/latest/test_virtual_machines_scenario.py diff --git a/src/vmware/HISTORY.md b/src/vmware/HISTORY.md index 0fb037b59a0..3ec592a8f9c 100644 --- a/src/vmware/HISTORY.md +++ b/src/vmware/HISTORY.md @@ -1,5 +1,12 @@ # Release History +## 4.0.0 (2021-12) + +- Add `az vmware placement-policy` command group +- Add `az vmware vm` command group +- Updated `az vmware private-cloud create` with new Identity parameter +- Updated `az vmware private-cloud update` with new Identity parameter + ## 3.2.0 (2021-10) - Add `az vmware workload-network dhcp` command group diff --git a/src/vmware/azext_vmware/_help.py b/src/vmware/azext_vmware/_help.py index c47582fa75b..a51da2fa79e 100644 --- a/src/vmware/azext_vmware/_help.py +++ b/src/vmware/azext_vmware/_help.py @@ -881,3 +881,111 @@ - name: Get a Gateway by ID in a workload network. text: az vmware workload-network gateway show --resource-group group1 --private-cloud cloud1 --gateway gateway1 """ + +helps['vmware placement-policy'] = """ + type: group + short-summary: Commands to manage placement policies. +""" + +helps['vmware placement-policy list'] = """ + type: command + short-summary: List placement policies in a private cloud cluster. + examples: + - name: List placement policies. + text: az vmware placement-policy list --resource-group group1 --private-cloud cloud1 --cluster-name cluster1 +""" + +helps['vmware placement-policy show'] = """ + type: command + short-summary: Get a placement policy by name in a private cloud cluster. + examples: + - name: Get a placement policy by name. + text: az vmware placement-policy show --resource-group group1 --private-cloud cloud1 --cluster-name cluster1 --placement-policy-name policy1 +""" + +helps['vmware placement-policy vm-host'] = """ + type: group + short-summary: Commands to manage VM Host placement policies. +""" + +helps['vmware placement-policy vm-host create'] = """ + type: command + short-summary: Create a VM Host placement policy in a private cloud cluster. + examples: + - name: Create a VM Host placement policy. + text: az vmware placement-policy vm-host create --resource-group group1 --private-cloud cloud1 --cluster-name cluster1 --placement-policy-name policy1 --state Enabled --display-name policy1 --vm-members /subscriptions/subId/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-128 /subscriptions/subId/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-256 --host-members fakehost22.nyc1.kubernetes.center fakehost23.nyc1.kubernetes.center --affinity-type AntiAffinity +""" + +helps['vmware placement-policy vm-host update'] = """ + type: command + short-summary: Update a VM Host placement policy in a private cloud cluster. + examples: + - name: Update a VM Host placement policy. + text: az vmware placement-policy vm-host update --resource-group group1 --private-cloud cloud1 --cluster-name cluster1 --placement-policy-name policy1 --state Enabled --vm-members /subscriptions/subId/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-128 /subscriptions/subId/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-256 --host-members fakehost22.nyc1.kubernetes.center fakehost23.nyc1.kubernetes.center +""" + +helps['vmware placement-policy vm-host delete'] = """ + type: command + short-summary: Delete a VM Host placement policy in a private cloud cluster. + examples: + - name: Delete a VM Host placement policy. + text: az vmware placement-policy vm-host delete --resource-group group1 --private-cloud cloud1 --cluster-name cluster1 --placement-policy-name policy1 +""" + +helps['vmware placement-policy vm'] = """ + type: group + short-summary: Commands to manage VM placement policies. +""" + +helps['vmware placement-policy vm create'] = """ + type: command + short-summary: Create a VM placement policy in a private cloud cluster. + examples: + - name: Create a VM placement policy. + text: az vmware placement-policy vm create --resource-group group1 --private-cloud cloud1 --cluster-name cluster1 --placement-policy-name policy1 --state Enabled --display-name policy1 --vm-members /subscriptions/subId/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-128 /subscriptions/subId/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-256 --affinity-type AntiAffinity +""" + +helps['vmware placement-policy vm update'] = """ + type: command + short-summary: Update a VM placement policy in a private cloud cluster. + examples: + - name: Update a VM placement policy. + text: az vmware placement-policy vm update --resource-group group1 --private-cloud cloud1 --cluster-name cluster1 --placement-policy-name policy1 --state Enabled --vm-members /subscriptions/subId/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-128 /subscriptions/subId/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-256 +""" + +helps['vmware placement-policy vm delete'] = """ + type: command + short-summary: Delete a VM placement policy in a private cloud cluster. + examples: + - name: Delete a VM placement policy. + text: az vmware placement-policy vm delete --resource-group group1 --private-cloud cloud1 --cluster-name cluster1 --placement-policy-name policy1 +""" + +helps['vmware vm'] = """ + type: group + short-summary: Commands to manage Virtual Machines. +""" + +helps['vmware vm show'] = """ + type: command + short-summary: Get a virtual machine by ID in a private cloud cluster. + examples: + - name: Get a virtual machine by ID. + text: az vmware vm show --resource-group group1 --private-cloud cloud1 --cluster-name cluster1 --virtual-machine vm-209 +""" + +helps['vmware vm list'] = """ + type: command + short-summary: List of virtual machines in a private cloud cluster. + examples: + - name: List of virtual machines. + text: az vmware vm list --resource-group group1 --private-cloud cloud1 --cluster-name cluster1 +""" + +helps['vmware vm restrict-movement'] = """ + type: command + short-summary: Enable or disable DRS-driven VM movement restriction. + examples: + - name: Enable or disable DRS-driven VM movement restriction. + text: az vmware vm restrict-movement --resource-group group1 --private-cloud cloud1 --cluster-name cluster1 --virtual-machine vm-209 --restrict-movement Enabled +""" diff --git a/src/vmware/azext_vmware/_params.py b/src/vmware/azext_vmware/_params.py index eee266815c7..9ace0efea44 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -211,3 +211,17 @@ def load_arguments(self, _): with self.argument_context('vmware workload-network gateway') as c: c.argument('gateway', help="NSX Gateway identifier. Generally the same as the Gateway's display name.") + + with self.argument_context('vmware placement-policy') as c: + c.argument('cluster_name', help="Name of the cluster in the private cloud.") + c.argument('placement_policy_name', help="Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy.") + c.argument('state', help="Whether the placement policy is enabled or disabled. Possible values include: 'Enabled', 'Disabled'.") + c.argument('display_name', help="Display name of the placement policy.") + c.argument('vm_members', nargs='+', help="Virtual machine members list.") + c.argument('affinity_type', help="Placement policy affinity type. Possible values include: 'Affinity', 'AntiAffinity'.") + c.argument('host_members', nargs='+', help='Host members list.') + + with self.argument_context('vmware vm') as c: + c.argument('cluster_name', help='Name of the cluster in the private cloud.') + c.argument('virtual_machine', help='Virtual Machine identifier.') + c.argument('restrict_movement', help='Whether VM DRS-driven movement is restricted (enabled) or not (disabled).') diff --git a/src/vmware/azext_vmware/commands.py b/src/vmware/azext_vmware/commands.py index 6dd9f07bf9e..d0493289bb1 100644 --- a/src/vmware/azext_vmware/commands.py +++ b/src/vmware/azext_vmware/commands.py @@ -170,3 +170,22 @@ def load_command_table(self, _): with self.command_group('vmware workload-network gateway', vmware_sdk, client_factory=cf_vmware) as g: g.custom_command('list', 'workload_network_gateway_list') g.custom_show_command('show', 'workload_network_gateway_get') + + with self.command_group('vmware placement-policy', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('list', 'placement_policy_list') + g.custom_show_command('show', 'placement_policy_get') + + with self.command_group('vmware placement-policy vm', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('create', 'placement_policy_vm_create') + g.custom_command('update', 'placement_policy_update') + g.custom_command('delete', 'placement_policy_delete') + + with self.command_group('vmware placement-policy vm-host', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('create', 'placement_policy_vm_host_create') + g.custom_command('update', 'placement_policy_update') + g.custom_command('delete', 'placement_policy_delete') + + with self.command_group('vmware vm', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('list', 'virtual_machine_list') + g.custom_show_command('show', 'virtual_machine_get') + g.custom_command('restrict-movement', 'virtual_machine_restrict') diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index ad5a9ab7850..719573d60bd 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -117,8 +117,8 @@ def cluster_create(client: AVSClient, resource_group_name, name, sku, private_cl return client.clusters.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=name, cluster=Cluster(sku=Sku(name=sku), cluster_size=size, hosts=hosts)) -def cluster_update(client: AVSClient, resource_group_name, name, private_cloud, size): - return client.clusters.begin_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=name, cluster_size=size) +def cluster_update(client: AVSClient, resource_group_name, name, private_cloud, size=None, hosts=None): + return client.clusters.begin_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=name, cluster_size=size, hosts=hosts) def cluster_list(client: AVSClient, resource_group_name, private_cloud): @@ -532,3 +532,50 @@ def workload_network_gateway_list(client: AVSClient, resource_group_name, privat def workload_network_gateway_get(client: AVSClient, resource_group_name, private_cloud, gateway): return client.workload_networks.get_gateway(resource_group_name=resource_group_name, private_cloud_name=private_cloud, gateway_id=gateway) + + +def placement_policy_list(client: AVSClient, resource_group_name, private_cloud, cluster_name): + return client.placement_policies.list(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster_name) + + +def placement_policy_get(client: AVSClient, resource_group_name, private_cloud, cluster_name, placement_policy_name): + return client.placement_policies.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster_name, placement_policy_name=placement_policy_name) + + +def placement_policy_vm_create(client: AVSClient, resource_group_name, private_cloud, cluster_name, placement_policy_name, state=None, display_name=None, vm_members=None, affinity_type=None): + from azext_vmware.vendored_sdks.avs_client.models import VmPlacementPolicyProperties + if vm_members is not None and affinity_type is not None: + vmProperties = VmPlacementPolicyProperties(type="VmVm", state=state, display_name=display_name, vm_members=vm_members, affinity_type=affinity_type) + return client.placement_policies.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster_name, placement_policy_name=placement_policy_name, properties=vmProperties) + return client.placement_policies.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster_name, placement_policy_name=placement_policy_name) + + +def placement_policy_vm_host_create(client: AVSClient, resource_group_name, private_cloud, cluster_name, placement_policy_name, state=None, display_name=None, vm_members=None, host_members=None, affinity_type=None): + from azext_vmware.vendored_sdks.avs_client.models import VmHostPlacementPolicyProperties + if vm_members is not None and host_members is not None and affinity_type is not None: + vmHostProperties = VmHostPlacementPolicyProperties(type="VmHost", state=state, display_name=display_name, vm_members=vm_members, host_members=host_members, affinity_type=affinity_type) + return client.placement_policies.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster_name, placement_policy_name=placement_policy_name, properties=vmHostProperties) + return client.placement_policies.begin_create_or_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster_name, placement_policy_name=placement_policy_name) + + +def placement_policy_update(client: AVSClient, resource_group_name, private_cloud, cluster_name, placement_policy_name, state=None, vm_members=None, host_members=None): + from azext_vmware.vendored_sdks.avs_client.models import PlacementPolicyUpdate + props = PlacementPolicyUpdate(state=state, vm_members=vm_members, host_members=host_members) + return client.placement_policies.begin_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster_name, placement_policy_name=placement_policy_name, placement_policy_update=props) + + +def placement_policy_delete(client: AVSClient, resource_group_name, private_cloud, cluster_name, placement_policy_name): + return client.placement_policies.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster_name, placement_policy_name=placement_policy_name) + + +def virtual_machine_get(client: AVSClient, resource_group_name, private_cloud, cluster_name, virtual_machine): + return client.virtual_machines.get(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster_name, virtual_machine_id=virtual_machine) + + +def virtual_machine_list(client: AVSClient, resource_group_name, private_cloud, cluster_name): + return client.virtual_machines.list(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster_name) + + +def virtual_machine_restrict(client: AVSClient, resource_group_name, private_cloud, cluster_name, virtual_machine, restrict_movement): + from azext_vmware.vendored_sdks.avs_client.models import VirtualMachineRestrictMovementState + return client.virtual_machines.begin_restrict_movement(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster_name, virtual_machine_id=virtual_machine, restrict_movement=VirtualMachineRestrictMovementState(restrict_movement)) diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml index 8d7f26e7c0f..0df6dca439c 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml @@ -15,7 +15,7 @@ interactions: ParameterSetName: - --location User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: POST uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AVS/locations/centralus/checkQuotaAvailability?api-version=2021-12-01 response: @@ -27,7 +27,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:44 GMT + - Tue, 26 Oct 2021 17:49:01 GMT server: - Rocket status: @@ -49,7 +49,7 @@ interactions: ParameterSetName: - --location User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: POST uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AVS/locations/centralus/checkTrialAvailability?api-version=2021-12-01 response: @@ -61,7 +61,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:48 GMT + - Tue, 26 Oct 2021 17:49:06 GMT server: - Rocket status: @@ -81,7 +81,7 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds?api-version=2021-12-01 response: @@ -93,7 +93,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:53 GMT + - Tue, 26 Oct 2021 17:49:10 GMT server: - Rocket status: @@ -120,7 +120,7 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-12-01 response: @@ -132,7 +132,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:57 GMT + - Tue, 26 Oct 2021 17:49:14 GMT server: - Rocket status: @@ -152,7 +152,7 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds?api-version=2021-12-01 response: @@ -164,7 +164,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:02 GMT + - Tue, 26 Oct 2021 17:49:19 GMT server: - Rocket status: @@ -186,7 +186,7 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: POST uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateVcenterPassword?api-version=2021-12-01 response: @@ -196,7 +196,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 15:45:06 GMT + - Tue, 26 Oct 2021 17:49:23 GMT server: - Rocket status: @@ -218,7 +218,7 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: POST uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/rotateNsxtPassword?api-version=2021-12-01 response: @@ -228,12 +228,56 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 15:45:11 GMT + - Tue, 26 Oct 2021 17:49:27 GMT server: - Rocket status: code: 202 message: Accepted +- request: + body: grant_type=refresh_token&client_id=04b07795-8ddb-461a-bbee-02f9e1bf7b46&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&refresh_token=0.ARoAv4j5cvGGr0GRqy180BHbR5V3sATbjRpGu-4C-eG_e0YaAAg.AgABAAAAAAD--DLA3VO7QrddgJg7WevrAgDs_wQA9P8617IDsEb4SBu7dDmf6E0p8irU6FHgSTeDQi-AeWHmTC6eatsRgxfVuJG87-2CcNacGHBgvhxOq9lxcmxc5iDT1QtT5OaPxUtdVsC3174QMocuDBVYKsJIJdRHf2pg7VBDLZ3ndvE3u7URVqIuUP5pMkoksmMSDzs3OUuFBNbZynTKqeKPjMmoP0jlC7naOeBkCHB0Bs71CzYjJ71-ZQfdjBwkTkkQIfqsVjaJ6u8cq3j1oiDG_sVWhWHu_BUuZHATxiBCcl2QDicG1Js8oNKfaXQQ2gprfE_4HyLrOA6YL75V_ctRxy9JvsZd-z2GrPEgY4dCLHbBdBvItPFBCv5ILOybWKcICqqobvkj0TsK4DEWrd-EMXyeZGILwvAoT4m6348OeQxfC8TwUZ3nGMZcD8g23Wc1G5iqpugShTunw_Q-MzN9kGuWABS0PP36IF9NTz4sf542ffCYPKg_aLkDcDhfQbVe_tGfxmouvgIQv6_JkdypGrvo4ZHXqffspZ6TtHoC8rqJX0enA-0LoLmkpgrB-MoxqrWM2Jj4WoDOE6K7x9sIlIz6D04_ApvzJXHF1L3GxwVEq_N7W-sZbB5Pl0ERORM5Si6msySK-vC8ohjaDF2n5RZQLmvpbZ6YLraWz2moeM48JvcKKIlnai5oGpzumOM960B5FfzLi4Z-Eav6l_gqsq-DoMbaIH14xdI-TdkaX83O7gD2KWDBp_M0_o5MrQe2EmA0PsFN3FzyETtuXe1JKSNZB2iosupMnKGVwJ0sgGzgynNBYEbLChEeyvonPxnwkAQpi7JLCZZ2hwFDhMqyadcD9LhKYSbyg2KeVru_MIdN42Em5vdgTbn0PppUH9mMqlKFf4Djev-p6ZMMSxYZ6XVSxdSzC_crvdR1ab3Sjs-2eUSYXDXvH2TgypBBPlIp_ctsavgDfsTMJqAWWtrp0E2EDbzuhZ7ecGiHoXJ6GVORvmyaUJbwyr-Fl_q13YnHsHihZaaag0PhucpNu6Jurx-WkMoUg2KhorCEmSr2RAtNPa3rI_QKIZ-WQTtZvsJAbKlHHzsJ1QJN8naJ0ErbWSKvS05mpKvmXPxtDt4Yus5-_WuVyFvnCbLmUicVrstR9Ub51IiLunoh-wX48ITFVD_7yb36GnqhTtkEwHtAwogPrHYVEyvD3bd88v5bylr9JwuG4r5g9tZngM_4dkcBxGG0-pSOMqz_rD0NCABp-OhonkroNZHua5l0IjNymharDHEqg-Rq + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1490' + User-Agent: + - python-requests/2.25.1 + content-type: + - application/x-www-form-urlencoded + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.7 + method: POST + uri: https://localhost:8888/adfs/oauth2/token + response: + body: + string: '{"token_type":"Bearer","scope":"user_impersonation","expires_in":"3599","ext_expires_in":"3599","expires_on":"1635274171","not_before":"1635266973","resource":"https://management.core.windows.net/","access_token":"abc","foci":"1"}' + headers: + content-length: + - '230' + content-type: + - application/json + date: + - Tue, 26 Oct 2021 17:49:31 GMT + server: + - Rocket + status: + code: 200 + message: OK - request: body: '{"identity": {}, "properties": {"managementCluster": {"clusterSize": 4}, "internet": "Disabled"}}' @@ -253,7 +297,7 @@ interactions: ParameterSetName: - -g -n --cluster-size User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PATCH uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-12-01 response: @@ -265,7 +309,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:15 GMT + - Tue, 26 Oct 2021 17:49:36 GMT server: - Rocket status: @@ -289,7 +333,7 @@ interactions: ParameterSetName: - -g -n --internet User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PATCH uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-12-01 response: @@ -301,7 +345,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:20 GMT + - Tue, 26 Oct 2021 17:49:40 GMT server: - Rocket status: @@ -325,19 +369,19 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/myauthname?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/authorization1","name":"authorization1","type":"Microsoft.AVS/privateClouds/authorizations","properties":{"provisioningState":"Succeeded","expressRouteAuthorizationId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt34-cust-mockp02-spearj2dev/providers/Microsoft.Network/expressroutecircuits/tnt34-cust-mockp02-spearj2dev-er/authorizations/myauth","expressRouteAuthorizationKey":"37b0db3b-3b17-4c7b-bf76-bf13b01bcadc","expressRouteID":"/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"}}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/authorization1","name":"authorization1","type":"Microsoft.AVS/privateClouds/authorizations","properties":{"provisioningState":"Succeeded","expressRouteAuthorizationId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt34-cust-mockp02-spearj2dev/providers/Microsoft.Network/expressroutecircuits/tnt34-cust-mockp02-spearj2dev-er/authorizations/myauth","expressRouteAuthorizationKey":"37b0db3b-3b17-4c7b-bf76-bf13b01bcadc"}}' headers: content-length: - - '791' + - '564' content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:24 GMT + - Tue, 26 Oct 2021 17:49:44 GMT server: - Rocket status: @@ -359,7 +403,7 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: DELETE uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/authorizations/myauthname?api-version=2021-12-01 response: @@ -369,7 +413,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 15:45:29 GMT + - Tue, 26 Oct 2021 17:49:48 GMT server: - Rocket status: @@ -390,7 +434,7 @@ interactions: - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server --username --password User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-12-01 response: @@ -402,7 +446,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:33 GMT + - Tue, 26 Oct 2021 17:49:53 GMT server: - Rocket status: @@ -440,7 +484,7 @@ interactions: - -g -c -n --alias --domain --base-user-dn --base-group-dn --primary-server --username --password User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-12-01 response: @@ -452,7 +496,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:33 GMT + - Tue, 26 Oct 2021 17:49:53 GMT server: - Rocket status: @@ -472,7 +516,7 @@ interactions: ParameterSetName: - -g -c -n --alias --domain User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-12-01 response: @@ -484,7 +528,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:38 GMT + - Tue, 26 Oct 2021 17:49:57 GMT server: - Rocket status: @@ -504,7 +548,7 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters?api-version=2021-12-01 response: @@ -516,7 +560,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:43 GMT + - Tue, 26 Oct 2021 17:50:01 GMT server: - Rocket status: @@ -541,7 +585,7 @@ interactions: ParameterSetName: - -g -c -n --sku --size --hosts User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-12-01 response: @@ -553,7 +597,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:47 GMT + - Tue, 26 Oct 2021 17:50:06 GMT server: - Rocket status: @@ -573,7 +617,7 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters?api-version=2021-12-01 response: @@ -585,7 +629,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:51 GMT + - Tue, 26 Oct 2021 17:50:10 GMT server: - Rocket status: @@ -609,7 +653,7 @@ interactions: ParameterSetName: - -g -c -n --size User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PATCH uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-12-01 response: @@ -621,7 +665,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:56 GMT + - Tue, 26 Oct 2021 17:50:14 GMT server: - Rocket status: @@ -643,7 +687,7 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: DELETE uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/pycluster1?api-version=2021-12-01 response: @@ -653,7 +697,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 15:46:00 GMT + - Tue, 26 Oct 2021 17:50:18 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml index 77c8d9110ab..0abbde70997 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml @@ -19,7 +19,7 @@ interactions: ParameterSetName: - -g -n --location --sku --cluster-size --network-block --accept-eula User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1?api-version=2021-12-01 response: @@ -31,7 +31,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:17 GMT + - Tue, 26 Oct 2021 17:47:53 GMT server: - Rocket status: @@ -51,7 +51,7 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2021-12-01 response: @@ -63,7 +63,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:21 GMT + - Tue, 26 Oct 2021 17:47:58 GMT server: - Rocket status: @@ -87,7 +87,7 @@ interactions: ParameterSetName: - -g -c --vrs-count User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr?api-version=2021-12-01 response: @@ -99,7 +99,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:26 GMT + - Tue, 26 Oct 2021 17:48:02 GMT server: - Rocket status: @@ -119,7 +119,7 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2021-12-01 response: @@ -131,7 +131,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:30 GMT + - Tue, 26 Oct 2021 17:48:06 GMT server: - Rocket status: @@ -151,7 +151,7 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr?api-version=2021-12-01 response: @@ -163,7 +163,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:35 GMT + - Tue, 26 Oct 2021 17:48:10 GMT server: - Rocket status: @@ -185,7 +185,7 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: DELETE uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/vr?api-version=2021-12-01 response: @@ -195,7 +195,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 15:44:39 GMT + - Tue, 26 Oct 2021 17:48:15 GMT server: - Rocket status: @@ -215,7 +215,7 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2021-12-01 response: @@ -227,7 +227,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:44 GMT + - Tue, 26 Oct 2021 17:48:19 GMT server: - Rocket status: @@ -251,7 +251,7 @@ interactions: ParameterSetName: - -g -c --license-key User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm?api-version=2021-12-01 response: @@ -263,7 +263,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:48 GMT + - Tue, 26 Oct 2021 17:48:23 GMT server: - Rocket status: @@ -283,7 +283,7 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2021-12-01 response: @@ -295,7 +295,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:53 GMT + - Tue, 26 Oct 2021 17:48:27 GMT server: - Rocket status: @@ -315,7 +315,7 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm?api-version=2021-12-01 response: @@ -327,7 +327,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:57 GMT + - Tue, 26 Oct 2021 17:48:32 GMT server: - Rocket status: @@ -349,7 +349,7 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: DELETE uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons/srm?api-version=2021-12-01 response: @@ -359,7 +359,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 15:45:02 GMT + - Tue, 26 Oct 2021 17:48:36 GMT server: - Rocket status: @@ -379,7 +379,7 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_addon000001/providers/Microsoft.AVS/privateClouds/mycloud1/addons?api-version=2021-12-01 response: @@ -391,7 +391,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:06 GMT + - Tue, 26 Oct 2021 17:48:40 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml index bff23b2a627..8c05234645a 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml @@ -17,7 +17,7 @@ interactions: ParameterSetName: - -g -c -n --linked-cloud User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/cloudLinks/cloudLink1?api-version=2021-12-01 response: @@ -29,7 +29,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:17 GMT + - Tue, 26 Oct 2021 17:47:53 GMT server: - Rocket status: @@ -49,7 +49,7 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/cloudLinks?api-version=2021-12-01 response: @@ -61,7 +61,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:21 GMT + - Tue, 26 Oct 2021 17:47:58 GMT server: - Rocket status: @@ -81,7 +81,7 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/cloudLinks/cloudLink1?api-version=2021-12-01 response: @@ -93,7 +93,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:26 GMT + - Tue, 26 Oct 2021 17:48:02 GMT server: - Rocket status: @@ -115,7 +115,7 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: DELETE uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/cloudLinks/cloudLink1?api-version=2021-12-01 response: @@ -125,7 +125,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 15:44:30 GMT + - Tue, 26 Oct 2021 17:48:06 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml index a6d059e58ba..5fba1696e19 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml @@ -18,7 +18,7 @@ interactions: ParameterSetName: - --name --resource-group --private-cloud --cluster --target-id --lun-name User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1?api-version=2021-12-01 response: @@ -30,7 +30,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:17 GMT + - Tue, 26 Oct 2021 17:47:53 GMT server: - Rocket status: @@ -50,7 +50,7 @@ interactions: ParameterSetName: - --name --resource-group --private-cloud --cluster User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1?api-version=2021-12-01 response: @@ -62,7 +62,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:21 GMT + - Tue, 26 Oct 2021 17:47:58 GMT server: - Rocket status: @@ -82,7 +82,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud --cluster User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores?api-version=2021-12-01 response: @@ -94,7 +94,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:26 GMT + - Tue, 26 Oct 2021 17:48:02 GMT server: - Rocket status: @@ -116,7 +116,7 @@ interactions: ParameterSetName: - --name --resource-group --private-cloud --cluster User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: DELETE uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rasivagu-sddc-rg/providers/Microsoft.AVS/privateClouds/rasivagu-mock-sddc/clusters/Cluster-1/datastores/iSCSIDatastore1?api-version=2021-12-01 response: @@ -126,7 +126,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 15:44:30 GMT + - Tue, 26 Oct 2021 17:48:06 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml index 7523b0f4d3e..ca5c390b3ef 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml @@ -21,7 +21,7 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-12-01 response: @@ -33,7 +33,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:16 GMT + - Tue, 26 Oct 2021 17:47:53 GMT server: - Rocket status: @@ -53,19 +53,19 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections?api-version=2021-12-01 response: body: - string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1","name":"connection1","type":"Microsoft.AVS/privateClouds/globalReachConnections","properties":{"provisioningState":"Succeeded","addressPrefix":"10.2.3.16/29","authorizationKey":"01010101-0101-0101-0101-010101010101","circuitConnectionStatus":"Connected","peerExpressRouteCircuit":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer","expressRouteID":"/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"}}]}' + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1","name":"connection1","type":"Microsoft.AVS/privateClouds/globalReachConnections","properties":{"provisioningState":"Succeeded","addressPrefix":"10.2.3.16/29","authorizationKey":"01010101-0101-0101-0101-010101010101","circuitConnectionStatus":"Connected","peerExpressRouteCircuit":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer"}}]}' headers: content-length: - - '796' + - '569' content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:21 GMT + - Tue, 26 Oct 2021 17:47:58 GMT server: - Rocket status: @@ -91,19 +91,19 @@ interactions: ParameterSetName: - -g -c -n --peer-express-route-circuit --authorization-key --express-route-id User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1","name":"connection1","type":"Microsoft.AVS/privateClouds/globalReachConnections","properties":{"provisioningState":"Succeeded","addressPrefix":"10.2.3.16/29","authorizationKey":"01010101-0101-0101-0101-010101010101","circuitConnectionStatus":"Connected","peerExpressRouteCircuit":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer","expressRouteID":"/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"}}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1","name":"connection1","type":"Microsoft.AVS/privateClouds/globalReachConnections","properties":{"provisioningState":"Succeeded","addressPrefix":"10.2.3.16/29","authorizationKey":"01010101-0101-0101-0101-010101010101","circuitConnectionStatus":"Connected","peerExpressRouteCircuit":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer"}}' headers: content-length: - - '784' + - '557' content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:26 GMT + - Tue, 26 Oct 2021 17:48:02 GMT server: - Rocket status: @@ -123,19 +123,19 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections?api-version=2021-12-01 response: body: - string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1","name":"connection1","type":"Microsoft.AVS/privateClouds/globalReachConnections","properties":{"provisioningState":"Succeeded","addressPrefix":"10.2.3.16/29","authorizationKey":"01010101-0101-0101-0101-010101010101","circuitConnectionStatus":"Connected","peerExpressRouteCircuit":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer","expressRouteID":"/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"}}]}' + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1","name":"connection1","type":"Microsoft.AVS/privateClouds/globalReachConnections","properties":{"provisioningState":"Succeeded","addressPrefix":"10.2.3.16/29","authorizationKey":"01010101-0101-0101-0101-010101010101","circuitConnectionStatus":"Connected","peerExpressRouteCircuit":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer"}}]}' headers: content-length: - - '796' + - '569' content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:30 GMT + - Tue, 26 Oct 2021 17:48:06 GMT server: - Rocket status: @@ -155,19 +155,19 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1?api-version=2021-12-01 response: body: - string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1","name":"connection1","type":"Microsoft.AVS/privateClouds/globalReachConnections","properties":{"provisioningState":"Succeeded","addressPrefix":"10.2.3.16/29","authorizationKey":"01010101-0101-0101-0101-010101010101","circuitConnectionStatus":"Connected","peerExpressRouteCircuit":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer","expressRouteID":"/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"}}' + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1","name":"connection1","type":"Microsoft.AVS/privateClouds/globalReachConnections","properties":{"provisioningState":"Succeeded","addressPrefix":"10.2.3.16/29","authorizationKey":"01010101-0101-0101-0101-010101010101","circuitConnectionStatus":"Connected","peerExpressRouteCircuit":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer"}}' headers: content-length: - - '784' + - '557' content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:35 GMT + - Tue, 26 Oct 2021 17:48:10 GMT server: - Rocket status: @@ -189,7 +189,7 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: DELETE uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1?api-version=2021-12-01 response: @@ -199,7 +199,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 15:44:39 GMT + - Tue, 26 Oct 2021 17:48:15 GMT server: - Rocket status: @@ -219,19 +219,19 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections?api-version=2021-12-01 response: body: - string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1","name":"connection1","type":"Microsoft.AVS/privateClouds/globalReachConnections","properties":{"provisioningState":"Succeeded","addressPrefix":"10.2.3.16/29","authorizationKey":"01010101-0101-0101-0101-010101010101","circuitConnectionStatus":"Connected","peerExpressRouteCircuit":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer","expressRouteID":"/subscriptions/{subscription-id}/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect"}}]}' + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/globalReachConnections/connection1","name":"connection1","type":"Microsoft.AVS/privateClouds/globalReachConnections","properties":{"provisioningState":"Succeeded","addressPrefix":"10.2.3.16/29","authorizationKey":"01010101-0101-0101-0101-010101010101","circuitConnectionStatus":"Connected","peerExpressRouteCircuit":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup/providers/Microsoft.Network/expressRouteCircuits/mypeer"}}]}' headers: content-length: - - '796' + - '569' content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:44 GMT + - Tue, 26 Oct 2021 17:48:19 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml index 5de1fcc76ae..27524ef6045 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml @@ -21,7 +21,7 @@ interactions: - -g -n --location --sku --cluster-size --network-block --nsxt-password --vcenter-password --accept-eula User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1?api-version=2021-12-01 response: @@ -33,7 +33,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:20 GMT + - Tue, 26 Oct 2021 17:48:53 GMT server: - Rocket status: @@ -57,7 +57,7 @@ interactions: ParameterSetName: - -g -c --offer User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons/hcx?api-version=2021-12-01 response: @@ -69,7 +69,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:24 GMT + - Tue, 26 Oct 2021 17:48:57 GMT server: - Rocket status: @@ -89,7 +89,7 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/addons?api-version=2021-12-01 response: @@ -101,7 +101,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:29 GMT + - Tue, 26 Oct 2021 17:49:01 GMT server: - Rocket status: @@ -121,7 +121,7 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites?api-version=2021-12-01 response: @@ -133,7 +133,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:33 GMT + - Tue, 26 Oct 2021 17:49:06 GMT server: - Rocket status: @@ -157,7 +157,7 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx?api-version=2021-12-01 response: @@ -169,7 +169,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:38 GMT + - Tue, 26 Oct 2021 17:49:10 GMT server: - Rocket status: @@ -189,7 +189,7 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites?api-version=2021-12-01 response: @@ -201,7 +201,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:42 GMT + - Tue, 26 Oct 2021 17:49:14 GMT server: - Rocket status: @@ -221,7 +221,7 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx?api-version=2021-12-01 response: @@ -233,7 +233,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:47 GMT + - Tue, 26 Oct 2021 17:49:19 GMT server: - Rocket status: @@ -255,7 +255,7 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: DELETE uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites/myhcx?api-version=2021-12-01 response: @@ -265,7 +265,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 15:45:51 GMT + - Tue, 26 Oct 2021 17:49:23 GMT server: - Rocket status: @@ -285,7 +285,7 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_hcx000001/providers/Microsoft.AVS/privateClouds/cloud1/hcxEnterpriseSites?api-version=2021-12-01 response: @@ -297,7 +297,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:56 GMT + - Tue, 26 Oct 2021 17:49:27 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_placement_policy.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_placement_policy.yaml new file mode 100644 index 00000000000..1416a6709d5 --- /dev/null +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_placement_policy.yaml @@ -0,0 +1,282 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware placement-policy list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud --cluster-name + User-Agent: + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies?api-version=2021-12-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1","name":"policy1","type":"Microsoft.AVS/privateClouds/clusters/placementPolicies","properties":{"type":"VmHost","state":"Enabled","displayName":"policy1","provisioningState":"Succeeded"}},{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy2","name":"policy2","type":"Microsoft.AVS/privateClouds/clusters/placementPolicies","properties":{"type":"VmVm","state":"Enabled","displayName":"policy2","provisioningState":"Succeeded"}}]}' + headers: + content-length: + - '687' + content-type: + - application/json + date: + - Tue, 26 Oct 2021 17:48:19 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware placement-policy show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud --cluster-name --placement-policy-name + User-Agent: + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2021-12-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1","name":"policy1","type":"Microsoft.AVS/privateClouds/clusters/placementPolicies","properties":{"type":"VmHost","state":"Enabled","displayName":"policy1","provisioningState":"Succeeded"}}' + headers: + content-length: + - '338' + content-type: + - application/json + date: + - Tue, 26 Oct 2021 17:48:23 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"type": "VmHost", "state": "Enabled", "displayName": "policy1", + "vmMembers": ["testVmMembers"], "hostMembers": ["testHostMembers"], "affinityType": + "AntiAffinity"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware placement-policy vm-host create + Connection: + - keep-alive + Content-Length: + - '180' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --cluster-name --placement-policy-name --state + --display-name --vm-members --host-members --affinity-type + User-Agent: + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2021-12-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1","name":"policy1","type":"Microsoft.AVS/privateClouds/clusters/placementPolicies","properties":{"type":"VmHost","state":"Enabled","displayName":"policy1","provisioningState":"Succeeded"}}' + headers: + content-length: + - '338' + content-type: + - application/json + date: + - Tue, 26 Oct 2021 17:48:27 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"state": "Enabled", "vmMembers": ["testVmMembers"], "hostMembers": + ["testHostMembers"]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware placement-policy vm-host update + Connection: + - keep-alive + Content-Length: + - '104' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --cluster-name --placement-policy-name --state + --vm-members --host-members + User-Agent: + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: PATCH + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2021-12-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1","name":"policy1","type":"Microsoft.AVS/privateClouds/clusters/placementPolicies","properties":{"type":"VmHost","state":"Disabled","displayName":"policy1","provisioningState":"Succeeded"}}' + headers: + content-length: + - '339' + content-type: + - application/json + date: + - Tue, 26 Oct 2021 17:48:32 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware placement-policy vm-host delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --private-cloud --cluster-name --placement-policy-name + User-Agent: + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: DELETE + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2021-12-01 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Tue, 26 Oct 2021 17:48:36 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"type": "VmVm", "state": "Enabled", "displayName": "policy1", + "vmMembers": ["testVmMembers"], "affinityType": "AntiAffinity"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware placement-policy vm create + Connection: + - keep-alive + Content-Length: + - '142' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --cluster-name --placement-policy-name --state + --display-name --vm-members --affinity-type + User-Agent: + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: PUT + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2021-12-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1","name":"policy1","type":"Microsoft.AVS/privateClouds/clusters/placementPolicies","properties":{"type":"VmHost","state":"Enabled","displayName":"policy1","provisioningState":"Succeeded"}}' + headers: + content-length: + - '338' + content-type: + - application/json + date: + - Tue, 26 Oct 2021 17:48:40 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"properties": {"state": "Enabled", "vmMembers": ["testVmMembers"]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware placement-policy vm update + Connection: + - keep-alive + Content-Length: + - '68' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --cluster-name --placement-policy-name --state + --vm-members + User-Agent: + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: PATCH + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2021-12-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1","name":"policy1","type":"Microsoft.AVS/privateClouds/clusters/placementPolicies","properties":{"type":"VmHost","state":"Disabled","displayName":"policy1","provisioningState":"Succeeded"}}' + headers: + content-length: + - '339' + content-type: + - application/json + date: + - Tue, 26 Oct 2021 17:48:44 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware placement-policy vm delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --private-cloud --cluster-name --placement-policy-name + User-Agent: + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: DELETE + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_placement_policy000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2021-12-01 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Tue, 26 Oct 2021 17:48:49 GMT + server: + - Rocket + status: + code: 200 + message: OK +version: 1 diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml index 2a0f49e9937..7720358f797 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml @@ -13,7 +13,7 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages?api-version=2021-12-01 response: @@ -27,7 +27,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:44 GMT + - Tue, 26 Oct 2021 17:48:19 GMT server: - Rocket status: @@ -47,7 +47,7 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/AVS.PowerCommands%401.0.0?api-version=2021-12-01 response: @@ -60,7 +60,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:48 GMT + - Tue, 26 Oct 2021 17:48:23 GMT server: - Rocket status: @@ -80,7 +80,7 @@ interactions: ParameterSetName: - -g -c -p User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/AVS.PowerCommands%401.0.0/scriptCmdlets?api-version=2021-12-01 response: @@ -99,7 +99,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:53 GMT + - Tue, 26 Oct 2021 17:48:27 GMT server: - Rocket status: @@ -119,7 +119,7 @@ interactions: ParameterSetName: - -g -c -p -n User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/AVS.PowerCommands%401.0.0/scriptCmdlets/New-ExternalSsoDomain?api-version=2021-12-01 response: @@ -135,7 +135,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:57 GMT + - Tue, 26 Oct 2021 17:48:32 GMT server: - Rocket status: @@ -164,7 +164,7 @@ interactions: - --resource-group --private-cloud --name --script-cmdlet-id --timeout --retention --parameter --parameter --hidden-parameter User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions/addSsoServer?api-version=2021-12-01 response: @@ -178,7 +178,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:02 GMT + - Tue, 26 Oct 2021 17:48:36 GMT server: - Rocket status: @@ -198,7 +198,7 @@ interactions: ParameterSetName: - -g -c User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions?api-version=2021-12-01 response: @@ -211,7 +211,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:06 GMT + - Tue, 26 Oct 2021 17:48:40 GMT server: - Rocket status: @@ -231,7 +231,7 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions/addSsoServer?api-version=2021-12-01 response: @@ -244,7 +244,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:11 GMT + - Tue, 26 Oct 2021 17:48:44 GMT server: - Rocket status: @@ -266,7 +266,7 @@ interactions: ParameterSetName: - -g -c -n User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: DELETE uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_script000001/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions/addSsoServer?api-version=2021-12-01 response: @@ -276,7 +276,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 15:45:15 GMT + - Tue, 26 Oct 2021 17:48:49 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_virtual_machines.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_virtual_machines.yaml new file mode 100644 index 00000000000..70f4b767dbb --- /dev/null +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_virtual_machines.yaml @@ -0,0 +1,100 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware vm list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud --cluster-name + User-Agent: + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_virtual_machines000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines?api-version=2021-12-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-209","name":"vm-209","type":"Microsoft.AVS/privateClouds/clusters/virtualMachines","properties":{"displayName":"contoso-vm1","moRefId":"vm-209","folderPath":"vm/folder-1","restrictMovement":"Disabled"}},{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-128","name":"vm-128","type":"Microsoft.AVS/privateClouds/clusters/virtualMachines","properties":{"displayName":"contoso-vm2","moRefId":"vm-128","folderPath":"vm","restrictMovement":"Enabled"}}]}' + headers: + content-length: + - '695' + content-type: + - application/json + date: + - Tue, 26 Oct 2021 17:48:32 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware vm show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --private-cloud --cluster-name --virtual-machine + User-Agent: + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_virtual_machines000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-209?api-version=2021-12-01 + response: + body: + string: '{"id":"/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-209","name":"vm-209","type":"Microsoft.AVS/privateClouds/clusters/virtualMachines","properties":{"displayName":"contoso-vm","moRefId":"vm-209","folderPath":"vm/folder-1","restrictMovement":"Disabled"}}' + headers: + content-length: + - '345' + content-type: + - application/json + date: + - Tue, 26 Oct 2021 17:48:36 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: '{"restrictMovement": "Enabled"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmware vm restrict-movement + Connection: + - keep-alive + Content-Length: + - '31' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --private-cloud --cluster-name --virtual-machine --restrict-movement + User-Agent: + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: POST + uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_virtual_machines000001/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-209/restrictMovement?api-version=2021-12-01 + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Tue, 26 Oct 2021 17:48:40 GMT + server: + - Rocket + status: + code: 202 + message: Accepted +version: 1 diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml index f8fcf72a942..1a36da643b4 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml @@ -13,7 +13,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations?api-version=2021-12-01 response: @@ -25,7 +25,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:44:57 GMT + - Tue, 26 Oct 2021 17:49:01 GMT server: - Rocket status: @@ -45,7 +45,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dhcp User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-12-01 response: @@ -57,7 +57,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:02 GMT + - Tue, 26 Oct 2021 17:49:06 GMT server: - Rocket status: @@ -82,7 +82,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dhcp --display-name --revision --server-addresses User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-12-01 response: @@ -94,7 +94,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:06 GMT + - Tue, 26 Oct 2021 17:49:10 GMT server: - Rocket status: @@ -116,7 +116,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dhcp User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: DELETE uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-12-01 response: @@ -126,7 +126,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 15:45:11 GMT + - Tue, 26 Oct 2021 17:49:14 GMT server: - Rocket status: @@ -151,7 +151,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dhcp --display-name --revision --server-addresses User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PATCH uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-12-01 response: @@ -163,7 +163,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:15 GMT + - Tue, 26 Oct 2021 17:49:19 GMT server: - Rocket status: @@ -189,7 +189,7 @@ interactions: - --resource-group --private-cloud --dhcp --display-name --revision --server-address --lease-time User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-12-01 response: @@ -201,7 +201,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:20 GMT + - Tue, 26 Oct 2021 17:49:23 GMT server: - Rocket status: @@ -223,7 +223,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dhcp User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: DELETE uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-12-01 response: @@ -233,7 +233,51 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 15:45:24 GMT + - Tue, 26 Oct 2021 17:49:27 GMT + server: + - Rocket + status: + code: 200 + message: OK +- request: + body: grant_type=refresh_token&client_id=04b07795-8ddb-461a-bbee-02f9e1bf7b46&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&refresh_token=0.ARoAv4j5cvGGr0GRqy180BHbR5V3sATbjRpGu-4C-eG_e0YaAAg.AgABAAAAAAD--DLA3VO7QrddgJg7WevrAgDs_wQA9P8617IDsEb4SBu7dDmf6E0p8irU6FHgSTeDQi-AeWHmTC6eatsRgxfVuJG87-2CcNacGHBgvhxOq9lxcmxc5iDT1QtT5OaPxUtdVsC3174QMocuDBVYKsJIJdRHf2pg7VBDLZ3ndvE3u7URVqIuUP5pMkoksmMSDzs3OUuFBNbZynTKqeKPjMmoP0jlC7naOeBkCHB0Bs71CzYjJ71-ZQfdjBwkTkkQIfqsVjaJ6u8cq3j1oiDG_sVWhWHu_BUuZHATxiBCcl2QDicG1Js8oNKfaXQQ2gprfE_4HyLrOA6YL75V_ctRxy9JvsZd-z2GrPEgY4dCLHbBdBvItPFBCv5ILOybWKcICqqobvkj0TsK4DEWrd-EMXyeZGILwvAoT4m6348OeQxfC8TwUZ3nGMZcD8g23Wc1G5iqpugShTunw_Q-MzN9kGuWABS0PP36IF9NTz4sf542ffCYPKg_aLkDcDhfQbVe_tGfxmouvgIQv6_JkdypGrvo4ZHXqffspZ6TtHoC8rqJX0enA-0LoLmkpgrB-MoxqrWM2Jj4WoDOE6K7x9sIlIz6D04_ApvzJXHF1L3GxwVEq_N7W-sZbB5Pl0ERORM5Si6msySK-vC8ohjaDF2n5RZQLmvpbZ6YLraWz2moeM48JvcKKIlnai5oGpzumOM960B5FfzLi4Z-Eav6l_gqsq-DoMbaIH14xdI-TdkaX83O7gD2KWDBp_M0_o5MrQe2EmA0PsFN3FzyETtuXe1JKSNZB2iosupMnKGVwJ0sgGzgynNBYEbLChEeyvonPxnwkAQpi7JLCZZ2hwFDhMqyadcD9LhKYSbyg2KeVru_MIdN42Em5vdgTbn0PppUH9mMqlKFf4Djev-p6ZMMSxYZ6XVSxdSzC_crvdR1ab3Sjs-2eUSYXDXvH2TgypBBPlIp_ctsavgDfsTMJqAWWtrp0E2EDbzuhZ7ecGiHoXJ6GVORvmyaUJbwyr-Fl_q13YnHsHihZaaag0PhucpNu6Jurx-WkMoUg2KhorCEmSr2RAtNPa3rI_QKIZ-WQTtZvsJAbKlHHzsJ1QJN8naJ0ErbWSKvS05mpKvmXPxtDt4Yus5-_WuVyFvnCbLmUicVrstR9Ub51IiLunoh-wX48ITFVD_7yb36GnqhTtkEwHtAwogPrHYVEyvD3bd88v5bylr9JwuG4r5g9tZngM_4dkcBxGG0-pSOMqz_rD0NCABp-OhonkroNZHua5l0IjNymharDHEqg-Rq + headers: + Accept: + - '*/*' + Accept-Charset: + - utf-8 + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1490' + User-Agent: + - python-requests/2.25.1 + content-type: + - application/x-www-form-urlencoded + return-client-request-id: + - 'true' + x-client-CPU: + - x64 + x-client-OS: + - win32 + x-client-SKU: + - Python + x-client-Ver: + - 1.2.7 + method: POST + uri: https://localhost:8888/adfs/oauth2/token + response: + body: + string: '{"token_type":"Bearer","scope":"user_impersonation","expires_in":"3599","ext_expires_in":"3599","expires_on":"1635274171","not_before":"1635266973","resource":"https://management.core.windows.net/","access_token":"abc","foci":"1"}' + headers: + content-length: + - '230' + content-type: + - application/json + date: + - Tue, 26 Oct 2021 17:49:31 GMT server: - Rocket status: @@ -259,7 +303,7 @@ interactions: - --resource-group --private-cloud --dhcp --display-name --revision --server-address --lease-time User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PATCH uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dhcpConfigurations/dhcp1?api-version=2021-12-01 response: @@ -271,7 +315,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:29 GMT + - Tue, 26 Oct 2021 17:49:36 GMT server: - Rocket status: @@ -291,7 +335,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices?api-version=2021-12-01 response: @@ -303,7 +347,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:33 GMT + - Tue, 26 Oct 2021 17:49:40 GMT server: - Rocket status: @@ -323,7 +367,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dns-service User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-12-01 response: @@ -335,7 +379,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:38 GMT + - Tue, 26 Oct 2021 17:49:44 GMT server: - Rocket status: @@ -362,7 +406,7 @@ interactions: - --resource-group --private-cloud --dns-service --display-name --dns-service-ip --default-dns-zone --fqdn-zones --log-level --revision User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-12-01 response: @@ -374,7 +418,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:42 GMT + - Tue, 26 Oct 2021 17:49:48 GMT server: - Rocket status: @@ -401,7 +445,7 @@ interactions: - --resource-group --private-cloud --dns-service --display-name --dns-service-ip --default-dns-zone --fqdn-zones --log-level --revision User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PATCH uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-12-01 response: @@ -413,7 +457,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:47 GMT + - Tue, 26 Oct 2021 17:49:53 GMT server: - Rocket status: @@ -435,7 +479,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dns-service User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: DELETE uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsServices/dnsService1?api-version=2021-12-01 response: @@ -445,7 +489,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 15:45:52 GMT + - Tue, 26 Oct 2021 17:49:57 GMT server: - Rocket status: @@ -465,7 +509,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones?api-version=2021-12-01 response: @@ -477,7 +521,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:45:56 GMT + - Tue, 26 Oct 2021 17:50:01 GMT server: - Rocket status: @@ -497,7 +541,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dns-zone User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-12-01 response: @@ -509,7 +553,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:46:00 GMT + - Tue, 26 Oct 2021 17:50:06 GMT server: - Rocket status: @@ -536,7 +580,7 @@ interactions: - --resource-group --private-cloud --dns-zone --display-name --domain --dns-server-ips --source-ip --dns-services --revision User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-12-01 response: @@ -548,7 +592,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:46:04 GMT + - Tue, 26 Oct 2021 17:50:10 GMT server: - Rocket status: @@ -575,7 +619,7 @@ interactions: - --resource-group --private-cloud --dns-zone --display-name --domain --dns-server-ips --source-ip --dns-services --revision User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PATCH uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-12-01 response: @@ -587,7 +631,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:46:09 GMT + - Tue, 26 Oct 2021 17:50:14 GMT server: - Rocket status: @@ -609,7 +653,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud --dns-zone User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: DELETE uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/dnsZones/dnsZone1?api-version=2021-12-01 response: @@ -619,7 +663,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 15:46:13 GMT + - Tue, 26 Oct 2021 17:50:18 GMT server: - Rocket status: @@ -639,7 +683,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles?api-version=2021-12-01 response: @@ -651,7 +695,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:46:17 GMT + - Tue, 26 Oct 2021 17:50:23 GMT server: - Rocket status: @@ -671,7 +715,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud --port-mirroring User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2021-12-01 response: @@ -683,7 +727,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:46:22 GMT + - Tue, 26 Oct 2021 17:50:26 GMT server: - Rocket status: @@ -705,7 +749,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud --port-mirroring User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: DELETE uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2021-12-01 response: @@ -715,7 +759,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 15:46:26 GMT + - Tue, 26 Oct 2021 17:50:31 GMT server: - Rocket status: @@ -735,7 +779,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments?api-version=2021-12-01 response: @@ -747,7 +791,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:46:30 GMT + - Tue, 26 Oct 2021 17:50:35 GMT server: - Rocket status: @@ -767,7 +811,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud --segment User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-12-01 response: @@ -779,7 +823,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:46:35 GMT + - Tue, 26 Oct 2021 17:50:40 GMT server: - Rocket status: @@ -806,7 +850,7 @@ interactions: - --resource-group --private-cloud --segment --display-name --connected-gateway --revision --dhcp-ranges --gateway-address User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-12-01 response: @@ -818,7 +862,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:46:39 GMT + - Tue, 26 Oct 2021 17:50:44 GMT server: - Rocket status: @@ -845,7 +889,7 @@ interactions: - --resource-group --private-cloud --segment --display-name --connected-gateway --revision --dhcp-ranges --gateway-address User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PATCH uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-12-01 response: @@ -857,7 +901,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:46:43 GMT + - Tue, 26 Oct 2021 17:50:48 GMT server: - Rocket status: @@ -879,7 +923,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud --segment User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: DELETE uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/segments/segment1?api-version=2021-12-01 response: @@ -889,7 +933,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 15:46:48 GMT + - Tue, 26 Oct 2021 17:50:52 GMT server: - Rocket status: @@ -909,7 +953,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs?api-version=2021-12-01 response: @@ -921,7 +965,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:46:52 GMT + - Tue, 26 Oct 2021 17:50:56 GMT server: - Rocket status: @@ -941,7 +985,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud --public-ip User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-12-01 response: @@ -953,7 +997,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:46:57 GMT + - Tue, 26 Oct 2021 17:51:01 GMT server: - Rocket status: @@ -978,7 +1022,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud --public-ip --display-name --number-of-public-ips User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-12-01 response: @@ -990,7 +1034,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:47:01 GMT + - Tue, 26 Oct 2021 17:51:05 GMT server: - Rocket status: @@ -1012,7 +1056,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud --public-ip User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: DELETE uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/publicIPs/publicIP1?api-version=2021-12-01 response: @@ -1022,7 +1066,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 15:47:05 GMT + - Tue, 26 Oct 2021 17:51:09 GMT server: - Rocket status: @@ -1042,7 +1086,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups?api-version=2021-12-01 response: @@ -1054,7 +1098,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:47:10 GMT + - Tue, 26 Oct 2021 17:51:14 GMT server: - Rocket status: @@ -1074,7 +1118,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud --vm-group User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-12-01 response: @@ -1086,7 +1130,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:47:14 GMT + - Tue, 26 Oct 2021 17:51:18 GMT server: - Rocket status: @@ -1111,7 +1155,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud --vm-group --display-name --members --revision User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-12-01 response: @@ -1123,7 +1167,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:47:18 GMT + - Tue, 26 Oct 2021 17:51:22 GMT server: - Rocket status: @@ -1148,7 +1192,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud --vm-group --display-name --members --revision User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PATCH uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-12-01 response: @@ -1160,7 +1204,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:47:23 GMT + - Tue, 26 Oct 2021 17:51:26 GMT server: - Rocket status: @@ -1182,7 +1226,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud --vm-group User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: DELETE uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/vmGroups/vmGroup1?api-version=2021-12-01 response: @@ -1192,7 +1236,7 @@ interactions: content-length: - '0' date: - - Thu, 21 Oct 2021 15:47:27 GMT + - Tue, 26 Oct 2021 17:51:31 GMT server: - Rocket status: @@ -1212,7 +1256,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines?api-version=2021-12-01 response: @@ -1224,7 +1268,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:47:32 GMT + - Tue, 26 Oct 2021 17:51:35 GMT server: - Rocket status: @@ -1244,7 +1288,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud --virtual-machine User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/virtualMachines/vm1?api-version=2021-12-01 response: @@ -1256,7 +1300,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:47:36 GMT + - Tue, 26 Oct 2021 17:51:40 GMT server: - Rocket status: @@ -1276,7 +1320,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways?api-version=2021-12-01 response: @@ -1288,7 +1332,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:47:40 GMT + - Tue, 26 Oct 2021 17:51:44 GMT server: - Rocket status: @@ -1308,7 +1352,7 @@ interactions: ParameterSetName: - --resource-group --private-cloud --gateway User-Agent: - - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0) + - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://localhost:8888/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmware_workload_network000001/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/gateways/gateway1?api-version=2021-12-01 response: @@ -1320,7 +1364,7 @@ interactions: content-type: - application/json date: - - Thu, 21 Oct 2021 15:47:45 GMT + - Tue, 26 Oct 2021 17:51:48 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/test_placement_policies_scenario.py b/src/vmware/azext_vmware/tests/latest/test_placement_policies_scenario.py new file mode 100644 index 00000000000..893e9d07ae5 --- /dev/null +++ b/src/vmware/azext_vmware/tests/latest/test_placement_policies_scenario.py @@ -0,0 +1,51 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +import os +import unittest + +from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer) + +class VmwarePlacementPolicyScenarioTest(ScenarioTest): + def setUp(self): + # https://vcrpy.readthedocs.io/en/latest/configuration.html#request-matching + self.vcr.match_on = ['scheme', 'method', 'path', 'query'] # not 'host', 'port' + super(VmwarePlacementPolicyScenarioTest, self).setUp() + + @ResourceGroupPreparer(name_prefix='cli_test_vmware_placement_policy') + def test_vmware_placement_policy(self): + self.kwargs.update({ + 'privatecloud': 'cloud1', + 'cluster_name': 'cluster1', + 'placement_policy_name': 'policy1', + 'state': 'Enabled', + 'display_name': 'policy1', + 'vm_members': 'testVmMembers', + 'host_members': 'testHostMembers', + 'affinity_type': 'AntiAffinity' + }) + + placementPolicyList = len(self.cmd('az vmware placement-policy list --resource-group {rg} --private-cloud {privatecloud} --cluster-name {cluster_name}').get_output_in_json()) + self.assertEqual(placementPolicyList, 2, 'count expected to be 2') + + placementPolicyShow = self.cmd('az vmware placement-policy show --resource-group {rg} --private-cloud {privatecloud} --cluster-name {cluster_name} --placement-policy-name {placement_policy_name}').get_output_in_json() + self.assertEqual(placementPolicyShow['name'], 'policy1') + + placementPolicyVmHostCreate = self.cmd('az vmware placement-policy vm-host create --resource-group {rg} --private-cloud {privatecloud} --cluster-name {cluster_name} --placement-policy-name {placement_policy_name} --state {state} --display-name {display_name} --vm-members {vm_members} --host-members {host_members} --affinity-type {affinity_type}').get_output_in_json() + self.assertEqual(placementPolicyVmHostCreate['name'], 'policy1') + + placementPolicyVmHostUpdate = self.cmd('az vmware placement-policy vm-host update --resource-group {rg} --private-cloud {privatecloud} --cluster-name {cluster_name} --placement-policy-name {placement_policy_name} --state {state} --vm-members {vm_members} --host-members {host_members}').get_output_in_json() + self.assertEqual(placementPolicyVmHostUpdate['name'], 'policy1') + + placementPolicyVmHostDelete = self.cmd('az vmware placement-policy vm-host delete --resource-group {rg} --private-cloud {privatecloud} --cluster-name {cluster_name} --placement-policy-name {placement_policy_name}').output + self.assertEqual(len(placementPolicyVmHostDelete), 0) + + placementPolicyVmCreate = self.cmd('az vmware placement-policy vm create --resource-group {rg} --private-cloud {privatecloud} --cluster-name {cluster_name} --placement-policy-name {placement_policy_name} --state {state} --display-name {display_name} --vm-members {vm_members} --affinity-type {affinity_type}').get_output_in_json() + self.assertEqual(placementPolicyVmCreate['name'], 'policy1') + + placementPolicyVmUpdate = self.cmd('az vmware placement-policy vm update --resource-group {rg} --private-cloud {privatecloud} --cluster-name {cluster_name} --placement-policy-name {placement_policy_name} --state {state} --vm-members {vm_members}').get_output_in_json() + self.assertEqual(placementPolicyVmUpdate['name'], 'policy1') + + placementPolicyVmDelete = self.cmd('az vmware placement-policy vm delete --resource-group {rg} --private-cloud {privatecloud} --cluster-name {cluster_name} --placement-policy-name {placement_policy_name}').output + self.assertEqual(len(placementPolicyVmDelete), 0) \ No newline at end of file diff --git a/src/vmware/azext_vmware/tests/latest/test_virtual_machines_scenario.py b/src/vmware/azext_vmware/tests/latest/test_virtual_machines_scenario.py new file mode 100644 index 00000000000..8dd01ae3e44 --- /dev/null +++ b/src/vmware/azext_vmware/tests/latest/test_virtual_machines_scenario.py @@ -0,0 +1,32 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +import os +import unittest + +from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer) + +class VmwareVirtualMachinesScenarioTest(ScenarioTest): + def setUp(self): + # https://vcrpy.readthedocs.io/en/latest/configuration.html#request-matching + self.vcr.match_on = ['scheme', 'method', 'path', 'query'] # not 'host', 'port' + super(VmwareVirtualMachinesScenarioTest, self).setUp() + + @ResourceGroupPreparer(name_prefix='cli_test_vmware_virtual_machines') + def test_vmware_virtual_machines(self): + self.kwargs.update({ + 'privatecloud': 'cloud1', + 'cluster_name': 'cluster1', + 'virtual_machine': 'vm-209', + 'restrict_movement': 'Enabled' + }) + + virtualMachinesList = len(self.cmd('az vmware vm list --resource-group {rg} --private-cloud {privatecloud} --cluster-name {cluster_name}').get_output_in_json()) + self.assertEqual(virtualMachinesList, 2, 'count expected to be 2') + + virtualMachinesShow = self.cmd('az vmware vm show --resource-group {rg} --private-cloud {privatecloud} --cluster-name {cluster_name} --virtual-machine {virtual_machine}').get_output_in_json() + self.assertEqual(virtualMachinesShow['name'], 'vm-209') + + virtualMachinesRestrictMovement = self.cmd('az vmware vm restrict-movement --resource-group {rg} --private-cloud {privatecloud} --cluster-name {cluster_name} --virtual-machine {virtual_machine} --restrict-movement {restrict_movement}').output + self.assertEqual(len(virtualMachinesRestrictMovement), 0) \ No newline at end of file From 412867f2c55ed9ab3e5b1fa08bb8d8caf1a7f080 Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Thu, 28 Oct 2021 12:13:14 -0500 Subject: [PATCH 31/34] added prefixes for flattened properties --- src/vmware/azext_vmware/_params.py | 16 +-- src/vmware/azext_vmware/custom.py | 10 +- .../tests/latest/recordings/test_vmware.yaml | 82 +++--------- .../latest/recordings/test_vmware_addon.yaml | 24 ++-- .../recordings/test_vmware_cloud_link.yaml | 8 +- .../recordings/test_vmware_datastores.yaml | 8 +- .../test_vmware_global_reach_connection.yaml | 14 +- .../latest/recordings/test_vmware_hcx.yaml | 18 +-- .../test_vmware_placement_policy.yaml | 16 +-- .../latest/recordings/test_vmware_script.yaml | 16 +-- .../test_vmware_virtual_machines.yaml | 6 +- .../test_vmware_workload_network.yaml | 122 ++++++------------ 12 files changed, 126 insertions(+), 214 deletions(-) diff --git a/src/vmware/azext_vmware/_params.py b/src/vmware/azext_vmware/_params.py index 9ace0efea44..c8940e515ff 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -46,14 +46,14 @@ def load_arguments(self, _): with self.argument_context('vmware private-cloud update') as c: c.argument('name', options_list=['--name', '-n'], help='Name of the private cloud.') - c.argument('zone', help='The primary availability zone for the private cloud') - c.argument('secondary_zone', help='The secondary availability zone for the private cloud.') - c.argument('status', help='Status of customer managed encryption key. Possible values include "Enabled" and "Disabled".') - c.argument('key_name', help='The name of the key.') - c.argument('key_state', help='The state of key provided. Possible values include "Connected" and "AccessDenied".') - c.argument('key_vault_url', help='The URL of the vault.') - c.argument('key_version', help='The version of the key.') - c.argument('version_type', help='Property of the key if user provided or auto detected.') + c.argument('avail_zone', help='The primary availability zone for the private cloud') + c.argument('avail_secondary_zone', help='The secondary availability zone for the private cloud.') + c.argument('encryption_status', help='Status of customer managed encryption key. Possible values include "Enabled" and "Disabled".') + c.argument('enc_kv_key_name', help='The name of the encryption key vault key.') + c.argument('enc_kv_key_state', help='The state of encryption key vault key provided. Possible values include "Connected" and "AccessDenied".') + c.argument('enc_kv_url', help='The URL of the encryption key vault.') + c.argument('enc_kv_key_version', help='The version of the encryption key vault key.') + c.argument('enc_kv_key_vs_type', help='Property of the encryption key vault key if user provided or auto detected.') with self.argument_context('vmware private-cloud delete') as c: c.argument('name', options_list=['--name', '-n'], help='Name of the private cloud.') diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index 719573d60bd..bbf7db20f32 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -56,19 +56,19 @@ def privatecloud_create(client: AVSClient, resource_group_name, name, location, return client.private_clouds.begin_create_or_update(resource_group_name, name, cloud) -def privatecloud_update(client: AVSClient, resource_group_name, name, cluster_size=None, internet=None, zone=None, secondary_zone=None, identity_type=None, status=None, key_name=None, key_version=None, key_vault_url=None, key_state=None, version_type=None): +def privatecloud_update(client: AVSClient, resource_group_name, name, cluster_size=None, internet=None, avail_zone=None, avail_secondary_zone=None, identity_type=None, encryption_status=None, enc_kv_key_name=None, enc_kv_key_version=None, enc_kv_url=None, enc_kv_key_state=None, enc_kv_key_vs_type=None): from azext_vmware.vendored_sdks.avs_client.models import PrivateCloudUpdate, ManagementCluster, PrivateCloudIdentity, AvailabilityProperties, Encryption, EncryptionKeyVaultProperties private_cloud_update = PrivateCloudUpdate() if cluster_size is not None: private_cloud_update.management_cluster = ManagementCluster(cluster_size=cluster_size) if internet is not None: private_cloud_update.internet = internet - if zone is not None: - private_cloud_update.availability = AvailabilityProperties(zone=zone, secondary_zone=secondary_zone) + if avail_zone is not None: + private_cloud_update.availability = AvailabilityProperties(zone=avail_zone, secondary_zone=avail_secondary_zone) if type is not None: private_cloud_update.identity = PrivateCloudIdentity(type=identity_type) - if status is not None: - private_cloud_update.encryption = Encryption(status=status, key_vault_properties=EncryptionKeyVaultProperties(key_name=key_name, key_version=key_version, key_vault_url=key_vault_url, key_state=key_state, version_type=version_type)) + if encryption_status is not None: + private_cloud_update.encryption = Encryption(status=encryption_status, key_vault_properties=EncryptionKeyVaultProperties(key_name=enc_kv_key_name, key_version=enc_kv_key_version, key_vault_url=enc_kv_url, key_state=enc_kv_key_state, version_type=enc_kv_key_vs_type)) return client.private_clouds.begin_update(resource_group_name, name, private_cloud_update) diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml index 0df6dca439c..3698cfc6969 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml @@ -27,7 +27,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:49:01 GMT + - Thu, 28 Oct 2021 17:06:04 GMT server: - Rocket status: @@ -61,7 +61,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:49:06 GMT + - Thu, 28 Oct 2021 17:06:08 GMT server: - Rocket status: @@ -93,7 +93,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:49:10 GMT + - Thu, 28 Oct 2021 17:06:12 GMT server: - Rocket status: @@ -132,7 +132,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:49:14 GMT + - Thu, 28 Oct 2021 17:06:17 GMT server: - Rocket status: @@ -164,7 +164,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:49:19 GMT + - Thu, 28 Oct 2021 17:06:21 GMT server: - Rocket status: @@ -196,7 +196,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Oct 2021 17:49:23 GMT + - Thu, 28 Oct 2021 17:06:25 GMT server: - Rocket status: @@ -228,56 +228,12 @@ interactions: content-length: - '0' date: - - Tue, 26 Oct 2021 17:49:27 GMT + - Thu, 28 Oct 2021 17:06:29 GMT server: - Rocket status: code: 202 message: Accepted -- request: - body: grant_type=refresh_token&client_id=04b07795-8ddb-461a-bbee-02f9e1bf7b46&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&refresh_token=0.ARoAv4j5cvGGr0GRqy180BHbR5V3sATbjRpGu-4C-eG_e0YaAAg.AgABAAAAAAD--DLA3VO7QrddgJg7WevrAgDs_wQA9P8617IDsEb4SBu7dDmf6E0p8irU6FHgSTeDQi-AeWHmTC6eatsRgxfVuJG87-2CcNacGHBgvhxOq9lxcmxc5iDT1QtT5OaPxUtdVsC3174QMocuDBVYKsJIJdRHf2pg7VBDLZ3ndvE3u7URVqIuUP5pMkoksmMSDzs3OUuFBNbZynTKqeKPjMmoP0jlC7naOeBkCHB0Bs71CzYjJ71-ZQfdjBwkTkkQIfqsVjaJ6u8cq3j1oiDG_sVWhWHu_BUuZHATxiBCcl2QDicG1Js8oNKfaXQQ2gprfE_4HyLrOA6YL75V_ctRxy9JvsZd-z2GrPEgY4dCLHbBdBvItPFBCv5ILOybWKcICqqobvkj0TsK4DEWrd-EMXyeZGILwvAoT4m6348OeQxfC8TwUZ3nGMZcD8g23Wc1G5iqpugShTunw_Q-MzN9kGuWABS0PP36IF9NTz4sf542ffCYPKg_aLkDcDhfQbVe_tGfxmouvgIQv6_JkdypGrvo4ZHXqffspZ6TtHoC8rqJX0enA-0LoLmkpgrB-MoxqrWM2Jj4WoDOE6K7x9sIlIz6D04_ApvzJXHF1L3GxwVEq_N7W-sZbB5Pl0ERORM5Si6msySK-vC8ohjaDF2n5RZQLmvpbZ6YLraWz2moeM48JvcKKIlnai5oGpzumOM960B5FfzLi4Z-Eav6l_gqsq-DoMbaIH14xdI-TdkaX83O7gD2KWDBp_M0_o5MrQe2EmA0PsFN3FzyETtuXe1JKSNZB2iosupMnKGVwJ0sgGzgynNBYEbLChEeyvonPxnwkAQpi7JLCZZ2hwFDhMqyadcD9LhKYSbyg2KeVru_MIdN42Em5vdgTbn0PppUH9mMqlKFf4Djev-p6ZMMSxYZ6XVSxdSzC_crvdR1ab3Sjs-2eUSYXDXvH2TgypBBPlIp_ctsavgDfsTMJqAWWtrp0E2EDbzuhZ7ecGiHoXJ6GVORvmyaUJbwyr-Fl_q13YnHsHihZaaag0PhucpNu6Jurx-WkMoUg2KhorCEmSr2RAtNPa3rI_QKIZ-WQTtZvsJAbKlHHzsJ1QJN8naJ0ErbWSKvS05mpKvmXPxtDt4Yus5-_WuVyFvnCbLmUicVrstR9Ub51IiLunoh-wX48ITFVD_7yb36GnqhTtkEwHtAwogPrHYVEyvD3bd88v5bylr9JwuG4r5g9tZngM_4dkcBxGG0-pSOMqz_rD0NCABp-OhonkroNZHua5l0IjNymharDHEqg-Rq - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1490' - User-Agent: - - python-requests/2.25.1 - content-type: - - application/x-www-form-urlencoded - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.7 - method: POST - uri: https://localhost:8888/adfs/oauth2/token - response: - body: - string: '{"token_type":"Bearer","scope":"user_impersonation","expires_in":"3599","ext_expires_in":"3599","expires_on":"1635274171","not_before":"1635266973","resource":"https://management.core.windows.net/","access_token":"abc","foci":"1"}' - headers: - content-length: - - '230' - content-type: - - application/json - date: - - Tue, 26 Oct 2021 17:49:31 GMT - server: - - Rocket - status: - code: 200 - message: OK - request: body: '{"identity": {}, "properties": {"managementCluster": {"clusterSize": 4}, "internet": "Disabled"}}' @@ -309,7 +265,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:49:36 GMT + - Thu, 28 Oct 2021 17:06:34 GMT server: - Rocket status: @@ -345,7 +301,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:49:40 GMT + - Thu, 28 Oct 2021 17:06:38 GMT server: - Rocket status: @@ -381,7 +337,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:49:44 GMT + - Thu, 28 Oct 2021 17:06:42 GMT server: - Rocket status: @@ -413,7 +369,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Oct 2021 17:49:48 GMT + - Thu, 28 Oct 2021 17:06:47 GMT server: - Rocket status: @@ -446,7 +402,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:49:53 GMT + - Thu, 28 Oct 2021 17:06:51 GMT server: - Rocket status: @@ -496,7 +452,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:49:53 GMT + - Thu, 28 Oct 2021 17:06:51 GMT server: - Rocket status: @@ -528,7 +484,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:49:57 GMT + - Thu, 28 Oct 2021 17:06:55 GMT server: - Rocket status: @@ -560,7 +516,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:50:01 GMT + - Thu, 28 Oct 2021 17:06:59 GMT server: - Rocket status: @@ -597,7 +553,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:50:06 GMT + - Thu, 28 Oct 2021 17:07:04 GMT server: - Rocket status: @@ -629,7 +585,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:50:10 GMT + - Thu, 28 Oct 2021 17:07:08 GMT server: - Rocket status: @@ -665,7 +621,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:50:14 GMT + - Thu, 28 Oct 2021 17:07:12 GMT server: - Rocket status: @@ -697,7 +653,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Oct 2021 17:50:18 GMT + - Thu, 28 Oct 2021 17:07:17 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml index 0abbde70997..c2ba677cb22 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml @@ -31,7 +31,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:47:53 GMT + - Thu, 28 Oct 2021 17:04:55 GMT server: - Rocket status: @@ -63,7 +63,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:47:58 GMT + - Thu, 28 Oct 2021 17:05:00 GMT server: - Rocket status: @@ -99,7 +99,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:02 GMT + - Thu, 28 Oct 2021 17:05:04 GMT server: - Rocket status: @@ -131,7 +131,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:06 GMT + - Thu, 28 Oct 2021 17:05:08 GMT server: - Rocket status: @@ -163,7 +163,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:10 GMT + - Thu, 28 Oct 2021 17:05:12 GMT server: - Rocket status: @@ -195,7 +195,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Oct 2021 17:48:15 GMT + - Thu, 28 Oct 2021 17:05:17 GMT server: - Rocket status: @@ -227,7 +227,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:19 GMT + - Thu, 28 Oct 2021 17:05:21 GMT server: - Rocket status: @@ -263,7 +263,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:23 GMT + - Thu, 28 Oct 2021 17:05:25 GMT server: - Rocket status: @@ -295,7 +295,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:27 GMT + - Thu, 28 Oct 2021 17:05:30 GMT server: - Rocket status: @@ -327,7 +327,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:32 GMT + - Thu, 28 Oct 2021 17:05:34 GMT server: - Rocket status: @@ -359,7 +359,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Oct 2021 17:48:36 GMT + - Thu, 28 Oct 2021 17:05:38 GMT server: - Rocket status: @@ -391,7 +391,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:40 GMT + - Thu, 28 Oct 2021 17:05:42 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml index 8c05234645a..4e8fd347ba5 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml @@ -29,7 +29,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:47:53 GMT + - Thu, 28 Oct 2021 17:04:55 GMT server: - Rocket status: @@ -61,7 +61,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:47:58 GMT + - Thu, 28 Oct 2021 17:05:00 GMT server: - Rocket status: @@ -93,7 +93,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:02 GMT + - Thu, 28 Oct 2021 17:05:04 GMT server: - Rocket status: @@ -125,7 +125,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Oct 2021 17:48:06 GMT + - Thu, 28 Oct 2021 17:05:08 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml index 5fba1696e19..373a4d0b117 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml @@ -30,7 +30,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:47:53 GMT + - Thu, 28 Oct 2021 17:04:55 GMT server: - Rocket status: @@ -62,7 +62,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:47:58 GMT + - Thu, 28 Oct 2021 17:05:00 GMT server: - Rocket status: @@ -94,7 +94,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:02 GMT + - Thu, 28 Oct 2021 17:05:04 GMT server: - Rocket status: @@ -126,7 +126,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Oct 2021 17:48:06 GMT + - Thu, 28 Oct 2021 17:05:08 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml index ca5c390b3ef..07aef8f87f5 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml @@ -33,7 +33,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:47:53 GMT + - Thu, 28 Oct 2021 17:04:55 GMT server: - Rocket status: @@ -65,7 +65,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:47:58 GMT + - Thu, 28 Oct 2021 17:05:00 GMT server: - Rocket status: @@ -103,7 +103,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:02 GMT + - Thu, 28 Oct 2021 17:05:04 GMT server: - Rocket status: @@ -135,7 +135,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:06 GMT + - Thu, 28 Oct 2021 17:05:08 GMT server: - Rocket status: @@ -167,7 +167,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:10 GMT + - Thu, 28 Oct 2021 17:05:12 GMT server: - Rocket status: @@ -199,7 +199,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Oct 2021 17:48:15 GMT + - Thu, 28 Oct 2021 17:05:17 GMT server: - Rocket status: @@ -231,7 +231,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:19 GMT + - Thu, 28 Oct 2021 17:05:21 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml index 27524ef6045..37a86fff12e 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml @@ -33,7 +33,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:53 GMT + - Thu, 28 Oct 2021 17:05:55 GMT server: - Rocket status: @@ -69,7 +69,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:57 GMT + - Thu, 28 Oct 2021 17:05:59 GMT server: - Rocket status: @@ -101,7 +101,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:49:01 GMT + - Thu, 28 Oct 2021 17:06:04 GMT server: - Rocket status: @@ -133,7 +133,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:49:06 GMT + - Thu, 28 Oct 2021 17:06:08 GMT server: - Rocket status: @@ -169,7 +169,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:49:10 GMT + - Thu, 28 Oct 2021 17:06:12 GMT server: - Rocket status: @@ -201,7 +201,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:49:14 GMT + - Thu, 28 Oct 2021 17:06:17 GMT server: - Rocket status: @@ -233,7 +233,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:49:19 GMT + - Thu, 28 Oct 2021 17:06:21 GMT server: - Rocket status: @@ -265,7 +265,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Oct 2021 17:49:23 GMT + - Thu, 28 Oct 2021 17:06:25 GMT server: - Rocket status: @@ -297,7 +297,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:49:27 GMT + - Thu, 28 Oct 2021 17:06:29 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_placement_policy.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_placement_policy.yaml index 1416a6709d5..1067a5d591e 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_placement_policy.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_placement_policy.yaml @@ -25,7 +25,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:19 GMT + - Thu, 28 Oct 2021 17:05:21 GMT server: - Rocket status: @@ -57,7 +57,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:23 GMT + - Thu, 28 Oct 2021 17:05:25 GMT server: - Rocket status: @@ -96,7 +96,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:27 GMT + - Thu, 28 Oct 2021 17:05:29 GMT server: - Rocket status: @@ -134,7 +134,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:32 GMT + - Thu, 28 Oct 2021 17:05:34 GMT server: - Rocket status: @@ -166,7 +166,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Oct 2021 17:48:36 GMT + - Thu, 28 Oct 2021 17:05:38 GMT server: - Rocket status: @@ -204,7 +204,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:40 GMT + - Thu, 28 Oct 2021 17:05:42 GMT server: - Rocket status: @@ -241,7 +241,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:44 GMT + - Thu, 28 Oct 2021 17:05:47 GMT server: - Rocket status: @@ -273,7 +273,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Oct 2021 17:48:49 GMT + - Thu, 28 Oct 2021 17:05:51 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml index 7720358f797..4953e027bbe 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml @@ -27,7 +27,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:19 GMT + - Thu, 28 Oct 2021 17:05:21 GMT server: - Rocket status: @@ -60,7 +60,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:23 GMT + - Thu, 28 Oct 2021 17:05:25 GMT server: - Rocket status: @@ -99,7 +99,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:27 GMT + - Thu, 28 Oct 2021 17:05:30 GMT server: - Rocket status: @@ -135,7 +135,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:32 GMT + - Thu, 28 Oct 2021 17:05:34 GMT server: - Rocket status: @@ -178,7 +178,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:36 GMT + - Thu, 28 Oct 2021 17:05:38 GMT server: - Rocket status: @@ -211,7 +211,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:40 GMT + - Thu, 28 Oct 2021 17:05:42 GMT server: - Rocket status: @@ -244,7 +244,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:44 GMT + - Thu, 28 Oct 2021 17:05:47 GMT server: - Rocket status: @@ -276,7 +276,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Oct 2021 17:48:49 GMT + - Thu, 28 Oct 2021 17:05:51 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_virtual_machines.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_virtual_machines.yaml index 70f4b767dbb..5310a17a636 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_virtual_machines.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_virtual_machines.yaml @@ -25,7 +25,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:32 GMT + - Thu, 28 Oct 2021 17:05:34 GMT server: - Rocket status: @@ -57,7 +57,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:48:36 GMT + - Thu, 28 Oct 2021 17:05:38 GMT server: - Rocket status: @@ -91,7 +91,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Oct 2021 17:48:40 GMT + - Thu, 28 Oct 2021 17:05:42 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml index 1a36da643b4..80b38a61e42 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml @@ -25,7 +25,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:49:01 GMT + - Thu, 28 Oct 2021 17:06:04 GMT server: - Rocket status: @@ -57,7 +57,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:49:06 GMT + - Thu, 28 Oct 2021 17:06:08 GMT server: - Rocket status: @@ -94,7 +94,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:49:10 GMT + - Thu, 28 Oct 2021 17:06:12 GMT server: - Rocket status: @@ -126,7 +126,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Oct 2021 17:49:14 GMT + - Thu, 28 Oct 2021 17:06:17 GMT server: - Rocket status: @@ -163,7 +163,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:49:19 GMT + - Thu, 28 Oct 2021 17:06:21 GMT server: - Rocket status: @@ -201,7 +201,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:49:23 GMT + - Thu, 28 Oct 2021 17:06:25 GMT server: - Rocket status: @@ -233,51 +233,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Oct 2021 17:49:27 GMT - server: - - Rocket - status: - code: 200 - message: OK -- request: - body: grant_type=refresh_token&client_id=04b07795-8ddb-461a-bbee-02f9e1bf7b46&resource=https%3A%2F%2Fmanagement.core.windows.net%2F&refresh_token=0.ARoAv4j5cvGGr0GRqy180BHbR5V3sATbjRpGu-4C-eG_e0YaAAg.AgABAAAAAAD--DLA3VO7QrddgJg7WevrAgDs_wQA9P8617IDsEb4SBu7dDmf6E0p8irU6FHgSTeDQi-AeWHmTC6eatsRgxfVuJG87-2CcNacGHBgvhxOq9lxcmxc5iDT1QtT5OaPxUtdVsC3174QMocuDBVYKsJIJdRHf2pg7VBDLZ3ndvE3u7URVqIuUP5pMkoksmMSDzs3OUuFBNbZynTKqeKPjMmoP0jlC7naOeBkCHB0Bs71CzYjJ71-ZQfdjBwkTkkQIfqsVjaJ6u8cq3j1oiDG_sVWhWHu_BUuZHATxiBCcl2QDicG1Js8oNKfaXQQ2gprfE_4HyLrOA6YL75V_ctRxy9JvsZd-z2GrPEgY4dCLHbBdBvItPFBCv5ILOybWKcICqqobvkj0TsK4DEWrd-EMXyeZGILwvAoT4m6348OeQxfC8TwUZ3nGMZcD8g23Wc1G5iqpugShTunw_Q-MzN9kGuWABS0PP36IF9NTz4sf542ffCYPKg_aLkDcDhfQbVe_tGfxmouvgIQv6_JkdypGrvo4ZHXqffspZ6TtHoC8rqJX0enA-0LoLmkpgrB-MoxqrWM2Jj4WoDOE6K7x9sIlIz6D04_ApvzJXHF1L3GxwVEq_N7W-sZbB5Pl0ERORM5Si6msySK-vC8ohjaDF2n5RZQLmvpbZ6YLraWz2moeM48JvcKKIlnai5oGpzumOM960B5FfzLi4Z-Eav6l_gqsq-DoMbaIH14xdI-TdkaX83O7gD2KWDBp_M0_o5MrQe2EmA0PsFN3FzyETtuXe1JKSNZB2iosupMnKGVwJ0sgGzgynNBYEbLChEeyvonPxnwkAQpi7JLCZZ2hwFDhMqyadcD9LhKYSbyg2KeVru_MIdN42Em5vdgTbn0PppUH9mMqlKFf4Djev-p6ZMMSxYZ6XVSxdSzC_crvdR1ab3Sjs-2eUSYXDXvH2TgypBBPlIp_ctsavgDfsTMJqAWWtrp0E2EDbzuhZ7ecGiHoXJ6GVORvmyaUJbwyr-Fl_q13YnHsHihZaaag0PhucpNu6Jurx-WkMoUg2KhorCEmSr2RAtNPa3rI_QKIZ-WQTtZvsJAbKlHHzsJ1QJN8naJ0ErbWSKvS05mpKvmXPxtDt4Yus5-_WuVyFvnCbLmUicVrstR9Ub51IiLunoh-wX48ITFVD_7yb36GnqhTtkEwHtAwogPrHYVEyvD3bd88v5bylr9JwuG4r5g9tZngM_4dkcBxGG0-pSOMqz_rD0NCABp-OhonkroNZHua5l0IjNymharDHEqg-Rq - headers: - Accept: - - '*/*' - Accept-Charset: - - utf-8 - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '1490' - User-Agent: - - python-requests/2.25.1 - content-type: - - application/x-www-form-urlencoded - return-client-request-id: - - 'true' - x-client-CPU: - - x64 - x-client-OS: - - win32 - x-client-SKU: - - Python - x-client-Ver: - - 1.2.7 - method: POST - uri: https://localhost:8888/adfs/oauth2/token - response: - body: - string: '{"token_type":"Bearer","scope":"user_impersonation","expires_in":"3599","ext_expires_in":"3599","expires_on":"1635274171","not_before":"1635266973","resource":"https://management.core.windows.net/","access_token":"abc","foci":"1"}' - headers: - content-length: - - '230' - content-type: - - application/json - date: - - Tue, 26 Oct 2021 17:49:31 GMT + - Thu, 28 Oct 2021 17:06:29 GMT server: - Rocket status: @@ -315,7 +271,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:49:36 GMT + - Thu, 28 Oct 2021 17:06:34 GMT server: - Rocket status: @@ -347,7 +303,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:49:40 GMT + - Thu, 28 Oct 2021 17:06:38 GMT server: - Rocket status: @@ -379,7 +335,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:49:44 GMT + - Thu, 28 Oct 2021 17:06:42 GMT server: - Rocket status: @@ -418,7 +374,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:49:48 GMT + - Thu, 28 Oct 2021 17:06:47 GMT server: - Rocket status: @@ -457,7 +413,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:49:53 GMT + - Thu, 28 Oct 2021 17:06:51 GMT server: - Rocket status: @@ -489,7 +445,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Oct 2021 17:49:57 GMT + - Thu, 28 Oct 2021 17:06:55 GMT server: - Rocket status: @@ -521,7 +477,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:50:01 GMT + - Thu, 28 Oct 2021 17:06:59 GMT server: - Rocket status: @@ -553,7 +509,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:50:06 GMT + - Thu, 28 Oct 2021 17:07:04 GMT server: - Rocket status: @@ -592,7 +548,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:50:10 GMT + - Thu, 28 Oct 2021 17:07:08 GMT server: - Rocket status: @@ -631,7 +587,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:50:14 GMT + - Thu, 28 Oct 2021 17:07:12 GMT server: - Rocket status: @@ -663,7 +619,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Oct 2021 17:50:18 GMT + - Thu, 28 Oct 2021 17:07:17 GMT server: - Rocket status: @@ -695,7 +651,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:50:23 GMT + - Thu, 28 Oct 2021 17:07:21 GMT server: - Rocket status: @@ -727,7 +683,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:50:26 GMT + - Thu, 28 Oct 2021 17:07:25 GMT server: - Rocket status: @@ -759,7 +715,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Oct 2021 17:50:31 GMT + - Thu, 28 Oct 2021 17:07:30 GMT server: - Rocket status: @@ -791,7 +747,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:50:35 GMT + - Thu, 28 Oct 2021 17:07:34 GMT server: - Rocket status: @@ -823,7 +779,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:50:40 GMT + - Thu, 28 Oct 2021 17:07:38 GMT server: - Rocket status: @@ -862,7 +818,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:50:44 GMT + - Thu, 28 Oct 2021 17:07:43 GMT server: - Rocket status: @@ -901,7 +857,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:50:48 GMT + - Thu, 28 Oct 2021 17:07:47 GMT server: - Rocket status: @@ -933,7 +889,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Oct 2021 17:50:52 GMT + - Thu, 28 Oct 2021 17:07:51 GMT server: - Rocket status: @@ -965,7 +921,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:50:56 GMT + - Thu, 28 Oct 2021 17:07:56 GMT server: - Rocket status: @@ -997,7 +953,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:51:01 GMT + - Thu, 28 Oct 2021 17:08:00 GMT server: - Rocket status: @@ -1034,7 +990,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:51:05 GMT + - Thu, 28 Oct 2021 17:08:04 GMT server: - Rocket status: @@ -1066,7 +1022,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Oct 2021 17:51:09 GMT + - Thu, 28 Oct 2021 17:08:09 GMT server: - Rocket status: @@ -1098,7 +1054,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:51:14 GMT + - Thu, 28 Oct 2021 17:08:13 GMT server: - Rocket status: @@ -1130,7 +1086,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:51:18 GMT + - Thu, 28 Oct 2021 17:08:17 GMT server: - Rocket status: @@ -1167,7 +1123,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:51:22 GMT + - Thu, 28 Oct 2021 17:08:21 GMT server: - Rocket status: @@ -1204,7 +1160,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:51:26 GMT + - Thu, 28 Oct 2021 17:08:26 GMT server: - Rocket status: @@ -1236,7 +1192,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Oct 2021 17:51:31 GMT + - Thu, 28 Oct 2021 17:08:30 GMT server: - Rocket status: @@ -1268,7 +1224,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:51:35 GMT + - Thu, 28 Oct 2021 17:08:34 GMT server: - Rocket status: @@ -1300,7 +1256,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:51:40 GMT + - Thu, 28 Oct 2021 17:08:39 GMT server: - Rocket status: @@ -1332,7 +1288,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:51:44 GMT + - Thu, 28 Oct 2021 17:08:43 GMT server: - Rocket status: @@ -1364,7 +1320,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Oct 2021 17:51:48 GMT + - Thu, 28 Oct 2021 17:08:48 GMT server: - Rocket status: From b0241df4b634314fcb9ed91e76ff69fb9a48f2aa Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Tue, 2 Nov 2021 10:50:24 -0500 Subject: [PATCH 32/34] changed encryption_status to enc_status to match abbreviation convention --- src/vmware/azext_vmware/_params.py | 2 +- src/vmware/azext_vmware/custom.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vmware/azext_vmware/_params.py b/src/vmware/azext_vmware/_params.py index c8940e515ff..d20056d649d 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -48,7 +48,7 @@ def load_arguments(self, _): c.argument('name', options_list=['--name', '-n'], help='Name of the private cloud.') c.argument('avail_zone', help='The primary availability zone for the private cloud') c.argument('avail_secondary_zone', help='The secondary availability zone for the private cloud.') - c.argument('encryption_status', help='Status of customer managed encryption key. Possible values include "Enabled" and "Disabled".') + c.argument('enc_status', help='Status of customer managed encryption key. Possible values include "Enabled" and "Disabled".') c.argument('enc_kv_key_name', help='The name of the encryption key vault key.') c.argument('enc_kv_key_state', help='The state of encryption key vault key provided. Possible values include "Connected" and "AccessDenied".') c.argument('enc_kv_url', help='The URL of the encryption key vault.') diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index bbf7db20f32..f54f3d338e1 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -56,7 +56,7 @@ def privatecloud_create(client: AVSClient, resource_group_name, name, location, return client.private_clouds.begin_create_or_update(resource_group_name, name, cloud) -def privatecloud_update(client: AVSClient, resource_group_name, name, cluster_size=None, internet=None, avail_zone=None, avail_secondary_zone=None, identity_type=None, encryption_status=None, enc_kv_key_name=None, enc_kv_key_version=None, enc_kv_url=None, enc_kv_key_state=None, enc_kv_key_vs_type=None): +def privatecloud_update(client: AVSClient, resource_group_name, name, cluster_size=None, internet=None, avail_zone=None, avail_secondary_zone=None, identity_type=None, enc_status=None, enc_kv_key_name=None, enc_kv_key_version=None, enc_kv_url=None, enc_kv_key_state=None, enc_kv_key_vs_type=None): from azext_vmware.vendored_sdks.avs_client.models import PrivateCloudUpdate, ManagementCluster, PrivateCloudIdentity, AvailabilityProperties, Encryption, EncryptionKeyVaultProperties private_cloud_update = PrivateCloudUpdate() if cluster_size is not None: @@ -67,8 +67,8 @@ def privatecloud_update(client: AVSClient, resource_group_name, name, cluster_si private_cloud_update.availability = AvailabilityProperties(zone=avail_zone, secondary_zone=avail_secondary_zone) if type is not None: private_cloud_update.identity = PrivateCloudIdentity(type=identity_type) - if encryption_status is not None: - private_cloud_update.encryption = Encryption(status=encryption_status, key_vault_properties=EncryptionKeyVaultProperties(key_name=enc_kv_key_name, key_version=enc_kv_key_version, key_vault_url=enc_kv_url, key_state=enc_kv_key_state, version_type=enc_kv_key_vs_type)) + if enc_status is not None: + private_cloud_update.encryption = Encryption(status=enc_status, key_vault_properties=EncryptionKeyVaultProperties(key_name=enc_kv_key_name, key_version=enc_kv_key_version, key_vault_url=enc_kv_url, key_state=enc_kv_key_state, version_type=enc_kv_key_vs_type)) return client.private_clouds.begin_update(resource_group_name, name, private_cloud_update) From 8847a78011a5930431bfb1fc43bb73e7d26d2d43 Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Thu, 11 Nov 2021 10:13:24 -0600 Subject: [PATCH 33/34] added managed identity parameters, warning prompt for placement policy vm/vm host delete, updated private cloud methods --- pylintrc | 3 +- src/vmware/HISTORY.md | 9 ++- src/vmware/azext_vmware/_help.py | 46 ++++++++++- src/vmware/azext_vmware/_params.py | 36 +++++---- src/vmware/azext_vmware/commands.py | 15 +++- src/vmware/azext_vmware/custom.py | 80 +++++++++++++++---- .../tests/latest/recordings/test_vmware.yaml | 61 +++++++------- .../latest/recordings/test_vmware_addon.yaml | 31 ++++--- .../recordings/test_vmware_cloud_link.yaml | 8 +- .../recordings/test_vmware_datastores.yaml | 8 +- .../test_vmware_global_reach_connection.yaml | 23 +++--- .../latest/recordings/test_vmware_hcx.yaml | 27 +++---- .../test_vmware_placement_policy.yaml | 20 ++--- .../latest/recordings/test_vmware_script.yaml | 16 ++-- .../test_vmware_virtual_machines.yaml | 6 +- .../test_vmware_workload_network.yaml | 78 +++++++++--------- .../test_placement_policies_scenario.py | 4 +- .../tests/latest/test_vmware_scenario.py | 4 +- 18 files changed, 290 insertions(+), 185 deletions(-) diff --git a/pylintrc b/pylintrc index eae46315103..0f3c0b3fba4 100644 --- a/pylintrc +++ b/pylintrc @@ -16,7 +16,8 @@ disable= too-many-arguments, invalid-name, duplicate-code, - import-outside-toplevel + import-outside-toplevel, + too-many-lines [TYPECHECK] # For Azure CLI extensions, we ignore some import errors as they'll be available in the environment of the CLI diff --git a/src/vmware/HISTORY.md b/src/vmware/HISTORY.md index 3ec592a8f9c..cc9ceed7862 100644 --- a/src/vmware/HISTORY.md +++ b/src/vmware/HISTORY.md @@ -1,11 +1,18 @@ # Release History -## 4.0.0 (2021-12) +## 4.0.0 (2021-11) - Add `az vmware placement-policy` command group - Add `az vmware vm` command group - Updated `az vmware private-cloud create` with new Identity parameter - Updated `az vmware private-cloud update` with new Identity parameter +- Add `az vmware private-cloud add-availability-zone` +- Add `az vmware private-cloud delete-availability-zone` +- Add `az vmware private-cloud add-cmk-encryption` +- Add `az vmware private-cloud delete-cmk-encryption` +- [BREAKING CHANGE] `az vmware private-cloud listadmincredentials` has been updated to `az vmware private-cloud list-admin-credentials` +- [BREAKING CHANGE] `az vmware private-cloud addidentitysource` has been updated to `az vmware private-cloud add-identity-source` +- [BREAKING CHANGE] `az vmware private-cloud deleteidentitysource` has been updated to `az vmware private-cloud delete-identity-source` ## 3.2.0 (2021-10) diff --git a/src/vmware/azext_vmware/_help.py b/src/vmware/azext_vmware/_help.py index a51da2fa79e..0df897a8fc7 100644 --- a/src/vmware/azext_vmware/_help.py +++ b/src/vmware/azext_vmware/_help.py @@ -87,11 +87,51 @@ short-summary: Update a cluster in a private cloud. """ -helps['vmware private-cloud addidentitysource'] = """ +helps['vmware private-cloud add-identity-source'] = """ type: command short-summary: Add a vCenter Single Sign On Identity Source to a private cloud. """ +helps['vmware private-cloud add-availability-zone'] = """ + type: command + short-summary: Add an Availability Zone to a private cloud. +""" + +helps['vmware private-cloud delete-availability-zone'] = """ + type: command + short-summary: Delete an Availability Zone from a private cloud. +""" + +helps['vmware private-cloud add-cmk-encryption'] = """ + type: command + short-summary: Add a Customer Managed Keys Encryption to a private cloud. +""" + +helps['vmware private-cloud delete-cmk-encryption'] = """ + type: command + short-summary: Delete a Customer Managed Keys Encryption from a private cloud. +""" + +helps['vmware private-cloud identity'] = """ + type: group + short-summary: Commands for Managed Identity in a private cloud. +""" + +helps['vmware private-cloud identity assign'] = """ + type: command + short-summary: Assign a Managed Identity in a private cloud. +""" + +helps['vmware private-cloud identity remove'] = """ + type: command + short-summary: Remove a Managed Identity in a private cloud. +""" + +helps['vmware private-cloud identity show'] = """ + type: command + short-summary: Show Managed Identities in a private cloud. +""" + helps['vmware private-cloud create'] = """ type: command short-summary: Create a private cloud. @@ -102,7 +142,7 @@ short-summary: Delete a private cloud. """ -helps['vmware private-cloud deleteidentitysource'] = """ +helps['vmware private-cloud delete-identity-source'] = """ type: command short-summary: Delete a vCenter Single Sign On Identity Source for a private cloud. """ @@ -112,7 +152,7 @@ short-summary: List the private clouds. """ -helps['vmware private-cloud listadmincredentials'] = """ +helps['vmware private-cloud list-admin-credentials'] = """ type: command short-summary: List the admin credentials for the private cloud. """ diff --git a/src/vmware/azext_vmware/_params.py b/src/vmware/azext_vmware/_params.py index d20056d649d..aaeaa3556ba 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -21,11 +21,8 @@ def load_arguments(self, _): c.argument('private_cloud', options_list=['--private-cloud', '-c'], help='Name of the private cloud.') with self.argument_context('vmware private-cloud') as c: - c.argument('circuit_primary_subnet', help='A /30 subnet for the primary circuit in the Express Route to configure routing between your network and Microsoft\'s Enterprise edge (MSEEs) routers.') - c.argument('circuit_secondary_subnet', help='A /30 subnet for the secondary circuit in the Express Route to configure routing between your network and Microsoft\'s Enterprise edge (MSEEs) routers.') c.argument('cluster_size', help='Number of hosts for the default management cluster. Minimum of 3 and maximum of 16.') - c.argument('network_block', help='A subnet at least of size /22. Make sure the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22.') - c.argument('identity_type', help='The type of identity used for the private cloud. The type "SystemAssigned" refers to an implicitly created identity. The type "None" will remove any identities from the Private Cloud.') + c.argument('internet', help='Connectivity to internet. Specify "Enabled" or "Disabled".') with self.argument_context('vmware cluster') as c: c.argument('name', options_list=['--name', '-n'], help='Name of the cluster.') @@ -36,24 +33,17 @@ def load_arguments(self, _): with self.argument_context('vmware private-cloud create') as c: c.argument('name', options_list=['--name', '-n'], help='Name of the private cloud.') c.argument('sku', help='The product SKU.') - c.argument('internet', help='Connectivity to internet. Specify "Enabled" or "Disabled".') c.argument('vcenter_password', help='vCenter admin password.') c.argument('nsxt_password', help='NSX-T Manager password.') c.argument('accept_eula', help='Accept the end-user license agreement without prompting.') + c.argument('network_block', help='A subnet at least of size /22. Make sure the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22.') + c.argument('mi_system_assigned', help='Enables a system assigned identity.') with self.argument_context('vmware private-cloud show') as c: c.argument('name', options_list=['--name', '-n'], help='Name of the private cloud.') with self.argument_context('vmware private-cloud update') as c: c.argument('name', options_list=['--name', '-n'], help='Name of the private cloud.') - c.argument('avail_zone', help='The primary availability zone for the private cloud') - c.argument('avail_secondary_zone', help='The secondary availability zone for the private cloud.') - c.argument('enc_status', help='Status of customer managed encryption key. Possible values include "Enabled" and "Disabled".') - c.argument('enc_kv_key_name', help='The name of the encryption key vault key.') - c.argument('enc_kv_key_state', help='The state of encryption key vault key provided. Possible values include "Connected" and "AccessDenied".') - c.argument('enc_kv_url', help='The URL of the encryption key vault.') - c.argument('enc_kv_key_version', help='The version of the encryption key vault key.') - c.argument('enc_kv_key_vs_type', help='Property of the encryption key vault key if user provided or auto detected.') with self.argument_context('vmware private-cloud delete') as c: c.argument('name', options_list=['--name', '-n'], help='Name of the private cloud.') @@ -62,7 +52,18 @@ def load_arguments(self, _): with self.argument_context('vmware authorization') as c: c.argument('name', options_list=['--name', '-n'], help='Name of the authorization.') - with self.argument_context('vmware private-cloud addidentitysource') as c: + with self.argument_context('vmware private-cloud add-availability-zone') as c: + c.argument('strategy', help='The availability strategy for the private cloud. Possible values include: "SingleZone", "DualZone".') + c.argument('zone', help='The primary availability zone for the private cloud') + c.argument('secondary_zone', help='The secondary availability zone for the private cloud.') + + with self.argument_context('vmware private-cloud add-cmk-encryption') as c: + c.argument('enc_status', help='Status of customer managed encryption key. Possible values include "Enabled" and "Disabled".') + c.argument('enc_kv_key_name', help='The name of the encryption key vault key.') + c.argument('enc_kv_url', help='The URL of the encryption key vault.') + c.argument('enc_kv_key_version', help='The version of the encryption key vault key.') + + with self.argument_context('vmware private-cloud add-identity-source') as c: c.argument('alias', help='The domain\'s NetBIOS name.') c.argument('base_group_dn', help='The base distinguished name for groups.') c.argument('base_user_dn', help='The base distinguished name for users.') @@ -74,14 +75,16 @@ def load_arguments(self, _): c.argument('ssl', help='Protect LDAP communication using SSL certificate (LDAPS). Specify "Enabled" or "Disabled".') c.argument('username', help='The ID of an Active Directory user with a minimum of read-only access to Base DN for users and group.') - with self.argument_context('vmware private-cloud deleteidentitysource') as c: + with self.argument_context('vmware private-cloud delete-identity-source') as c: c.argument('alias', help='The domain\'s NetBIOS name.') c.argument('domain', help='The domain\'s dns name.') c.argument('name', options_list=['--name', '-n'], help='The name of the identity source.') + with self.argument_context('vmware private-cloud identity') as c: + c.argument('system_assigned', help='Enables a system assigned identity.') + with self.argument_context('vmware private-cloud update') as c: c.argument('name', options_list=['--name', '-n'], help='Name of the private cloud.') - c.argument('internet', help='Connectivity to internet. Specify "Enabled" or "Disabled".') with self.argument_context('vmware hcx-enterprise-site') as c: c.argument('name', options_list=['--name', '-n'], help='The name of the HCX Enterprise Site.') @@ -220,6 +223,7 @@ def load_arguments(self, _): c.argument('vm_members', nargs='+', help="Virtual machine members list.") c.argument('affinity_type', help="Placement policy affinity type. Possible values include: 'Affinity', 'AntiAffinity'.") c.argument('host_members', nargs='+', help='Host members list.') + c.argument('yes', help='Deletes without confirmation.') with self.argument_context('vmware vm') as c: c.argument('cluster_name', help='Name of the cluster in the private cloud.') diff --git a/src/vmware/azext_vmware/commands.py b/src/vmware/azext_vmware/commands.py index d0493289bb1..68a2b5c76a8 100644 --- a/src/vmware/azext_vmware/commands.py +++ b/src/vmware/azext_vmware/commands.py @@ -20,12 +20,21 @@ def load_command_table(self, _): g.custom_command('create', 'privatecloud_create') g.custom_command('update', 'privatecloud_update') g.custom_command('delete', 'privatecloud_delete') - g.custom_command('listadmincredentials', 'privatecloud_listadmincredentials') - g.custom_command('addidentitysource', 'privatecloud_addidentitysource') - g.custom_command('deleteidentitysource', 'privatecloud_deleteidentitysource') + g.custom_command('list-admin-credentials', 'privatecloud_listadmincredentials') + g.custom_command('add-identity-source', 'privatecloud_addidentitysource') + g.custom_command('delete-identity-source', 'privatecloud_deleteidentitysource') + g.custom_command('add-availability-zone', 'privatecloud_addavailabilityzone') + g.custom_command('delete-availability-zone', 'privatecloud_deleteavailabilityzone') + g.custom_command('add-cmk-encryption', 'privatecloud_addcmkencryption') + g.custom_command('delete-cmk-encryption', 'privatecloud_deletecmkenryption') g.custom_command('rotate-vcenter-password', 'privatecloud_rotate_vcenter_password') g.custom_command('rotate-nsxt-password', 'privatecloud_rotate_nsxt_password') + with self.command_group('vmware private-cloud identity', vmware_sdk, client_factory=cf_vmware) as g: + g.custom_command('assign', 'privatecloud_identity_assign') + g.custom_command('remove', 'privatecloud_identity_remove') + g.custom_show_command('show', 'privatecloud_identity_get') + with self.command_group('vmware cluster', vmware_sdk, client_factory=cf_vmware) as g: g.custom_command('create', 'cluster_create') g.custom_command('update', 'cluster_update') diff --git a/src/vmware/azext_vmware/custom.py b/src/vmware/azext_vmware/custom.py index f54f3d338e1..db99afef598 100644 --- a/src/vmware/azext_vmware/custom.py +++ b/src/vmware/azext_vmware/custom.py @@ -32,7 +32,7 @@ def privatecloud_show(client: AVSClient, resource_group_name, name): return client.private_clouds.get(resource_group_name, name) -def privatecloud_create(client: AVSClient, resource_group_name, name, location, sku, cluster_size, network_block, circuit_primary_subnet=None, circuit_secondary_subnet=None, internet=None, vcenter_password=None, nsxt_password=None, tags=None, accept_eula=False, identity_type=None): +def privatecloud_create(client: AVSClient, resource_group_name, name, sku, cluster_size, network_block, location=None, internet=None, vcenter_password=None, nsxt_password=None, tags=None, accept_eula=False, mi_system_assigned=False): from knack.prompting import prompt_y_n if not accept_eula: print(LEGAL_TERMS) @@ -41,12 +41,13 @@ def privatecloud_create(client: AVSClient, resource_group_name, name, location, return None from azext_vmware.vendored_sdks.avs_client.models import PrivateCloud, Circuit, ManagementCluster, Sku, PrivateCloudIdentity - if circuit_primary_subnet is not None or circuit_secondary_subnet is not None: - circuit = Circuit(primary_subnet=circuit_primary_subnet, secondary_subnet=circuit_secondary_subnet) - else: - circuit = None - management_cluster = ManagementCluster(cluster_size=cluster_size) - cloud = PrivateCloud(location=location, sku=Sku(name=sku), circuit=circuit, management_cluster=management_cluster, network_block=network_block, tags=tags, identity=PrivateCloudIdentity(type=identity_type)) + cloud = PrivateCloud(sku=Sku(name=sku), ciruit=Circuit(), management_cluster=ManagementCluster(cluster_size=cluster_size), network_block=network_block) + if location is not None: + cloud.location = location + if tags is not None: + cloud.tags = tags + if mi_system_assigned: + cloud.identity = PrivateCloudIdentity(type='SystemAssigned') if internet is not None: cloud.internet = internet if vcenter_password is not None: @@ -56,19 +57,15 @@ def privatecloud_create(client: AVSClient, resource_group_name, name, location, return client.private_clouds.begin_create_or_update(resource_group_name, name, cloud) -def privatecloud_update(client: AVSClient, resource_group_name, name, cluster_size=None, internet=None, avail_zone=None, avail_secondary_zone=None, identity_type=None, enc_status=None, enc_kv_key_name=None, enc_kv_key_version=None, enc_kv_url=None, enc_kv_key_state=None, enc_kv_key_vs_type=None): - from azext_vmware.vendored_sdks.avs_client.models import PrivateCloudUpdate, ManagementCluster, PrivateCloudIdentity, AvailabilityProperties, Encryption, EncryptionKeyVaultProperties +def privatecloud_update(client: AVSClient, resource_group_name, name, cluster_size=None, internet=None, tags=None): + from azext_vmware.vendored_sdks.avs_client.models import PrivateCloudUpdate, ManagementCluster private_cloud_update = PrivateCloudUpdate() + if tags is not None: + private_cloud_update.tags = tags if cluster_size is not None: private_cloud_update.management_cluster = ManagementCluster(cluster_size=cluster_size) if internet is not None: private_cloud_update.internet = internet - if avail_zone is not None: - private_cloud_update.availability = AvailabilityProperties(zone=avail_zone, secondary_zone=avail_secondary_zone) - if type is not None: - private_cloud_update.identity = PrivateCloudIdentity(type=identity_type) - if enc_status is not None: - private_cloud_update.encryption = Encryption(status=enc_status, key_vault_properties=EncryptionKeyVaultProperties(key_name=enc_kv_key_name, key_version=enc_kv_key_version, key_vault_url=enc_kv_url, key_state=enc_kv_key_state, version_type=enc_kv_key_vs_type)) return client.private_clouds.begin_update(resource_group_name, name, private_cloud_update) @@ -104,6 +101,53 @@ def privatecloud_deleteidentitysource(client: AVSClient, resource_group_name, na return pc +def privatecloud_addavailabilityzone(client: AVSClient, resource_group_name, private_cloud, strategy=None, zone=None, secondary_zone=None): + from azext_vmware.vendored_sdks.avs_client.models import AvailabilityProperties, PrivateCloudUpdate + pc = PrivateCloudUpdate() + pc.availability = AvailabilityProperties(strategy=strategy, zone=zone, secondary_zone=secondary_zone) + return client.private_clouds.begin_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, private_cloud_update=pc) + + +def privatecloud_deleteavailabilityzone(client: AVSClient, resource_group_name, private_cloud): + from azext_vmware.vendored_sdks.avs_client.models import PrivateCloudUpdate + pc = PrivateCloudUpdate() + pc.availability = None + return client.private_clouds.begin_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, private_cloud_update=pc) + + +def privatecloud_addcmkencryption(client: AVSClient, resource_group_name, private_cloud, enc_status=None, enc_kv_key_name=None, enc_kv_key_version=None, enc_kv_url=None): + from azext_vmware.vendored_sdks.avs_client.models import Encryption, EncryptionKeyVaultProperties, PrivateCloudUpdate + pc = PrivateCloudUpdate() + pc.encryption = Encryption(status=enc_status, key_vault_properties=EncryptionKeyVaultProperties(key_name=enc_kv_key_name, key_version=enc_kv_key_version, key_vault_url=enc_kv_url)) + return client.private_clouds.begin_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, private_cloud_update=pc) + + +def privatecloud_deletecmkenryption(client: AVSClient, resource_group_name, private_cloud): + from azext_vmware.vendored_sdks.avs_client.models import PrivateCloudUpdate + pc = PrivateCloudUpdate() + pc.encryption = None + return client.private_clouds.begin_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, private_cloud_update=pc) + + +def privatecloud_identity_assign(client: AVSClient, resource_group_name, private_cloud, system_assigned=False): + from azext_vmware.vendored_sdks.avs_client.models import PrivateCloudIdentity, PrivateCloudUpdate + pc = PrivateCloudUpdate() + if system_assigned: + pc.identity = PrivateCloudIdentity(type="SystemAssigned") + return client.private_clouds.begin_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, private_cloud_update=pc) + + +def privatecloud_identity_remove(client: AVSClient, resource_group_name, private_cloud): + from azext_vmware.vendored_sdks.avs_client.models import PrivateCloudIdentity, PrivateCloudUpdate + pc = PrivateCloudUpdate() + pc.identity = PrivateCloudIdentity(type=None) + return client.private_clouds.begin_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, private_cloud_update=pc) + + +def privatecloud_identity_get(client: AVSClient, resource_group_name, private_cloud): + return client.private_clouds.get(resource_group_name, private_cloud).identity + + def privatecloud_rotate_vcenter_password(client: AVSClient, resource_group_name, private_cloud): return client.private_clouds.begin_rotate_vcenter_password(resource_group_name=resource_group_name, private_cloud_name=private_cloud) @@ -564,7 +608,11 @@ def placement_policy_update(client: AVSClient, resource_group_name, private_clou return client.placement_policies.begin_update(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster_name, placement_policy_name=placement_policy_name, placement_policy_update=props) -def placement_policy_delete(client: AVSClient, resource_group_name, private_cloud, cluster_name, placement_policy_name): +def placement_policy_delete(client: AVSClient, resource_group_name, private_cloud, cluster_name, placement_policy_name, yes=False): + from knack.prompting import prompt_y_n + msg = 'This will delete the placement policy. Are you sure?' + if not yes and not prompt_y_n(msg, default="n"): + return None return client.placement_policies.begin_delete(resource_group_name=resource_group_name, private_cloud_name=private_cloud, cluster_name=cluster_name, placement_policy_name=placement_policy_name) diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml index 3698cfc6969..7abb07c925c 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware.yaml @@ -27,7 +27,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:04 GMT + - Thu, 11 Nov 2021 15:54:47 GMT server: - Rocket status: @@ -61,7 +61,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:08 GMT + - Thu, 11 Nov 2021 15:54:51 GMT server: - Rocket status: @@ -93,16 +93,16 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:12 GMT + - Thu, 11 Nov 2021 15:54:55 GMT server: - Rocket status: code: 200 message: OK - request: - body: '{"location": "centralus", "sku": {"name": "av20"}, "identity": {}, "properties": - {"managementCluster": {"clusterSize": 3}, "internet": "Disabled", "networkBlock": - "192.168.48.0/22", "vcenterPassword": "UpfBXae9ZquZSDXk(", "nsxtPassword": "5rqdLj4GF3cePUe6("}}' + body: '{"location": "centralus", "sku": {"name": "av20"}, "properties": {"managementCluster": + {"clusterSize": 3}, "internet": "Disabled", "networkBlock": "192.168.48.0/22", + "vcenterPassword": "UpfBXae9ZquZSDXk(", "nsxtPassword": "5rqdLj4GF3cePUe6("}}' headers: Accept: - application/json @@ -113,7 +113,7 @@ interactions: Connection: - keep-alive Content-Length: - - '259' + - '243' Content-Type: - application/json ParameterSetName: @@ -132,7 +132,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:17 GMT + - Thu, 11 Nov 2021 15:55:00 GMT server: - Rocket status: @@ -164,7 +164,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:21 GMT + - Thu, 11 Nov 2021 15:55:04 GMT server: - Rocket status: @@ -196,7 +196,7 @@ interactions: content-length: - '0' date: - - Thu, 28 Oct 2021 17:06:25 GMT + - Thu, 11 Nov 2021 15:55:08 GMT server: - Rocket status: @@ -228,15 +228,14 @@ interactions: content-length: - '0' date: - - Thu, 28 Oct 2021 17:06:29 GMT + - Thu, 11 Nov 2021 15:55:12 GMT server: - Rocket status: code: 202 message: Accepted - request: - body: '{"identity": {}, "properties": {"managementCluster": {"clusterSize": 4}, - "internet": "Disabled"}}' + body: '{"properties": {"managementCluster": {"clusterSize": 4}, "internet": "Disabled"}}' headers: Accept: - application/json @@ -247,7 +246,7 @@ interactions: Connection: - keep-alive Content-Length: - - '97' + - '81' Content-Type: - application/json ParameterSetName: @@ -265,14 +264,14 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:34 GMT + - Thu, 11 Nov 2021 15:55:17 GMT server: - Rocket status: code: 200 message: OK - request: - body: '{"identity": {}, "properties": {"internet": "Enabled"}}' + body: '{"properties": {"internet": "Enabled"}}' headers: Accept: - application/json @@ -283,7 +282,7 @@ interactions: Connection: - keep-alive Content-Length: - - '55' + - '39' Content-Type: - application/json ParameterSetName: @@ -301,7 +300,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:38 GMT + - Thu, 11 Nov 2021 15:55:21 GMT server: - Rocket status: @@ -337,7 +336,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:42 GMT + - Thu, 11 Nov 2021 15:55:25 GMT server: - Rocket status: @@ -369,7 +368,7 @@ interactions: content-length: - '0' date: - - Thu, 28 Oct 2021 17:06:47 GMT + - Thu, 11 Nov 2021 15:55:29 GMT server: - Rocket status: @@ -383,7 +382,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - vmware private-cloud addidentitysource + - vmware private-cloud add-identity-source Connection: - keep-alive ParameterSetName: @@ -402,7 +401,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:51 GMT + - Thu, 11 Nov 2021 15:55:34 GMT server: - Rocket status: @@ -429,7 +428,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - vmware private-cloud addidentitysource + - vmware private-cloud add-identity-source Connection: - keep-alive Content-Length: @@ -452,7 +451,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:51 GMT + - Thu, 11 Nov 2021 15:55:34 GMT server: - Rocket status: @@ -466,7 +465,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - vmware private-cloud deleteidentitysource + - vmware private-cloud delete-identity-source Connection: - keep-alive ParameterSetName: @@ -484,7 +483,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:55 GMT + - Thu, 11 Nov 2021 15:55:38 GMT server: - Rocket status: @@ -516,7 +515,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:59 GMT + - Thu, 11 Nov 2021 15:55:42 GMT server: - Rocket status: @@ -553,7 +552,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:07:04 GMT + - Thu, 11 Nov 2021 15:55:47 GMT server: - Rocket status: @@ -585,7 +584,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:07:08 GMT + - Thu, 11 Nov 2021 15:55:51 GMT server: - Rocket status: @@ -621,7 +620,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:07:12 GMT + - Thu, 11 Nov 2021 15:55:55 GMT server: - Rocket status: @@ -653,7 +652,7 @@ interactions: content-length: - '0' date: - - Thu, 28 Oct 2021 17:07:17 GMT + - Thu, 11 Nov 2021 15:56:00 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml index c2ba677cb22..ce2bb121110 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_addon.yaml @@ -1,8 +1,7 @@ interactions: - request: - body: '{"location": "northcentralus", "sku": {"name": "av20"}, "identity": {}, - "properties": {"managementCluster": {"clusterSize": 4}, "internet": "Disabled", - "networkBlock": "192.168.48.0/22"}}' + body: '{"location": "northcentralus", "sku": {"name": "av20"}, "properties": {"managementCluster": + {"clusterSize": 4}, "internet": "Disabled", "networkBlock": "192.168.48.0/22"}}' headers: Accept: - application/json @@ -13,7 +12,7 @@ interactions: Connection: - keep-alive Content-Length: - - '187' + - '171' Content-Type: - application/json ParameterSetName: @@ -31,7 +30,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:04:55 GMT + - Thu, 11 Nov 2021 15:53:39 GMT server: - Rocket status: @@ -63,7 +62,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:00 GMT + - Thu, 11 Nov 2021 15:53:43 GMT server: - Rocket status: @@ -99,7 +98,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:04 GMT + - Thu, 11 Nov 2021 15:53:47 GMT server: - Rocket status: @@ -131,7 +130,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:08 GMT + - Thu, 11 Nov 2021 15:53:52 GMT server: - Rocket status: @@ -163,7 +162,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:12 GMT + - Thu, 11 Nov 2021 15:53:56 GMT server: - Rocket status: @@ -195,7 +194,7 @@ interactions: content-length: - '0' date: - - Thu, 28 Oct 2021 17:05:17 GMT + - Thu, 11 Nov 2021 15:54:00 GMT server: - Rocket status: @@ -227,7 +226,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:21 GMT + - Thu, 11 Nov 2021 15:54:04 GMT server: - Rocket status: @@ -263,7 +262,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:25 GMT + - Thu, 11 Nov 2021 15:54:09 GMT server: - Rocket status: @@ -295,7 +294,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:30 GMT + - Thu, 11 Nov 2021 15:54:13 GMT server: - Rocket status: @@ -327,7 +326,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:34 GMT + - Thu, 11 Nov 2021 15:54:17 GMT server: - Rocket status: @@ -359,7 +358,7 @@ interactions: content-length: - '0' date: - - Thu, 28 Oct 2021 17:05:38 GMT + - Thu, 11 Nov 2021 15:54:21 GMT server: - Rocket status: @@ -391,7 +390,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:42 GMT + - Thu, 11 Nov 2021 15:54:26 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml index 4e8fd347ba5..db1534ca329 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_cloud_link.yaml @@ -29,7 +29,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:04:55 GMT + - Thu, 11 Nov 2021 15:53:39 GMT server: - Rocket status: @@ -61,7 +61,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:00 GMT + - Thu, 11 Nov 2021 15:53:43 GMT server: - Rocket status: @@ -93,7 +93,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:04 GMT + - Thu, 11 Nov 2021 15:53:47 GMT server: - Rocket status: @@ -125,7 +125,7 @@ interactions: content-length: - '0' date: - - Thu, 28 Oct 2021 17:05:08 GMT + - Thu, 11 Nov 2021 15:53:52 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml index 373a4d0b117..1c7875bcbdd 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_datastores.yaml @@ -30,7 +30,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:04:55 GMT + - Thu, 11 Nov 2021 15:53:39 GMT server: - Rocket status: @@ -62,7 +62,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:00 GMT + - Thu, 11 Nov 2021 15:53:43 GMT server: - Rocket status: @@ -94,7 +94,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:04 GMT + - Thu, 11 Nov 2021 15:53:47 GMT server: - Rocket status: @@ -126,7 +126,7 @@ interactions: content-length: - '0' date: - - Thu, 28 Oct 2021 17:05:08 GMT + - Thu, 11 Nov 2021 15:53:52 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml index 07aef8f87f5..d2b7cbf9061 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_global_reach_connection.yaml @@ -1,9 +1,8 @@ interactions: - request: - body: '{"location": "westcentralus", "sku": {"name": "av20"}, "identity": {}, - "properties": {"managementCluster": {"clusterSize": 4}, "internet": "Disabled", - "networkBlock": "192.168.48.0/22", "vcenterPassword": "UpfBXae9ZquZSDXk", "nsxtPassword": - "5rqdLj4GF3cePUe6"}}' + body: '{"location": "westcentralus", "sku": {"name": "av20"}, "properties": {"managementCluster": + {"clusterSize": 4}, "internet": "Disabled", "networkBlock": "192.168.48.0/22", + "vcenterPassword": "UpfBXae9ZquZSDXk", "nsxtPassword": "5rqdLj4GF3cePUe6"}}' headers: Accept: - application/json @@ -14,7 +13,7 @@ interactions: Connection: - keep-alive Content-Length: - - '261' + - '245' Content-Type: - application/json ParameterSetName: @@ -33,7 +32,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:04:55 GMT + - Thu, 11 Nov 2021 15:53:39 GMT server: - Rocket status: @@ -65,7 +64,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:00 GMT + - Thu, 11 Nov 2021 15:53:43 GMT server: - Rocket status: @@ -103,7 +102,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:04 GMT + - Thu, 11 Nov 2021 15:53:47 GMT server: - Rocket status: @@ -135,7 +134,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:08 GMT + - Thu, 11 Nov 2021 15:53:52 GMT server: - Rocket status: @@ -167,7 +166,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:12 GMT + - Thu, 11 Nov 2021 15:53:56 GMT server: - Rocket status: @@ -199,7 +198,7 @@ interactions: content-length: - '0' date: - - Thu, 28 Oct 2021 17:05:17 GMT + - Thu, 11 Nov 2021 15:54:00 GMT server: - Rocket status: @@ -231,7 +230,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:21 GMT + - Thu, 11 Nov 2021 15:54:04 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml index 37a86fff12e..48d120e1038 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_hcx.yaml @@ -1,9 +1,8 @@ interactions: - request: - body: '{"location": "westcentralus", "sku": {"name": "av20"}, "identity": {}, - "properties": {"managementCluster": {"clusterSize": 4}, "internet": "Disabled", - "networkBlock": "192.168.48.0/22", "vcenterPassword": "UpfBXae9ZquZSDXk(", "nsxtPassword": - "5rqdLj4GF3cePUe6("}}' + body: '{"location": "westcentralus", "sku": {"name": "av20"}, "properties": {"managementCluster": + {"clusterSize": 4}, "internet": "Disabled", "networkBlock": "192.168.48.0/22", + "vcenterPassword": "UpfBXae9ZquZSDXk(", "nsxtPassword": "5rqdLj4GF3cePUe6("}}' headers: Accept: - application/json @@ -14,7 +13,7 @@ interactions: Connection: - keep-alive Content-Length: - - '263' + - '247' Content-Type: - application/json ParameterSetName: @@ -33,7 +32,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:55 GMT + - Thu, 11 Nov 2021 15:54:38 GMT server: - Rocket status: @@ -69,7 +68,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:59 GMT + - Thu, 11 Nov 2021 15:54:43 GMT server: - Rocket status: @@ -101,7 +100,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:04 GMT + - Thu, 11 Nov 2021 15:54:47 GMT server: - Rocket status: @@ -133,7 +132,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:08 GMT + - Thu, 11 Nov 2021 15:54:51 GMT server: - Rocket status: @@ -169,7 +168,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:12 GMT + - Thu, 11 Nov 2021 15:54:55 GMT server: - Rocket status: @@ -201,7 +200,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:17 GMT + - Thu, 11 Nov 2021 15:55:00 GMT server: - Rocket status: @@ -233,7 +232,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:21 GMT + - Thu, 11 Nov 2021 15:55:04 GMT server: - Rocket status: @@ -265,7 +264,7 @@ interactions: content-length: - '0' date: - - Thu, 28 Oct 2021 17:06:25 GMT + - Thu, 11 Nov 2021 15:55:08 GMT server: - Rocket status: @@ -297,7 +296,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:29 GMT + - Thu, 11 Nov 2021 15:55:12 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_placement_policy.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_placement_policy.yaml index 1067a5d591e..9d6b8465c70 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_placement_policy.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_placement_policy.yaml @@ -25,7 +25,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:21 GMT + - Thu, 11 Nov 2021 15:54:04 GMT server: - Rocket status: @@ -57,7 +57,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:25 GMT + - Thu, 11 Nov 2021 15:54:09 GMT server: - Rocket status: @@ -96,7 +96,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:29 GMT + - Thu, 11 Nov 2021 15:54:13 GMT server: - Rocket status: @@ -134,7 +134,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:34 GMT + - Thu, 11 Nov 2021 15:54:17 GMT server: - Rocket status: @@ -154,7 +154,7 @@ interactions: Content-Length: - '0' ParameterSetName: - - --resource-group --private-cloud --cluster-name --placement-policy-name + - --resource-group --private-cloud --cluster-name --placement-policy-name --yes User-Agent: - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: DELETE @@ -166,7 +166,7 @@ interactions: content-length: - '0' date: - - Thu, 28 Oct 2021 17:05:38 GMT + - Thu, 11 Nov 2021 15:54:21 GMT server: - Rocket status: @@ -204,7 +204,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:42 GMT + - Thu, 11 Nov 2021 15:54:26 GMT server: - Rocket status: @@ -241,7 +241,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:47 GMT + - Thu, 11 Nov 2021 15:54:30 GMT server: - Rocket status: @@ -261,7 +261,7 @@ interactions: Content-Length: - '0' ParameterSetName: - - --resource-group --private-cloud --cluster-name --placement-policy-name + - --resource-group --private-cloud --cluster-name --placement-policy-name --yes User-Agent: - AZURECLI/2.27.1 azsdk-python-mgmt-avs/0.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: DELETE @@ -273,7 +273,7 @@ interactions: content-length: - '0' date: - - Thu, 28 Oct 2021 17:05:51 GMT + - Thu, 11 Nov 2021 15:54:34 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml index 4953e027bbe..3f59e7f9719 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_script.yaml @@ -27,7 +27,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:21 GMT + - Thu, 11 Nov 2021 15:54:04 GMT server: - Rocket status: @@ -60,7 +60,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:25 GMT + - Thu, 11 Nov 2021 15:54:09 GMT server: - Rocket status: @@ -99,7 +99,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:30 GMT + - Thu, 11 Nov 2021 15:54:13 GMT server: - Rocket status: @@ -135,7 +135,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:34 GMT + - Thu, 11 Nov 2021 15:54:17 GMT server: - Rocket status: @@ -178,7 +178,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:38 GMT + - Thu, 11 Nov 2021 15:54:21 GMT server: - Rocket status: @@ -211,7 +211,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:42 GMT + - Thu, 11 Nov 2021 15:54:26 GMT server: - Rocket status: @@ -244,7 +244,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:47 GMT + - Thu, 11 Nov 2021 15:54:30 GMT server: - Rocket status: @@ -276,7 +276,7 @@ interactions: content-length: - '0' date: - - Thu, 28 Oct 2021 17:05:51 GMT + - Thu, 11 Nov 2021 15:54:34 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_virtual_machines.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_virtual_machines.yaml index 5310a17a636..bdd5362a5d9 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_virtual_machines.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_virtual_machines.yaml @@ -25,7 +25,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:34 GMT + - Thu, 11 Nov 2021 15:54:17 GMT server: - Rocket status: @@ -57,7 +57,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:05:38 GMT + - Thu, 11 Nov 2021 15:54:21 GMT server: - Rocket status: @@ -91,7 +91,7 @@ interactions: content-length: - '0' date: - - Thu, 28 Oct 2021 17:05:42 GMT + - Thu, 11 Nov 2021 15:54:26 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml index 80b38a61e42..a9fc5a7a463 100644 --- a/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml +++ b/src/vmware/azext_vmware/tests/latest/recordings/test_vmware_workload_network.yaml @@ -25,7 +25,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:04 GMT + - Thu, 11 Nov 2021 15:54:47 GMT server: - Rocket status: @@ -57,7 +57,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:08 GMT + - Thu, 11 Nov 2021 15:54:51 GMT server: - Rocket status: @@ -94,7 +94,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:12 GMT + - Thu, 11 Nov 2021 15:54:55 GMT server: - Rocket status: @@ -126,7 +126,7 @@ interactions: content-length: - '0' date: - - Thu, 28 Oct 2021 17:06:17 GMT + - Thu, 11 Nov 2021 15:55:00 GMT server: - Rocket status: @@ -163,7 +163,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:21 GMT + - Thu, 11 Nov 2021 15:55:04 GMT server: - Rocket status: @@ -201,7 +201,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:25 GMT + - Thu, 11 Nov 2021 15:55:08 GMT server: - Rocket status: @@ -233,7 +233,7 @@ interactions: content-length: - '0' date: - - Thu, 28 Oct 2021 17:06:29 GMT + - Thu, 11 Nov 2021 15:55:12 GMT server: - Rocket status: @@ -271,7 +271,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:34 GMT + - Thu, 11 Nov 2021 15:55:17 GMT server: - Rocket status: @@ -303,7 +303,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:38 GMT + - Thu, 11 Nov 2021 15:55:21 GMT server: - Rocket status: @@ -335,7 +335,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:42 GMT + - Thu, 11 Nov 2021 15:55:25 GMT server: - Rocket status: @@ -374,7 +374,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:47 GMT + - Thu, 11 Nov 2021 15:55:29 GMT server: - Rocket status: @@ -413,7 +413,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:51 GMT + - Thu, 11 Nov 2021 15:55:34 GMT server: - Rocket status: @@ -445,7 +445,7 @@ interactions: content-length: - '0' date: - - Thu, 28 Oct 2021 17:06:55 GMT + - Thu, 11 Nov 2021 15:55:38 GMT server: - Rocket status: @@ -477,7 +477,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:06:59 GMT + - Thu, 11 Nov 2021 15:55:42 GMT server: - Rocket status: @@ -509,7 +509,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:07:04 GMT + - Thu, 11 Nov 2021 15:55:46 GMT server: - Rocket status: @@ -548,7 +548,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:07:08 GMT + - Thu, 11 Nov 2021 15:55:51 GMT server: - Rocket status: @@ -587,7 +587,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:07:12 GMT + - Thu, 11 Nov 2021 15:55:55 GMT server: - Rocket status: @@ -619,7 +619,7 @@ interactions: content-length: - '0' date: - - Thu, 28 Oct 2021 17:07:17 GMT + - Thu, 11 Nov 2021 15:56:00 GMT server: - Rocket status: @@ -651,7 +651,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:07:21 GMT + - Thu, 11 Nov 2021 15:56:04 GMT server: - Rocket status: @@ -683,7 +683,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:07:25 GMT + - Thu, 11 Nov 2021 15:56:08 GMT server: - Rocket status: @@ -715,7 +715,7 @@ interactions: content-length: - '0' date: - - Thu, 28 Oct 2021 17:07:30 GMT + - Thu, 11 Nov 2021 15:56:12 GMT server: - Rocket status: @@ -747,7 +747,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:07:34 GMT + - Thu, 11 Nov 2021 15:56:17 GMT server: - Rocket status: @@ -779,7 +779,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:07:38 GMT + - Thu, 11 Nov 2021 15:56:21 GMT server: - Rocket status: @@ -818,7 +818,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:07:43 GMT + - Thu, 11 Nov 2021 15:56:25 GMT server: - Rocket status: @@ -857,7 +857,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:07:47 GMT + - Thu, 11 Nov 2021 15:56:30 GMT server: - Rocket status: @@ -889,7 +889,7 @@ interactions: content-length: - '0' date: - - Thu, 28 Oct 2021 17:07:51 GMT + - Thu, 11 Nov 2021 15:56:34 GMT server: - Rocket status: @@ -921,7 +921,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:07:56 GMT + - Thu, 11 Nov 2021 15:56:38 GMT server: - Rocket status: @@ -953,7 +953,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:08:00 GMT + - Thu, 11 Nov 2021 15:56:42 GMT server: - Rocket status: @@ -990,7 +990,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:08:04 GMT + - Thu, 11 Nov 2021 15:56:47 GMT server: - Rocket status: @@ -1022,7 +1022,7 @@ interactions: content-length: - '0' date: - - Thu, 28 Oct 2021 17:08:09 GMT + - Thu, 11 Nov 2021 15:56:51 GMT server: - Rocket status: @@ -1054,7 +1054,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:08:13 GMT + - Thu, 11 Nov 2021 15:56:55 GMT server: - Rocket status: @@ -1086,7 +1086,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:08:17 GMT + - Thu, 11 Nov 2021 15:57:00 GMT server: - Rocket status: @@ -1123,7 +1123,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:08:21 GMT + - Thu, 11 Nov 2021 15:57:04 GMT server: - Rocket status: @@ -1160,7 +1160,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:08:26 GMT + - Thu, 11 Nov 2021 15:57:08 GMT server: - Rocket status: @@ -1192,7 +1192,7 @@ interactions: content-length: - '0' date: - - Thu, 28 Oct 2021 17:08:30 GMT + - Thu, 11 Nov 2021 15:57:12 GMT server: - Rocket status: @@ -1224,7 +1224,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:08:34 GMT + - Thu, 11 Nov 2021 15:57:17 GMT server: - Rocket status: @@ -1256,7 +1256,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:08:39 GMT + - Thu, 11 Nov 2021 15:57:21 GMT server: - Rocket status: @@ -1288,7 +1288,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:08:43 GMT + - Thu, 11 Nov 2021 15:57:25 GMT server: - Rocket status: @@ -1320,7 +1320,7 @@ interactions: content-type: - application/json date: - - Thu, 28 Oct 2021 17:08:48 GMT + - Thu, 11 Nov 2021 15:57:30 GMT server: - Rocket status: diff --git a/src/vmware/azext_vmware/tests/latest/test_placement_policies_scenario.py b/src/vmware/azext_vmware/tests/latest/test_placement_policies_scenario.py index 893e9d07ae5..3898f8da9fb 100644 --- a/src/vmware/azext_vmware/tests/latest/test_placement_policies_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_placement_policies_scenario.py @@ -38,7 +38,7 @@ def test_vmware_placement_policy(self): placementPolicyVmHostUpdate = self.cmd('az vmware placement-policy vm-host update --resource-group {rg} --private-cloud {privatecloud} --cluster-name {cluster_name} --placement-policy-name {placement_policy_name} --state {state} --vm-members {vm_members} --host-members {host_members}').get_output_in_json() self.assertEqual(placementPolicyVmHostUpdate['name'], 'policy1') - placementPolicyVmHostDelete = self.cmd('az vmware placement-policy vm-host delete --resource-group {rg} --private-cloud {privatecloud} --cluster-name {cluster_name} --placement-policy-name {placement_policy_name}').output + placementPolicyVmHostDelete = self.cmd('az vmware placement-policy vm-host delete --resource-group {rg} --private-cloud {privatecloud} --cluster-name {cluster_name} --placement-policy-name {placement_policy_name} --yes').output self.assertEqual(len(placementPolicyVmHostDelete), 0) placementPolicyVmCreate = self.cmd('az vmware placement-policy vm create --resource-group {rg} --private-cloud {privatecloud} --cluster-name {cluster_name} --placement-policy-name {placement_policy_name} --state {state} --display-name {display_name} --vm-members {vm_members} --affinity-type {affinity_type}').get_output_in_json() @@ -47,5 +47,5 @@ def test_vmware_placement_policy(self): placementPolicyVmUpdate = self.cmd('az vmware placement-policy vm update --resource-group {rg} --private-cloud {privatecloud} --cluster-name {cluster_name} --placement-policy-name {placement_policy_name} --state {state} --vm-members {vm_members}').get_output_in_json() self.assertEqual(placementPolicyVmUpdate['name'], 'policy1') - placementPolicyVmDelete = self.cmd('az vmware placement-policy vm delete --resource-group {rg} --private-cloud {privatecloud} --cluster-name {cluster_name} --placement-policy-name {placement_policy_name}').output + placementPolicyVmDelete = self.cmd('az vmware placement-policy vm delete --resource-group {rg} --private-cloud {privatecloud} --cluster-name {cluster_name} --placement-policy-name {placement_policy_name} --yes').output self.assertEqual(len(placementPolicyVmDelete), 0) \ No newline at end of file diff --git a/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py b/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py index 725d0660cb7..6b085a93f78 100644 --- a/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py +++ b/src/vmware/azext_vmware/tests/latest/test_vmware_scenario.py @@ -70,10 +70,10 @@ def test_vmware(self): self.cmd('vmware authorization delete -g {rg} -c {privatecloud} -n myauthname') # add identity source - self.cmd('vmware private-cloud addidentitysource -g {rg} -c {privatecloud} -n groupName --alias groupAlias --domain domain --base-user-dn "ou=baseUser" --base-group-dn "ou=baseGroup" --primary-server ldaps://1.1.1.1:636 --username someone --password something') + self.cmd('vmware private-cloud add-identity-source -g {rg} -c {privatecloud} -n groupName --alias groupAlias --domain domain --base-user-dn "ou=baseUser" --base-group-dn "ou=baseGroup" --primary-server ldaps://1.1.1.1:636 --username someone --password something') # delete identity source - self.cmd('vmware private-cloud deleteidentitysource -g {rg} -c {privatecloud} -n groupName --alias groupAlias --domain domain') + self.cmd('vmware private-cloud delete-identity-source -g {rg} -c {privatecloud} -n groupName --alias groupAlias --domain domain') # cluster list should report 0 count = len(self.cmd('vmware cluster list -g {rg} -c {privatecloud}').get_output_in_json()) From 5343115be58417c86714829ef89a12e742c05047 Mon Sep 17 00:00:00 2001 From: Jonathan He Date: Fri, 12 Nov 2021 14:09:06 -0600 Subject: [PATCH 34/34] deprecated listadmincredentials, addidentitysource,deleteidentitysource --- src/vmware/HISTORY.md | 9 ++++++--- src/vmware/azext_vmware/_help.py | 15 +++++++++++++++ src/vmware/azext_vmware/_params.py | 21 +++++++++++++++++++-- src/vmware/azext_vmware/commands.py | 3 +++ 4 files changed, 43 insertions(+), 5 deletions(-) diff --git a/src/vmware/HISTORY.md b/src/vmware/HISTORY.md index cc9ceed7862..83b3892a807 100644 --- a/src/vmware/HISTORY.md +++ b/src/vmware/HISTORY.md @@ -10,9 +10,12 @@ - Add `az vmware private-cloud delete-availability-zone` - Add `az vmware private-cloud add-cmk-encryption` - Add `az vmware private-cloud delete-cmk-encryption` -- [BREAKING CHANGE] `az vmware private-cloud listadmincredentials` has been updated to `az vmware private-cloud list-admin-credentials` -- [BREAKING CHANGE] `az vmware private-cloud addidentitysource` has been updated to `az vmware private-cloud add-identity-source` -- [BREAKING CHANGE] `az vmware private-cloud deleteidentitysource` has been updated to `az vmware private-cloud delete-identity-source` +- Add `az vmware private-cloud list-admin-credentials` +- Add `az vmware private-cloud add-identity-source` +- Add `az vmware private-cloud delete-identity-source` +- Deprecate `az vmware private-cloud listadmincredentials` +- Deprecate `az vmware private-cloud addidentitysource` +- Deprecate `az vmware private-cloud deleteidentitysource` ## 3.2.0 (2021-10) diff --git a/src/vmware/azext_vmware/_help.py b/src/vmware/azext_vmware/_help.py index 0df897a8fc7..f68b6eea1dc 100644 --- a/src/vmware/azext_vmware/_help.py +++ b/src/vmware/azext_vmware/_help.py @@ -92,6 +92,11 @@ short-summary: Add a vCenter Single Sign On Identity Source to a private cloud. """ +helps['vmware private-cloud addidentitysource'] = """ + type: command + short-summary: Add a vCenter Single Sign On Identity Source to a private cloud. +""" + helps['vmware private-cloud add-availability-zone'] = """ type: command short-summary: Add an Availability Zone to a private cloud. @@ -147,6 +152,11 @@ short-summary: Delete a vCenter Single Sign On Identity Source for a private cloud. """ +helps['vmware private-cloud deleteidentitysource'] = """ + type: command + short-summary: Delete a vCenter Single Sign On Identity Source for a private cloud. +""" + helps['vmware private-cloud list'] = """ type: command short-summary: List the private clouds. @@ -157,6 +167,11 @@ short-summary: List the admin credentials for the private cloud. """ +helps['vmware private-cloud listadmincredentials'] = """ + type: command + short-summary: List the admin credentials for the private cloud. +""" + helps['vmware private-cloud show'] = """ type: command short-summary: Show details of a private cloud. diff --git a/src/vmware/azext_vmware/_params.py b/src/vmware/azext_vmware/_params.py index aaeaa3556ba..c5a5a2a0980 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -37,7 +37,7 @@ def load_arguments(self, _): c.argument('nsxt_password', help='NSX-T Manager password.') c.argument('accept_eula', help='Accept the end-user license agreement without prompting.') c.argument('network_block', help='A subnet at least of size /22. Make sure the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22.') - c.argument('mi_system_assigned', help='Enables a system assigned identity.') + c.argument('mi_system_assigned', help='Enable a system assigned identity.') with self.argument_context('vmware private-cloud show') as c: c.argument('name', options_list=['--name', '-n'], help='Name of the private cloud.') @@ -75,13 +75,30 @@ def load_arguments(self, _): c.argument('ssl', help='Protect LDAP communication using SSL certificate (LDAPS). Specify "Enabled" or "Disabled".') c.argument('username', help='The ID of an Active Directory user with a minimum of read-only access to Base DN for users and group.') + with self.argument_context('vmware private-cloud addidentitysource') as c: + c.argument('alias', help='The domain\'s NetBIOS name.') + c.argument('base_group_dn', help='The base distinguished name for groups.') + c.argument('base_user_dn', help='The base distinguished name for users.') + c.argument('domain', help='The domain\'s dns name.') + c.argument('name', options_list=['--name', '-n'], help='The name of the identity source.') + c.argument('password', help='The password of the Active Directory user with a minimum of read-only access to Base DN for users and groups.') + c.argument('primary_server', help='Primary server URL.') + c.argument('secondary_server', help='Secondary server URL.') + c.argument('ssl', help='Protect LDAP communication using SSL certificate (LDAPS). Specify "Enabled" or "Disabled".') + c.argument('username', help='The ID of an Active Directory user with a minimum of read-only access to Base DN for users and group.') + with self.argument_context('vmware private-cloud delete-identity-source') as c: c.argument('alias', help='The domain\'s NetBIOS name.') c.argument('domain', help='The domain\'s dns name.') c.argument('name', options_list=['--name', '-n'], help='The name of the identity source.') + with self.argument_context('vmware private-cloud deleteidentitysource') as c: + c.argument('alias', help='The domain\'s NetBIOS name.') + c.argument('domain', help='The domain\'s dns name.') + c.argument('name', options_list=['--name', '-n'], help='The name of the identity source.') + with self.argument_context('vmware private-cloud identity') as c: - c.argument('system_assigned', help='Enables a system assigned identity.') + c.argument('system_assigned', help='Enable a system assigned identity.') with self.argument_context('vmware private-cloud update') as c: c.argument('name', options_list=['--name', '-n'], help='Name of the private cloud.') diff --git a/src/vmware/azext_vmware/commands.py b/src/vmware/azext_vmware/commands.py index 68a2b5c76a8..24c4da38fa4 100644 --- a/src/vmware/azext_vmware/commands.py +++ b/src/vmware/azext_vmware/commands.py @@ -20,8 +20,11 @@ def load_command_table(self, _): g.custom_command('create', 'privatecloud_create') g.custom_command('update', 'privatecloud_update') g.custom_command('delete', 'privatecloud_delete') + g.custom_command('listadmincredentials', 'privatecloud_listadmincredentials', deprecate_info=g.deprecate(redirect='az vmware private-cloud list-admin-credentials', hide=True)) g.custom_command('list-admin-credentials', 'privatecloud_listadmincredentials') + g.custom_command('addidentitysource', 'privatecloud_addidentitysource', deprecate_info=g.deprecate(redirect='az vmware private-cloud add-identity-source', hide=True)) g.custom_command('add-identity-source', 'privatecloud_addidentitysource') + g.custom_command('deleteidentitysource', 'privatecloud_deleteidentitysource', deprecate_info=g.deprecate(redirect='az vmware private-cloud delete-identity-source', hide=True)) g.custom_command('delete-identity-source', 'privatecloud_deleteidentitysource') g.custom_command('add-availability-zone', 'privatecloud_addavailabilityzone') g.custom_command('delete-availability-zone', 'privatecloud_deleteavailabilityzone')