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/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/HISTORY.md b/src/vmware/HISTORY.md index 0fb037b59a0..83b3892a807 100644 --- a/src/vmware/HISTORY.md +++ b/src/vmware/HISTORY.md @@ -1,5 +1,22 @@ # Release History +## 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` +- 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) - 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..f68b6eea1dc 100644 --- a/src/vmware/azext_vmware/_help.py +++ b/src/vmware/azext_vmware/_help.py @@ -87,11 +87,56 @@ short-summary: Update a cluster in a private cloud. """ +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 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. +""" + +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,6 +147,11 @@ short-summary: Delete a private cloud. """ +helps['vmware private-cloud delete-identity-source'] = """ + type: command + 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. @@ -112,6 +162,11 @@ short-summary: List the private clouds. """ +helps['vmware private-cloud list-admin-credentials'] = """ + type: command + 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. @@ -881,3 +936,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 09291de257f..c5a5a2a0980 100644 --- a/src/vmware/azext_vmware/_params.py +++ b/src/vmware/azext_vmware/_params.py @@ -21,23 +21,23 @@ 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('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.') 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.') 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='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.') @@ -52,6 +52,29 @@ 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 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.') + 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 addidentitysource') as c: c.argument('alias', help='The domain\'s NetBIOS name.') c.argument('base_group_dn', help='The base distinguished name for groups.') @@ -64,14 +87,21 @@ 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 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='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.') - 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.') @@ -112,6 +142,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.') @@ -200,3 +231,18 @@ 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.') + 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.') + 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..24c4da38fa4 100644 --- a/src/vmware/azext_vmware/commands.py +++ b/src/vmware/azext_vmware/commands.py @@ -20,12 +20,24 @@ 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('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') + 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') @@ -170,3 +182,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 6d282a5a7e3..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): +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) @@ -40,13 +40,14 @@ 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 - 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) + from azext_vmware.vendored_sdks.avs_client.models import PrivateCloud, Circuit, ManagementCluster, Sku, PrivateCloudIdentity + 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,9 +57,11 @@ 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): +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: @@ -98,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) @@ -106,13 +156,13 @@ 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): - 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): @@ -259,8 +309,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): @@ -525,3 +576,54 @@ 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, 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) + + +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 45f7b190b4f..7abb07c925c 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.22000-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 + - Thu, 11 Nov 2021 15:54:47 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.22000-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 + - Thu, 11 Nov 2021 15:54:51 GMT + server: + - Rocket status: code: 200 message: OK @@ -284,99 +81,28 @@ 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.22000-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 + - Thu, 11 Nov 2021 15:54:55 GMT + server: + - Rocket status: code: 200 message: OK - request: - body: '{"location": "centralus", "tags": {}, "sku": {"name": "av20"}, "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 @@ -387,89 +113,60 @@ interactions: Connection: - keep-alive Content-Length: - - '255' + - '243' 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.22000-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' + - Thu, 11 Nov 2021 15:55:00 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.22000-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' + - Thu, 11 Nov 2021 15:55:04 GMT + server: + - Rocket status: code: 200 message: OK @@ -477,224 +174,171 @@ 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.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: 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' + - Thu, 11 Nov 2021 15:55:08 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.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: 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' + - Thu, 11 Nov 2021 15:55:12 GMT + server: + - Rocket status: - code: 200 - message: OK + code: 202 + message: Accepted - request: - body: null + body: '{"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: + - '81' + 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.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: 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' + - Thu, 11 Nov 2021 15:55:17 GMT + server: + - Rocket status: code: 200 message: OK - request: - body: null + body: '{"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: + - '39' + 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.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: 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' + - Thu, 11 Nov 2021 15:55:21 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.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/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"}}' headers: - cache-control: - - no-cache content-length: - - '387' + - '564' 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' + - Thu, 11 Nov 2021 15:55:25 GMT + server: + - Rocket status: code: 200 message: OK @@ -702,44 +346,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.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: 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' + - Thu, 11 Nov 2021 15:55:29 GMT + server: + - Rocket status: code: 200 message: OK @@ -747,89 +378,82 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware private-cloud create + - vmware private-cloud add-identity-source 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.22000-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' + - Thu, 11 Nov 2021 15:55:34 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 add-identity-source 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.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: 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' + - Thu, 11 Nov 2021 15:55:34 GMT + server: + - Rocket status: code: 200 message: OK @@ -837,44 +461,31 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - vmware private-cloud create + - vmware private-cloud delete-identity-source 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.22000-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' + - Thu, 11 Nov 2021 15:55:38 GMT + server: + - Rocket status: code: 200 message: OK @@ -882,89 +493,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.22000-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' + - Thu, 11 Nov 2021 15:55:42 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.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: 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' + - Thu, 11 Nov 2021 15:55:47 GMT + server: + - Rocket status: code: 200 message: OK @@ -972,89 +562,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.22000-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' + - Thu, 11 Nov 2021 15:55:51 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.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: 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' + - Thu, 11 Nov 2021 15:55:55 GMT + server: + - Rocket status: code: 200 message: OK @@ -1062,3245 +630,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.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: 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' + - Thu, 11 Nov 2021 15:56:00 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..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,2091 +1,38 @@ 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"}, "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' + - '171' 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.22000-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' + - Thu, 11 Nov 2021 15:53:39 GMT + server: + - Rocket status: code: 200 message: OK @@ -2093,146 +40,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.22000-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' + - Thu, 11 Nov 2021 15:53:43 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.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: 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 + - Thu, 11 Nov 2021 15:53:47 GMT + server: + - Rocket status: code: 200 message: OK @@ -2250,92 +118,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.22000-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 + - Thu, 11 Nov 2021 15:53:52 GMT + server: + - Rocket status: code: 200 message: OK @@ -2347,98 +144,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.22000-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 + - Thu, 11 Nov 2021 15:53:56 GMT + server: + - Rocket status: code: 200 message: OK @@ -2450,7 +176,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - vmware addon srm delete + - vmware addon vr delete Connection: - keep-alive Content-Length: @@ -2458,127 +184,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.22000-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' + - Thu, 11 Nov 2021 15:54:00 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.22000-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' + - Thu, 11 Nov 2021 15:54:04 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.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: 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' + - Thu, 11 Nov 2021 15:54:09 GMT + server: + - Rocket status: code: 200 message: OK @@ -2586,43 +272,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.22000-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' + - Thu, 11 Nov 2021 15:54:13 GMT + server: + - Rocket status: code: 200 message: OK @@ -2630,43 +304,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.22000-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' + - Thu, 11 Nov 2021 15:54:17 GMT + server: + - Rocket status: code: 200 message: OK @@ -2674,102 +336,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.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: 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 + - Thu, 11 Nov 2021 15:54:21 GMT + server: + - Rocket status: code: 200 message: OK @@ -2787,33 +378,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.22000-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' + - Thu, 11 Nov 2021 15:54:26 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..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 @@ -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.22000-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 + - Thu, 11 Nov 2021 15:53:39 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.22000-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 + - Thu, 11 Nov 2021 15:53:43 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.22000-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 + - Thu, 11 Nov 2021 15:53:47 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.22000-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 + - Thu, 11 Nov 2021 15:53:52 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..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 @@ -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.22000-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 + - Thu, 11 Nov 2021 15:53:39 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.22000-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 + - Thu, 11 Nov 2021 15:53:43 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.22000-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 + - Thu, 11 Nov 2021 15:53:47 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.22000-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' + - Thu, 11 Nov 2021 15:53:52 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 index bcb4b930092..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,67 +1,8 @@ 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("}}' + 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 @@ -72,733 +13,28 @@ interactions: Connection: - keep-alive Content-Length: - - '259' + - '245' 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.22000-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 + 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/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"}' + 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 - 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 + - application/json 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 + - Thu, 11 Nov 2021 15:53:39 GMT + server: + - Rocket status: code: 200 message: OK @@ -816,98 +52,28 @@ 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.22000-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 + 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":[]}' + 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: - cache-control: - - no-cache content-length: - - '12' + - '569' 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 + - application/json 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 + - Thu, 11 Nov 2021 15:53:43 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"}}' + "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 @@ -918,100 +84,27 @@ interactions: Connection: - keep-alive Content-Length: - - '237' + - '466' Content-Type: - application/json ParameterSetName: - - -g -c -n --peer-express-route-circuit --authorization-key + - -g -c -n --peer-express-route-circuit --authorization-key --express-route-id 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.22000-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 + 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/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"}' + 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: - cache-control: - - no-cache content-length: - - '650' + - '557' 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 + - application/json 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 + - Thu, 11 Nov 2021 15:53:47 GMT + server: + - Rocket status: code: 200 message: OK @@ -1029,92 +122,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/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 + - 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: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/globalReachConnections?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/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: - access-control-allow-methods: - - GET, OPTIONS - access-control-allow-origin: - - '*' - cache-control: - - max-age=86400, private content-length: - - '131' + - '569' content-type: - - application/json; charset=utf-8 + - application/json 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 + - Thu, 11 Nov 2021 15:53:52 GMT + server: + - Rocket status: code: 200 message: OK @@ -1132,92 +154,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.22000-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 + 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/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"}' + 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: - cache-control: - - no-cache content-length: - - '650' + - '557' 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 + - application/json 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 + - Thu, 11 Nov 2021 15:53:56 GMT + server: + - Rocket status: code: 200 message: OK @@ -1237,94 +188,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.22000-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 + 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: - 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 + - Thu, 11 Nov 2021 15:54:00 GMT + server: + - Rocket status: code: 200 message: OK @@ -1342,33 +218,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.22000-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 + 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":[]}' + 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: - cache-control: - - no-cache content-length: - - '12' + - '569' content-type: - - application/json; charset=utf-8 + - application/json 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' + - Thu, 11 Nov 2021 15:54:04 GMT + server: + - Rocket status: code: 200 message: OK 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..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,1138 +1,76 @@ 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"}, "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' + - '247' 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.22000-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' + - Thu, 11 Nov 2021 15:54:38 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.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: 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 + - Thu, 11 Nov 2021 15:54:43 GMT + server: + - Rocket status: code: 200 message: OK @@ -1150,93 +88,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.22000-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 + - Thu, 11 Nov 2021 15:54:47 GMT + server: + - Rocket status: code: 200 message: OK @@ -1254,92 +120,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.22000-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 + - Thu, 11 Nov 2021 15:54:51 GMT + server: + - Rocket status: code: 200 message: OK @@ -1361,94 +156,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.22000-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 + - Thu, 11 Nov 2021 15:54:55 GMT + server: + - Rocket status: code: 200 message: OK @@ -1466,92 +188,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.22000-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 + - Thu, 11 Nov 2021 15:55:00 GMT + server: + - Rocket status: code: 200 message: OK @@ -1569,92 +220,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.22000-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 + - Thu, 11 Nov 2021 15:55:04 GMT + server: + - Rocket status: code: 200 message: OK @@ -1674,94 +254,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.22000-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 + - Thu, 11 Nov 2021 15:55:08 GMT + server: + - Rocket status: code: 200 message: OK @@ -1779,33 +284,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.22000-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' + - Thu, 11 Nov 2021 15:55:12 GMT + server: + - Rocket status: code: 200 message: OK 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..9d6b8465c70 --- /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: + - Thu, 11 Nov 2021 15:54:04 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: + - Thu, 11 Nov 2021 15:54:09 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: + - Thu, 11 Nov 2021 15:54:13 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: + - Thu, 11 Nov 2021 15:54:17 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 --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 + 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: + - Thu, 11 Nov 2021 15:54:21 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: + - Thu, 11 Nov 2021 15:54:26 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: + - Thu, 11 Nov 2021 15:54:30 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 --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 + 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: + - Thu, 11 Nov 2021 15:54:34 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 fba9f24ec60..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 @@ -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.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-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 + - Thu, 11 Nov 2021 15:54:04 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.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-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 + - Thu, 11 Nov 2021 15:54:09 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.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-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 + - Thu, 11 Nov 2021 15:54:13 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.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-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 + - Thu, 11 Nov 2021 15:54:17 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.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-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 + - Thu, 11 Nov 2021 15:54:21 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.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-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 + - Thu, 11 Nov 2021 15:54:26 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.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-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 + - Thu, 11 Nov 2021 15:54:30 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.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-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 + - 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 new file mode 100644 index 00000000000..bdd5362a5d9 --- /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: + - Thu, 11 Nov 2021 15:54:17 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: + - Thu, 11 Nov 2021 15:54:21 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: + - Thu, 11 Nov 2021 15:54:26 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 74270b89d7a..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 @@ -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.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-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 + - Thu, 11 Nov 2021 15:54:47 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.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-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 + - Thu, 11 Nov 2021 15:54:51 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.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-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 + - Thu, 11 Nov 2021 15:54:55 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.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-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 + - Thu, 11 Nov 2021 15:55:00 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.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-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 + - Thu, 11 Nov 2021 15:55:04 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.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-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 + - Thu, 11 Nov 2021 15:55:08 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.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-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 + - Thu, 11 Nov 2021 15:55:12 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.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-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 + - Thu, 11 Nov 2021 15:55:17 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.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-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 + - Thu, 11 Nov 2021 15:55:21 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.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-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 + - Thu, 11 Nov 2021 15:55:25 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.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-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 + - Thu, 11 Nov 2021 15:55:29 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.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-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 + - Thu, 11 Nov 2021 15:55:34 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.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-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 + - Thu, 11 Nov 2021 15:55:38 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.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-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 + - Thu, 11 Nov 2021 15:55:42 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.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-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 + - Thu, 11 Nov 2021 15:55:46 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.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-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 + - Thu, 11 Nov 2021 15:55:51 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.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-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 + - Thu, 11 Nov 2021 15:55:55 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.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-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 + - Thu, 11 Nov 2021 15:56:00 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.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-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 + - Thu, 11 Nov 2021 15:56:04 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.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-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 + - Thu, 11 Nov 2021 15:56:08 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.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-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 + - Thu, 11 Nov 2021 15:56:12 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.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-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 + - Thu, 11 Nov 2021 15:56:17 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.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-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 + - Thu, 11 Nov 2021 15:56:21 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.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-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 + - Thu, 11 Nov 2021 15:56:25 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.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-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 + - Thu, 11 Nov 2021 15:56:30 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.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-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 + - Thu, 11 Nov 2021 15:56:34 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.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-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 + - Thu, 11 Nov 2021 15:56:38 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.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-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 + - Thu, 11 Nov 2021 15:56:42 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.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-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 + - Thu, 11 Nov 2021 15:56:47 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.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-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 + - Thu, 11 Nov 2021 15:56:51 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.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-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 + - Thu, 11 Nov 2021 15:56:55 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.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-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 + - Thu, 11 Nov 2021 15:57:00 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.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-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 + - Thu, 11 Nov 2021 15:57:04 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.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-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 + - Thu, 11 Nov 2021 15:57:08 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.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-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 + - Thu, 11 Nov 2021 15:57:12 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.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-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 + - Thu, 11 Nov 2021 15:57:17 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.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-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 + - Thu, 11 Nov 2021 15:57:21 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.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-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 + - Thu, 11 Nov 2021 15:57:25 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.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-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 + - Thu, 11 Nov 2021 15:57:30 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..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 @@ -22,15 +22,16 @@ 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') + 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() + 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')) @@ -45,4 +46,4 @@ def test_vmware_global_reach_connection(self): 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') + 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_placement_policies_scenario.py b/src/vmware/azext_vmware/tests/latest/test_placement_policies_scenario.py new file mode 100644 index 00000000000..3898f8da9fb --- /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} --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() + 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} --yes').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 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..6b085a93f78 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') @@ -69,17 +70,17 @@ 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()) - 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()) 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'), }